/* ==========================================================================
   FN 14 — List / data pages  ·  Instrument Deck (2027)
   --------------------------------------------------------------------------
   ONE page grid. ONE workspace surface. ONE scroll owner.

   Layout ownership — each behaviour has exactly one owner:
     page edges        .fn-list-page  (Bootstrap col padding neutralised to 0)
     workspace surface .fn-list-deck  (the only border/radius in the stack)
     grid clipping     .fn-list-table-host   overflow-x:clip (not a Y scroller)
     grid scrolling    .fn-list-viewport     overflow-x:auto + overflow-y:scroll
                                             + max-height (DataTables `dom`)
     column widths     --fnl-w-* vars  ->  .fn-c-* classes (CSS owns the numbers)
     table total width fn-list.js sizeGrid() (fixed layout needs a definite
                                             width; it sums the same vars)
     identity freeze   .fn-c-idx/.fn-c-sel/.fn-c-name  position:sticky
     row rhythm        td padding + --fnl-row-y

   NOTHING here uses :nth-child for widths or sticky offsets. DataTables
   hides cells with display:none (and may remove tbody cells), so nth-child
   silently retargets the moment a user changes the visible column set.

   All rules are scoped under `.fn-ui .fn-list-page`. This file is loaded by
   the list pages themselves, never from a Master page.
   ========================================================================== */

/* ==========================================================================
   1. Page scaffold + scale
   ========================================================================== */

.fn-ui .fn-list-page,
.fn-ui .fn-port-sheet {
  /* --- rhythm (4px grid) --- */
  --fnl-gap-band: 20px;   /* header → deck */
  --fnl-bar-y: 9px;       /* toolbar band padding-block */
  --fnl-bar-x: 12px;      /* every band's padding-inline — THE shared edge */
  --fnl-row-y: 9px;       /* body cell padding-block  → 60px rows */
  --fnl-cell-x: 8px;
  --fnl-head-y: 9px;

  /* --- type --- */
  --fnl-fs-name: 12.5px;
  --fnl-fs-num: 12.5px;
  --fnl-fs-meta: 11px;
  --fnl-fs-head: 10.5px;

  /* --- shape: the deck corner is the shared table radius --- */
  --fnl-radius-deck: var(--fn-radius-table);
  --fnl-radius-ctl: 8px;

  /* --- colour (all resolve through fn/01-tokens.css) --- */
  --fnl-surface: var(--fn-bg-surface);
  --fnl-line: var(--fn-border);
  --fnl-line-soft: color-mix(in srgb, var(--fn-border) 55%, transparent);
  --fnl-hover: var(--fn-bg-hover);
  --fnl-selected: color-mix(in srgb, var(--fn-brand) 10%, var(--fn-bg-surface));
  --fnl-head-bg: var(--fn-bg-sunken);
  --fnl-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- the data pane. svh ignores mobile URL-bar show/hide so the pane
     does not jump in height while the user is scrolling the page. --- */
  --fnl-pane-h: clamp(420px, calc(100vh - 230px), 880px);
  --fnl-pane-h: clamp(420px, calc(100svh - 230px), 880px);

  /* --- column widths. DEFAULT visible set (no מס קרן, no two exposure
     cols, no חשיפת מניות בפועל) must fit the ~1170 content pane so there is
     no horizontal scrollbar until the user adds columns. Long text truncates
     inside the cell (.fh2 clamp, class-stack ellipsis, mng ellipsis) —
     sizing every column to its longest word blew ענף out to a hole and
     pushed the rest of the grid off-screen. */
  --fnl-w-idx: 28px;
  --fnl-w-sel: 32px;
  --fnl-w-name: 158px;
  --fnl-w-id: 70px;
  --fnl-w-class: 76px;
  --fnl-w-mng: 108px;
  --fnl-w-type: 54px;
  --fnl-w-perf: 66px;
  --fnl-w-exp: 64px;
  --fnl-w-act: 52px;
  --fnl-w-fee: 64px;
  --fnl-w-size: 66px;
  --fnl-w-date: 58px;
  --fnl-w-age: 40px;
  --fnl-w-flow: 62px;
}

.fn-ui .fn-list-page {
  position: relative;
  margin: 0 0 var(--fn-space-8, 32px);
  padding: 0;
  max-width: 100%;
  min-width: 0;
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  background-color: var(--fn-bg-canvas);
  -webkit-tap-highlight-color: transparent;
  /* NO overflow here. overflow-x:hidden would force overflow-y to `auto`,
     turning the page into a scroll container and killing sticky + popovers.
     Horizontal containment is owned by .fn-list-table-host instead. */
}

/* The legacy Bootstrap row/col scaffold is kept for markup compatibility but
   contributes ZERO horizontal geometry — that is what makes every band in the
   page share one left and one right edge. */
.fn-ui .fn-list-page.row,
.fn-ui .fn-list-page .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.fn-ui .fn-list-page [class*="col-"] {
  float: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ==========================================================================
   2. Page identity
   ========================================================================== */

.fn-ui .fn-list-page .fn-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 var(--fnl-gap-band);
  padding: 0;
}

.fn-ui .fn-list-page .fn-list-header__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}

/* A note that sits under the header, above the tables (holding lists). */
.fn-ui .fn-list-page .fn-list-header + .fn-list-header__count {
  margin-bottom: var(--fnl-gap-band);
}

/* The title itself (.fn-list-header__title, h1#LookForTitle2): one rule
   with the document and portfolio heads, in fn/38-page-title.css. */

/* ==========================================================================
   3. The deck — one surface, internal bands, no nested cards
   ========================================================================== */

.fn-ui .fn-list-page .fn-list-deck {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 0;
  /* border, radius, surface: .fn-table-shell in 00-page.css */
  /* visible: the column popover has to be able to leave the surface */
  overflow: visible;
}

.fn-ui .fn-list-page .fn-list-deck,
.fn-ui .fn-list-page .fn-list-table-host,
.fn-ui .fn-list-page .fn-list-viewport,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table {
  -webkit-tap-highlight-color: transparent;
}

/* A band is a full-width horizontal slice of the deck. Bands never carry a
   border or a radius of their own — only the hairline that separates them. */
.fn-ui .fn-list-page .fn-deck-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: var(--fnl-bar-y) var(--fnl-bar-x);
  background: transparent;
  border: 0;
}

.fn-ui .fn-list-page .fn-deck-bar + .fn-deck-bar {
  border-top: 1px solid var(--fnl-line-soft);
}

.fn-ui .fn-list-page .fn-deck-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.fn-ui .fn-list-page .fn-deck-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  min-width: 0;
}

.fn-ui .fn-list-page .fn-deck-sep {
  flex: 0 0 1px;
  align-self: center;
  width: 1px;
  height: 20px;
  margin-inline: 5px;
  background: var(--fnl-line);
}

/* ==========================================================================
   4. Toolbar actions — one primary, the rest quiet
   ========================================================================== */

.fn-ui .fn-list-page .fn-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--fnl-radius-ctl);
  background-color: transparent;
  background-image: none;
  color: var(--fn-text-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color 140ms var(--fnl-ease),
    border-color 140ms var(--fnl-ease),
    color 140ms var(--fnl-ease);
}

.fn-ui .fn-list-page .fn-act:hover {
  background-color: var(--fnl-hover);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fn-act:focus-visible {
  outline: 2px solid var(--fn-focus);
  outline-offset: 1px;
}

/* The one action that is actually a call to action. */
.fn-ui .fn-list-page .fn-act--primary {
  padding: 0 14px;
  border-color: var(--fn-brand);
  background-color: var(--fn-brand);
  color: var(--fn-text-on-brand);
  font-weight: var(--fn-fw-bold);
}

.fn-ui .fn-list-page .fn-act--primary:hover {
  background-color: var(--fn-brand-hover);
  border-color: var(--fn-brand-hover);
  color: var(--fn-text-on-brand);
}

.fn-ui .fn-list-page .fn-act__ico {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.fn-ui .fn-list-page .fn-act__ico[data-cmd="chart"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M5 15l4.2-5.2 3.2 2.6L19 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M5 15l4.2-5.2 3.2 2.6L19 6'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page .fn-act__ico[data-cmd="portfolio"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='12' rx='2'/%3E%3Cpath d='M8 8V6.8A2.8 2.8 0 0 1 10.8 4h2.4A2.8 2.8 0 0 1 16 6.8V8'/%3E%3Cpath d='M3.5 13h17'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='8' width='17' height='12' rx='2'/%3E%3Cpath d='M8 8V6.8A2.8 2.8 0 0 1 10.8 4h2.4A2.8 2.8 0 0 1 16 6.8V8'/%3E%3Cpath d='M3.5 13h17'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page .fn-act__ico[data-cmd="date"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M4 11h16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='2'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M4 11h16'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page .fn-act__ico[data-cmd="flow"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V11'/%3E%3Cpath d='M12 20V5'/%3E%3Cpath d='M17 20v-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20V11'/%3E%3Cpath d='M12 20V5'/%3E%3Cpath d='M17 20v-6'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page .fn-act__ico[data-cmd="columns"] {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Cpath d='M9.4 4.5v15M14.6 4.5v15'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2'/%3E%3Cpath d='M9.4 4.5v15M14.6 4.5v15'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page .fn-act__txt {
  min-width: 0;
  padding-block: var(--fn-ink-pad);
  margin-block: calc(var(--fn-ink-pad) * -1);
}

/* ==========================================================================
   5. Filters band — controls that read as part of the dataset
   ========================================================================== */

.fn-ui .fn-list-page .fn-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fn-ui .fn-list-page .fn-filter__label {
  margin: 0;
  font-size: var(--fnl-fs-meta);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fn-text-3);
  white-space: nowrap;
}

.fn-ui .fn-list-page .fn-seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--fnl-line);
  border-radius: var(--fnl-radius-ctl);
  background: var(--fnl-head-bg);
}

.fn-ui .fn-list-page .fn-seg__opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 38px;
  margin: 0;
  padding: 0 10px;
  border-radius: var(--fn-radius-sm);
  color: var(--fn-text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 140ms var(--fnl-ease), color 140ms var(--fnl-ease);
}

.fn-ui .fn-list-page .fn-seg__opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.fn-ui .fn-list-page .fn-seg__opt:hover {
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fn-seg__opt:has(input:checked) {
  background: var(--fn-bg-raised);
  color: var(--fn-text-1);
  box-shadow: var(--fn-shadow-sm);
}

.fn-ui .fn-list-page .fn-seg__opt:has(input:focus-visible) {
  outline: 2px solid var(--fn-focus);
  outline-offset: 1px;
}

/* The checked option is a raised surface and a shadow, and both high
   contrast modes take those away, leaving every option the same. There
   the choice is drawn the way those modes draw a selection: inverted —
   the bridge's interaction ink (white on .darkCont, black on .brightCont)
   as the fill, or the system Highlight pair under forced colours. The
   tcycle strip restates the checked look at a higher specificity, so it is
   named here too. */
.fn-ui:is(.darkCont, .brightCont) .fn-list-page .fn-seg__opt:has(input:checked),
.fn-ui:is(.darkCont, .brightCont) .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg__opt:has(input:checked) {
  background: var(--fn-interactive);
  color: var(--fn-on-interactive);
}

@media (forced-colors: active) {
  .fn-ui .fn-list-page .fn-seg__opt:has(input:checked),
  .fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg__opt:has(input:checked) {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }
}

/* Record count lives WITH the filters, not in the page title. */
.fn-ui .fn-list-page .fn-list-header__count {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fn-text-3);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fn-ui .fn-list-page .fn-list-header__count[hidden] {
  display: none;
}

/* Legacy selects that still live in a filter band (etfList) */
.fn-ui .fn-list-page .fn-deck-bar .form-control,
.fn-ui .fn-list-page select.form-control {
  height: 32px;
  min-width: 150px;
  max-width: 230px;
  padding: 4px 9px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background: var(--fn-field-bg);
  color: var(--fn-field-text);
  font-size: 12.5px;
  box-shadow: none;
}

.fn-ui .fn-list-page .fn-deck-bar .fn-dd__trigger {
  min-width: 150px;
  max-width: 230px;
}

/* ==========================================================================
   6. Column management — quiet when closed, legible when open
   ========================================================================== */

.fn-ui .fn-list-page .fn-list-columns {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.fn-ui .fn-list-page .fn-cols-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--fnl-line);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fnl-surface);
  background-image: none;
  color: var(--fn-text-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 140ms var(--fnl-ease), border-color 140ms var(--fnl-ease), color 140ms var(--fnl-ease);
}

.fn-ui .fn-list-page .fn-cols-toggle:hover {
  background-color: var(--fnl-hover);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fn-cols-toggle:focus-visible {
  outline: 2px solid var(--fn-focus);
  outline-offset: 1px;
}

.fn-ui .fn-list-page .fn-list-columns.is-open .fn-cols-toggle {
  background-color: var(--fnl-hover);
  border-color: var(--fn-border-strong);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fn-cols-toggle__count {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--fnl-head-bg);
  color: var(--fn-text-3);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fn-ui .fn-list-page .fn-cols-toggle__count:empty {
  display: none;
}

.fn-ui .fn-list-page .fn-cols-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 40;
  display: none;
  width: min(760px, calc(100vw - 32px));
  padding: 14px 16px 16px;
  border: 1px solid var(--fn-border-strong);
  border-radius: var(--fnl-radius-deck);
  background: var(--fn-bg-raised);
  box-shadow: var(--fn-shadow-pop);
}

.fn-ui .fn-list-page .fn-list-columns.is-open .fn-cols-panel:not([hidden]) {
  display: block;
}

.fn-ui .fn-list-page .fn-cols-panel[hidden] {
  display: none;
}

.fn-ui .fn-list-page .fn-cols-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--fnl-line);
}

.fn-ui .fn-list-page .fn-cols-panel__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fn-cols-panel .fundlist-col-limit-hint {
  display: block;
  margin: 0;
  font-size: var(--fnl-fs-meta);
  font-weight: 500;
  line-height: 1.3;
  color: var(--fn-text-3);
}

.fn-ui .fn-list-page .fn-cols-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
}

.fn-ui .fn-list-page .fn-cols-group {
  min-width: 0;
}

.fn-ui .fn-list-page .fn-cols-group__title {
  margin: 0 0 7px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--fnl-line-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fn-text-3);
}

.fn-ui .fn-list-page .fn-cols-group__chips {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fn-ui .fn-list-page .fn-cols-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0;
  padding: 3px 6px;
  border-radius: var(--fn-radius-sm);
  color: var(--fn-text-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
  transition: background-color 120ms var(--fnl-ease), color 120ms var(--fnl-ease);
}

.fn-ui .fn-list-page .fn-cols-opt > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fn-ui .fn-list-page .fn-cols-opt:hover {
  background: var(--fnl-hover);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fn-cols-opt:has(input:checked) {
  color: var(--fn-text-1);
  font-weight: 600;
}

.fn-ui .fn-list-page .fn-cols-opt:has(input:disabled) {
  opacity: 0.42;
  cursor: not-allowed;
}

.fn-ui .fn-list-page .fn-cols-opt.is-cls-master { display: none; }

.fn-ui .fn-list-page .fn-cols-opt input {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--fn-brand);
  cursor: pointer;
}

.fn-ui .fn-list-page .fn-cols-opt:has(input:focus-visible) {
  outline: 2px solid var(--fn-focus);
  outline-offset: 1px;
}

@media (max-width: 1100px) {
  .fn-ui .fn-list-page .fn-cols-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .fn-ui .fn-list-page .fn-cols-grid { grid-template-columns: 1fr; }
  .fn-ui .fn-list-page .fn-cols-panel { width: calc(100vw - 32px); }
}

/* ==========================================================================
   7. Chart band — a band of the deck, not a floating region
   ========================================================================== */

.fn-ui .fn-list-page .fn-deck-chart {
  padding: 12px var(--fnl-bar-x) 6px;
  border-top: 1px solid var(--fnl-line-soft);
}

.fn-ui .fn-list-page .fn-deck-chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
}

.fn-ui .fn-list-page .fn-deck-chart__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fn-text-2);
}

.fn-ui .fn-list-page .fn-deck-chart .hd_fundGraphPeriod {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
}

.fn-ui .fn-list-page .fn-deck-chart .datePickerM {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.fn-ui .fn-list-page .fn-deck-chart .form-control {
  float: none;
  min-width: 170px;
}

.fn-ui .fn-list-page #graphCloseIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-inline-start: auto;
  border: 1px solid var(--fnl-line);
  border-radius: var(--fn-radius-sm);
  color: var(--fn-text-3);
  font-size: 12px;
  text-decoration: none;
}

.fn-ui .fn-list-page #graphCloseIcon:hover {
  background: var(--fnl-hover);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .chart_fund_msg {
  font-size: 12.5px;
}

.fn-ui .fn-list-page .chart_fund_msg:empty {
  display: none;
}

.fn-ui .fn-list-page .errorMsg {
  font-size: 12px;
}

/* --- compare chart (c3 0.2.5) --------------------------------------------
   c3 writes colour and opacity as inline styles, hence the !important on
   area / circle paint. fn-list.js supplies the palette and the gradient
   defs (#fnl-area-N) and marks the band .is-styled once it has; without
   that the areas fall back to a flat, faint fill. */
/* content-box: c3 sets an inline max-height equal to the svg height, so the
   padding has to sit outside it or the legend is clipped. */
.fn-ui .fn-list-page .fn-deck-chart .fundChartA {
  box-sizing: content-box;
  margin: 2px 0 0;
  padding: 12px 8px 6px;
  border: 1px solid var(--fnl-line-soft);
  border-radius: var(--fn-radius-md);
  background: linear-gradient(180deg, color-mix(in srgb, var(--fn-brand) 4%, var(--fnl-surface)) 0%, var(--fnl-surface) 55%);
}

/* template.css pins #chart_fund_all svg to 350px whatever height c3 drew. */
.fn-ui .fn-list-page .fn-deck-chart .c3 svg,
.fn-ui .fn-list-page .fn-deck-chart #chart_fund_all svg,
.fn-ui .fn-list-page .fn-deck-chart #stockMng,
.fn-ui .fn-list-page .fn-deck-chart #stockMng svg {
  display: block;
  height: auto;
  margin-bottom: 0;
  font-family: var(--fn-font-ui);
  font-size: 12px;
}

/* template.css hides the series name inside this chart. The shared tooltip
   shows it, the same way the compare chart does. */
.fn-ui .fn-list-page .fn-deck-chart #stockMng .c3-tooltip td.name {
  display: table-cell;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 path.domain,
.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-axis path,
.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-axis line,
.fn-ui .fn-list-page .fn-deck-chart .c3 .tick line,
.fn-ui .fn-list-page .fn-deck-chart.c3 path.domain,
.fn-ui .fn-list-page .fn-deck-chart.c3 .c3-axis path,
.fn-ui .fn-list-page .fn-deck-chart.c3 .c3-axis line,
.fn-ui .fn-list-page .fn-deck-chart.c3 .tick line {
  stroke: var(--fn-border-strong);
}

/* c3.css paints axis and legend text #000, and that file loads after this
   one. The token follows the theme, so dark mode is not left with black
   type on the near-black plot. */
.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-axis text,
.fn-ui .fn-list-page .fn-deck-chart .c3 .tick text,
.fn-ui .fn-list-page .fn-deck-chart.c3 .c3-axis text,
.fn-ui .fn-list-page .fn-deck-chart.c3 .tick text {
  fill: var(--fn-text-2) !important;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-grid line {
  stroke: var(--fnl-line-soft);
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-xgrid,
.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-ygrid {
  stroke-dasharray: 2 5;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-ygrid-line.fnl-zero line {
  stroke: var(--fn-text-3);
  stroke-dasharray: none;
  opacity: 0.5;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-line {
  stroke-width: 2.25px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-area {
  opacity: 0.1 !important;
}

.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3 .c3-area { opacity: 1 !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(1) .c3-area { fill: url(#fnl-area-1) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(2) .c3-area { fill: url(#fnl-area-2) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(3) .c3-area { fill: url(#fnl-area-3) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(4) .c3-area { fill: url(#fnl-area-4) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(5) .c3-area { fill: url(#fnl-area-5) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(6) .c3-area { fill: url(#fnl-area-6) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(7) .c3-area { fill: url(#fnl-area-7) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(8) .c3-area { fill: url(#fnl-area-8) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(9) .c3-area { fill: url(#fnl-area-9) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(10) .c3-area { fill: url(#fnl-area-10) !important; }
.fn-ui .fn-list-page .fn-deck-chart.is-styled .c3-chart-line:nth-child(n+11) .c3-area { opacity: 0.1 !important; }

/* Points only on the hovered date. */
.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-circle {
  display: inline;
  opacity: 0 !important;
  transition: opacity 120ms var(--fnl-ease);
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-circle._expanded_ {
  opacity: 1 !important;
  stroke: var(--fnl-surface);
  stroke-width: 2px;
}

/* template.css drops the legend 40px into the old 350px svg; with the svg at
   its drawn height that pushes it out of view. Its translateX(-30px) on the
   label stays: c3 0.2.5 sets every label 45px after its swatch. */
.fn-ui .fn-list-page .fn-deck-chart #chart_fund_all .c3-legend-item {
  transform: none;
}

/* Legend type is inherited from the svg on purpose: c3 measures each label
   on a scratch <text> that a rule here would not reach, and a wider drawn
   label than the measured one overlaps the next swatch. */
.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-legend-item text,
.fn-ui .fn-list-page .fn-deck-chart.c3 .c3-legend-item text {
  fill: var(--fn-text-2) !important;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-legend-item-tile {
  rx: 2px;
  ry: 2px;
}

.fn-ui .fn-list-page .fn-deck-chart .c3 .c3-legend-item-hidden text {
  fill: var(--fn-text-3) !important;
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip-container {
  direction: rtl;
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-bubble-radius-sm);
  background: var(--fn-bg-raised);
  box-shadow: var(--fn-shadow-pop);
  opacity: 1;
  overflow: hidden;
  font-size: 12px;
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip th {
  padding: 7px 12px;
  border: 0;
  background: var(--fn-bg-sunken) !important;
  color: var(--fn-text-2);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: start;
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip td {
  padding: 6px 12px;
  border: 0;
  border-top: 1px solid var(--fnl-line-soft);
  background: var(--fn-bg-raised);
  color: var(--fn-text-1);
  font-size: 12px;
  text-align: start;
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip td.name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fn-text-2);
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip td.name > span {
  width: 9px;
  height: 9px;
  margin-inline-end: 7px;
  border-radius: 3px;
}

.fn-ui .fn-list-page .fn-deck-chart .c3-tooltip td.value {
  direction: ltr;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

/* Dark: axes, ticks and legend in white so they read on the near-black deck. */
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 path.domain,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-axis path,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-axis line,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .tick line,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 path.domain,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 .c3-axis path,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 .c3-axis line,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 .tick line {
  stroke: rgba(255, 255, 255, 0.72);
}

html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-axis text,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .tick text,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-legend-item text,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 .c3-axis text,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 .tick text,
html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart.c3 .c3-legend-item text {
  fill: var(--fn-text-1) !important;
}

html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-grid line {
  stroke: rgba(255, 255, 255, 0.1);
}

html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-ygrid-line.fnl-zero line {
  stroke: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

html[data-fn-theme="dark"] .fn-ui .fn-list-page .fn-deck-chart .c3 .c3-legend-item-hidden text {
  fill: rgba(255, 255, 255, 0.45);
}

/* --- period field ----------------------------------------------------------
   The legacy daterangepicker binds to a text input; it is dressed as a
   select: calendar glyph at the start, the existing <b.caret> redrawn as a
   chevron at the end, no text caret. */
.fn-ui .fn-list-page .fn-deck-chart .datePickerM > .collapse {
  position: relative;
}

.fn-ui .fn-list-page .fn-deck-chart #graphPeriodPicker,
.fn-ui .fn-list-page .fn-deck-chart #graphMonthPicker {
  height: 38px;
  min-width: 196px;
  margin: 0;
  padding-block: 0;
  padding-inline: 38px 34px;
  border: 1px solid var(--fnl-line);
  border-radius: var(--fn-bubble-radius-sm);
  background-color: var(--fnl-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A857C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 12px center;
  box-shadow: 0 1px 2px rgba(22, 28, 23, 0.06);
  color: var(--fn-text-1);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: var(--fn-fw-bold);
  line-height: 36px;
  caret-color: transparent;
  cursor: pointer;
  transition: border-color 140ms var(--fnl-ease), box-shadow 140ms var(--fnl-ease), background-color 140ms var(--fnl-ease);
}

html[dir="ltr"] .fn-ui .fn-list-page .fn-deck-chart #graphPeriodPicker,
html[dir="ltr"] .fn-ui .fn-list-page .fn-deck-chart #graphMonthPicker {
  background-position: left 12px center;
}

.fn-ui .fn-list-page .fn-deck-chart #graphPeriodPicker:hover,
.fn-ui .fn-list-page .fn-deck-chart #graphMonthPicker:hover {
  border-color: var(--fn-border-strong);
  background-color: var(--fnl-hover);
}

.fn-ui .fn-list-page .fn-deck-chart #graphPeriodPicker:focus,
.fn-ui .fn-list-page .fn-deck-chart #graphMonthPicker:focus {
  border-color: var(--fn-brand);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fn-brand) 20%, transparent);
}

.fn-ui .fn-list-page .fn-deck-chart .datePickerM .caretArrow {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  display: block;
  width: 7px;
  height: 7px;
  margin: 0;
  border-style: solid;
  border-color: var(--fn-text-3);
  border-width: 0 1.75px 1.75px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  float: none;
}

/* --- period strip -----------------------------------------------------------
   fn-list.js turns each period field into a segmented control built from the
   field's own presets (same look as the product pages). The field stays in
   the DOM as the plugin's anchor and value store, visually hidden. */
.fn-ui .fn-list-page .fn-deck-chart .datePickerM:has(.is-segmented) {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.fn-ui .fn-list-page .fn-deck-chart .datePickerM > .is-segmented {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .fn-ui .fn-list-page .fn-deck-chart .hd_fundGraphPeriod:has(.is-segmented) {
    justify-content: center;
  }

  .fn-ui .fn-list-page .fn-deck-chart .hd_fundGraphPeriod .errorMsg:empty {
    display: none;
  }
}

.fn-ui .fn-list-page .fn-deck-chart .is-segmented > #graphPeriodPicker,
.fn-ui .fn-list-page .fn-deck-chart .is-segmented > #graphMonthPicker,
.fn-ui .fn-list-page .fn-deck-chart .is-segmented > .caretArrow {
  position: absolute !important;
  top: 100%;
  right: 0;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

.fn-ui .fn-list-page .fnl-ranges__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid var(--fnl-line);
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-sunken);
  /* Short to long, left to right, as on the product pages. */
  direction: ltr;
}

.fn-ui .fn-list-page .fnl-ranges__track::-webkit-scrollbar {
  display: none;
}

.fn-ui .fn-list-page .fnl-ranges__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fn-radius-pill);
  background: transparent;
  color: var(--fn-text-2);
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  /* The track is LTR for order only; labels like 3ח׳ still read RTL. */
  direction: rtl;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 160ms var(--fnl-ease), color 160ms var(--fnl-ease), box-shadow 160ms var(--fnl-ease);
}

.fn-ui .fn-list-page .fnl-ranges__btn:hover {
  background: color-mix(in srgb, var(--fn-text-1) 6%, transparent);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .fnl-ranges__btn.is-active {
  background: var(--fnl-surface);
  color: var(--fn-text-1);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--fn-text-1) 14%, transparent), 0 0 0 1px var(--fnl-line-soft);
}

.fn-ui .fn-list-page .fnl-ranges__btn:focus-visible {
  outline: 2px solid var(--fn-brand);
  outline-offset: 1px;
}

.fn-ui .fn-list-page .fnl-ranges__btn--custom::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.85;
}

.fn-ui .fn-list-page .fnl-ranges__sep {
  flex: none;
  width: 1px;
  height: 16px;
  margin: 0 3px;
  background: var(--fnl-line);
}

@media (max-width: 767px) {
  .fn-ui .fn-list-page .fn-deck-chart .hd_fundGraphPeriod:has(.is-segmented) > .fn-deck-chart__title,
  .fn-ui .fn-list-page .fnl-ranges__btn--custom .fnl-ranges__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .fn-ui .fn-list-page .fn-deck-chart .datePickerM:has(.is-segmented),
  .fn-ui .fn-list-page .fn-deck-chart .datePickerM > .is-segmented {
    flex: 1 1 100%;
    width: 100%;
  }

  .fn-ui .fn-list-page .fnl-ranges__track {
    justify-content: space-between;
  }

  .fn-ui .fn-list-page .fnl-ranges__btn {
    padding: 0 7px;
    font-size: 11.5px;
  }

  .fn-ui .fn-list-page .fnl-ranges__btn--custom {
    padding: 0 9px;
  }

  .fn-ui .fn-list-page .fnl-ranges__btn--custom::before {
    width: 15px;
    height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui .fn-list-page .fnl-ranges__btn {
    transition: none;
  }
}

/* A preset button drives the plugin through a silent open/pick/close. */
html.fnl-picker-silent .ui-daterangepickercontain {
  visibility: hidden !important;
}

/* מותאם from the strip: the presets are already on the strip, so the popup
   shows only the two calendars. */
.fn-ui .ui-daterangepickercontain .ui-daterangepicker.is-custom-only > ul {
  display: none !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker.is-custom-only .ranges {
  float: none !important;
  margin: 0 !important;
}

/* --- period menu ------------------------------------------------------------
   The plugin appends its popup to <body>, outside .fn-list-page; this file is
   only loaded by list pages, so `.fn-ui` is scope enough. Its own theme CSS
   loads after this file, hence the !important on what it paints. */
.fn-ui .ui-daterangepickercontain {
  z-index: 1050 !important;
}

/* Keep the plugin's float: it shows the popup with an inline
   `display: inline`, and only the float makes that a block box. */
.fn-ui .ui-daterangepickercontain .ui-daterangepicker {
  width: auto !important;
  min-width: 220px;
  margin-top: 6px !important;
  padding: 6px !important;
  border: 1px solid var(--fn-border) !important;
  border-radius: var(--fn-radius-card) !important;
  background: var(--fn-bg-raised) !important;
  box-shadow: 0 1px 2px rgba(22, 28, 23, 0.06), 0 18px 40px -16px rgba(22, 28, 23, 0.42) !important;
  color: var(--fn-text-1) !important;
  font-family: var(--fn-font-ui) !important;
}

html[data-fn-theme="dark"] .fn-ui .ui-daterangepickercontain .ui-daterangepicker {
  box-shadow: var(--fn-shadow-pop) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-widget,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker button {
  font-family: inherit !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul::before {
  content: "\05D8\05D5\05D5\05D7\0020\05D6\05DE\05DF";
  display: block;
  padding: 6px 12px 5px;
  color: var(--fn-text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li {
  position: relative;
  margin: 1px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--fn-bubble-media-radius) !important;
  background: transparent !important;
  list-style: none;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li > a {
  display: flex !important;
  align-items: center;
  min-height: 36px;
  margin: 0 !important;
  padding: 0 12px !important;
  padding-inline-end: 34px !important;
  border-radius: var(--fn-bubble-media-radius);
  color: var(--fn-text-1) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li:hover,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-state-hover {
  background: var(--fn-bg-hover) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.is-current,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-state-active {
  background: var(--fn-brand-soft) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.is-current > a,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-state-active > a {
  color: var(--fn-brand) !important;
  font-weight: 700 !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.is-current > a::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  width: 10px;
  height: 5px;
  border-style: solid;
  border-color: currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-70%) rotate(-45deg);
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-daterangepicker-dateRange {
  margin-top: 9px !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-daterangepicker-dateRange::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 8px;
  left: 8px;
  height: 1px;
  background: var(--fn-border);
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-daterangepicker-dateRange .ui-icon {
  display: none !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul > li.ui-daterangepicker-dateRange > a::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-inline-end: 9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.8;
}

/* Custom range: two calendars on a sunken tray, one primary action. */
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ranges {
  margin: 8px 0 0 !important;
  padding: 10px 10px 56px !important;
  border: 1px solid var(--fn-border) !important;
  border-radius: var(--fn-radius-md) !important;
  background: var(--fn-bg-sunken) !important;
  color: var(--fn-text-1) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .range-start,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .range-end {
  float: none !important;
  margin: 0 0 10px !important;
  background: transparent !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .startDateNw,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .endDateNw,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .title-start,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .title-end {
  display: block;
  float: none !important;
  width: auto !important;
  margin: 0 2px 6px !important;
  padding: 0 !important;
  color: var(--fn-text-2);
  font-size: 11.5px !important;
  font-weight: 700;
  line-height: 1.4 !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .startDateNw:empty,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .endDateNw:empty {
  display: none;
}

@media (min-width: 768px) {
  .fn-ui .ui-daterangepickercontain .ui-daterangepicker > ul {
    float: right !important;
    width: 206px !important;
  }

  .fn-ui .ui-daterangepickercontain .ui-daterangepicker .ranges {
    float: left !important;
    margin: 0 8px 0 0 !important;
  }

  .fn-ui .ui-daterangepickercontain .ui-daterangepicker .range-start,
  .fn-ui .ui-daterangepickercontain .ui-daterangepicker .range-end {
    float: right !important;
    width: 196px !important;
    margin: 0 !important;
  }

  .fn-ui .ui-daterangepickercontain .ui-daterangepicker .range-end {
    margin-right: 10px !important;
  }
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker {
  width: 100% !important;
  padding: 6px !important;
  border: 1px solid var(--fn-border) !important;
  border-radius: var(--fn-bubble-radius-sm) !important;
  background: var(--fn-bg-raised) !important;
  color: var(--fn-text-1) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker-header {
  padding: 4px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fn-text-1) !important;
  font-size: 13px;
  font-weight: 700;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker-prev,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker-next {
  top: 3px !important;
  border: 0 !important;
  border-radius: var(--fn-radius-sm) !important;
  background: transparent !important;
  cursor: pointer;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker-prev:hover,
.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker-next:hover {
  background: var(--fn-bg-hover) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker th {
  padding: 4px 0 !important;
  color: var(--fn-text-3);
  font-size: 10px;
  font-weight: 600;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker td {
  padding: 1px !important;
  border: 0 !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker td .ui-state-default {
  padding: 5px 0 !important;
  border: 0 !important;
  border-radius: var(--fn-radius-sm) !important;
  background: transparent !important;
  color: var(--fn-text-1) !important;
  font-size: 12px;
  font-weight: 500 !important;
  text-align: center !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker td .ui-state-default:hover {
  background: var(--fn-bg-hover) !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker td .ui-state-highlight {
  box-shadow: inset 0 0 0 1px var(--fn-brand);
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .ui-datepicker td .ui-state-active {
  background: var(--fn-brand) !important;
  color: var(--fn-text-on-brand) !important;
  font-weight: 700 !important;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .btnDone {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  left: 10px !important;
  width: auto !important;
  min-height: 36px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--fn-bubble-media-radius) !important;
  background: var(--fn-brand) !important;
  color: var(--fn-text-on-brand) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  cursor: pointer;
}

.fn-ui .ui-daterangepickercontain .ui-daterangepicker .btnDone:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   8. The grid: host clips, viewport scrolls
   ========================================================================== */

.fn-ui .fn-list-page .fn-list-table-host {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-top: 1px solid var(--fnl-line);
  background-color: var(--fnl-surface);
  /* Clip leftover paint — but do NOT become a scroll container.
     `overflow:hidden` is still a scrollport: Chrome Android will
     scrollIntoView / scroll-anchor it on tap-outside, shifting the
     whole viewport so sticky identity is clipped and only a later
     in-flow column (ענף) remains visible. `clip` paints the same
     crop without being programmatically scrollable. */
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
  overflow-anchor: none;
}

.fn-ui .fn-list-page .fn-list-table-host:first-child {
  border-top: 0;
  border-start-start-radius: calc(var(--fn-radius-table) - 1px);
  border-start-end-radius: calc(var(--fn-radius-table) - 1px);
}

/* The host is the white grid. When it sits on the deck's outer corner it
   has to follow --fn-radius-table, otherwise its square clip paints over
   the deck curve and the table reads as square. */
.fn-ui .fn-list-page .fn-list-deck > .fn-list-table-host:last-child {
  border-end-start-radius: calc(var(--fn-radius-table) - 1px);
  border-end-end-radius: calc(var(--fn-radius-table) - 1px);
}

/* Built by DataTables `dom` → the ONE scroll owner, both axes. Owning the
   vertical axis too is what lets thead/tfoot stay put while rows move. */
.fn-ui .fn-list-page .fn-list-viewport {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: var(--fnl-pane-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--fnl-surface);
  /* overflow-y:scroll (not auto) keeps this box a sticky containing block
     even when the rows are shorter than the pane — otherwise identity
     `right` pins to the window and the first column disappears.
     Do NOT isolation:isolate or transform this scroller — Safari promotes
     an opaque white backing store and the canvas around the table flashes. */
  overflow-x: auto;
  overflow-y: scroll;
  overscroll-behavior: contain;
  overflow-anchor: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--fn-text-3) 45%, transparent) transparent;
  /* An RTL document paints the vertical bar on the left. The scroller is
     LTR so the bar sits on the right; the table below stays RTL, so column
     order and Hebrew do not flip. fn-list.js anchors horizontal scroll to
     the table's start edge from these two directions. */
  direction: ltr;
}

.fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fn-text-3) 38%, transparent);
  border: 3px solid transparent;
  border-radius: var(--fn-radius-pill);
  background-clip: padding-box;
}

.fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--fn-text-2) 55%, transparent);
  background-clip: padding-box;
}

.fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar-corner {
  background: transparent;
}

/* DataTables' own wrapper must not invent geometry, and must not be a hole in
   the deck surface. (It is NOT where the white stripe came from — that was the
   sorted-column rules, see the row-states block below — but keeping the
   wrapper opaque means the grid region is backed by the list surface all the
   way down the paint chain.) */
.fn-ui .fn-list-page .dataTables_wrapper,
.fn-ui .fn-list-page .dataTables_scroll,
.fn-ui .fn-list-page .dataTables_scrollBody,
.fn-ui .fn-list-page .dataTables_scrollHead {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  background-color: var(--fnl-surface);
  background-image: none;
}

/* DataTables paints its zebra on the ROW (table.dataTable tbody tr{#ffffff}
   and the .stripe/.display odd/even rules). We paint on the cell instead, so
   the row stays transparent; the authoritative cell rules are in the
   row-states block further down. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.stripe tbody tr.odd,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.display tbody tr.odd,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.stripe tbody tr.even,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.display tbody tr.even,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable tbody tr,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable tbody tr.odd,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable tbody tr.even,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.hover tbody tr:hover,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.display tbody tr:hover {
  background-color: transparent;
  background-image: none;
}

/* Loading veil sits over the grid, never over the toolbar. */
.fn-ui .fn-list-page.is-loading .fn-list-table-host::after {
  content: "טוען נתונים…";
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: color-mix(in srgb, var(--fnl-surface) 88%, transparent);
  color: var(--fn-text-2);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   9. Table — explicit widths, one row per fund, groups by hairline
   ========================================================================== */

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table {
  /* table-layout:fixed honours the per-column .fn-c-* widths, but only when the
     table itself has a DEFINITE width — an intrinsic keyword makes Chromium
     fall back to auto layout. fn-list.js sizeGrid() therefore sets the total
     width from the same --fnl-w-* values, on load, on resize and on every
     column-visibility change. This declaration is only the pre-JS fallback. */
  width: auto;
  max-width: none;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--fnl-surface);
  color: var(--fn-text-1);
  font-size: var(--fnl-fs-num);
}

/* The viewport is LTR only so its scrollbar is on the right. The table keeps
   the page direction, and when it is narrower than the pane it sits on the
   start edge (the right, in Hebrew). */
.fn-ui .fn-list-page .fn-list-viewport > table.fn-list-table {
  direction: rtl;
  margin-left: auto;
  margin-right: 0;
}

html[dir="ltr"] .fn-ui .fn-list-page .fn-list-viewport > table.fn-list-table {
  direction: ltr;
  margin-left: 0;
  margin-right: auto;
}

/* Legacy Bootstrap leaves table cells content-box on this site, which silently
   added the horizontal padding on top of every declared column width (34px
   became 54px) and pushed the sticky offsets — derived from the same vars —
   out of alignment. Border-box makes a declared width the FINAL width. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table th,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table td {
  box-sizing: border-box;
}

/* --- header ------------------------------------------------------------- */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tr.tableHeading th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: var(--fnl-head-y) var(--fnl-cell-x);
  border: 0;
  border-bottom: 1px solid var(--fnl-line);
  background-color: var(--fnl-head-bg);
  background-image: none;
  color: var(--fn-text-3);
  font-size: var(--fnl-fs-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  /* Wrap only between words — never mid-word (מתחילת ≠ מתחיל + ת). */
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-align: center;
  vertical-align: middle;
  box-shadow: none;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tr.tableHeading,
.fn-ui .fn-list-page .tableHeading {
  background: transparent;
  background-color: transparent;
  background-image: none;
  color: inherit;
  font-size: inherit;
}

/* Performance headers read one step stronger — the only hierarchy cue they
   need. No tint, no colour block. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-perf {
  color: var(--fn-text-2);
  font-weight: 700;
}

/* --- body --------------------------------------------------------------- */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table tbody td {
  /* No `height` here. A specified cell height that is shorter than the cell's
     content makes Chromium inflate the row well past both values (54px
     declared + 41px of content produced 73px rows). The row rhythm is owned by
     padding alone. */
  padding: var(--fnl-row-y) var(--fnl-cell-x);
  border: 0;
  border-bottom: 1px solid var(--fnl-line-soft);
  /* every cell is opaque: sticky columns must never let rows show through */
  background-color: var(--fnl-surface);
  background-image: none;
  color: var(--fn-text-1);
  font-size: var(--fnl-fs-num);
  line-height: 1.3;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;

  /* NO `overflow` on the cell. This is load-bearing, not a style choice.
     A <td> with `overflow:hidden` whose content is even 1px too wide becomes a
     real scroll container. Inside an already-composited scroller, next to
     composited sticky cells, Chrome then promotes every one of them — and
     every inline text run that overlaps them — to its own composited layer.
     Measured on a Pixel-class viewport: 56 overflowing cells produced 380
     composited layers, 218 of them tiny and NOT opaque. Those are the layers
     that flash the compositor's base colour (white) while Chrome re-rasters
     during a touch scroll. With the cells non-scrollable it is 73 layers.

     Truncation therefore belongs to the element INSIDE the cell (.fh2 line
     clamp, .fn-class-stack links, .fn-c-mng's anchor), and the column widths
     below are sized so numeric cells never need clipping at all. */
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr:last-child td {
  border-bottom: 0;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td a {
  color: inherit;
  text-decoration: none;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td a:hover {
  color: var(--fn-brand);
  text-decoration: none;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td a:focus,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td a:focus-visible,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td a:active {
  outline: none;
  box-shadow: none;
}

/* --- row states -----------------------------------------------------------
   Applied to CELLS, never to rows, so the sticky identity columns are always
   opaque and nothing shows through them while the grid scrolls sideways.

   Specificity note — this is the whole reason the sorted column used to go
   white. jquery.dataTables.min.css is loaded by the page AFTER this file and
   ships, for a table carrying its `display` class:

       table.dataTable.display tbody tr.odd  > .sorting_1 { #f1f1f1 }
       table.dataTable.display tbody tr.even > .sorting_1 { #fafafa }
       table.dataTable.display tbody tr:hover> .sorting_1 { #eaeaea }

   Those are (0,4,3). Our old `.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody
   td.sorting_1` was ALSO (0,4,3) — a tie, which source order hands to
   DataTables. Result: the currently sorted column was painted near-white.
   In Light that is invisible against a white surface; in Dark it is a solid
   white stripe. And because .odd/.even/.sorting_1 are rewritten on every
   draw, and Chrome on Android keeps :hover on the last-tapped row until you
   tap elsewhere, it appeared and moved as the user touched and scrolled —
   which is what made it look like a compositing/scroll artefact.

   The fix is to stop tying: every selector below carries BOTH .fn-list-table
   and .dataTable, making them (0,5,3) and winning on merit. No !important,
   no hard-coded colour — the tints stay on the theme tokens. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr {
  background-color: transparent;
  background-image: none;
}

/* Base: every cell paints the list surface, including DataTables' striped and
   sorted variants. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr > td,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr.odd > td {
  background-color: var(--fnl-surface);
  background-image: none;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr.even > td {
  background-color: color-mix(in srgb, var(--fn-bg-sunken, #F4F7F2) 42%, var(--fnl-surface));
  background-image: none;
}

/* Sorted column: a 3% brand tint on the list surface, in both themes. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr > td.sorting_1,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr.odd > td.sorting_1 {
  background-color: color-mix(in srgb, var(--fn-brand) 3%, var(--fnl-surface));
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr.even > td.sorting_1 {
  background-color: color-mix(in srgb, var(--fn-bg-sunken, #F4F7F2) 42%, var(--fnl-surface));
}

/* template.css: `#bank-table-pr .sorting_1 { #f9f1e1 !important }`.
   The id + !important beats the tint above and leaves a cream stripe on the
   sorted rate column, in every theme. */
.fn-ui .fn-list-page #bank-table-pr.dataTable tbody td.sorting_1,
.fn-ui .fn-list-page #bank-table-pr.dataTable tbody tr.odd > td.sorting_1,
.fn-ui .fn-list-page #bank-table-pr.dataTable tbody tr.even > td.sorting_1 {
  background-color: color-mix(in srgb, var(--fn-brand) 3%, var(--fnl-surface)) !important;
  background-image: none !important;
}

.fn-ui .fn-list-page #bank-table-pr.dataTable tbody tr:hover > td.sorting_1 {
  background-color: var(--fnl-hover) !important;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:hover > td,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:hover > td.sorting_1,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr:hover > td {
  background-color: var(--fnl-hover);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr.is-selected > td,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr.is-selected > td.sorting_1,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:has(input[name="fundIDlist[]"]:checked) > td,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:has(input[name="fundIDlist[]"]:checked) > td.sorting_1,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr.is-selected > td,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr:has(input[name="fundIDlist[]"]:checked) > td {
  background-color: var(--fnl-selected);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr.is-selected > td.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody tr:has(input[name="fundIDlist[]"]:checked) > td.fn-c-idx {
  box-shadow: inset -3px 0 0 var(--fn-brand);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--fn-brand);
  cursor: pointer;
}

/* --- footer: the averages row stays in view -----------------------------
   template.css ships two landmines that un-align this row from the body:
     #FundList-table tfoot th { text-align: right }
     #FundList-table tfoot th { padding: 10px 8px 6px 8px !important }
   Body cells are text-align:center with 8px inline padding. Right-aligned
   14px "#" sits several pixels off a centred 12.5px "#". Same column,
   different inset — that is the red-box screenshot. Beat both with the
   table id + !important so padding, size and alignment match the body. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot td,
.fn-ui .fn-list-page #FundList-table tfoot th,
.fn-ui .fn-list-page #FundList-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: var(--fnl-row-y) var(--fnl-cell-x) !important;
  border: 0;
  border-top: 1px solid var(--fnl-line);
  background-color: var(--fnl-head-bg);
  background-image: none;
  color: var(--fn-text-2);
  font-size: var(--fnl-fs-num) !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-name,
.fn-ui .fn-list-page #FundList-table tfoot th.fn-c-name {
  text-align: start !important;
  padding-inline: 12px !important;
}

.fn-ui .fn-list-page #FundList-table tfoot th.fn-c-class {
  text-align: center !important;
}

/* Non-identity footer cells stick vertically with the row, never on X —
   a leftover `right` from the identity rules would pin averages in place
   while the body scrolled, which is the misaligned-summary look. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th:not(.fn-c-idx):not(.fn-c-sel):not(.fn-c-name) {
  inset-inline-start: auto;
  inset-inline-end: auto;
}

/* ==========================================================================
   10. Column system — one class per column, one width per class
   --------------------------------------------------------------------------
   Classes are written into <thead>/<tfoot> by the markup and onto <tbody>
   cells by DataTables columnDefs, so they survive column hide/show.
   ========================================================================== */

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-idx   { width: var(--fnl-w-idx);  min-width: var(--fnl-w-idx);  max-width: var(--fnl-w-idx);  padding-inline: 2px; color: var(--fn-text-3); font-size: 11px; }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-sel   { width: var(--fnl-w-sel);  min-width: var(--fnl-w-sel);  max-width: var(--fnl-w-sel);  padding-inline: 2px; }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-name  { width: var(--fnl-w-name); min-width: var(--fnl-w-name); max-width: var(--fnl-w-name); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-id    { width: var(--fnl-w-id);   min-width: var(--fnl-w-id);   max-width: var(--fnl-w-id); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-class { width: var(--fnl-w-class);min-width: var(--fnl-w-class);max-width: var(--fnl-w-class); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-mng   { width: var(--fnl-w-mng);  min-width: var(--fnl-w-mng);  max-width: var(--fnl-w-mng); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-type  { width: var(--fnl-w-type); min-width: var(--fnl-w-type); max-width: var(--fnl-w-type); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-perf  { width: var(--fnl-w-perf); min-width: var(--fnl-w-perf); max-width: var(--fnl-w-perf); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-exp   { width: var(--fnl-w-exp);  min-width: var(--fnl-w-exp);  max-width: var(--fnl-w-exp); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-act   { width: var(--fnl-w-act);  min-width: var(--fnl-w-act);  max-width: var(--fnl-w-act); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-fee   { width: var(--fnl-w-fee);  min-width: var(--fnl-w-fee);  max-width: var(--fnl-w-fee); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-size  { width: var(--fnl-w-size); min-width: var(--fnl-w-size); max-width: var(--fnl-w-size); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-date  { width: var(--fnl-w-date); min-width: var(--fnl-w-date); max-width: var(--fnl-w-date); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-age   { width: var(--fnl-w-age);  min-width: var(--fnl-w-age);  max-width: var(--fnl-w-age); }
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-flow  { width: var(--fnl-w-flow); min-width: var(--fnl-w-flow); max-width: var(--fnl-w-flow); }

/* Numeric columns are laid out LTR. In an RTL cell the bidi algorithm moves a
   leading minus to the far end, so "-3.20%" was rendering as "3.20%-" — wrong,
   and worse, inconsistently placed down the column. Numbers are LTR content;
   the cell has to say so. Alignment stays centred.

   Scoped to the data cells only — the headers above them are Hebrew labels
   and stay RTL with the rest of the page. */
/* Numeric data cells are LTR so a leading minus stays on the left of the
   digits. Do NOT include .fn-c-idx: that column is sticky on the inline-
   start edge, and direction:ltr remaps inset-inline-start to physical
   `left`, which in an RTL page lets the # column scroll away. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-id,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-exp,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-act,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-fee,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-size,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-date,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-age,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-flow,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-flow,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-size,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-perf {
  direction: ltr;
}

/* Name reads from the start edge. Classification is a short label column —
   centre it so "גמישות" does not sit on the right of a half-empty cell. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-name,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name {
  padding-inline: 12px;
  text-align: start;
  white-space: normal;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-name {
  text-align: start;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-class,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-class,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-class,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-class {
  text-align: center;
  white-space: normal;
}

/* The one visual device for semantic grouping: a hairline where a group
   starts. Identity | Classification | Manager | Performance | Exposure |
   Fees | Assets | Flows | Dates. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-g-start,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-g-start,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-g-start {
  border-inline-start: 1px solid var(--fnl-line);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-g-start,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-g-start,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-g-start {
  padding-inline-start: var(--fnl-cell-x);
}

/* --- identity: frozen during horizontal scroll ------------------------- */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-name,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-name {
  position: -webkit-sticky;
  position: sticky;
}

/* Body identity freezes only on the horizontal axis. Without `top: auto`,
   Chromium/Safari promote these cells to the window when the PAGE scrolls
   and the host then clips them — the index column blinks out. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name {
  top: auto;
  bottom: auto;
}

/* Freeze identity on the page start edge. Use PHYSICAL right/left keyed to
   the document, not inset-inline-*: a cell with direction:ltr remaps logical
   start to the wrong side and the column scrolls away on an RTL swipe.

   Default = RTL (this site). html[dir="ltr"] flips to left. Offsets come
   from sizeGrid (--fnl-stick-*), so FixDeposits (name only), fxg (idx+name)
   and fundList (idx+sel+name) share one rule. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-idx {
  right: var(--fnl-stick-idx, 0px);
  left: auto;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-sel {
  right: var(--fnl-stick-sel, var(--fnl-w-idx));
  left: auto;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-name {
  right: var(--fnl-stick-name, 0px);
  left: auto;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table:has(thead th.fn-c-idx):has(thead th.fn-c-sel) .fn-c-name {
  right: var(--fnl-stick-name, calc(var(--fnl-w-idx) + var(--fnl-w-sel)));
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table:has(thead th.fn-c-idx):not(:has(thead th.fn-c-sel)) .fn-c-name {
  right: var(--fnl-stick-name, var(--fnl-w-idx));
}

html[dir="ltr"] .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-idx {
  left: var(--fnl-stick-idx, 0px);
  right: auto;
}
html[dir="ltr"] .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-sel {
  left: var(--fnl-stick-sel, var(--fnl-w-idx));
  right: auto;
}
html[dir="ltr"] .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-name {
  left: var(--fnl-stick-name, 0px);
  right: auto;
}
html[dir="ltr"] .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table:has(thead th.fn-c-idx):has(thead th.fn-c-sel) .fn-c-name {
  left: var(--fnl-stick-name, calc(var(--fnl-w-idx) + var(--fnl-w-sel)));
}
html[dir="ltr"] .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table:has(thead th.fn-c-idx):not(:has(thead th.fn-c-sel)) .fn-c-name {
  left: var(--fnl-stick-name, var(--fnl-w-idx));
}

/* Stacking: frozen header > frozen footer > frozen body > plain header. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name { z-index: 2; }

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tfoot th.fn-c-name { z-index: 6; }

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-idx,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-sel,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.fn-c-name { z-index: 7; }

/* The frozen block ends in a permanent 1px divider. That is the whole
   "scroll affordance" at rest — no fog, no blur, no overlay. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-c-name {
  border-inline-end: 1px solid var(--fnl-line);
}

/* Only once content is actually hidden underneath does the divider gain a
   soft falloff. JS adds .is-scrolled to the viewport; the sticky header
   copy mirrors it. */
.fn-ui .fn-list-page :is(.fn-list-viewport, .fn-sticky-head).is-scrolled table.fn-list-table .fn-c-name {
  box-shadow: -7px 0 7px -7px color-mix(in srgb, var(--fn-text-1) 26%, transparent);
}

/* --- identity content -------------------------------------------------- */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name .fh2,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name h2.fh2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-size: var(--fnl-fs-name);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-block: var(--fn-ink-pad);
  margin-block: calc(var(--fn-ink-pad) * -1);
  color: inherit;
  text-align: start;
  white-space: normal;
}

/* --- classification -----------------------------------------------------
   One DataTables column, laid out as three sub-columns (על | ראשית |
   משנית) on a single line. Keeping it one real column leaves the column
   indices — and with them the FLCol cookies, the sort cookie and the
   picker's data-column values — exactly as they were. The row builders
   always emit all three slots so the sub-columns line up down the table.
   The first two tracks are fixed so the header labels sit over the data
   even though the sortable <th> reserves extra end padding for its arrow.
   fn-list.js drops a track that has no values (or that the visitor turned
   off) by setting --fnl-cls-tracks and data-fn-cls-off on the table. */
.fn-ui .fn-list-page {
  --fnl-cls-al: 76px;
  --fnl-cls-ra: 108px;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-head {
  display: grid;
  grid-template-columns: var(--fnl-cls-tracks, var(--fnl-cls-al) var(--fnl-cls-ra) minmax(0, 1fr));
  align-items: center;
  min-width: 0;
  max-width: 100%;
  text-align: start;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack > *,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-head > * {
  display: block;
  min-width: 0;
  padding-inline: 6px;
  padding-block: var(--fn-ink-pad);
  margin-block: calc(var(--fn-ink-pad) * -1);
  overflow: hidden;
  overflow: clip;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
  text-align: start;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack > :first-child,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-head > :first-child {
  padding-inline-start: 0;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack > * + *,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-head > * + * {
  border-inline-start: 1px solid var(--fnl-line-soft);
}

/* A turned-off tier leaves the row. The first tier that remains keeps the
   start padding and loses the divider that belonged to the tier before it. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="al"] .fn-class-stack__al,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="al"] .fn-class-head > :nth-child(1),
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="ra"] .fn-class-stack__rashit,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="ra"] .fn-class-head > :nth-child(2),
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="mi"] .fn-class-stack__mishnit,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="mi"] .fn-class-head > :nth-child(3) {
  display: none;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="al"] .fn-class-stack__rashit,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="al"] .fn-class-head > :nth-child(2),
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="al"][data-fn-cls-off~="ra"] .fn-class-stack__mishnit,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table[data-fn-cls-off~="al"][data-fn-cls-off~="ra"] .fn-class-head > :nth-child(3) {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack__al {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fn-text-1);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack__rashit {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fn-text-2);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack__mishnit {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fn-text-3);
}

/* The lists that carry the tier split are the dense ones: every cell is one
   line, so the name is clamped to one line too (full name in its title). */
.fn-ui .fn-list-page[data-fn-list="fund"] table.fn-list-table tbody td.fn-c-name .fh2,
.fn-ui .fn-list-page[data-fn-list="etf"] table.fn-list-table tbody td.fn-c-name .fh2 {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table td.fn-c-mng,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table td.fn-c-type {
  color: var(--fn-text-2);
  font-size: 12px;
  font-variant-numeric: normal;
}

/* Truncation backstop for an unusually long manager name. It lives on the
   anchor INSIDE the cell, never on the cell: an overflowing <td> becomes a
   scroll container and gets composited (see the tbody td rule). The column is
   sized to fit every current manager, so this should normally never engage. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table td.fn-c-mng a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  overflow: clip;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-block: var(--fn-ink-pad);
  margin-block: calc(var(--fn-ink-pad) * -1);
}

/* --- market tone: colour on the number, nothing else ------------------- */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .text-success,
.fn-ui .fn-list-page #FundListYield-table .text-success {
  color: var(--fn-market-up);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .text-danger,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .minusNumb,
.fn-ui .fn-list-page #FundListYield-table .text-danger {
  color: var(--fn-market-down);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td .text-success,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td .text-danger,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td .minusNumb {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  font-weight: var(--fn-fw-bold);
  font-variant-numeric: tabular-nums;
}

/* --- sort ------------------------------------------------------------- */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_desc,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc_disabled,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_desc_disabled {
  /* DataTables paints its sort arrows as a background sprite on the th.
     Our selector is far more specific than DT's `table.dataTable thead
     .sorting`, so no !important is needed to replace it. */
  background-image: none;
  cursor: pointer;
  padding-inline-end: calc(var(--fnl-cell-x) + 9px);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting:hover {
  color: var(--fn-text-1);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_desc {
  color: var(--fn-text-1);
  font-weight: 700;
}

/* DataTables' own pseudo carets, removed outright. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting::before,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc::before,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_desc::before {
  content: none;
  display: none;
}

/* 2px brand underline marks the sorted column without moving any geometry. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc::before,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_desc::before {
  content: "";
  display: block;
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--fn-brand);
  pointer-events: none;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting:hover::after,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc::after,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_desc::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  inset-inline-end: 5px;
  width: 8px;
  height: 5px;
  margin: 0;
  border: 0;
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%);
  background-color: var(--fn-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1.2 1.3L5 4.8 8.8 1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1.2 1.3L5 4.8 8.8 1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting:hover:not(.sorting_asc):not(.sorting_desc)::after {
  background-color: var(--fn-text-3);
  opacity: 0.65;
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_asc::after {
  transform: translateY(-50%) scaleY(-1);
}

.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.no-sort::after,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.dataTable.fn-list-table thead th.sorting_disabled::after {
  content: none;
  display: none;
}

/* template.css `.no-sort { background: none !important }` punches a hole in
   the sticky header wherever a column is not sortable (the checkbox). */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th.no-sort {
  background-color: var(--fnl-head-bg) !important;
  background-image: none !important;
}

/* ==========================================================================
   11. Grid footer — info + pager, OUTSIDE the scroll pane
   ========================================================================== */

.fn-ui .fn-list-page .fn-grid-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px var(--fnl-bar-x);
  border-top: 1px solid var(--fnl-line);
  background: var(--fnl-surface);
  border-end-start-radius: calc(var(--fnl-radius-deck) - 1px);
  border-end-end-radius: calc(var(--fnl-radius-deck) - 1px);
}

.fn-ui .fn-list-page .fn-grid-foot:empty {
  display: none;
}

.fn-ui .fn-list-page .dataTables_wrapper .dataTables_info,
.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--fn-text-3);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  text-align: start;
}

.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: var(--fn-radius-sm);
  background: transparent;
  color: var(--fn-text-2);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--fnl-hover);
  border-color: transparent;
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: var(--fnl-line);
  background: var(--fnl-head-bg);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.fn-ui .fn-list-page .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: transparent;
  color: var(--fn-text-3);
  opacity: 0.4;
  cursor: default;
}

/* ==========================================================================
   12. Trailing note — a footnote, not another panel
   ========================================================================== */

.fn-ui .fn-list-page .fn-list-note {
  margin: 18px 0 0;
  padding: 14px 2px 0;
  border-top: 1px solid var(--fnl-line-soft);
  color: var(--fn-text-3);
  font-size: 12px;
  line-height: 1.55;
}

.fn-ui .fn-list-page .fn-list-note p {
  margin: 0 0 4px;
}

.fn-ui .fn-list-page .fn-list-note strong {
  color: var(--fn-text-2);
  font-weight: 700;
}

.fn-ui .fn-list-page .fn-list-note .glyphicon {
  display: none;
}

/* Calculated yield is the same grid as the list (fn-list-table). It is not a
   second, beige DataTable. The legacy markup must not paint on these pages. */
.fn-ui .fn-list-page #fundlistYieldTable.fn-yield-host {
  display: none;
  margin: 0;
}

.fn-ui .fn-list-page #fundlistYieldTable.fn-yield-host.is-on {
  display: block !important;
}

.fn-ui .fn-list-page .fn-yield-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fnl-line);
  background: var(--fnl-surface);
}

.fn-ui .fn-list-page .fn-yield-bar__title {
  margin: 0;
  color: var(--fn-text-1);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.fn-ui .fn-list-page .fn-yield-bar .fn-act {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

/* Fund list: שם + ענף are the columns people actually read. Manager / type
   stay compact (ellipsis on long names) so those two can take the space. */
.fn-ui .fn-list-page[data-fn-list="fund"] {
  --fnl-w-name: 208px;
  --fnl-w-class: 308px;
  --fnl-w-mng: 76px;
  --fnl-w-type: 46px;
}

/* גיוסים ופדיונות: שלוש רמות הענף צריכות מקום אמיתי. בלי זה הגריד
   (76+108) גולש אל עמודת המנהל וחותך אותיות באמצע. */
.fn-ui .fn-list-page[data-fn-list="size"] {
  --fnl-w-name: 210px;
  --fnl-w-class: 480px;
  --fnl-w-mng: 160px;
  --fnl-w-size: 96px;
  --fnl-w-flow: 96px;
  --fnl-w-date: 100px;
  --fnl-cls-al: 148px;
  --fnl-cls-ra: 168px;
}

.fn-ui .fn-list-page[data-fn-list="size"] table.fn-list-table .fn-c-class {
  text-align: start;
  white-space: nowrap;
}

.fn-ui .fn-list-page[data-fn-list="size"] table.fn-list-table .fn-class-stack,
.fn-ui .fn-list-page[data-fn-list="size"] table.fn-list-table .fn-class-head {
  width: 100%;
  overflow: hidden;
}

.fn-ui .fn-list-page[data-fn-list="size"] table.fn-list-table td.fn-c-mng,
.fn-ui .fn-list-page[data-fn-list="size"] table.fn-list-table td.fn-c-mng a {
  font-size: 13px;
  font-weight: 400;
}

/* ETF list has ~10 columns. שם / מנהל stay compact so the three ענף
   sub-columns get the room. */
.fn-ui .fn-list-page[data-fn-list="etf"] {
  --fnl-w-name: 184px;
  --fnl-w-mng: 84px;
  --fnl-w-class: 320px;
  --fnl-w-perf: 72px;
  --fnl-w-date: 70px;
  --fnl-cls-al: 84px;
  --fnl-cls-ra: 112px;
}

.fn-ui .fn-list-page[data-fn-list="fund"] table.fn-list-table .fn-c-class,
.fn-ui .fn-list-page[data-fn-list="etf"] table.fn-list-table .fn-c-class {
  text-align: start;
  white-space: nowrap;
}

/* עוקבות / כשרות / ממונפות — same twelve columns. כספיות shares the
   measures (two more yields, הוספה instead of exposure). Widths only. */
.fn-ui .fn-list-page[data-fn-list="track"],
.fn-ui .fn-list-page[data-fn-list="kaspit"] {
  --fnl-w-name: 210px;
  --fnl-w-mng: 118px;
  --fnl-w-perf: 72px;
  --fnl-w-exp: 64px;
}

/* מחקות — the track grid plus מס הקרן. Two grids share one page, so each
   pane is shorter than a single full-page list. */
.fn-ui .fn-list-page[data-fn-list="mehaka"] {
  --fnl-w-name: 188px;
  --fnl-w-mng: 108px;
  --fnl-w-id: 68px;
  --fnl-w-perf: 70px;
  --fnl-pane-h: clamp(280px, 48vh, 520px);
  --fnl-pane-h: clamp(280px, 48svh, 520px);
}

/* מנהלים — three short grids side by side. Widths only; the grid is the
   same chrome. Bootstrap columns are not used, so the full-width col reset
   does not apply. */
.fn-ui .fn-list-page .fn-list-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.fn-ui .fn-list-page .fn-list-board .fn-list-deck + .fn-list-deck {
  margin-top: 0;
}

.fn-ui .fn-list-page[data-fn-list="stat"] {
  --fnl-w-name: 132px;
  --fnl-w-size: 84px;
  --fnl-w-flow: 64px;
  --fnl-pane-h: clamp(320px, 62vh, 640px);
  --fnl-pane-h: clamp(320px, 62svh, 640px);
}

/* אחזקות: nine fixed lists. Every row is in the card; the page scrolls, the
   card does not (data-fn-sticky-head: each card's header sticks within it). */
.fn-ui .fn-list-page[data-fn-list="hold"] {
  --fnl-w-name: 148px;
  --fnl-w-flow: 72px;
  --fnl-w-size: 96px;
}

.fn-ui .fn-list-page[data-fn-list="hold"] .fn-grid-foot {
  display: none;
}

/* אחזקות מנהל: the same nine cards, but only name + total. The sum stays
   inside the narrowest three-up card; leftover pane width still goes to the
   figure, the same way every other list does. */
.fn-ui .fn-list-page[data-fn-list="holdmng"] {
  --fnl-w-name: 168px;
  --fnl-w-size: 112px;
  --fnl-pane-h: clamp(240px, 42vh, 420px);
  --fnl-pane-h: clamp(240px, 42svh, 420px);
}

/* חיפוש נייר: one grid, name + type. data-fn-fill="name" gives spare
   width to the name; the type stays on its token. */
.fn-ui .fn-list-page[data-fn-list="stockfind"] {
  --fnl-w-name: 240px;
  --fnl-w-type: 148px;
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-deck-bar .form-control {
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
  max-width: 360px;
}

/* The five production finders: field on the reading edge, action beside it.
   Same routes as fundlist (ענף / מנהל / קרן) plus חיפוש נייר on this page. */
.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 12px;
  border-bottom: 1px solid var(--fnl-line-soft);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fn-field-bg);
  color: var(--fn-field-text);
  font-size: 13px;
  line-height: 34px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row select.form-control {
  padding-inline-end: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233d4a40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 12px 12px;
}

:root[data-fn-theme="dark"] .fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row select.form-control,
.fn-ui.darkCont .fn-list-page[data-fn-list="stockfind"] .fn-find__row select.form-control,
body.darkCont .fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d5ddd6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row .form-control:focus {
  border-color: var(--fn-brand);
  outline: none;
  box-shadow: 0 0 0 1px var(--fn-brand);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl.fn-dd.is-open {
  z-index: 40;
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__trigger {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding-inline: 12px 36px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fn-field-bg);
  color: var(--fn-field-text);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__trigger.has-value,
.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__trigger.has-value:hover,
.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__trigger.has-value:focus {
  background-color: var(--fn-field-bg);
  border-color: var(--fn-field-border);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__label {
  display: none !important;
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__value,
.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__value.is-menu-title,
.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__value.is-selected {
  color: var(--fn-field-text);
  font-size: 13px;
  font-weight: 500;
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__ctl .fn-dd__panel {
  width: max(100%, 280px);
  max-width: min(420px, 92vw);
  max-height: min(52vh, 380px);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row .fn-act {
  flex: 0 0 188px;
  height: 36px;
  min-height: 36px;
  border: 1px solid var(--fn-field-border);
  background-color: var(--fn-field-bg);
  color: var(--fn-field-text);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row .fn-act:hover {
  border-color: var(--fn-field-border);
  background-color: var(--fn-field-bg-hover);
  color: var(--fn-field-text);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row .fn-act--primary {
  border-color: var(--fn-brand);
  background-color: var(--fn-brand);
  color: var(--fn-text-on-brand);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__row .fn-act--primary:hover {
  border-color: var(--fn-brand-hover);
  background-color: var(--fn-brand-hover);
  color: var(--fn-text-on-brand);
}

.fn-ui .fn-list-page[data-fn-list="stockfind"] .fn-find__msg {
  width: min(520px, 100%);
  margin: -2px 0 0;
  color: var(--fn-down, #b45309);
  font-size: 12px;
  font-weight: 600;
}

/* אחזקות נייר לייצוא: ארבע עמודות, בצבעי העיצוב. */
.fn-ui .fn-list-page[data-fn-list="bostock"] {
  --fnl-w-name: 240px;
  --fnl-w-perf: 112px;
  --fnl-w-size: 128px;
  --fnl-w-flow: 120px;
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find {
  display: flex;
  justify-content: center;
  padding: 16px 12px 4px;
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(640px, 100%);
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find__row .form-control {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fn-field-bg);
  color: var(--fn-field-text);
  font-size: 13px;
  box-shadow: none;
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find__row .form-control:focus {
  border-color: var(--fn-brand);
  outline: none;
  box-shadow: 0 0 0 1px var(--fn-brand);
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find__row .fn-act,
.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-bostock-tools > .fn-act {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fn-field-bg);
  color: var(--fn-field-text);
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find__row .fn-act--primary,
.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-find__row .fn-act--primary:hover {
  border-color: var(--fn-brand);
  background-color: var(--fn-brand);
  color: var(--fn-text-on-brand);
}

.fn-ui .fn-list-page[data-fn-list="bostock"] .fn-bostock-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 8px 12px 14px;
  border-bottom: 1px solid var(--fnl-line-soft);
}


/* נייר ערך: two manager grids side by side, then the funds grid full width.
   Widths only — the cells are the same column classes as every other list. */
.fn-ui .fn-list-page[data-fn-list="stock"] {
  --fnl-w-name: 156px;
  --fnl-w-type: 64px;
  --fnl-w-perf: 78px;
  --fnl-w-size: 92px;
  --fnl-w-flow: 80px;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* שלוש הרשימות גדלות עם כל השורות (data-fn-sticky-head). בלי פס גלילה
   בתוך הכרטיס: לא לאורך, ולא לצדדים כשהעמודות נכנסות ברוחב. בטלפון
   נשארת גלילה אופקית כדי שאפשר יהיה להגיע לעמודות. */
@media (min-width: 768px) {
  .fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-viewport {
    overflow-x: clip;
  }
}

.fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-deck + .fn-list-board,
.fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-board + .fn-list-deck {
  margin-top: 16px;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-header__title {
  flex-wrap: wrap;
  max-width: 100%;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-header .fn-list-header__count {
  white-space: normal;
  max-width: 46rem;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchBox {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 360px;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchBox .form-control {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchResults {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 4px);
  display: none;
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 320px;
  overflow: auto;
  text-align: start;
  background: var(--fn-bg-raised);
  border: 1px solid var(--fn-border);
  border-radius: var(--fnl-radius-ctl);
  box-shadow: var(--fn-shadow-pop);
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchResults a,
.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchResults .stockSearchNote {
  display: block;
  padding: 8px 12px;
  border-radius: var(--fn-radius-sm);
  color: var(--fn-text-1);
  font-size: 13px;
  text-decoration: none;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchResults a:hover,
.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchResults a:focus {
  background: var(--fn-bg-hover);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchType,
.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchNote {
  color: var(--fn-text-3);
  font-size: 12px;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .stockSearchType {
  margin-inline-start: 6px;
}

.fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-deck .fn-list-header__count {
  display: block;
  margin: 0;
  padding: 6px var(--fnl-bar-x) 10px;
  border-radius: 0;
  background: none;
  white-space: normal;
}

/* היסטוריית אחזקה: the date is the identity column, the two figures share
   the rest. The chart band opens the deck, so it does not need a top rule. */
.fn-ui .fn-list-page[data-fn-list="stockmng"] {
  --fnl-w-name: 92px;
  --fnl-w-size: 120px;
  --fnl-w-flow: 110px;
}

/* Every month is in the card (data-fn-sticky-head, below). מחזורי מוסדיים
   (tstock): ת"א 35 and תל בונד 20 are short, fixed lists, every row in its
   card the same way. Sideways is already settled by data-fn-fit="pane"
   (desktop fits; the phone keeps its swipe). */

/* Column header stays on screen while the PAGE scrolls. A list opts in
   with data-fn-sticky-head on .fn-list-page (stockmng, tstock, hold,
   stock): every row is in its card, the page scrolls and the card does not
   (an inner scroller also hides most rows from a crawler's render).

   The viewport still scrolls sideways, which makes it the sticky scrollport
   on both axes, so the real <th> cannot stick to the window. The shared
   sticky header (fn-sticky-head.js, 37-sticky-head.css) puts a copy of the
   header row in front of the viewport; fn-list.js refreshes it on every
   draw (sizeGrid). Here only what the grid needs around it: no pane
   height, no inner vertical scroll, the real header and the total row
   (tfoot) back in flow — the copy is the sticky header, and the totals
   stay the last row of the table. */
.fn-ui .fn-list-page[data-fn-sticky-head] {
  --fnl-pane-h: none;
}

.fn-ui .fn-list-page[data-fn-sticky-head] .fn-list-viewport {
  max-height: none;
  overflow-y: visible;
}

.fn-ui .fn-list-page[data-fn-sticky-head] table.fn-list-table thead th {
  top: auto;
}

.fn-ui .fn-list-page[data-fn-sticky-head] table.fn-list-table tfoot :is(th, td) {
  bottom: auto;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-list-header {
  align-items: baseline;
  justify-content: space-between;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-list-header__main {
  flex: 1 1 auto;
  min-width: 0;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-list-header__title {
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-list-header__title > span {
  min-width: 0;
  white-space: normal;
}

/* Side links stay text, smaller than the title, so they do not read as the
   green rule on the deck underneath. */
.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-stockmng-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px 0;
  margin: 0;
  max-width: 100%;
  color: var(--fn-text-3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-stockmng-links a {
  color: var(--fn-text-3);
  text-decoration: none;
  white-space: normal;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-stockmng-links a:hover,
.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-stockmng-links a:focus-visible {
  color: var(--fn-brand);
  text-decoration: underline;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-stockmng-links a + a::before {
  content: "·";
  margin-inline: 8px;
  color: var(--fn-text-3);
  font-weight: 400;
  text-decoration: none;
}

@media (max-width: 767px) {
  .fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-stockmng-links {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-list-header .fn-list-header__count {
  white-space: normal;
  max-width: 46rem;
}

.fn-ui .fn-list-page[data-fn-list="stockmng"] .fn-list-deck > .fn-deck-chart:first-child {
  border-top: 0;
}

/* פיקדונות ריבית קבועה — bank name plus a rate for each term.
   Median columns start hidden; sizeGrid recounts whatever is visible. */
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) {
  --fnl-w-name: 156px;
  --fnl-w-perf: 74px;
}

/* אשראי פריים: three columns. The rate stays narrow; the term needs the header. */
.fn-ui .fn-list-page[data-fn-list="credit"] {
  --fnl-w-name: 180px;
  --fnl-w-perf: 110px;
  --fnl-w-type: 188px;
}

.fn-ui .fn-list-page[data-fn-list="loan"] {
  --fnl-w-sel: 44px;
  --fnl-w-name: 180px;
  --fnl-w-perf: 110px;
}

.fn-ui .fn-list-page[data-fn-list="loan"] .fn-act {
  width: auto;
  flex: 0 0 auto;
}

.fn-ui .fn-list-page[data-fn-list="loan"] .chart_fund_msg {
  color: var(--fn-text-2);
  font-size: 13px;
}

/* Three filters in one band. The shared phone rule turns .fn-deck-actions
   into a 2-column grid; a 210px page select then overflows and covers the
   next menu, leaving only its arrow. This page keeps a wrapping row instead. */
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-bar {
  padding-block: 14px;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  width: 100%;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions > select.form-control {
  flex: 0 0 auto;
  width: 156px;
  min-width: 140px;
  max-width: none;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  padding-inline-end: 34px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fn-field-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233d4a40' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px 12px;
  color: var(--fn-field-text);
  font-size: 13px;
  line-height: 36px;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

:root[data-fn-theme="dark"] .fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions > select.form-control,
.fn-ui.darkCont .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions > select.form-control,
body.darkCont .fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions > select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d5ddd6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.2 8 10.2 12 6.2'/%3E%3C/svg%3E");
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions > select.form-control:focus {
  border-color: var(--fn-brand);
  outline: none;
  box-shadow: 0 0 0 1px var(--fn-brand);
}

/* The open list is the same menu as the rest of the site, sized to these
   fields. The native option popup cannot follow the theme. */
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-deck-actions > .fn-list-dd {
  position: relative;
  flex: 0 0 auto;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__trigger,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__trigger.has-value {
  width: 156px;
  min-width: 140px;
  max-width: none;
  height: 38px;
  min-height: 38px;
  padding-block: 0;
  padding-inline: 14px 34px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background-color: var(--fn-field-bg);
  background-image: none;
  box-shadow: none;
  color: var(--fn-field-text);
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd:has(#select-pageList) .fn-dd__trigger {
  width: 268px;
  min-width: 220px;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__label {
  display: none !important;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__value,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__value.is-selected,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd.is-open .fn-dd__value {
  color: var(--fn-field-text);
  font-size: 13px;
  font-weight: 500;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__trigger:hover,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__trigger.has-value:hover,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__trigger.has-value:focus,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd.is-open .fn-dd__trigger {
  background-color: var(--fn-field-bg);
  border-color: var(--fn-brand);
  box-shadow: 0 0 0 1px var(--fn-brand);
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__panel {
  width: max(100%, max-content);
  min-width: 100%;
  max-width: min(320px, 92vw);
  max-height: 280px;
  padding: 4px;
  border-radius: var(--fnl-radius-ctl);
  background: var(--fn-bg-raised);
  border-color: var(--fn-border-strong);
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__list {
  padding: 2px;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__option {
  border-radius: var(--fn-radius-sm);
  padding: 8px 12px;
  color: var(--fn-text-1);
  font-weight: 500;
  text-align: start;
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__option:not(.fn-dd__option--head):hover,
.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__option:not(.fn-dd__option--head):focus {
  background: var(--fn-bg-hover);
  color: var(--fn-text-1);
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) .fn-dd__option.is-active {
  background: color-mix(in srgb, var(--fn-brand) 18%, var(--fn-bg-raised));
  color: var(--fn-text-1);
  border-inline-start: 3px solid var(--fn-brand);
  padding-inline-start: 9px;
  font-weight: var(--fn-fw-bold);
}

.fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) #select-pageList {
  width: 268px;
  min-width: 220px;
}

@media (max-width: 991px) {
  .fn-ui .fn-list-page .fn-list-board,
  .fn-ui .fn-list-page[data-fn-list="stock"] .fn-list-board {
    grid-template-columns: 1fr;
  }
}

/* מחזורי המסחר: אותה מסילת גלולות כמו טווחי הגרף בדף קרן.
   בלי מסגרת זהובה נפרדת לכל כפתור. */
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-modes,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid var(--fn-bubble-border, var(--fn-border));
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-sunken);
  box-shadow: none;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-modes::-webkit-scrollbar,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs::-webkit-scrollbar,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods::-webkit-scrollbar,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg::-webkit-scrollbar {
  display: none;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-modes {
  margin: 12px 12px 0;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-modes a,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li > a,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods .fn-act,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg__opt {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 28px;
  margin: 0;
  padding: 0 11px;
  border: 0;
  border-radius: var(--fn-radius-pill);
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: var(--fn-text-2);
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-modes a:hover,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li > a:hover,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li > a:focus,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods .fn-act:hover,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg__opt:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--fn-text-1) 6%, transparent);
  color: var(--fn-text-1);
  text-decoration: none;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-modes a.is-on,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li.active > a,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li.active > a:hover,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li.active > a:focus,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods .fn-act.is-on,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar .fn-seg__opt:has(input:checked) {
  border-color: transparent;
  background: var(--fn-bubble-bg, var(--fn-bg-raised));
  color: var(--fn-text-1);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--fn-text-1) 12%, transparent);
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs {
  float: none;
  margin: 12px 12px 0;
  border-bottom: 0;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li {
  float: none;
  margin: 0;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li > a {
  line-height: 1;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods {
  direction: ltr;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar--mode {
  padding-bottom: 0;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-bar--ranges {
  justify-content: center;
  padding-top: 14px;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-date .fn-act,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-date .fn-act:hover {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fn-radius-pill);
  background: var(--fn-field-bg);
  color: var(--fn-field-text);
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-date .fn-act:hover {
  background: var(--fn-field-bg-hover);
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-date .form-control,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-date .sDatePicker {
  width: 98px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  text-align: center;
  border: 1px solid var(--fn-bubble-border, var(--fn-border));
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-sunken);
  color: var(--fn-text-1);
  box-shadow: none;
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: 700;
}

/* template.css pins .nav-tabs > li > a to 5px padding under 768px. */
@media (max-width: 768px) {
  .fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-tabs > li > a {
    padding: 0 11px !important;
    font-size: 12px;
  }
}

/* הקפסולה של הגרף. בלי ריפוד על אלמנט ה-c3: הוא מודד את
   clientWidth כולל הריפוד ומצייר את ה-svg מעבר למסגרת. */
.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-chart {
  box-sizing: border-box;
  width: calc(100% - 24px);
  margin: 0 12px;
  padding: 0;
  min-height: 0;
  border: 1px solid var(--fnl-line);
  border-radius: var(--fn-radius-md);
  background: var(--fnl-surface);
  overflow: hidden;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-chart > svg {
  display: block;
  max-width: 100%;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-out {
  display: inline-flex;
  margin: 4px 12px 14px;
  color: var(--fn-brand);
  font-size: 13px;
  font-weight: 700;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-ad:empty {
  display: none;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-section {
  margin: 18px 0 0;
  padding: 4px 12px 8px;
  border-top: 0;
}

.fn-ui .fn-list-page[data-fn-list="tcycle"] .c3-target-data1,
.fn-ui .fn-list-page[data-fn-list="tcycle"] .c3-legend-item-data1 {
  display: none;
}

/* מחזורי מוסדיים — name plus five figures. Two grids share the page. */
.fn-ui .fn-list-page[data-fn-list="tstock"] {
  --fnl-w-name: 196px;
  --fnl-w-flow: 168px;
  --fnl-w-perf: 96px;
  --fnl-w-size: 156px;
  --fnl-pane-h: clamp(280px, 46vh, 520px);
  --fnl-pane-h: clamp(280px, 46svh, 520px);
}

/* Robot recommendations: seven columns, longer yield and date headers. */
.fn-ui .fn-list-page[data-fn-list="fxg"] {
  --fnl-w-name: 240px;
  --fnl-w-type: 78px;
  --fnl-w-class: 150px;
  --fnl-w-perf: 148px;
  --fnl-w-exp: 156px;
  --fnl-w-date: 128px;
}

.fn-ui .fn-list-page .fn-list-deck__title,
.fn-ui .fn-list-page .fn-list-deck .panel-title {
  margin: 0;
  padding: 14px var(--fnl-bar-x) 0;
  background: transparent;
  border: 0;
  color: var(--fn-text-1);
  font-family: var(--fn-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.fn-ui .fn-list-page .fn-list-deck .panel-heading {
  padding: 0;
  background: transparent;
  border: 0;
}

.fn-ui .fn-list-page .fn-list-deck + .fn-list-deck {
  margin-top: 16px;
}

/* Hedge-fund list: fewer columns than fundList, longer yield headers,
   and a short exposure-profile code. Widths only — the grid rules are shared. */
.fn-ui .fn-list-page[data-fn-list="gidur"] {
  --fnl-w-name: 220px;
  --fnl-w-perf: 76px;
  --fnl-w-exp: 88px;
  --fnl-w-fee: 72px;
  --fnl-w-date: 84px;
}

/* Exposure-code legend under the gidur notes. A reference table, not a grid. */
.fn-ui .fn-list-page .fn-list-key {
  width: 100%;
  max-width: 640px;
  margin: 10px 0 4px;
  border-collapse: collapse;
  background: transparent;
  font-size: 12px;
  color: var(--fn-text-2);
}

.fn-ui .fn-list-page .fn-list-key th,
.fn-ui .fn-list-page .fn-list-key td {
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid var(--fnl-line-soft);
  background: transparent;
  text-align: center;
  font-weight: 500;
}

.fn-ui .fn-list-page .fn-list-key th {
  color: var(--fn-text-3);
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================================
   14. Responsive
   --------------------------------------------------------------------------
   There is ONE representation of the dataset at every width: the grid. The
   phone gets the same frozen identity block and the same horizontal pane,
   just tighter. (The separate card-list view was removed — two parallel
   representations of the same rows was redundant.)
   ========================================================================== */

@media (max-width: 1023px) {
  .fn-ui .fn-list-page .fn-act {
    white-space: nowrap;
    text-align: start;
  }
}

@media (max-width: 768px) {
  .fn-ui .fn-list-page {
    --fnl-bar-x: 10px;
    --fnl-cell-x: 8px;
    --fnl-gap-band: 14px;
    --fnl-row-y: 8px;
    /* Phone: same columns, tighter — horizontal scroll is expected. */
    --fnl-w-idx: 28px;
    --fnl-w-sel: 32px;
    --fnl-w-name: 140px;
    --fnl-w-class: 70px;
    --fnl-w-id: 64px;
    --fnl-w-mng: 100px;
    --fnl-w-type: 52px;
    --fnl-w-perf: 64px;
    --fnl-w-exp: 60px;
    --fnl-w-act: 48px;
    --fnl-w-fee: 62px;
    --fnl-w-size: 64px;
    --fnl-w-date: 56px;
    --fnl-w-age: 40px;
    --fnl-w-flow: 60px;
    --fnl-pane-h: clamp(380px, calc(100vh - 190px), 680px);
    --fnl-pane-h: clamp(380px, calc(100svh - 190px), 680px);
  }

  /* Every action stays in view: a two-column grid that wraps, not a strip
     that hides the rest off-screen. The buttons themselves stay compact. */
  .fn-ui .fn-list-page .fn-deck-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .fn-ui .fn-list-page .fn-deck-sep { display: none; }

  .fn-ui .fn-list-page .fn-act {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 4px 8px;
    border-color: var(--fnl-line);
    border-radius: var(--fn-radius-pill);
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  .fn-ui .fn-list-page .fn-act--primary { border-color: var(--fn-brand); }
  .fn-ui .fn-list-page .fn-act__ico { flex-basis: 16px; width: 16px; height: 16px; }

  .fn-ui .fn-list-page .fn-deck-end { margin-inline-start: auto; width: auto; flex: 0 0 auto; }
  .fn-ui .fn-list-page .fn-cols-toggle { width: auto; justify-content: center; }

  /* The column picker / record count share the action grid's first row
     instead of wrapping onto a row of their own: two button columns plus a
     narrow end column. Pinning .fn-deck-end to row 1 places it before the
     buttons auto-flow, so they fill the two remaining columns. */
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions) > .fn-deck-actions {
    display: contents;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions) .fn-act:only-of-type {
    grid-column: 1 / 3;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions) > .fn-deck-end {
    grid-column: 3;
    grid-row: 1;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    justify-self: end;
  }

  .fn-ui .fn-list-page .fn-cols-toggle {
    gap: 5px;
    min-height: 32px;
    padding: 0 8px;
    border-radius: var(--fn-radius-pill);
  }

  .fn-ui .fn-list-page .fn-cols-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-name .fh2 { font-size: 11.5px; }
  .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table thead th { font-size: 10px; }

  /* A visible track on touch: the scrollbar IS the affordance. */
  .fn-ui .fn-list-page .fn-list-viewport { scrollbar-width: auto; }
  .fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar { height: 9px; width: 9px; }
  .fn-ui .fn-list-page .fn-list-viewport::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--fn-text-3) 58%, transparent);
    border-width: 2px;
  }

  .fn-ui .fn-list-page[data-fn-list="fund"],
  .fn-ui .fn-list-page[data-fn-list="etf"] {
    --fnl-cls-al: 64px;
    --fnl-cls-ra: 100px;
  }

  .fn-ui .fn-list-page[data-fn-list="fund"] {
    --fnl-w-name: 176px;
    --fnl-w-class: 264px;
    --fnl-w-mng: 68px;
    --fnl-w-type: 42px;
  }

  .fn-ui .fn-list-page[data-fn-list="size"] {
    --fnl-w-name: 180px;
    --fnl-w-class: 420px;
    --fnl-w-mng: 140px;
    --fnl-w-size: 88px;
    --fnl-w-flow: 88px;
    --fnl-w-date: 92px;
    --fnl-cls-al: 124px;
    --fnl-cls-ra: 146px;
  }

  .fn-ui .fn-list-page[data-fn-list="etf"] {
    --fnl-w-name: 168px;
    --fnl-w-class: 264px;
  }

  .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack > *,
  .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-head > * { padding-inline: 5px; font-size: 11px; }
  .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-stack > :first-child,
  .fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table .fn-class-head > :first-child { padding-inline-start: 0; }

  .fn-ui .fn-list-page[data-fn-list="gidur"] {
    --fnl-w-name: 168px;
    --fnl-w-perf: 70px;
    --fnl-w-exp: 80px;
    --fnl-w-date: 76px;
  }

  .fn-ui .fn-list-page[data-fn-list="track"],
  .fn-ui .fn-list-page[data-fn-list="kaspit"] {
    --fnl-w-name: 156px;
    --fnl-w-mng: 100px;
  }

  .fn-ui .fn-list-page[data-fn-list="mehaka"] {
    --fnl-w-name: 148px;
    --fnl-w-mng: 96px;
  }

  .fn-ui .fn-list-page[data-fn-list="fxg"] {
    --fnl-w-name: 168px;
    --fnl-w-class: 120px;
    --fnl-w-perf: 120px;
    --fnl-w-exp: 128px;
    --fnl-w-date: 108px;
  }

  .fn-ui .fn-list-page[data-fn-list="tstock"] {
    --fnl-w-name: 148px;
    --fnl-w-flow: 128px;
    --fnl-w-perf: 84px;
    --fnl-w-size: 120px;
  }

  .fn-ui .fn-list-page[data-fn-list="stat"] {
    --fnl-w-name: 168px;
    --fnl-w-size: 96px;
    --fnl-w-flow: 72px;
  }

  .fn-ui .fn-list-page[data-fn-list="hold"] {
    --fnl-w-name: 168px;
    --fnl-w-flow: 84px;
    --fnl-w-size: 108px;
  }

  /* One column on the phone, and no third column to fill it. The two tracks
     sum to a typical phone pane so the figure sits next to the name. */
  .fn-ui .fn-list-page[data-fn-list="holdmng"] {
    --fnl-w-name: 214px;
    --fnl-w-size: 132px;
  }

  .fn-ui .fn-list-page[data-fn-list="stockfind"] {
    --fnl-w-name: 200px;
    --fnl-w-type: 140px;
  }

  .fn-ui .fn-list-page[data-fn-list="bostock"] {
    --fnl-w-name: 168px;
    --fnl-w-perf: 88px;
    --fnl-w-size: 96px;
    --fnl-w-flow: 96px;
  }

  .fn-ui .fn-list-page:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"]) {
    --fnl-w-name: 128px;
    --fnl-w-perf: 68px;
  }

}

@media (max-width: 420px) {
  /* The tcycle period chips restate their size at a higher specificity, so
     they are named here too; at 12px / 11px padding the five chips need
     355px and a 390 phone gives the strip 332px ("שלוש שנים" was cut). */
  .fn-ui .fn-list-page .fn-act,
  .fn-ui .fn-list-page[data-fn-list="tcycle"] .fn-tstock-periods .fn-act { font-size: 11px; padding: 0 8px; }
}

/* Phone action bar, for toolbars with three or more actions: two even rows.
   Row one is the primary action (full label) beside the column picker or
   the record count; row two holds the other actions as three equal buttons
   with short labels. The full wording stays in each button's aria-label; the
   short labels are CSS content keyed by the legacy button ids. */
@media (max-width: 767px) {
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) > .fn-deck-actions,
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) > .fn-deck-end {
    display: contents;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act--primary {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act):not(:has(.fn-list-columns, .fn-list-header__count:not([hidden]))) .fn-act--primary {
    grid-column: 1 / -1;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-list-columns,
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-list-header__count {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-list-header__count:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act,
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-cols-toggle {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 8px;
    border: 1px solid var(--fn-border-strong);
    border-radius: var(--fn-bubble-radius-sm);
    background-color: var(--fnl-surface);
    color: var(--fn-text-1);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 1px 2px rgba(22, 28, 23, 0.06);
    -webkit-tap-highlight-color: transparent;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act:active,
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-cols-toggle:active {
    background-color: var(--fnl-hover);
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act--primary {
    border-color: var(--fn-brand);
    background-color: var(--fn-brand);
    color: var(--fn-text-on-brand);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--fn-brand) 26%, transparent);
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act--primary:active {
    background-color: var(--fn-brand-hover);
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act__ico {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act__txt,
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-act::after {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) :is(#showFundGraphAllYield, #showFundGraphAllMonth, #button-addToPortfolio) .fn-act__txt {
    display: none;
  }

  /* לפי תאריך / גיוסים / לתיק אישי */
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) #showFundGraphAllYield::after { content: "\05DC\05E4\05D9\0020\05EA\05D0\05E8\05D9\05DA"; }
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) #showFundGraphAllMonth::after { content: "\05D2\05D9\05D5\05E1\05D9\05DD"; }
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) #button-addToPortfolio::after { content: "\05DC\05EA\05D9\05E7\0020\05D0\05D9\05E9\05D9"; }

  /* Column picker: icon and the n/m count; "עמודות" stays for screen readers. */
  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-cols-toggle {
    display: inline-flex;
  }

  .fn-ui .fn-list-page:not(:is([data-fn-list="fixdep"], [data-fn-list="credit"], [data-fn-list="loan"])) .fn-deck-bar:has(> .fn-deck-actions > .fn-act ~ .fn-act ~ .fn-act) .fn-cols-toggle__count {
    padding: 2px 6px;
    font-size: 11.5px;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .fn-ui .fn-list-page .fn-act,
  .fn-ui .fn-list-page .fn-cols-toggle {
    transition: none;
  }
}

/* ==========================================================================
   Signature layer — the brand accents every list shares. Kept in one block
   so the whole layer can be tuned (or dropped) without touching the grid.
   ========================================================================== */

/* The title's green bar (same as the home-page section heads) is in
   fn/38-page-title.css with the rest of the title. */

/* The deck lifts off the canvas and wears a thin brand light along its top
   edge; it is inset from the corners so it never fights the radius. */
.fn-ui .fn-list-page .fn-list-deck {
  box-shadow: 0 1px 2px rgba(22, 28, 23, 0.05), 0 16px 36px -24px rgba(22, 28, 23, 0.38);
  animation: fnl-rise 520ms var(--fnl-ease) backwards;
}
.fn-ui .fn-list-page .fn-list-deck::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: var(--fn-radius-pill);
  background: linear-gradient(90deg,
    transparent 0%,
    var(--fn-brand) 18%,
    var(--fn-green-400, var(--fn-brand)) 50%,
    var(--fn-brand) 82%,
    transparent 100%);
  background-size: 200% 100%;
  animation: fnl-sheen 1400ms var(--fnl-ease) 200ms backwards;
  pointer-events: none;
}

/* Record count reads as a badge, not as a footnote. */
.fn-ui .fn-list-page .fn-list-header__count {
  padding: 3px 10px;
  border-radius: var(--fn-radius-pill);
  background: color-mix(in srgb, var(--fn-brand) 10%, transparent);
  color: var(--fn-brand);
  font-weight: 700;
}

/* Podium: the first three rows of whatever the current sort is. The number
   stays the cell's text; the medal is a background layer, so DataTables'
   renumbering on every draw needs nothing extra. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:nth-child(-n+3) > td.fn-c-idx {
  background-repeat: no-repeat;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:nth-child(1) > td.fn-c-idx {
  background-image: radial-gradient(circle 10px at 50% 50%, #FFEFA8 0%, #F2C230 60%, #D49B00 92%, transparent 100%);
  color: #3F2C00;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:nth-child(2) > td.fn-c-idx {
  background-image: radial-gradient(circle 10px at 50% 50%, #FBFCFD 0%, #CDD4DC 60%, #9DA7B3 92%, transparent 100%);
  color: #26303B;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table.dataTable tbody tr:nth-child(3) > td.fn-c-idx {
  background-image: radial-gradient(circle 10px at 50% 50%, #FBD9B8 0%, #DB9A5E 60%, #B36D31 92%, transparent 100%);
  color: #3D1F06;
}

/* Yields read as tinted chips: direction is legible at a glance before the
   digits are. Scoped to performance cells; fees and sizes stay plain. */
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf .text-success,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf .text-danger,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf .minusNumb {
  display: inline-block;
  padding: 2px 5px;
  border-radius: var(--fn-radius-sm);
  line-height: 1.25;
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf .text-success {
  background: color-mix(in srgb, var(--fn-market-up) 12%, transparent);
}
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf .text-danger,
.fn-ui :is(.fn-list-page, .fn-port-sheet) table.fn-list-table tbody td.fn-c-perf .minusNumb {
  background: color-mix(in srgb, var(--fn-market-down) 11%, transparent);
}

@keyframes fnl-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fnl-sheen {
  from { background-position: 100% 0; opacity: 0; }
  to   { background-position: 0 0; opacity: 1; }
}

.fn-ui .fn-list-page {
  margin-top: 20px;
}
.fn-ui .fn-list-page .fn-list-header {
  padding-top: 20px;
}

@media (max-width: 767px) {
  .fn-ui .fn-list-page {
    margin-top: 12px;
  }
  .fn-ui .fn-list-page .fn-list-header {
    padding-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui .fn-list-page .fn-list-deck,
  .fn-ui .fn-list-page .fn-list-deck::before {
    animation: none;
  }
}

/* כל הקרנות בעמוד אחד: אותם טוקנים של הגריד, שתי קבוצות וניווט לענפים. */
.fn-ui .fn-list-page[data-fn-list="allin"] {
  --fnl-w-idx: 40px;
  --fnl-w-sel: 52px;
  --fnl-w-name: 200px;
  --fnl-w-class: 300px;
  --fnl-w-perf: 92px;
  --fnl-w-exp: 78px;
  --fnl-w-mng: 128px;
  --fnl-w-type: 148px;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-off {
  display: none;
}

/* DataTables pages each grid to 50. Until it does, keep the same first page
   so the full legacy-length table never paints. */
.fn-ui .fn-list-page[data-fn-list="allin"] table.fn-list-table:not(.dataTable) tbody tr:nth-child(n+51) {
  display: none;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-nav > .col-md-4,
.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-nav .col-md-12 {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-raised);
  color: var(--fn-text-1);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-nav a:hover {
  border-color: var(--fn-brand);
  color: var(--fn-text-1);
  text-decoration: none;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-group {
  margin: 18px 0 10px;
  padding: 0;
  text-align: start;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-allin-group h1 {
  margin: 0;
  color: var(--fn-text-1);
  font-family: var(--fn-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .fn-list-deck.panel {
  margin-bottom: 16px;
  border-color: var(--fnl-line);
  box-shadow: none;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .panel-heading,
.fn-ui .fn-list-page[data-fn-list="allin"] .panel-body,
.fn-ui .fn-list-page[data-fn-list="allin"] .panel-body > .row,
.fn-ui .fn-list-page[data-fn-list="allin"] .panel-body [class*="col-"] {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  float: none;
  width: auto;
  max-width: none;
}

.fn-ui .fn-list-page[data-fn-list="allin"] .table-responsive.fn-list-table-host {
  overflow: visible;
  border: 0;
}

/* searchAll: the list page, one deck. The search sits with the results,
   each hit is a full row, and an empty group is a sentence rather than a poster. */
.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-list-header__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-list-header .fn-discover-results__meta {
  margin: 0;
  color: var(--fn-text-2);
  font-size: 14px;
  line-height: 1.45;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-list-deck {
  padding: 16px 20px 12px;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .sa-form {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--fnl-line-soft);
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-list-deck > section + section {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--fnl-line-soft);
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-discover-results__head {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-discover-results__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-discover-results__head .fn-list-header__count {
  font-size: 12px;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-discover-empty,
.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-discover-error {
  margin: 0;
  padding: 4px 2px 12px;
  text-align: start;
  font-size: 14px;
  line-height: 1.45;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list a {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--fn-border);
  color: var(--fn-text-1);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list a:hover,
.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list a:focus-visible {
  background: var(--fn-bg-hover);
  color: var(--fn-text-1);
  text-decoration: none;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list__name {
  min-width: 0;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list__meta {
  flex: 0 0 auto;
  color: var(--fn-text-2);
  font-size: 13px;
  font-weight: 600;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-discover-more {
  justify-content: flex-start;
  margin: 8px 0 4px;
}

.fn-ui .fn-list-page[data-fn-list="searchall"] .fn-list-deck > section .fn-feed {
  margin: 0 0 8px;
}

@media (max-width: 767px) {
  .fn-ui .fn-list-page[data-fn-list="searchall"] .fn-list-deck {
    padding: 12px;
  }

  .fn-ui .fn-list-page[data-fn-list="searchall"] .fn-sa-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* דרוג גולשים: the list grid. Stars and the two text actions need their
   own widths; leftover pane width goes to the fund name. */
.fn-ui .fn-list-page[data-fn-list="rates"] {
  --fnl-w-name: 220px;
  --fnl-w-mng: 200px;
  --fnl-w-type: 168px;
  --fnl-w-class: 132px;
}

.fn-ui .fn-list-page[data-fn-list="rates"] .dataTables_empty {
  display: table-cell;
  padding: 16px 12px;
  color: var(--fn-text-2);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  white-space: normal;
}

.fn-ui .fn-list-page[data-fn-list="rates"] td.fn-c-mng .rateit {
  direction: ltr;
  unicode-bidi: isolate;
}

.fn-ui .fn-list-page[data-fn-list="rates"] td .fn-act {
  width: auto;
  max-width: 100%;
}

.fn-ui .fn-list-page[data-fn-list="rates"] td.fn-c-mng .fn-act {
  display: flex;
  margin-top: 8px;
}

.fn-ui #fundRateForm,
.fn-ui #fundReviewFormMob {
  --fnl-radius-ctl: 8px;
}

.fn-ui #fundRateForm .modal-content,
.fn-ui #fundReviewFormMob .modal-content {
  background: var(--fn-bg-surface);
  color: var(--fn-text-1);
  border: 1px solid var(--fn-border);
  border-radius: var(--fnl-radius-ctl);
  box-shadow: 0 16px 36px -24px rgba(22, 28, 23, 0.38);
}

.fn-ui #fundRateForm .modal-header,
.fn-ui #fundReviewFormMob .modal-header {
  border-bottom: 1px solid var(--fn-border);
}

.fn-ui #fundRateForm .modal-header .panel-title,
.fn-ui #fundReviewFormMob .modal-header .panel-title,
.fn-ui #fundRateForm .control-label,
.fn-ui #fundReviewFormMob .postComments,
.fn-ui #fundReviewFormMob .comment-box p {
  color: var(--fn-text-1);
}

.fn-ui #fundRateForm .close,
.fn-ui #fundReviewFormMob .close {
  color: var(--fn-text-2);
  text-shadow: none;
  opacity: 1;
}

.fn-ui #fundRateForm .well {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fn-ui #fundRateForm .form-control {
  height: auto;
  min-height: 36px;
  border: 1px solid var(--fn-field-border);
  border-radius: var(--fnl-radius-ctl);
  background: var(--fn-field-bg);
  background-image: none;
  color: var(--fn-field-text);
  box-shadow: none;
}

.fn-ui #fundRateForm .form-control:focus {
  border-color: var(--fn-brand);
  outline: none;
  box-shadow: 0 0 0 1px var(--fn-brand);
}

.fn-ui #fundRateForm .fn-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--fn-brand);
  border-radius: var(--fnl-radius-ctl);
  background: var(--fn-brand);
  color: var(--fn-text-on-brand);
  font-weight: 700;
  box-shadow: none;
}

.fn-ui #fundRateForm .fn-act:hover,
.fn-ui #fundRateForm .fn-act:focus {
  background: var(--fn-brand-hover);
  border-color: var(--fn-brand-hover);
  color: var(--fn-text-on-brand);
}

.fn-ui #fundReviewFormMob .postComments hr {
  border-color: var(--fn-border);
}
