/* ==========================================================================
   FUNDER — Personal area (auth + תיק אישי)
   Fintech shell on shared FN tokens. Mobile-first, RTL, Light/Dark.
   Does not restyle DataTables internals; chrome + forms + tabs only.
   ========================================================================== */

/* ---- Auth page packing --------------------------------------------------- */

.fn-ui .fn-auth-page {
  width: 100%;
  max-width: 100%;
  padding: 4px 0 20px;
  overflow-x: hidden;
}

.fn-ui .fn-auth,
.fn-ui .fn-auth__card {
  max-width: 100%;
  box-sizing: border-box;
}

/* Kill Bootstrap panel chrome if any leftover wraps survive */
.fn-ui .fn-auth .panel,
.fn-ui .fn-auth .panel-default,
.fn-ui .fn-auth .panel-body,
.fn-ui .fn-auth .about_box {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fn-ui .fn-auth .tab-content > .tab-pane {
  display: none;
}

.fn-ui .fn-auth .tab-content > .tab-pane.active {
  display: block;
}

/* ---- Shared shell -------------------------------------------------------- */

.fn-ui .fn-account {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 0 28px;
}

.fn-ui .fn-account__lede {
  margin: 0 0 4px;
  color: var(--fn-text-3);
  font-size: 13px;
  font-weight: var(--fn-fw-emphasis);
  letter-spacing: 0.02em;
}

.fn-ui .fn-account__title {
  margin: 0 0 8px;
  color: var(--fn-text-1);
  font-family: var(--fn-font-display);
  font-size: clamp(24px, 4.5vw, 32px);
  font-weight: var(--fn-fw-bold);
  line-height: 1.2;
}

.fn-ui .fn-account__sub {
  margin: 0 0 20px;
  color: var(--fn-text-2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 42ch;
}

/* ---- Auth card ----------------------------------------------------------- */

.fn-ui .fn-auth {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 36px 16px 56px;
  font-family: var(--fn-font-ui);
  color: var(--fn-text-1);
}

.fn-ui .fn-auth__card {
  padding: 36px 28px 28px;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-sheet);
  background: var(--fn-bg-surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--fn-text-1) 4%, transparent);
}

.fn-ui .fn-auth__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 18px;
  text-align: center;
}

.fn-ui .fn-auth__mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: var(--fn-radius-lg);
}

.fn-ui .fn-auth__brand-kicker {
  margin: 0;
  color: var(--fn-text-3);
  font-family: var(--fn-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.fn-ui .fn-auth__brand-title {
  margin: 2px 0 0;
  color: var(--fn-text-1);
  font-family: var(--fn-font-display);
  font-size: 32px;
  font-weight: var(--fn-fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.fn-ui .fn-auth__brand-sub {
  margin: 6px auto 0;
  max-width: 32ch;
  color: var(--fn-text-2);
  font-family: var(--fn-font-ui);
  font-size: 14px;
  font-weight: var(--fn-fw-regular);
  line-height: 1.5;
}

.fn-ui .fn-auth__google {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.fn-ui .fn-auth__status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.fn-ui .fn-auth__status.is-error { color: var(--fn-market-down, #C62828); }
.fn-ui .fn-auth__status.is-ok { color: var(--fn-market-up, #137333); }

.fn-ui .fn-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: var(--fn-text-3);
  font-size: 12px;
  font-weight: 600;
}

.fn-ui .fn-auth__divider::before,
.fn-ui .fn-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--fn-border);
}

/* Segmented login/register — plain links, no Bootstrap .nav-tabs floats */
.fn-ui .fn-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 0;
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-sunken);
  list-style: none;
  width: 100%;
  box-sizing: border-box;
}

.fn-ui .fn-auth__tabs.nav,
.fn-ui .fn-auth__tabs.nav-tabs {
  display: grid !important;
  float: none;
  border: 0 !important;
}

.fn-ui .fn-auth__tab,
.fn-ui .fn-auth__tabs > li,
.fn-ui .fn-auth__tabs > li > a {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--fn-radius-pill);
  background: transparent;
  box-sizing: border-box;
}

.fn-ui .fn-auth__tab,
.fn-ui .fn-auth__tabs > li > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px !important;
  color: var(--fn-text-3);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.fn-ui .fn-auth__tabs > li {
  display: contents; /* let anchors participate in the parent grid */
}

.fn-ui .fn-auth__tab.is-active,
.fn-ui .fn-auth__tabs > li.active > a,
.fn-ui .fn-auth__tab:hover,
.fn-ui .fn-auth__tab:focus,
.fn-ui .fn-auth__tabs > li > a:hover,
.fn-ui .fn-auth__tabs > li > a:focus {
  color: var(--fn-text-1) !important;
  background: var(--fn-bg-surface) !important;
  box-shadow: var(--fn-shadow-sm);
  text-decoration: none !important;
}

.fn-ui .fn-auth__tab:focus-visible,
.fn-ui .fn-auth__tabs > li > a:focus-visible {
  outline: 2px solid var(--fn-border-brand, var(--fn-brand));
  outline-offset: 2px;
}

/* Forms — stack labels above fields; keep ASP.NET control IDs */
.fn-ui .fn-auth .form-horizontal .form-group {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

.fn-ui .fn-auth .form-horizontal .control-label,
.fn-ui .fn-auth .form-horizontal label.col-sm-3 {
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
  text-align: right;
  color: var(--fn-text-2);
  font-size: 12px;
  font-weight: 700;
}

.fn-ui .fn-auth .form-horizontal .col-sm-8,
.fn-ui .fn-auth .form-horizontal .col-sm-5,
.fn-ui .fn-auth .form-horizontal .col-sm-offset-5,
.fn-ui .fn-auth .form-horizontal .col-sm-offset-4 {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.fn-ui .fn-auth .form-control,
.fn-ui .fn-auth input.form-control,
.fn-ui .fn-auth .btn,
.fn-ui .fn-auth button,
.fn-ui .fn-auth label,
.fn-ui .fn-auth a {
  font-family: var(--fn-font-ui);
}

.fn-ui .fn-auth .form-control,
.fn-ui .fn-auth input.form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--fn-field-border, var(--fn-border));
  border-radius: var(--fn-radius-field);
  background: var(--fn-field-bg, var(--fn-bg-surface));
  color: var(--fn-field-text, var(--fn-text-1));
  font-size: 16px; /* iOS zoom guard */
  font-weight: var(--fn-fw-regular);
  line-height: 1.3;
  box-shadow: none;
}

/* Validator leftovers: pale-blue fields and a glyphicon parked on the eye button. */
.fn-ui .fn-auth .form-control-feedback,
.fn-ui .fn-auth .glyphicon.form-control-feedback {
  display: none !important;
}

.fn-ui .fn-auth .has-success .form-control,
.fn-ui .fn-auth .has-error .form-control,
.fn-ui .fn-auth .has-feedback .form-control {
  background: var(--fn-field-bg, var(--fn-bg-surface)) !important;
  box-shadow: none !important;
}

.fn-ui .fn-auth .form-control:focus {
  border-color: var(--fn-border-brand, var(--fn-brand));
  outline: none;
  box-shadow: 0 0 0 3px var(--fn-brand-soft);
}

/* Addresses and passwords stay left-to-right so a long value is not clipped from the start. */
.fn-ui .fn-auth input[type="email"],
.fn-ui .fn-auth input[type="password"] {
  direction: ltr;
  text-align: right;
}

.fn-ui .fn-auth .input-group {
  display: flex;
  flex-direction: row;
  width: 100%;
  border: 1px solid var(--fn-field-border, var(--fn-border));
  border-radius: var(--fn-radius-field);
  background: var(--fn-field-bg, var(--fn-bg-surface));
  overflow: hidden;
}

.fn-ui .fn-auth .input-group:focus-within {
  border-color: var(--fn-border-brand, var(--fn-brand));
  box-shadow: 0 0 0 3px var(--fn-brand-soft);
}

.fn-ui .fn-auth .input-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.fn-ui .fn-auth .input-group-btn {
  display: flex;
  width: auto;
  margin: 0;
}

.fn-ui .fn-auth .revealPwd,
.fn-ui .fn-auth .revealcPwd {
  min-width: 44px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fn-text-3);
  box-shadow: none !important;
}

.fn-ui .fn-auth .revealPwd:hover,
.fn-ui .fn-auth .revealcPwd:hover,
.fn-ui .fn-auth .revealPwd:focus,
.fn-ui .fn-auth .revealcPwd:focus {
  color: var(--fn-brand);
  background: transparent !important;
  outline: none;
}

.fn-ui .fn-auth .fn-eye {
  display: block;
  width: 20px;
  height: 20px;
}

.fn-ui .fn-auth .revealPwd .fn-eye--hide,
.fn-ui .fn-auth .revealcPwd .fn-eye--hide {
  display: none;
}

.fn-ui .fn-auth .revealPwd.is-revealed .fn-eye--show,
.fn-ui .fn-auth .revealcPwd.is-revealed .fn-eye--show {
  display: none;
}

.fn-ui .fn-auth .revealPwd.is-revealed .fn-eye--hide,
.fn-ui .fn-auth .revealcPwd.is-revealed .fn-eye--hide {
  display: block;
}

.fn-ui .fn-auth__control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--fn-field-border, var(--fn-border));
  border-radius: var(--fn-radius-field);
  background: var(--fn-field-bg, var(--fn-bg-surface));
  overflow: hidden;
}

.fn-ui .fn-auth__control:focus-within {
  border-color: var(--fn-border-brand, var(--fn-brand));
  box-shadow: 0 0 0 3px var(--fn-brand-soft);
}

.fn-ui .fn-auth__lead {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex: 0 0 auto;
  color: var(--fn-text-3);
}

.fn-ui .fn-auth__lead svg {
  display: block;
  width: 18px;
  height: 18px;
}

.fn-ui .fn-auth__control .form-control,
.fn-ui .fn-auth__control input.form-control {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 48px;
}

.fn-ui .fn-auth__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--fn-text-2);
  font-family: var(--fn-font-ui);
  font-size: 13px;
  font-weight: var(--fn-fw-regular);
  line-height: 1.45;
  cursor: pointer;
}

.fn-ui .fn-auth__check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  border: 1.5px solid var(--fn-border-strong, var(--fn-gray-300));
  border-radius: var(--fn-radius-sm);
  background: var(--fn-bg-surface);
  display: grid;
  place-content: center;
}

.fn-ui .fn-auth__check input[type="checkbox"]:checked {
  border-color: var(--fn-accent);
  background-color: var(--fn-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.1l2.5 2.5 5.1-5.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.fn-ui .fn-auth__check input[type="checkbox"]:focus {
  outline: none;
}

.fn-ui .fn-auth__check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--fn-brand-soft);
  border-color: var(--fn-brand);
}

.fn-ui .fn-auth__check a {
  color: var(--fn-brand);
  font-weight: 700;
  text-decoration: none;
}

.fn-ui .fn-auth__check a:hover,
.fn-ui .fn-auth__check a:focus {
  text-decoration: underline;
}

.fn-ui .fn-auth__google {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-items: stretch;
}

.fn-ui .fn-auth__google > div,
.fn-ui .fn-auth #googleSignInButton,
.fn-ui .fn-auth #googleSignInButton > div,
.fn-ui .fn-auth #googleSignInButton [role="button"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.fn-ui .fn-auth #googleSignInButton {
  min-height: 44px;
  overflow: hidden;
}

.fn-ui .fn-auth .checkbox,
.fn-ui .fn-auth input[type="checkbox"] {
  margin-inline-end: 6px;
}

.fn-ui .fn-auth .btn-success,
.fn-ui .fn-auth input.btn-success,
.fn-ui .fn-auth .fn-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--fn-radius-pill);
  background: var(--fn-accent);
  color: var(--fn-on-accent);
  font-size: 15px;
  font-weight: var(--fn-fw-bold);
  box-shadow: none;
  transition: background-color 160ms var(--fn-ease), transform 140ms var(--fn-ease);
}

.fn-ui .fn-auth .btn-success:hover,
.fn-ui .fn-auth .btn-success:focus,
.fn-ui .fn-auth input.btn-success:hover,
.fn-ui .fn-auth input.btn-success:focus {
  background: var(--fn-accent-hover, var(--fn-brand));
  color: var(--fn-on-accent);
  outline: none;
}

.fn-ui .fn-auth .btn-success:active {
  transform: scale(0.98);
}

.fn-ui .fn-auth__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--fn-border);
  text-align: center;
}

.fn-ui .fn-auth__links a {
  color: var(--fn-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fn-ui .fn-auth__links a:hover,
.fn-ui .fn-auth__links a:focus {
  text-decoration: underline;
}

.fn-ui .fn-auth__msg,
.fn-ui .fn-auth #loginMsg,
.fn-ui .fn-auth #regMsg,
.fn-ui .fn-auth #forgotMsg,
.fn-ui .fn-auth #forgtpMsg,
.fn-ui .fn-auth #verMsg,
.fn-ui .fn-auth #info_message,
.fn-ui .fn-auth #success_messagess {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--fn-radius-md);
  background: var(--fn-bg-sunken);
  color: var(--fn-text-1);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.fn-ui .fn-auth .text-success,
.fn-ui .fn-auth #success_messagess {
  background: color-mix(in srgb, var(--fn-market-up, #137333) 10%, var(--fn-bg-sunken));
  color: var(--fn-market-up, #137333);
}

.fn-ui .fn-auth .text-danger,
.fn-ui .fn-auth .text-warning {
  background: color-mix(in srgb, var(--fn-market-down, #C62828) 8%, var(--fn-bg-sunken));
  color: var(--fn-market-down, #C62828);
}

.fn-ui .fn-auth .about_box,
.fn-ui .fn-auth .panel,
.fn-ui .fn-auth .panel-heading,
.fn-ui .fn-auth .panel-body,
.fn-ui .fn-auth .panel-default {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.fn-ui .fn-auth .panel-heading,
.fn-ui .fn-auth .title2H1 {
  display: none;
}

.fn-ui .fn-auth .nav-tabs {
  border: 0;
}

/* Hide legacy ad sidebars on auth pages */
.fn-ui .fn-auth-page > .row > .visible-lg.visible-md.pull-left {
  display: none !important;
}

.fn-ui .fn-auth-page > .row > .pull-right {
  float: none !important;
  width: 100% !important;
}

/* ---- Portfolio — same page as a fund list -------------------------------- */
/* One title, one underline section row, one deck. The grid itself is the
   fund-list sheet (14-list.css via .fn-port-sheet). No summary cubes. */

.fn-ui .fn-portfolio {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 28px;
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
}

.fn-ui .fn-portfolio .row,
.fn-ui .row.fn-portfolio {
  margin-left: 0;
  margin-right: 0;
}

/* One left edge and one right edge, same as a list page. */
.fn-ui .fn-portfolio [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

.fn-ui .fn-portfolio .dataTables_empty,
.fn-ui .fn-portfolio .chart_fund_msg {
  padding: 18px 14px;
  border-radius: var(--fn-radius-md);
  background: var(--fn-bg-sunken);
  color: var(--fn-text-2);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.fn-ui .fn-port-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 2px 0 0;
}

/* .fn-port-head__title: the shared page title, in fn/38-page-title.css. */

.fn-ui .fn-port-out {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fn-text-3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.fn-ui .fn-port-out:hover,
.fn-ui .fn-port-out:focus {
  color: var(--fn-text-1);
  text-decoration: none;
  outline: none;
}

.fn-ui .fn-port-out:focus-visible {
  outline: 2px solid var(--fn-focus);
  outline-offset: 2px;
}

/* Section row — text and a hairline, the same weight as a list header. */
.fn-ui .fn-portfolio .portfolioTab.nav-tabs,
.fn-ui .fn-portfolio ul.portfolioTab {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 10px 0 0;
  padding: 0;
  overflow-x: auto;
  /* Sideways only: an unset overflow-y computes to auto, and the 1px the
     active bar used to poke below gave the strip vertical scroll on iPhone
     (same pair as .fn-rail-mob in 02-header.css). */
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-bottom: 1px solid var(--fn-border);
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.fn-ui .fn-portfolio .portfolioTab::-webkit-scrollbar {
  display: none;
}

.fn-ui .fn-portfolio .portfolioTab > li {
  float: none;
  margin: 0;
  flex: 0 0 auto;
}

.fn-ui .fn-portfolio .portfolioTab > li > a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 8px 14px 10px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--fn-text-3);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.fn-ui .fn-portfolio .portfolioTab > li > a:hover,
.fn-ui .fn-portfolio .portfolioTab > li > a:focus {
  border: 0 !important;
  background: transparent !important;
  color: var(--fn-text-1) !important;
  box-shadow: none !important;
  text-decoration: none;
}

.fn-ui .fn-portfolio .portfolioTab > li.active > a,
.fn-ui .fn-portfolio .portfolioTab > li.active > a:hover,
.fn-ui .fn-portfolio .portfolioTab > li.active > a:focus {
  border: 0 !important;
  background: transparent !important;
  color: var(--fn-text-1) !important;
  box-shadow: none !important;
  font-weight: 700;
}

/* Keyboard ring inside the tab: the strip scrolls sideways (overflow on
   both axes), so a ring drawn outside the link is cut off. Same as the
   .fn-data-tabs in 09-data.css. */
.fn-ui .fn-portfolio .portfolioTab > li > a:focus-visible,
.fn-ui .fn-portfolio ul.topFundTabs > li > a:focus-visible {
  outline: var(--fn-focus-width) solid var(--fn-focus);
  outline-offset: -2px;
}

.fn-ui .fn-portfolio .portfolioTab > li.active > a::after {
  content: "";
  position: absolute;
  right: 12px;
  left: 12px;
  bottom: 0;
  height: 2px;
  background: var(--fn-brand);
}

/* Item count — the same chip as the column-picker count on the fund lists
   (14-list.css .fn-cols-toggle__count), so the number reads as part of its
   own tab and not as a loose figure between two tabs. */
.fn-ui .fn-port-tab__n {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--fn-bg-sunken);
  color: var(--fn-text-3);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.fn-ui .fn-portfolio .portfolioTab > li.active .fn-port-tab__n {
  background: color-mix(in srgb, var(--fn-brand) 16%, transparent);
  color: var(--fn-text-1);
}

.fn-ui .fn-port-tab__n:empty {
  display: none;
}

/* Phone yield switch — a second text row, not a pill track. */
.fn-ui .fn-portfolio ul.topFundTabs.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-bottom: 1px solid var(--fn-border);
  border-radius: 0;
  background: transparent;
}

.fn-ui .fn-portfolio ul.topFundTabs > li {
  float: none !important;
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0;
  overflow: visible;
}

.fn-ui .fn-portfolio ul.topFundTabs > li > a,
.fn-ui .fn-portfolio .h62 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 34px;
  margin: 0;
  padding: 6px 12px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--fn-text-3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
}

.fn-ui .fn-portfolio ul.topFundTabs > li.active > a,
.fn-ui .fn-portfolio ul.topFundTabs > li.active > a:hover,
.fn-ui .fn-portfolio ul.topFundTabs > li.active > a:focus {
  background: transparent !important;
  color: var(--fn-text-1) !important;
  box-shadow: inset 0 -2px 0 var(--fn-brand);
}

.fn-ui .fn-portfolio ul.topFundTabs > li > a:hover,
.fn-ui .fn-portfolio ul.topFundTabs > li > a:focus {
  background: transparent !important;
  color: var(--fn-text-1) !important;
}

/* Toolbar sits on the deck, same control as a list action. */
.fn-ui .fn-portfolio .fn-port-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 12px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--fn-border);
  border-bottom: 0;
  border-radius: var(--fn-radius-md) var(--fn-radius-md) 0 0;
  background: var(--fn-bg-surface);
}

.fn-ui .fn-portfolio .tlb_btn {
  display: inline-flex;
  margin: 0;
}

.fn-ui .fn-portfolio .tlb_btn .btn,
.fn-ui .fn-portfolio .tlb_btn input.btn,
.fn-ui .fn-portfolio .tlb_btn button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--fn-radius-compact);
  background: transparent;
  background-image: none;
  color: var(--fn-text-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: none;
  box-shadow: none;
}

.fn-ui .fn-portfolio .tlb_btn .btn:hover,
.fn-ui .fn-portfolio .tlb_btn .btn:focus,
.fn-ui .fn-portfolio .tlb_btn input.btn:hover,
.fn-ui .fn-portfolio .tlb_btn button.btn:hover {
  background: var(--fn-bg-hover);
  color: var(--fn-text-1);
  outline: none;
}

.fn-ui .fn-portfolio .tlb_btn .btn-primary,
.fn-ui .fn-portfolio .tlb_btn input.btn-primary,
.fn-ui .fn-portfolio .tlb_btn button.btn-primary {
  padding: 0 14px;
  border-color: var(--fn-brand);
  background: var(--fn-brand);
  color: var(--fn-text-on-brand);
  font-weight: 700;
}

.fn-ui .fn-portfolio .tlb_btn .btn-primary:hover,
.fn-ui .fn-portfolio .tlb_btn .btn-primary:focus,
.fn-ui .fn-portfolio .tlb_btn input.btn-primary:hover,
.fn-ui .fn-portfolio .tlb_btn input.btn-primary:focus,
.fn-ui .fn-portfolio .tlb_btn button.btn-primary:hover,
.fn-ui .fn-portfolio .tlb_btn button.btn-primary:focus {
  border-color: var(--fn-brand-hover);
  background: var(--fn-brand-hover);
  color: var(--fn-text-on-brand);
}

.fn-ui .fn-portfolio .tlb_btn .btn-info,
.fn-ui .fn-portfolio .tlb_btn .btn-danger {
  background: transparent;
  color: var(--fn-text-2);
}

/* The deck is the only frame. The table inside is the list sheet. */
.fn-ui .fn-portfolio .panel.panel-default:not(.fn-list-deck) {
  margin: 0 0 8px;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-md);
  background: var(--fn-bg-surface);
  box-shadow: none;
  overflow: hidden;
}

.fn-ui .fn-portfolio .fn-port-bar + [class*="col-"] > .panel.panel-default {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.fn-ui .fn-portfolio .panel-body.tbl_box_pad {
  padding: 0;
}

.fn-ui .fn-portfolio .table-responsive,
.fn-ui .fn-portfolio .fn-port-sheet {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--fn-bg-surface);
  box-shadow: none;
}

.fn-ui .fn-portfolio.fn-list-page .fn-list-table-host.fn-port-sheet {
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  border-top: 0;
  /* iOS Safari paints the sticky cells of an RTL scroller at the wrong x
     once it rebuilds its scroll layers — a small sideways swipe anywhere on
     the page is enough — so rank, checkbox and name vanish while the
     in-flow columns stay put (webkit.org/b/221624). Same cure as the fund
     lists (14-list.css §8): an LTR scroller around an RTL table, scroll
     anchored to the table's start edge by fn-portfolio.js. */
  direction: ltr;
}

.fn-ui .fn-portfolio .fn-port-sheet table.fn-list-table {
  direction: rtl;
  margin-left: auto;
  margin-right: 0;
}

html[dir="ltr"] .fn-ui .fn-portfolio .fn-port-sheet table.fn-list-table {
  direction: ltr;
  margin-left: 0;
  margin-right: auto;
}

/* A category label is a phrase ("קרנות חדשות"), not the one-word fund-list
   type token. The id column holds a fund number, not a 28px row index.
   Yields here carry a leading "+" (formatDataPerc) inside the tinted chip:
   "+114.75%" measures 84px with the cell padding, and 3- and 5-year
   gemel / policy yields pass 100%. */
.fn-ui .fn-portfolio .fn-port-sheet {
  --fnl-w-id: 64px;
  --fnl-w-type: 108px;
  --fnl-w-perf: 84px;
}

/* Desktop fund table: sixteen columns, and four 84px yields push תאריך שער
   and the delete column off a 1280 pane. There the yield keeps the list
   width and the chip takes the cell's side padding instead: 62px of room
   holds "+NN.NN%" (61px). The delete column takes the compact list width
   (14-list.css), so the sixteen columns meet the 1138px pane exactly
   instead of running 4px past it. */
@media (min-width: 768px) {
  .fn-ui .fn-portfolio #FunderTab .fn-port-sheet {
    --fnl-w-perf: 66px;
    --fnl-w-act: 48px;
  }

  .fn-ui .fn-portfolio #FunderTab .fn-port-sheet table.fn-list-table tbody td.fn-c-perf {
    padding-inline: 2px;
  }
}

/* Gemel / ETF managers are plain text and run long ("הראל השקעות בביטוח
   ושירותים פיננסיים בעמ"): they wrap inside the column like the category
   phrase, never across the yield beside them. Linked fund managers keep
   the one-line anchor of 14-list.css. */
.fn-ui .fn-portfolio table.fn-list-table tbody td.fn-c-type,
.fn-ui .fn-portfolio table.fn-list-table tbody td.fn-c-mng {
  white-space: normal;
  overflow-wrap: break-word;
}

.fn-ui .fn-portfolio .dataTables_wrapper {
  margin: 0;
  padding: 0;
}

.fn-ui .fn-portfolio h5 {
  margin: 8px 2px 16px;
  color: var(--fn-text-3);
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: 600;
}

/* Column picker — quiet control on the deck, same weight as a list action. */
.fn-ui .fn-portfolio .font16h {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  color: var(--fn-text-2);
  font-family: var(--fn-font-ui);
  font-size: 12.5px;
  font-weight: 600;
}

.fn-ui .fn-portfolio .font16h a,
.fn-ui .fn-portfolio .secIcon {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.fn-ui .fn-portfolio .showLinkItems {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--fn-text-3);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.fn-ui .fn-portfolio table.showHideColText,
.fn-ui .fn-portfolio table.showHideColText td {
  border: 0;
  background: transparent;
  color: var(--fn-text-2);
  font-family: var(--fn-font-ui);
  font-size: 13px;
  font-weight: 600;
}

.fn-ui .fn-portfolio .showHideColText a {
  color: var(--fn-text-2);
  text-decoration: none;
}

/* Portfolio tables. template.css paints every non-list DataTable beige
   (#e6d5b4 header, cream zebra) with !important. These selectors are
   more specific so the portfolio sheet wins. */
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table),
.fn-ui .fn-portfolio table.display:not(.fn-list-table) {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--fn-bg-surface);
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
}

.fn-ui .fn-portfolio table:not(.fn-list-table) tr.tableHeading,
.fn-ui .fn-portfolio table:not(.fn-list-table) .tableHeading,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) thead,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table):not(.fn-list-table) thead {
  background: var(--fn-bg-surface) !important;
  background-color: var(--fn-bg-surface) !important;
  background-image: none !important;
  color: inherit;
  font-size: inherit;
}

.fn-ui .fn-portfolio table:not(.fn-list-table) thead th,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) thead th,
.fn-ui .fn-portfolio table:not(.fn-list-table) tr.tableHeading th {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fn-border) !important;
  background-color: color-mix(in srgb, var(--fn-brand) 6%, var(--fn-bg-surface)) !important;
  background-image: none !important;
  color: var(--fn-text-3) !important;
  font-family: var(--fn-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  word-break: keep-all;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody td,
.fn-ui .fn-portfolio table.table tbody td,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table):not(.fn-list-table) tbody tr.odd td,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table):not(.fn-list-table) tbody tr.even td,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table).display tbody tr.odd > .sorting_1,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table).display tbody tr.even > .sorting_1 {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--fn-border) 70%, transparent) !important;
  box-sizing: border-box;
  word-break: keep-all;
  overflow-wrap: normal;
  background-color: var(--fn-bg-surface) !important;
  background-image: none !important;
  color: var(--fn-text-1);
  font-size: 13px;
  font-weight: var(--fn-fw-emphasis);
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr:hover td,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table):not(.fn-list-table) tbody tr.odd:hover td,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table):not(.fn-list-table) tbody tr.even:hover td {
  background-color: color-mix(in srgb, var(--fn-brand) 6%, var(--fn-bg-surface)) !important;
}

.fn-ui .fn-portfolio table.fn-list-table tbody td.fn-c-name a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody td a {
  color: var(--fn-text-1);
  font-weight: 700;
  text-decoration: none;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody td a:hover,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody td a:focus {
  color: var(--fn-brand);
  text-decoration: none;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tfoot th,
.fn-ui .fn-portfolio table:not(.fn-list-table) tr.totalRow th {
  padding: 12px;
  border: 0 !important;
  border-top: 1px solid var(--fn-border) !important;
  background-color: color-mix(in srgb, var(--fn-brand) 6%, var(--fn-bg-surface)) !important;
  background-image: none !important;
  color: var(--fn-text-1) !important;
  font-family: var(--fn-font-ui);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Mobile holding cards. The markup is three sibling columns per fund
   (name, yield, divider). Lay them out as one full-width row so the
   name stays on the right and the yield on the left. */
.fn-ui .fn-portfolio .HtmlSort {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  column-gap: 12px;
  align-items: center;
}

.fn-ui .fn-portfolio .HtmlSort > div {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0;
  padding: 10px 2px;
  border-radius: 0;
}

.fn-ui .fn-portfolio .HtmlSort > .col-xs-12,
.fn-ui .fn-portfolio .HtmlSort > .col-lg-12 {
  grid-column: 1 / -1;
  padding: 0;
}

.fn-ui .fn-portfolio .HtmlSort hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--fn-border);
}

.fn-ui .fn-portfolio .HtmlSort h1 {
  margin: 0;
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: start;
  word-break: normal;
  overflow-wrap: anywhere;
}

.fn-ui .fn-portfolio .HtmlSort h1 a {
  color: var(--fn-text-1);
  text-decoration: none;
}

.fn-ui .fn-portfolio .HtmlSort a.text-danger,
.fn-ui .fn-portfolio .HtmlSort [class*="delFromPortfolio"] {
  float: none !important;
  color: var(--fn-text-3) !important;
  margin-inline-end: 6px;
}

.fn-ui .fn-portfolio .HtmlSort .col-xs-3,
.fn-ui .fn-portfolio .HtmlSort .col-lg-3,
.fn-ui .fn-portfolio .HtmlSort .text-left {
  text-align: left !important;
}

.fn-ui .fn-portfolio .HtmlSort .mrgNone {
  margin: 2px 0 0;
  color: var(--fn-text-3);
  font-size: 12px;
}

.fn-ui .fn-portfolio .boxGreen,
.fn-ui .fn-portfolio .boxRed {
  float: none !important;
  display: inline;
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--fn-market-up);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  /* Inline now, so the legacy .minusNumb direction:ltr does nothing alone:
     isolate the figure like .fn-num or a negative reads "0.48%-" in RTL. */
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-family: var(--fn-font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.fn-ui .fn-portfolio .boxRed {
  background: none;
  color: var(--fn-market-down);
}

.fn-ui .fn-portfolio .form-control {
  background: var(--fn-bg-surface);
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-compact);
  color: var(--fn-text-1);
  box-shadow: none;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) thead tr th:nth-child(2),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) thead tr th:nth-child(3),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr td:nth-child(2),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr td:nth-child(3),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr.odd td:nth-child(2),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr.even td:nth-child(2),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr.odd td:nth-child(3),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody tr.even td:nth-child(3),
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tfoot tr th:nth-child(2) {
  text-align: start !important;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody td a.text-warning {
  color: var(--fn-brand);
  font-weight: 700;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) tbody td a.text-primary {
  color: var(--fn-text-1);
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) a.text-danger {
  color: var(--fn-text-3) !important;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) a.text-danger:hover,
.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table) a.text-danger:focus {
  color: var(--fn-market-down) !important;
}

.fn-ui .fn-portfolio table.dataTable:not(.fn-list-table).no-footer {
  border-bottom: 0;
}

/* FixedColumns clones the edge columns and, in RTL, the clone no longer
   lines up with the header. The real table already scrolls. */
.fn-ui .fn-portfolio .DTFC_LeftWrapper,
.fn-ui .fn-portfolio .DTFC_RightWrapper,
.fn-ui .fn-portfolio table.DTFC_Cloned {
  display: none !important;
}

.fn-ui .fn-portfolio table.fn-list-table input[type="checkbox"],
.fn-ui .fn-portfolio table.fn-list-table input[type="checkbox"]:checked,
.fn-ui .fn-portfolio table.fn-list-table input[type="checkbox"]:focus,
.fn-ui .fn-portfolio table.fn-list-table input[type="checkbox"]:focus-visible {
  appearance: auto;
  -webkit-appearance: auto;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  accent-color: var(--fn-brand);
  background: none;
  background-image: none;
  box-shadow: none;
  cursor: pointer;
}

.fn-ui .fn-portfolio input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid var(--fn-border-strong, var(--fn-gray-300));
  border-radius: 5px;
  background-color: var(--fn-bg-surface);
  background-image: none;
  vertical-align: middle;
  cursor: pointer;
}

.fn-ui .fn-portfolio input[type="checkbox"]:checked {
  border-color: var(--fn-accent);
  background-color: var(--fn-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.1l2.5 2.5 5.1-5.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.fn-ui .fn-portfolio input[type="checkbox"]:focus,
.fn-ui .fn-portfolio input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--fn-brand-soft);
}

.fn-ui .fn-port-empty {
  display: grid;
  gap: 4px;
  padding: 18px 10px;
  text-align: center;
}

.fn-ui .fn-port-empty strong {
  color: var(--fn-text-1);
  font-size: 14px;
}

.fn-ui .fn-port-empty span {
  color: var(--fn-text-3);
  font-size: 12px;
  font-weight: var(--fn-fw-emphasis);
}

/* ---- Header account chip ------------------------------------------------- */

.fn-ui .fn-account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-pill);
  background: var(--fn-bg-surface);
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* תיק אישי — one of the controls Udi named. The green does the whole
   hover: ink, border and a faint wash, all from the interaction tokens. */
.fn-ui .fn-account-chip:hover,
.fn-ui .fn-account-chip:focus,
.fn-ui .fn-account-chip:active {
  color: var(--fn-on-accent);
  border-color: var(--fn-accent);
  background: var(--fn-accent);
  text-decoration: none;
  outline: none;
}

/* The guest variant is a filled call to action, so here the green is the
   SURFACE rather than the ink and the label sits on top of it. */
.fn-ui .fn-account-chip--guest {
  background: var(--fn-interactive);
  border-color: transparent;
  color: var(--fn-on-interactive);
}

.fn-ui .fn-account-chip--guest:hover,
.fn-ui .fn-account-chip--guest:focus {
  background: var(--fn-interactive-press);
  color: var(--fn-on-interactive);
  border-color: transparent;
}

.fn-ui .fn-account-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fn-market-up, #137333);
}

/* Drawer account row. The chip is also `li > a`, so the drawer link rules
   (padding, full-bleed border, hover) would stretch it past the panel and
   clip the pill. These selectors win that fight and keep the control inset. */
.fn-ui #navbar.fn-drawer .navbar-nav > li.fn-drawer-account {
  float: none;
  width: auto;
  margin: 0;
  padding: 12px 16px 8px !important;
  border: 0 !important;
  background: transparent !important;
}

.fn-ui #navbar.fn-drawer .navbar-nav > li.fn-drawer-account > a.fn-account-chip,
.fn-ui #navbar.fn-drawer .fn-drawer-account .fn-account-chip {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
  min-height: 48px;
  padding: 0 14px !important;
  border: 1px solid var(--fn-border-strong, var(--fn-border)) !important;
  border-radius: var(--fn-radius-card) !important;
  background: var(--fn-bg-surface) !important;
  background-image: none !important;
  box-shadow: var(--fn-shadow-sm);
  color: var(--fn-text-1) !important;
  font-family: var(--fn-font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}

.fn-ui .fn-account-chip__ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-color: currentColor;
  -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='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.1' fill='%23000' stroke='none'/%3E%3Cpath d='M5.2 19.4c.9-3.3 3.4-4.9 6.8-4.9s5.9 1.6 6.8 4.9'/%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='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.1' fill='%23000' stroke='none'/%3E%3Cpath d='M5.2 19.4c.9-3.3 3.4-4.9 6.8-4.9s5.9 1.6 6.8 4.9'/%3E%3C/svg%3E");
  -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 #navbar.fn-drawer .navbar-nav > li.fn-drawer-account > a.fn-account-chip--guest,
.fn-ui #navbar.fn-drawer .fn-drawer-account .fn-account-chip--guest {
  background: var(--fn-brand-soft) !important;
  border-color: transparent !important;
  color: var(--fn-text-1) !important;
}

.fn-ui #navbar.fn-drawer .navbar-nav > li.fn-drawer-account > a.fn-account-chip:hover,
.fn-ui #navbar.fn-drawer .navbar-nav > li.fn-drawer-account > a.fn-account-chip:focus,
.fn-ui #navbar.fn-drawer .navbar-nav > li.fn-drawer-account > a.fn-account-chip:active,
.fn-ui #navbar.fn-drawer .fn-drawer-account .fn-account-chip:hover,
.fn-ui #navbar.fn-drawer .fn-drawer-account .fn-account-chip:focus {
  background: var(--fn-accent) !important;
  border-color: var(--fn-accent) !important;
  color: var(--fn-on-accent) !important;
  padding: 0 14px !important;
  text-decoration: none !important;
  outline: none;
}

.fn-ui .fn-drawer .fn-account-actions {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.fn-ui .fn-drawer .fn-account-actions a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--fn-bubble-radius-sm);
  color: var(--fn-text-1);
  font-weight: 600;
  text-decoration: none;
  background: var(--fn-bg-sunken);
}

.fn-ui .fn-drawer .fn-account-actions a:hover,
.fn-ui .fn-drawer .fn-account-actions a:focus {
  color: var(--fn-brand);
  background: var(--fn-brand-soft);
  outline: none;
}

/* Desktop toolsbar account (optional companion) */
.fn-ui .fn-toolsbar .fn-account-chip {
  margin-inline-start: 8px;
}

@media (min-width: 768px) {
  .fn-ui .fn-auth {
    width: min(460px, 100%);
    padding-top: 24px;
  }

  .fn-ui .fn-auth__card {
    padding: 28px 26px 24px;
  }

  .fn-ui .fn-port-head {
    margin-bottom: 0;
  }

  /* יומית / חודשית / שנה is a phone shortcut. On a wide screen the grid
     already shows every column, so the switcher is noise. */
  .fn-ui .fn-portfolio ul.topFundTabs.nav-tabs {
    display: none !important;
  }

  /* Account chip stays out of the top bar — drawer / rail only. */
  .fn-ui .fn-bar-end .fn-account-chip {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .fn-ui .fn-account,
  .fn-ui .fn-portfolio {
    padding-inline: 0;
  }

  .fn-ui .fn-portfolio .portfolioTab > li > a {
    padding-inline: 10px;
    font-size: 13px;
  }
}

:root[data-fn-theme="dark"] .fn-ui .fn-auth__card,
:root[data-fn-theme="dark"] .fn-ui .fn-portfolio .panel.panel-default {
  background: var(--fn-bg-raised);
}

:root[data-fn-theme="dark"] .fn-ui .fn-account-chip {
  background: var(--fn-bg-raised);
}

/* ---- Contact (callUs) — same card as auth, a little wider for the message ---- */

.fn-ui .fn-auth.fn-contact {
  width: min(480px, 100%);
}

.fn-ui .fn-auth.fn-contact textarea.form-control {
  min-height: 128px;
  height: auto;
  padding: 12px 16px;
  border-radius: var(--fn-radius-md);
  line-height: 1.5;
  resize: vertical;
}

.fn-ui .fn-auth.fn-contact #Phone,
.fn-ui .fn-auth.fn-contact input[id$="_Phone"] {
  direction: ltr;
  text-align: right;
}

.fn-ui .fn-auth.fn-contact .help-block {
  margin: 4px 2px 0;
  color: var(--fn-down-500, #C62828);
  font-size: 12px;
  font-weight: 600;
}

.fn-ui .fn-contact__meta {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--fn-border);
  text-align: center;
}

.fn-ui .fn-contact__meta p {
  margin: 0 0 6px;
  color: var(--fn-text-2);
  font-size: 13px;
  line-height: 1.5;
}

.fn-ui .fn-contact__meta a {
  color: var(--fn-brand);
  font-weight: 700;
  text-decoration: none;
}

.fn-ui .fn-contact__meta a:hover,
.fn-ui .fn-contact__meta a:focus {
  text-decoration: underline;
}

.fn-ui .fn-contact__addr,
.fn-ui .fn-contact__addr a {
  color: var(--fn-text-3);
  font-size: 12px;
  font-weight: 600;
}
