.pb-treemap-container {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 30px auto;      /* centreren */
  z-index: 1;             /* boven andere elementen */
}

.pb-fund-chart__custom {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.pb-fund-chart__candle-test {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #e2e8f0;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.pb-fund-chart__candle-test:hover,
.pb-fund-chart__candle-test:focus {
  background: #c7d2fe;
  color: #0f172a;
}

.pb-fund-chart__candle-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.pb-fund-chart__candle-modal.is-visible {
  display: flex;
}

.pb-fund-chart__candle-dialog {
  background: #fff;
  border-radius: 18px;
  width: min(920px, 95vw);
  max-height: 90vh;
  padding: 20px 24px;
  box-shadow: 0 25px 55px -18px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.pb-fund-chart__candle-dialog h5 {
  margin: 0;
  color: #0f172a;
}

.pb-fund-chart__candle-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.pb-fund-chart__candle-chart {
  width: 100%;
  height: 500px;
}
/* Forceer absolute positionering van alle treemap-blokken */
div[id^="treemap-"] > div {
  position: absolute !important;
  box-sizing: border-box;
}

.pb-treemap-container > div {
  width: 100% !important;
  height: 100% !important;
}

.pb-fund-page {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.pb-fund-page .pb-fund-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.pb-fund-page .pb-fund-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}

.pb-fund-page .pb-fund-back:hover,
.pb-fund-page .pb-fund-back:focus {
  text-decoration: underline;
}

.pb-fund-page .pb-fund-print {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pb-fund-page .pb-fund-print:hover,
.pb-fund-page .pb-fund-print:focus {
  background: #163fa2;
  border-color: #163fa2;
}

.pb-fund-page .pb-fund-list {
  display: grid;
  gap: 32px;
}

.pb-fund-page .pb-fund-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.pb-fund-page .pb-fund-card header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #0f172a;
}

.pb-fund-page .pb-fund-meta {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.pb-fund-page .pb-fund-meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  font-size: 0.95rem;
  color: #1f2937;
}

.pb-fund-page .pb-fund-meta-label {
  font-weight: 600;
  color: #1e293b;
}

.pb-fund-page .pb-fund-meta-value {
  color: #475569;
}

.pb-fund-page .pb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.pb-fund-page .pb-table thead {
  background: #f8fafc;
  color: #0f172a;
}

.pb-fund-page .pb-table th,
.pb-fund-page .pb-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e5ebf3;
  font-size: 0.95rem;
}

.pb-fund-page .pb-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.pb-fund-page .pb-table tbody tr:last-child td {
  border-bottom: none;
}

.pb-market-news {
  max-width: 1100px;
  margin: 28px auto 48px;
  padding: 0 16px;
}

.pb-market-news__header {
  margin-bottom: 22px;
}

.pb-market-news__title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #16213a;
}

.pb-market-news__intro {
  margin: 0;
  max-width: 760px;
  color: #64748b;
  font-size: 1rem;
}

.pb-market-news__empty {
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  border: 1px solid #dbe6f3;
  color: #475569;
}

.pb-market-news__list {
  display: grid;
  gap: 18px;
}

.pb-market-news__card {
  padding: 22px 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.pb-market-news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 0.92rem;
}

.pb-market-news__source {
  font-weight: 600;
  color: #334155;
}

.pb-market-news__sentiment {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pb-market-news__sentiment.is-positive {
  background: #e9f8ef;
  color: #166534;
}

.pb-market-news__sentiment.is-negative {
  background: #fdecec;
  color: #b91c1c;
}

.pb-market-news__sentiment.is-neutral {
  background: #eef2f7;
  color: #475569;
}

.pb-market-news__headline {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pb-market-news__headline a {
  color: #16213a;
  text-decoration: none;
}

.pb-market-news__headline a:hover,
.pb-market-news__headline a:focus {
  color: #255ec9;
}

.pb-market-news__excerpt {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.pb-market-news__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pb-market-news__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4fb;
  color: #355070;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .pb-market-news {
    margin-top: 22px;
    padding: 0 12px;
  }

  .pb-market-news__card {
    padding: 18px;
    border-radius: 16px;
  }
}

.pb-fund-page .pb-table--fund thead tr {
  background: #1976d2;
  color: #ffffff;
}

.pb-fund-page .pb-table--fund tbody tr:nth-child(even) {
  background: #f6f8fc;
}

.pb-fund-page .pb-table--fund td,
.pb-fund-page .pb-table--fund th {
  font-size: 14px;
}

/* FIX: Force table/chart grid layout for the portfolio summary shortcode. */
.pb-portfolio-etf-summary .pb-fund-table-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 24px;
  align-items: start;
}

.pb-portfolio-etf-summary .pb-fund-chart-col {
  max-width: 320px;
  width: 100%;
  align-self: flex-start;
  margin-top: 52px;
}

.pb-portfolio-etf-summary .pb-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
  flex-wrap: wrap;
}

.pb-portfolio-etf-summary .pb-table-toolbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-portfolio-etf-summary .pb-table-toolbar__label {
  font-weight: 600;
  color: #1f2937;
}

.pb-portfolio-etf-summary .pb-top-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.95rem;
}

.pb-portfolio-etf-summary .pb-table-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.pb-portfolio-etf-summary .pb-table-toolbar--no-select {
  justify-content: flex-end;
}

.pb-portfolio-etf-summary .pb-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  color: #1d4ed8;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pb-portfolio-etf-summary .pb-export-btn:hover,
.pb-portfolio-etf-summary .pb-export-btn:focus {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.pb-portfolio-etf-summary .pb-export-btn:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.pb-portfolio-etf-summary .pb-export-btn svg {
  width: 18px;
  height: 18px;
}

.pb-portfolio-etf-summary .pb-export-btn .pb-export-icon {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.pb-portfolio-etf-summary .pb-export-btn .pb-export-icon svg,
.pb-portfolio-etf-summary .pb-export-btn .pb-export-icon img {
  width: 18px;
  height: 18px;
}

.pb-portfolio-etf-summary .pb-row-action {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pb-portfolio-etf-summary .pb-row-action:hover,
.pb-portfolio-etf-summary .pb-row-action:focus {
  background: #f1f5f9;
  color: #0f172a;
}

.pb-portfolio-etf-summary .pb-row-action:focus {
  outline: 2px solid #1d4ed8;
  outline-offset: -2px;
}

.pb-portfolio-etf-summary .pb-row-action.is-loading {
  opacity: 0.6;
}

.pb-portfolio-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 24px;
}

.pb-portfolio-modal[hidden] {
  display: none;
}

.pb-portfolio-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.pb-portfolio-modal__dialog {
  position: relative;
  max-width: 1100px;
  width: min(96vw, 1100px);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 26px 30px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pb-portfolio-modal__title {
  margin: 0 0 18px;
  font-size: 1.3rem;
  color: #0f172a;
}

.pb-portfolio-modal__content {
  flex: 1 1 auto;
  overflow: auto;
  padding-bottom: 8px;
}

.pb-portfolio-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.pb-portfolio-modal__close:hover,
.pb-portfolio-modal__close:focus {
  color: #0f172a;
  background: rgba(148, 163, 184, 0.18);
}

.pb-portfolio-modal__content table {
  min-width: 100%;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: none;
}

.pb-portfolio-modal__content .pb-table {
  box-shadow: none;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
}

.pb-portfolio-modal__content .pb-table thead th {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.pb-portfolio-modal__content .pb-table tbody td,
.pb-portfolio-modal__content .pb-table tbody th {
  white-space: nowrap;
  font-size: 0.95rem;
  padding: 12px 16px;
}

.pb-portfolio-modal__content .pb-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.pb-portfolio-modal__content .pb-table tfoot th,
.pb-portfolio-modal__content .pb-table tfoot td {
  font-weight: 600;
  white-space: nowrap;
}

.pb-portfolio-modal__content .pb-table tbody td:nth-child(2) {
  min-width: 280px;
}

.pb-portfolio-modal__content {
  overflow-x: auto;
}

.pb-portfolio-modal__note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #475569;
}

.pb-portfolio-modal__loading,
.pb-portfolio-modal__error {
  text-align: center;
  font-size: 1rem;
  padding: 24px 0;
}

.pb-portfolio-modal__loading {
  color: #1f2937;
}

.pb-portfolio-modal__error {
  color: #b91c1c;
}

@media (max-width: 720px) {
  .pb-portfolio-modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 22px 20px 26px;
  }

  .pb-portfolio-modal__title {
    font-size: 1.15rem;
  }

  .pb-portfolio-modal__close {
    top: 10px;
    right: 10px;
  }
}

.pb-fund-page .pb-table--keyvalues th {
  width: 40%;
  font-weight: 600;
  background: #f8fafc;
  color: #1f2937;
  text-align: left !important;
  padding-right: 18px;
}

.pb-fund-page .pb-table--keyvalues td {
  color: #334155;
  text-align: left !important;
  width: 60%;
}

.pb-fund-page .pb-table--weights td:last-child,
.pb-fund-page .pb-table--weights th:last-child,
.pb-fund-page .pb-table--holdings td:last-child,
.pb-fund-page .pb-table--holdings th:last-child,
.pb-fund-page .pb-table--positions td:nth-child(2),
.pb-fund-page .pb-table--positions td:nth-child(3) {
  text-align: right;
}

.pb-fund-page .pb-table--holdings td:first-child {
  text-align: left;
}

.pb-fund-page .pb-table--holdings .pb-holding-name-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pb-fund-page .pb-table--holdings .pb-holding-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.pb-fund-page .pb-fund-table-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  margin-top: 12px;
}

.pb-fund-page .pb-fund-table-col {
  min-width: 0;
}

.pb-fund-page .pb-fund-chart-col {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pb-fund-page .pb-fund-table-col .pb-table {
  margin-top: 0;
}

.pb-fund-page .pb-fund-chart {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pb-fund-page .pb-fund-section {
  margin-top: 24px;
  margin-bottom: 32px;
}

.pb-fund-page .pb-fund-chart-canvas {
  display: block;
  width: 100% !important;
  max-width: 220px;
  aspect-ratio: 1 / 1;
}

.pb-fund-page .pb-fund-chart-legend {
  font-size: 0.85rem;
  color: #475569;
  width: 100%;
}

.pb-fund-page .pb-fund-chart-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pb-fund-page .pb-fund-chart-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  line-height: 1.4;
  word-break: break-word;
}

.pb-fund-page .pb-fund-chart-legend span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.pb-fund-page .pb-fund-description {
  margin-top: 20px;
  color: #334155;
  line-height: 1.6;
}

.pb-fund-page .pb-fund-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #64748b;
}

.pb-fund-page .pb-fund-card--error {
  border-color: #fecaca;
  background: #fff1f2;
}

.pb-fund-page .pb-fund-card--error header h3 {
  color: #b91c1c;
}

@media (max-width: 1024px) {
  .pb-fund-page {
    padding: 0 12px;
  }
  .pb-fund-page .pb-fund-table-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  .pb-fund-page .pb-fund-chart-col {
    max-width: 320px;
    margin: 0 auto;
  }
  .pb-portfolio-etf-summary .pb-fund-table-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  .pb-portfolio-etf-summary .pb-fund-chart-col {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .pb-fund-page {
    margin-bottom: 32px;
  }
  .pb-fund-page .pb-fund-list {
    gap: 24px;
  }
  .pb-fund-page .pb-fund-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
.pb-fund-page .pb-fund-chart {
  max-width: 240px;
}
}

.pb-site-header {
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 900;
}

.pb-site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pb-site-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.pb-site-header__branding {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pb-primary-menu {
  display: block;
}

.pb-primary-menu__rail {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.pb-primary-menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 10px;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.pb-primary-menu__link:hover,
.pb-primary-menu__link:focus-visible {
  color: #2563eb;
}

.pb-primary-menu__link.is-active {
  color: #0f172a;
}

.pb-primary-menu__label {
  white-space: nowrap;
}

.pb-primary-menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(0);
  transform-origin: center;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease;
}

.pb-primary-menu__link:hover::after,
.pb-primary-menu__link:focus-visible::after {
  transform: scaleX(1);
  background: rgba(37, 99, 235, 0.35);
}

.pb-primary-menu__link.is-active::after {
  transform: scaleX(1);
  background: #2563eb;
}

.pb-user-menu {
  position: relative;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pb-user-menu__toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: transparent;
}

.pb-user-menu__toggle img {
  width: 34px;
  height: 34px;
  display: block;
  filter: none;
}

.pb-user-menu__toggle:hover,
.pb-user-menu__toggle:focus {
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
}

.pb-user-menu__toggle:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.pb-user-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  display: none;
}

.pb-user-menu__panel.is-visible {
  display: block;
}

.pb-user-menu__section {
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.pb-user-menu__title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.pb-user-menu__meta {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #475569;
}

.pb-user-menu__form {
  margin: 0;
}

.pb-user-menu__label {
  display: block;
  margin: 8px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.pb-user-menu__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #0f172a;
}

.pb-user-menu__checkbox input {
  margin: 0;
}

.pb-user-menu__select {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 28px 2px 10px;
}

.pb-user-menu__select select {
  border: none;
  background: transparent;
  font: inherit;
  width: 100%;
  cursor: pointer;
  appearance: none;
}

.pb-user-menu__select select:focus {
  outline: none;
}

.pb-user-menu__chevron {
  position: absolute;
  right: 10px;
  color: #94a3b8;
  font-size: 0.8rem;
}

.pb-user-menu__textarea {
  width: 100%;
  min-height: 78px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.pb-user-menu__textarea:focus {
  outline: 2px solid #bfdbfe;
  border-color: #60a5fa;
}

.pb-user-menu__note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.pb-user-menu__note--status {
  margin-bottom: 8px;
}

.pb-user-menu__note--status.is-error {
  color: #b91c1c;
}

.pb-user-menu__link {
  display: block;
  padding: 6px 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
}

.pb-user-menu__link--button {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  padding: 6px 0;
  color: #0f172a;
}

.pb-user-menu__link--button.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.pb-user-menu__link:hover {
  color: #2563eb;
}

.pb-recalc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.pb-recalc-overlay__inner {
  background: #fff;
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.4);
}

.pb-recalc-overlay__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  margin: 0 auto 12px;
  animation: pb-spin 0.9s linear infinite;
}

@keyframes pb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pb-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  background: #e2e8f0;
  color: #1e293b;
}

.pb-message--error {
  background: #fee2e2;
  color: #991b1b;
}

.pb-message--info {
  background: #e0f2fe;
  color: #075985;
}

.pb-button-primary {
  background: var(--pb-btn-primary-bg, #0B1F3A);
  color: var(--pb-btn-primary-text, #fff);
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.pb-button-primary:hover {
  opacity: 0.88;
}

.pb-button-primary.is-busy {
  opacity: 0.7;
}

.pb-button-secondary {
  background: transparent;
  color: var(--pb-btn-ghost-border, #C9A84C);
  padding: 8px 16px;
  border: 1.5px solid var(--pb-btn-ghost-border, #C9A84C);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pb-button-secondary:hover {
  background: rgba(201, 168, 76, 0.08);
}

.pb-button-secondary.is-busy {
  opacity: 0.7;
}

@media (max-width: 960px) {
  .pb-site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .pb-site-header__branding {
    width: 100%;
  }

  .pb-primary-menu__rail {
    display: flex;
    width: 100%;
    gap: 20px;
  }

  .pb-primary-menu__link {
    justify-content: flex-start;
  }

  .pb-user-menu {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .pb-site-title {
    font-size: 1.45rem;
  }

  .pb-primary-menu__rail {
    gap: 18px;
    flex-wrap: wrap;
  }

  .pb-primary-menu__link {
    padding: 4px 0 8px;
    font-size: 0.92rem;
  }
}

.pb-portfolio-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pb-portfolio-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

#pb-port-table {
  width: 100%;
  table-layout: auto;
}

#pb-port-table .pb-port-name {
  width: auto;
}

#pb-port-table .pb-port-value {
  width: 1%;
  white-space: nowrap;
}

#pb-port-table .pb-port-action {
  width: 32px;
  white-space: nowrap;
}

#pb-port-table .pb-port-action span {
  display: inline-flex;
}

.pb-table--clickable tbody tr[data-url]:hover {
  background: #e0f2fe;
}

.pb-table--clickable tbody tr.is-selected {
  background: #bbdefb;
}

.pb-table .is-center {
  text-align: center;
}

.pb-table thead th {
  white-space: nowrap;
}

.pb-table .pb-trash,
.pb-table .pb-info,
.pb-table .pb-pencil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.pb-table .pb-trash svg,
.pb-table .pb-info svg,
.pb-table .pb-pencil svg {
  width: 18px;
  height: 18px;
}

.pb-table .pb-trash[data-can-delete="1"] {
  color: #e53935;
  cursor: pointer;
}

.pb-table .pb-pencil {
  color: #1565c0;
  cursor: pointer;
}

.pb-table .pb-pencil:hover {
  color: #0d47a1;
}

.pb-table .pb-empty-state td {
  text-align: center;
  color: #64748b;
  font-style: italic;
}

.pb-table .pb-trash[data-can-delete="1"]:hover {
  color: #b71c1c;
}

.pb-table .pb-trash[data-can-delete="0"] {
  color: #bdbdbd;
  cursor: not-allowed;
}

.pb-table .pb-trash.is-busy,
.pb-table .pb-pencil.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.pb-table .pb-info svg {
  color: #1565c0;
  cursor: pointer;
}

.pb-table .pb-info svg:hover {
  color: #0d47a1;
}

.pb-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 8px;
  font: inherit;
}

.pb-input.is-readonly,
.pb-input[readonly],
.pb-input:disabled {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}

.pb-input-group {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.pb-lookup-results {
  display: none;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.pb-lookup-results.is-visible {
  display: block;
}

.pb-lookup-results__hint,
.pb-lookup-results__empty {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #475569;
}

.pb-lookup-result {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 6px;
}

.pb-lookup-result:last-child {
  margin-bottom: 0;
}

.pb-lookup-result:hover,
.pb-lookup-result:focus {
  border-color: #93c5fd;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
  outline: none;
  background: #1e73be;
  color: #fff;
}

.pb-lookup-result:hover .pb-lookup-result__symbol,
.pb-lookup-result:focus .pb-lookup-result__symbol,
.pb-lookup-result:hover .pb-lookup-result__name,
.pb-lookup-result:focus .pb-lookup-result__name,
.pb-lookup-result:hover .pb-lookup-result__sub,
.pb-lookup-result:focus .pb-lookup-result__sub,
.pb-lookup-result:hover .pb-lookup-result__meta,
.pb-lookup-result:focus .pb-lookup-result__meta {
  color: #fff;
}

.pb-lookup-result__symbol {
  font-weight: 600;
  color: #0f172a;
}

.pb-lookup-result__meta {
  font-size: 0.85rem;
  color: #475569;
}

.pb-lookup-result__name {
  font-size: 0.9rem;
  color: #0f172a;
}

.pb-lookup-result__sub {
  font-size: 0.8rem;
  color: #64748b;
}

.pb-modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pb-table .is-num {
  text-align: right;
}

.pb-table__total {
  font-weight: bold;
  background: #e3f2fd;
}

.pb-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.pb-modal__dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(30, 41, 59, 0.35);
  max-width: 800px;
  width: 95%;
  max-height: 90%;
  overflow: auto;
  padding: 20px 24px;
  position: relative;
}

.pb-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #cbd5f5;
  color: #1e3a8a;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.pb-modal__title {
  margin-top: 0;
  color: #1d4ed8;
}

.pb-modal__content .pb-table {
  width: 100%;
  margin-top: 12px;
}

.pb-link-back {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.pb-link-back:hover {
  text-decoration: underline;
}

.pb-text-positive {
  color: #166534;
}

.pb-text-negative {
  color: #b91c1c;
}


.pb-position-overview-table {
  width: 100%;
  table-layout: fixed;
}

.pb-position-overview-table__col-isin { width: 14%; }
.pb-position-overview-table__col-name { width: 31%; }
.pb-position-overview-table__col-trend { width: 11%; }
.pb-position-overview-table__col-ytd { width: 8%; }
.pb-position-overview-table__col-quantity { width: 9%; }
.pb-position-overview-table__col-price { width: 8%; }
.pb-position-overview-table__col-value { width: 11%; }
.pb-position-overview-table__col-weight { width: 8%; }

.pb-position-overview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.pb-position-overview-table__isin {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pb-position-overview-table__name {
  overflow-wrap: anywhere;
  hyphens: auto;
  font-weight: 500;
  line-height: 1.3;
}

.pb-position-overview-table td.is-center img {
  display: block;
  margin: 0 auto;
  opacity: 0.95;
}

.pb-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--pb-font-body);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  text-align: inherit;
}

.pb-sort-indicator::before {
  content: "↕";
  font-size: 11px;
  opacity: 0.45;
}

.pb-position-overview-table th.is-sorted-asc .pb-sort-indicator::before,
#pb-detail-table th.is-sorted-asc .pb-sort-indicator::before {
  content: "↑";
  opacity: 1;
}

.pb-position-overview-table th.is-sorted-desc .pb-sort-indicator::before,
#pb-detail-table th.is-sorted-desc .pb-sort-indicator::before {
  content: "↓";
  opacity: 1;
}

.pb-position-overview-table th.is-sorted-asc,
.pb-position-overview-table th.is-sorted-desc,
#pb-detail-table th.is-sorted-asc,
#pb-detail-table th.is-sorted-desc {
  color: var(--pb-text-1);
}

@media (max-width: 600px) {
  .pb-site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.page .entry-header,
body.page .entry-title {
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.inside-header,
.site-branding,
.main-navigation {
  display: none !important;
}

.pb-shell__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

@media print {
  .pb-fund-page {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .pb-fund-page .pb-fund-nav {
    display: none !important;
  }
  .pb-fund-page .pb-fund-card,
  .pb-fund-page .pb-fund-section,
  .pb-fund-page .pb-fund-table-wrapper,
  .pb-fund-page .pb-fund-table-col,
  .pb-fund-page .pb-fund-chart-col {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .pb-fund-page .pb-fund-card {
    box-shadow: none;
    border: 1px solid #cbd5e1;
    margin-bottom: 24px;
  }
  .pb-fund-page .pb-fund-table-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }
  .pb-fund-page .pb-fund-chart-col {
    max-width: 220px;
  }
  .pb-fund-page .pb-fund-chart-canvas {
    max-width: 180px;
  }
}


.pb-fund-chart {
  margin: 32px 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.pb-fund-chart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pb-fund-chart__header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.pb-fund-chart__mode {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 24px;
  padding: 4px;
  gap: 4px;
}

.pb-fund-chart__mode button {
  border: none;
  background: transparent;
  color: #1e293b;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pb-fund-chart__mode button.is-active {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.25);
}

.pb-fund-chart__controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
  width: 100%;
}

.pb-fund-chart__ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.pb-fund-chart__ranges button {
  border: 1px solid #d6dee9;
  background: #f8fafc;
  color: #0f172a;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 52px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pb-fund-chart__ranges button:hover {
  background: #e2e8f0;
}

.pb-fund-chart__ranges button.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
}

.pb-fund-chart__custom {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.pb-fund-chart__date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 41px;
  background: #ffffff;
  border: 1px solid #d5dde6;
  border-radius: 6px;
  font-size: 0.92rem;
  color: #1f2937;
  box-shadow: inset 0 1px 1px rgba(148, 163, 184, 0.12);
  min-width: 250px;
}

.pb-fund-chart__date-input {
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: #0f172a;
  padding: 0;
  min-width: 110px;
}

.pb-fund-chart__date-input:focus {
  outline: none;
  color: #1d4ed8;
}

.pb-fund-chart__date-sep {
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pb-fund-chart__date-caret::before {
  content: "▾";
  font-size: 14px;
  color: #6b7280;
  line-height: 1;
}

.pb-fund-chart__custom .pb-fund-chart__apply {
  margin-left: 8px;
}

.pb-fund-chart__apply {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pb-fund-chart__apply:hover,
.pb-fund-chart__apply:focus {
  background: #1d4ed8;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.pb-fund-chart__candle-test {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #e2e8f0;
  color: #1f2937;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.pb-fund-chart__candle-test:hover,
.pb-fund-chart__candle-test:focus {
  background: #c7d2fe;
  color: #0f172a;
}

.pb-fund-chart__canvas {
  position: relative;
  width: 100%;
  min-height: 320px;
}

.pb-fund-chart__mini {
  position: relative;
  width: 100%;
  height: 41px;
  min-height: 41px;
  margin: 24px 0 16px;
}

.pb-fund-chart__mini canvas {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
}

.pb-fund-chart__brush {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.pb-fund-chart__selection {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: 4px;
  pointer-events: auto;
  cursor: grab;
}

.pb-fund-chart__handle {
  position: absolute;
  top: 0;
  height: 100%;
  width: 8px;
  background: rgba(29, 78, 216, 0.45);
  border-radius: 4px;
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pb-fund-chart__handle::after {
  content: '';
  width: 2px;
  height: 22px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.pb-fund-chart__handle:hover,
.pb-fund-chart__handle:focus {
  background: rgba(29, 78, 216, 0.65);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.18);
}

.pb-fund-chart__error {
  display: none;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #b91c1c;
}

.pb-fund-chart__error.is-visible {
  display: block;
}

.pb-fund-chart__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #1f2937;
  margin-top: 8px;
}

.pb-fund-chart__technical {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  width: 100%;
}

.pb-fund-chart__technical-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pb-fund-chart__technical-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.pb-fund-chart__technical-selector select {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 8px 18px;
  background-color: #ffffff;
  font-size: 0.85rem;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pb-fund-chart__technical-selector select:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.pb-fund-chart__technical-chart {
  position: relative;
  height: 320px;
  min-height: 320px;
}

.pb-fund-chart__technical-chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.pb-fund-chart__technical-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
}

.pb-fund-chart__technical-loading.is-visible {
  display: flex;
}

.pb-fund-chart__technical-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #475569;
}

.pb-fund-chart__technical-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  color: #991b1b;
  font-size: 0.82rem;
}

.pb-fund-chart__technical-error.is-visible {
  display: block;
}

.pb-fund-chart__candle-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}

.pb-fund-chart__candle-modal.is-visible {
  display: flex;
}

.pb-fund-chart__candle-dialog {
  background: #fff;
  border-radius: 18px;
  width: min(920px, 95vw);
  max-height: 90vh;
  padding: 20px 24px;
  box-shadow: 0 25px 55px -18px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.pb-fund-chart__candle-dialog h5 {
  margin: 0;
  color: #0f172a;
}

.pb-fund-chart__candle-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.pb-fund-chart__candle-chart {
  width: 100%;
  height: 500px;
}

.pb-fund-chart.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .pb-fund-chart__controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pb-fund-chart__custom {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .pb-fund-chart__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .pb-fund-chart__custom {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .pb-fund-chart__ranges {
    width: 100%;
    justify-content: center;
  }
  .pb-fund-chart__footer {
    flex-direction: column;
    gap: 4px;
  }
  .pb-fund-chart__technical-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .pb-fund-chart__technical-selector select {
    width: 100%;
  }
  .pb-fund-chart__technical-meta {
    flex-direction: column;
    gap: 6px;
  }
}
.pb-mb-5 {
  margin-bottom: 10px;
}
.pb-cell-ellipsis {
  max-width: 320px;
  position: relative;
}

.pb-cell-ellipsis span {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pb-cell-ellipsis__tooltip {
  pointer-events: none;
  opacity: 0;
  position: fixed;
  left: -9999px;
  top: -9999px;
  background: #0f172a;
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: normal;
  max-width: 420px;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
  transition: opacity 0.15s ease;
}

.pb-cell-ellipsis:hover .pb-cell-ellipsis__tooltip {
  opacity: 1;
}
