body:is(
  [data-layout-page="ib-client-tracking-report"],
  [data-layout-page="ib-data-overview-report"],
  [data-layout-page="ib-performance-overview-report"],
  [data-layout-page="ib-data-performance-overview-report"]
) [hidden] {
  display: none !important;
}

.ib-report-app {
  background:
    linear-gradient(180deg, rgba(237, 244, 255, 0.78), rgba(248, 251, 255, 0) 380px),
    var(--page-bg, #f8fbff);
}

.ib-report-access-denied {
  min-height: 420px;
  margin: 24px;
  padding: 72px 24px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ib-report-access-denied > .bi {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-ink);
  font-size: 26px;
}

.ib-report-access-denied > span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ib-report-access-denied h1 {
  margin: 0;
  font-size: 24px;
}

.ib-report-access-denied p {
  max-width: 520px;
  margin: 12px auto 24px;
  color: #64748b;
  line-height: 1.7;
}

.ib-report-access-denied .ib-report-button {
  display: inline-flex;
  text-decoration: none;
}

.ib-report-page {
  min-height: calc(100vh - var(--app-chrome-height, 131px));
  padding: clamp(26px, 2.8vw, 38px) clamp(22px, 3vw, 54px) 84px;
}

.ib-report-shell {
  width: 100%;
  max-width: 1560px;
  min-width: 0;
  margin: 0 auto;
  color: var(--text, #0f172a);
}

.ib-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.ib-report-heading h1 {
  margin: 0;
  color: var(--text-strong, #0f172a);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}

.ib-report-heading p {
  margin: 6px 0 0;
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 760;
}

.ib-report-app .report-filter-card,
.ib-report-app .report-table-card,
.ib-report-filter-card,
.ib-report-table-card {
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-raised, #ffffff) 98%, transparent);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ib-report-app .report-filter-card,
.ib-report-filter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px 20px;
}

.ib-report-app .report-filter-grid,
.ib-report-filter-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 12px;
}

body[data-layout-page="ib-data-overview-report"] .ib-report-filter-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.ib-report-app .report-field,
.ib-report-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 0;
  color: #334155;
}

.ib-report-app .report-field > span:first-child,
.ib-report-field > span:first-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 8px;
  white-space: nowrap;
}

.ib-report-app .report-field input,
.ib-report-app .report-field select,
.ib-report-app .report-search-input,
.ib-report-app .report-date-range,
.ib-report-field input,
.ib-report-field select,
.ib-report-date-range,
.ib-report-combobox {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--border, #d8e1ef);
  border-radius: 9px;
  background: var(--input-bg, #fff);
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.ib-report-app .report-field input,
.ib-report-app .report-field select,
.ib-report-field input,
.ib-report-field select {
  padding: 0 12px;
}

.ib-report-app .report-search-input {
  gap: 9px;
  padding: 0 12px;
}

.ib-report-app .report-search-input input,
.ib-report-app .report-date-range input,
.ib-report-date-range input {
  font-size: 13px;
  font-weight: 750;
}

.ib-report-app .report-date-range,
.ib-report-date-range {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-right: 10px;
}

.ib-report-app .report-date-range input,
.ib-report-date-range input {
  height: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 10px;
}

.ib-report-date-range > i:not([class]) {
  width: 1px;
  height: 22px;
  flex: 0 0 auto;
  background: #cbd5e1;
}

.ib-report-date-range > :is(svg, .bi) {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #94a3b8;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ib-report-app .report-field input:focus,
.ib-report-app .report-field select:focus,
.ib-report-app .report-search-input:focus-within,
.ib-report-app .report-date-range:focus-within,
.ib-report-field input:focus,
.ib-report-field select:focus,
.ib-report-date-range:focus-within,
.ib-report-combobox:focus-within {
  border-color: #60a5fa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.ib-report-app .report-filter-actions,
.ib-report-filter-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.ib-report-app .report-filter-actions .report-button,
.ib-report-filter-actions .ib-report-button {
  min-width: 86px;
  height: 42px;
  border-radius: 8px;
  box-shadow: none;
}

.ib-report-app .report-filter-actions .report-button.primary,
.ib-report-filter-actions .ib-report-button.primary {
  padding: 0 18px;
}

.ib-report-app .report-table-card,
.ib-report-table-card {
  overflow: hidden;
}

.ib-report-app .report-table-toolbar,
.ib-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f7;
}

.ib-report-app .report-toolbar-left,
.ib-report-app .report-toolbar-right,
.ib-report-toolbar-left,
.ib-report-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ib-report-app .report-button,
.ib-report-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  border-color: #cbd5e1;
  color: #526176;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

.ib-report-app .report-button.primary,
.ib-report-button.primary {
  border-color: #0b74ff;
  background: #0b74ff;
  color: #fff;
}

.ib-report-app .report-icon-button,
.ib-report-button.icon-only {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-color: #cbd5e1;
  border-radius: 4px;
  color: #607086;
}

.ib-report-button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--blue-deep);
}

.ib-report-button.primary:hover {
  border-color: #075dcc;
  background: #075dcc;
  color: #fff;
}

.ib-report-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ib-report-button .bi {
  font-size: 14px;
  line-height: 1;
}

.ib-report-button.is-loading .bi {
  animation: ib-report-spin 0.72s linear infinite;
}

@keyframes ib-report-spin {
  to {
    transform: rotate(1turn);
  }
}

.ib-report-direct-toggle,
.ib-direct-toggle,
.report-direct-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

:is(.ib-report-direct-toggle, .ib-direct-toggle, .report-direct-toggle) input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0b74ff;
}

.ib-report-view-switch,
.ib-view-switch,
.report-view-switch,
.ib-report-segmented {
  min-height: 36px;
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #0b74ff;
  border-radius: 999px;
  background: #fff;
}

:is(
    .ib-report-view-switch,
    .ib-view-switch,
    .report-view-switch,
    .ib-report-segmented
  )
  button {
  min-width: 68px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #0b74ff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

:is(
    .ib-report-view-switch,
    .ib-view-switch,
    .report-view-switch,
    .ib-report-segmented
  )
  button
  + button {
  border-left: 1px solid #0b74ff;
}

:is(
    .ib-report-view-switch,
    .ib-view-switch,
    .report-view-switch,
    .ib-report-segmented
  )
  button:is(
    .active,
    .is-active,
    [aria-pressed="true"]
  ) {
  background: #0b74ff;
  color: #fff;
}

:is(
    .ib-report-view-switch,
    .ib-view-switch,
    .report-view-switch,
    .ib-report-segmented
  )
  svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ib-report-app .report-table-wrap,
.ib-report-table-wrap {
  width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

.ib-report-app .report-table-wrap::-webkit-scrollbar,
.ib-report-table-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.ib-report-app .report-table-wrap::-webkit-scrollbar-track,
.ib-report-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.ib-report-app .report-table-wrap::-webkit-scrollbar-thumb,
.ib-report-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #cbd5e1;
}

.ib-report-app .report-table,
.ib-report-table {
  width: 100%;
  min-width: var(--ib-table-min, 1860px);
  border-collapse: collapse;
  table-layout: auto;
  color: #334155;
}

body[data-layout-page="ib-client-tracking-report"] .report-table {
  min-width: var(--report-table-min, 1860px);
}

body[data-layout-page="ib-data-overview-report"] .report-table {
  min-width: var(--report-table-min, 2220px);
}

body[data-layout-page="ib-performance-overview-report"] .report-table {
  min-width: var(--report-table-min, 2520px);
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-shell {
  max-width: 1720px;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-toolbar {
  gap: 22px;
  padding: 18px 22px;
}

body[data-layout-page="ib-data-performance-overview-report"]
  .ib-report-toolbar-left,
body[data-layout-page="ib-data-performance-overview-report"]
  .ib-report-toolbar-right {
  gap: 14px;
}

body[data-layout-page="ib-data-performance-overview-report"]
  .ib-report-toolbar-left > .ib-report-button,
body[data-layout-page="ib-data-performance-overview-report"]
  .ib-report-toolbar-right > .ib-report-button,
body[data-layout-page="ib-data-performance-overview-report"]
  .ib-portal-tree-tools .ib-report-button {
  height: 40px;
  min-height: 40px;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-direct-toggle {
  min-height: 40px;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-portal-tree-tools {
  gap: 10px;
  padding-left: 8px;
}

:is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented {
  height: 40px;
  min-height: 40px;
  gap: 0;
  padding: 3px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

:is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button {
  min-width: 76px;
  height: 32px;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

:is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button
  + button {
  border-left: 0;
}

:is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button:is(.active, .is-active, [aria-pressed="true"]) {
  background: #fff;
  color: var(--blue-ink);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 5px 12px rgba(15, 23, 42, 0.07);
}

:is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button:not([aria-pressed="true"]):hover {
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
}

:is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 1px;
}

body[data-layout-page="ib-data-performance-overview-report"] .report-table,
body[data-layout-page="ib-data-performance-overview-report"] .ib-report-table {
  min-width: var(--ib-table-min, 2440px);
}

.ib-report-app .report-table th,
.ib-report-app .report-table td,
.ib-report-table th,
.ib-report-table td {
  border-bottom: 1px solid #edf1f7;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  height: 58px;
  padding: 0 13px;
  color: #526176;
  font-size: 13px;
  font-weight: 700;
}

.ib-report-app .report-table th,
.ib-report-table th {
  height: 46px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.ib-report-app .report-table tbody tr:hover td,
.ib-report-table tbody tr:hover td {
  background: #f8fbff;
}

.ib-report-app .report-table tbody tr:is(.is-selected, .is-expanded, .is-active) td,
.ib-report-table tbody tr:is(.is-selected, .is-expanded, .is-active) td,
.ib-report-tree-row:is(.is-selected, .is-expanded, .is-active) td {
  background: #f0f7ff;
}

.ib-report-app .report-table :is(th, td):first-child,
.ib-report-table :is(th, td):first-child {
  text-align: left;
}

body[data-layout-page="ib-client-tracking-report"] .report-table :is(th, td):first-child,
body[data-layout-page="ib-client-tracking-report"]
  .ib-report-table
  :is(th, td):first-child {
  min-width: 188px;
}

body[data-layout-page="ib-data-overview-report"] .report-table :is(th, td):first-child,
body[data-layout-page="ib-data-overview-report"]
  .ib-report-table
  :is(th, td):first-child {
  min-width: 150px;
}

body[data-layout-page="ib-data-overview-report"] .report-table :is(th, td):nth-child(2),
body[data-layout-page="ib-data-overview-report"]
  .ib-report-table
  :is(th, td):nth-child(2) {
  min-width: 190px;
  text-align: left;
}

body[data-layout-page="ib-performance-overview-report"]
  .report-table
  :is(th, td):first-child,
body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  :is(th, td):first-child {
  min-width: 205px;
}

.ib-report-agent,
.ib-agent-cell,
.report-agent-cell,
.ib-report-agent-cell,
.ib-report-identity {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.ib-report-agent-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ib-report-agent-cell.is-tree {
  padding-left: calc(var(--tree-depth, 0) * 24px);
}

.ib-report-agent-cell > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

:is(
    .ib-report-agent,
    .ib-agent-cell,
    .report-agent-cell,
    .ib-report-agent-cell,
    .ib-report-identity
  )
  strong,
:is(
    .ib-report-agent,
    .ib-agent-cell,
    .report-agent-cell,
    .ib-report-agent-cell,
    .ib-report-identity
  )
  small {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(
    .ib-report-agent,
    .ib-agent-cell,
    .report-agent-cell,
    .ib-report-agent-cell,
    .ib-report-identity
  )
  strong {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

:is(
    .ib-report-agent,
    .ib-agent-cell,
    .report-agent-cell,
    .ib-report-agent-cell,
    .ib-report-identity
  )
  small {
  color: #7b8797;
  font-size: 12px;
  font-weight: 700;
}

.ib-report-link,
.ib-metric-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0b74ff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

:is(.ib-report-link, .ib-metric-link):hover {
  color: #075dcc;
  text-decoration: underline;
}

.ib-report-sort,
.ib-sort-button,
.report-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  white-space: nowrap;
  cursor: pointer;
}

:is(.ib-report-sort, .ib-sort-button, .report-sort-button) svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

:is(.ib-report-sort, .ib-sort-button, .report-sort-button):is(.active, [aria-sort]) {
  color: #0b74ff;
}

.ib-report-column-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.ib-report-column-help {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 42%, var(--border, #d8e1ef));
  border-radius: 50%;
  background: var(--surface-raised, #fff);
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  cursor: help;
}

.ib-report-column-help::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  z-index: 40;
  width: 320px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ib-report-column-help::before {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  right: 4px;
  z-index: 41;
  width: 10px;
  height: 10px;
  background: #0f172a;
  opacity: 0;
  pointer-events: none;
  transform: rotate(45deg);
  transition: opacity 0.15s ease;
}

.ib-report-column-help:hover,
.ib-report-column-help:focus-visible {
  outline: 0;
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 16%, transparent);
}

.ib-report-column-help:hover::after,
.ib-report-column-help:focus-visible::after,
.ib-report-column-help:hover::before,
.ib-report-column-help:focus-visible::before {
  opacity: 1;
}

.ib-report-column-help:hover::after,
.ib-report-column-help:focus-visible::after {
  transform: translateY(0);
}

.ib-tree-cell,
.ib-report-tree-cell {
  --tree-depth: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: calc(var(--tree-depth) * 24px);
}

:is(.ib-tree-cell, .ib-report-tree-cell).depth-1 {
  --tree-depth: 1;
}

:is(.ib-tree-cell, .ib-report-tree-cell).depth-2 {
  --tree-depth: 2;
}

:is(.ib-tree-cell, .ib-report-tree-cell).depth-3 {
  --tree-depth: 3;
}

:is(.ib-tree-cell, .ib-report-tree-cell).depth-4 {
  --tree-depth: 4;
}

:is(.ib-tree-cell, .ib-report-tree-cell).depth-5 {
  --tree-depth: 5;
}

.ib-tree-toggle,
.ib-report-tree-toggle,
[data-tree-toggle] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4f7cff;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

:is(.ib-tree-toggle, .ib-report-tree-toggle, [data-tree-toggle]):hover {
  background: #eaf2ff;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-tree-toggle {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #f8fbff;
  color: var(--blue-ink);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-tree-toggle[aria-expanded="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-tree-toggle:focus-visible,
body[data-layout-page="ib-data-performance-overview-report"] .ib-report-table tbody tr:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-tree-toggle {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border: 1px solid #d5dfeb;
  border-radius: 7px;
  background: #fff;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-tree-toggle .bi {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.18s ease;
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-tree-toggle:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--blue-ink);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-tree-toggle[aria-expanded="true"] {
  border-color: var(--blue-ink);
  background: var(--blue-ink);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-toggle[aria-expanded="true"]
  .bi {
  transform: rotate(90deg);
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-toggle[aria-expanded="true"]:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-tree-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-agent-cell.is-tree {
  position: relative;
  min-height: 58px;
  gap: 9px;
  padding-left: calc(var(--tree-depth, 0) * 28px);
}

body[data-layout-page="ib-performance-overview-report"] .ib-report-tree-spacer {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-row.is-tree-child
  .ib-report-agent-cell.is-tree::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: calc((var(--tree-depth, 1) * 28px) - 14px);
  border-left: 1px solid #cbd9eb;
  pointer-events: none;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-row.is-tree-child
  .ib-report-agent-cell.is-tree::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc((var(--tree-depth, 1) * 28px) - 14px);
  width: 14px;
  border-top: 1px solid #cbd9eb;
  pointer-events: none;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-row.is-last-tree-child
  .ib-report-agent-cell.is-tree::before {
  bottom: 50%;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-tree-child
  td {
  background: #fcfdff;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-tree-child:hover
  td {
  background: #f5f9ff;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-expanded
  td {
  border-bottom-color: #dbeafe;
  background: #eff6ff;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-expanded
  td:first-child {
  box-shadow: inset 3px 0 0 #3b82f6;
}

body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-row.is-expanded
  .ib-report-agent-cell
  strong {
  color: var(--blue-deep);
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-agent-cell.is-tree {
  gap: 9px;
  padding-left: calc(var(--tree-depth, 0) * 28px);
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-tree-spacer {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.ib-portal-tree-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 4px;
  border-left: 1px solid #e2e8f0;
}

.ib-portal-tree-tools .ib-report-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.ib-portal-tree-context {
  max-width: 180px;
  overflow: hidden;
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-table tbody tr[data-row-id] {
  cursor: pointer;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-table tbody tr.is-selected td {
  background: #eff6ff;
}

body[data-layout-page="ib-data-performance-overview-report"] .ib-report-table tbody tr.is-selected .ib-report-agent-cell strong {
  color: var(--blue-deep);
}

body[data-layout-page="ib-data-performance-overview-report"] .value-metric-help-button {
  margin-left: 5px;
}

.ib-tree-spacer,
.ib-report-tree-spacer {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.ib-report-currency {
  white-space: nowrap;
}

.ib-report-number.negative,
.ib-report-money.negative {
  color: #b42318;
}

.ib-report-number.positive,
.ib-report-money.positive {
  color: #067647;
}

.ib-report-app .report-table-footer,
.ib-report-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-top: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ib-report-app .report-page-size select {
  min-width: 48px;
}

.ib-report-footer > :first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ib-report-footer-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ib-report-footer select {
  height: 30px;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.ib-report-pager {
  display: flex;
  align-items: center;
  gap: 0;
}

.ib-report-pager :is(button, span) {
  min-width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #d8e1ef;
  border-right: 0;
  background: #fff;
  color: #64748b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.ib-report-pager :is(button, span):first-child {
  border-radius: 4px 0 0 4px;
}

.ib-report-pager :is(button, span):last-child {
  border-right: 1px solid #d8e1ef;
  border-radius: 0 4px 4px 0;
}

.ib-report-pager button:is(.active, .is-active, [aria-current="page"]) {
  border-color: #0b74ff;
  background: #0b74ff;
  color: #fff;
}

.ib-report-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.ib-report-loading,
.ib-report-error,
.ib-report-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  gap: 7px;
}

.ib-report-error {
  color: #b42318;
}

.ib-report-empty .bi {
  color: #94a3b8;
  font-size: 24px;
}

.ib-report-empty strong {
  color: #334155;
  font-size: 14px;
}

.ib-report-empty span {
  color: #94a3b8;
  font-size: 12px;
}

.ib-report-preference-list,
.ib-preference-list,
.ib-report-preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

:is(.ib-report-preference-list, .ib-preference-list, .ib-report-preference-grid)
  label {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

:is(.ib-report-preference-list, .ib-preference-list, .ib-report-preference-grid)
  input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0b74ff;
}

.ib-report-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.ib-report-modal {
  width: min(760px, calc(100vw - 48px));
  max-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e1ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
  color: #334155;
}

.ib-report-modal > header,
.ib-report-modal > footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
}

.ib-report-modal > header {
  border-bottom: 1px solid #edf1f7;
}

.ib-report-modal > footer {
  justify-content: flex-end;
  border-top: 1px solid #edf1f7;
}

.ib-report-modal > footer,
.ib-report-modal > footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ib-report-modal > header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.ib-report-modal > header [data-modal-kicker] {
  display: block;
  margin-bottom: 4px;
  color: #0b74ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ib-report-modal > :not(header):not(footer) {
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.ib-report-modal-note {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.ib-report-modal.is-fund-preferences {
  width: min(824px, 100%);
  max-height: min(90dvh, 800px);
  border-radius: 16px;
  background: var(--surface-raised);
}

.is-fund-preferences > header {
  align-items: flex-start;
  padding: 24px 24px 18px;
}

.is-fund-preferences > header h2 {
  font-size: 21px;
  font-weight: 750;
  line-height: 1.4;
}

.is-fund-preferences [data-modal-description] {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.is-fund-preferences > header .icon-only {
  width: 32px;
  min-height: 32px;
  border-color: transparent;
  background: transparent;
}

.is-fund-preferences > .ib-report-modal-body {
  padding: 20px 24px;
}

.ib-report-fund-preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ib-report-fund-preference-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.ib-report-fund-preference-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}

.ib-report-fund-preference-section > header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ib-report-fund-preference-section h3,
.ib-report-fund-preference-section h4 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
}

.ib-report-fund-preference-section h3 {
  font-size: 16px;
}

.ib-report-fund-preference-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-size: 18px;
}

[data-fund-preference-section="deposit"] .ib-report-fund-preference-icon {
  background: var(--success-soft);
  color: var(--success);
}

.ib-report-fund-preference-methods,
.ib-report-fund-preference-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}

.ib-report-fund-preference-methods label,
.ib-report-fund-preference-chips label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 36px;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
}

.ib-report-fund-preference-methods label {
  justify-content: space-between;
  min-height: 42px;
  padding: 6px 10px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-weight: 600;
}

.ib-report-fund-preference-methods input {
  appearance: none;
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 18px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--icon-muted);
  cursor: pointer;
}

.ib-report-fund-preference-methods input::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 12px;
  border-radius: 50%;
  background: #fff;
}

.ib-report-fund-preference-methods input:checked {
  background: var(--blue-dark);
}

.ib-report-fund-preference-methods input:checked::before {
  transform: translateX(12px);
}

.ib-report-fund-preference-types {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}

.ib-report-fund-preference-types-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ib-report-fund-preference-types-heading h4 {
  font-size: 13px;
}

.ib-report-fund-preference-types-heading small {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ib-report-fund-preference-chips label {
  padding: 5px 6px;
}

.ib-report-fund-preference-chips label:hover {
  background: var(--surface-muted);
}

.ib-report-fund-preference-chips input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue-dark);
  cursor: inherit;
}

.ib-report-fund-preference-chips label:has(input:disabled) {
  background: transparent;
  color: var(--muted);
  opacity: 0.7;
  cursor: not-allowed;
}

.ib-report-fund-preference-section input:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
}

.is-fund-preferences > footer {
  justify-content: space-between;
  padding: 14px 24px;
}

.is-fund-preferences [data-fund-preference-reset] {
  padding-inline: 6px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.is-fund-preferences [data-fund-preference-reset]:hover {
  color: var(--blue-ink);
  background: var(--surface-muted);
}

@media (max-width: 720px) {
  .ib-report-fund-preferences {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ib-report-modal-backdrop:has(.is-fund-preferences) {
    padding: 12px;
  }

  .ib-report-modal.is-fund-preferences {
    max-height: calc(100dvh - 24px);
  }

  .is-fund-preferences > header,
  .is-fund-preferences > .ib-report-modal-body,
  .is-fund-preferences > footer {
    padding: 14px 16px;
  }

  .ib-report-fund-preference-section {
    padding: 14px;
  }

  .ib-report-fund-preference-section > header {
    margin-bottom: 12px;
  }
}

@media (forced-colors: active) {
  .ib-report-fund-preference-methods input {
    appearance: auto;
  }

  .ib-report-fund-preference-methods input::before {
    display: none;
  }
}

.ib-report-preference-grid label small {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
}

body.ib-report-modal-open {
  overflow: hidden;
}

.ib-report-drill-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.ib-report-drill-summary > span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ib-report-drill-summary > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #0b74ff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.ib-report-drill-summary > small {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.ib-report-drill-list {
  display: grid;
  gap: 8px;
}

.ib-report-drill-list > div {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.ib-report-drill-list > div strong {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ib-report-drill-list > div span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ib-report-drill-list > small {
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.ib-report-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 15px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.ib-report-toast:is(.show, .is-visible) {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .ib-report-app .report-filter-card,
  .ib-report-filter-card {
    grid-template-columns: 1fr;
  }

  .ib-report-app .report-filter-grid,
  .ib-report-filter-grid,
  body[data-layout-page="ib-data-overview-report"] .ib-report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .ib-report-page {
    padding: 24px 18px 64px;
  }

  .ib-report-app .report-filter-card,
  .ib-report-filter-card {
    padding: 14px;
  }

  .ib-report-app .report-filter-grid,
  .ib-report-filter-grid,
  body[data-layout-page="ib-data-overview-report"] .ib-report-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ib-report-app .report-filter-actions,
  .ib-report-filter-actions {
    flex-direction: row;
  }

  .ib-report-app .report-filter-actions .report-button,
  .ib-report-filter-actions .ib-report-button {
    width: auto;
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .ib-report-page {
    padding: 18px 14px 64px;
  }

  .ib-report-heading h1 {
    font-size: 26px;
  }

  .ib-report-app .report-table-toolbar,
  .ib-report-app .report-table-footer,
  .ib-report-toolbar,
  .ib-report-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ib-report-app .report-toolbar-left,
  .ib-report-app .report-toolbar-right,
  .ib-report-app .report-footer-left,
  .ib-report-app .report-pager,
  .ib-report-toolbar-left,
  .ib-report-toolbar-right,
  .ib-report-pager {
    width: 100%;
  }

  .ib-report-app .report-toolbar-right,
  .ib-report-toolbar-right {
    justify-content: flex-end;
  }

  .ib-report-app .report-table-toolbar .report-button {
    width: auto;
  }

  .ib-report-app .report-pager,
  .ib-report-pager {
    overflow-x: auto;
  }

  .ib-report-preference-list,
  .ib-preference-list,
  .ib-report-preference-grid {
    grid-template-columns: 1fr;
  }


}

:root[data-theme="dark"] .ib-report-app {
  background:
    linear-gradient(180deg, rgba(var(--neutral-panel-rgb, 30, 41, 59), 0.72), rgba(var(--neutral-panel-rgb, 2, 6, 23), 0) 380px),
    var(--page-bg, #020617);
}

:root[data-theme="dark"] .ib-report-heading h1 {
  color: var(--text-strong, #f8fbff);
}

:root[data-theme="dark"] .ib-report-heading p {
  color: var(--muted, #94a3b8);
}

:root[data-theme="dark"] .ib-report-app .report-filter-card,
:root[data-theme="dark"] .ib-report-app .report-table-card,
:root[data-theme="dark"] .ib-report-filter-card,
:root[data-theme="dark"] .ib-report-table-card,
:root[data-theme="dark"] .ib-report-modal {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.22);
  background: rgba(var(--neutral-panel-rgb, 15, 23, 42), 0.94);
}

:root[data-theme="dark"] .ib-report-app .report-field > span:first-child,
:root[data-theme="dark"] .ib-report-field > span:first-child {
  color: var(--neutral-text-soft, #cbd5e1);
}

:root[data-theme="dark"] .ib-report-app .report-table th,
:root[data-theme="dark"] .ib-report-table th {
  background: rgba(var(--neutral-panel-rgb, 30, 41, 59), 0.92);
  color: var(--neutral-text-soft, #aebdd0);
}

:root[data-theme="dark"] .ib-report-app .report-table td,
:root[data-theme="dark"] .ib-report-table td {
  background: rgba(var(--neutral-panel-rgb, 15, 23, 42), 0.92);
  color: var(--neutral-text-strong, #d7e0ec);
}

:root[data-theme="dark"] .ib-report-app .report-table tbody tr:hover td,
:root[data-theme="dark"] .ib-report-table tbody tr:hover td {
  background: rgba(var(--neutral-panel-rgb, 30, 41, 59), 0.78);
}

:root[data-theme="dark"] .ib-report-app .report-table tbody tr:is(
    .is-selected,
    .is-expanded,
    .is-active
  ) td,
:root[data-theme="dark"] .ib-report-table tbody tr:is(
    .is-selected,
    .is-expanded,
    .is-active
  ) td,
:root[data-theme="dark"] .ib-report-tree-row:is(
    .is-selected,
    .is-expanded,
    .is-active
  ) td {
  background: rgba(37, 99, 235, 0.17);
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-toggle {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.28);
  background: var(--neutral-panel, #0f172a);
  color: #94a3b8;
  box-shadow: 0 1px 2px rgba(var(--neutral-shadow-rgb, 2, 6, 23), 0.36);
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-toggle:hover {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(30, 64, 175, 0.24);
  color: #93c5fd;
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-toggle[aria-expanded="true"] {
  border-color: #3b82f6;
  background: var(--blue-ink);
  color: #fff;
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-row.is-tree-child
  .ib-report-agent-cell.is-tree::before,
:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-tree-row.is-tree-child
  .ib-report-agent-cell.is-tree::after {
  border-color: rgba(96, 165, 250, 0.32);
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-tree-child
  td {
  background: rgba(var(--neutral-panel-rgb, 15, 23, 42), 0.96);
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-tree-child:hover
  td {
  background: rgba(var(--neutral-panel-rgb, 30, 41, 59), 0.88);
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-expanded
  td {
  border-bottom-color: rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.18);
}

:root[data-theme="dark"]
  body[data-layout-page="ib-performance-overview-report"]
  .ib-report-table
  tbody
  tr.ib-report-tree-row.is-expanded
  td:first-child {
  box-shadow: inset 3px 0 0 #60a5fa;
}

:root[data-theme="dark"]
  :is(
    .ib-report-agent,
    .ib-agent-cell,
    .report-agent-cell,
    .ib-report-agent-cell,
    .ib-report-identity
  )
  strong {
  color: var(--blue-soft);
}

:root[data-theme="dark"]
  :is(
    .ib-report-agent,
    .ib-agent-cell,
    .report-agent-cell,
    .ib-report-agent-cell,
    .ib-report-identity
  )
  small {
  color: #94a3b8;
}

:root[data-theme="dark"]
  :is(
    .ib-report-view-switch,
    .ib-view-switch,
    .report-view-switch,
    .ib-report-segmented
  ) {
  background: rgba(var(--neutral-panel-rgb, 2, 6, 23), 0.76);
}

:root[data-theme="dark"]
  :is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.22);
  background: rgba(var(--neutral-panel-rgb, 15, 23, 42), 0.78);
  box-shadow: inset 0 1px 2px rgba(var(--neutral-shadow-rgb, 2, 6, 23), 0.35);
}

:root[data-theme="dark"]
  :is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button {
  color: #94a3b8;
}

:root[data-theme="dark"]
  :is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button:is(.active, .is-active, [aria-pressed="true"]) {
  background: var(--neutral-raised, #1e293b);
  color: #60a5fa;
  box-shadow: 0 5px 12px rgba(var(--neutral-shadow-rgb, 2, 6, 23), 0.28);
}

:root[data-theme="dark"]
  :is(
    body[data-layout-page="ib-performance-overview-report"],
    body[data-layout-page="ib-data-performance-overview-report"]
  )
  .ib-report-segmented
  button:not([aria-pressed="true"]):hover {
  background: rgba(var(--neutral-panel-rgb, 30, 41, 59), 0.72);
  color: var(--neutral-text-strong, #e2e8f0);
}

:root[data-theme="dark"]
  :is(.ib-report-preference-list, .ib-preference-list, .ib-report-preference-grid)
  label {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.2);
  background: rgba(var(--neutral-panel-rgb, 2, 6, 23), 0.58);
  color: var(--neutral-text-soft, #cbd5e1);
}

:root[data-theme="dark"] .ib-report-app .report-table-wrap::-webkit-scrollbar-thumb,
:root[data-theme="dark"] .ib-report-table-wrap::-webkit-scrollbar-thumb {
  border-color: var(--neutral-border, #0f172a);
  background: var(--neutral-hover, #475569);
}

:root[data-theme="dark"] .ib-report-button,
:root[data-theme="dark"] .ib-report-button.icon-only,
:root[data-theme="dark"] .ib-report-footer select,
:root[data-theme="dark"] .ib-report-pager :is(button, span),
:root[data-theme="dark"] .ib-report-field input,
:root[data-theme="dark"] .ib-report-field select,
:root[data-theme="dark"] .ib-report-date-range {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.24);
  background: rgba(var(--neutral-panel-rgb, 2, 6, 23), 0.78);
  color: var(--neutral-text-strong, #e5edf8);
}

:root[data-theme="dark"] .ib-report-pager button:is(
    .active,
    .is-active,
    [aria-current="page"]
  ),
:root[data-theme="dark"] .ib-report-button.primary {
  border-color: #6ea8ff;
  background: var(--blue-ink);
  color: #fff;
}

:root[data-theme="dark"] .ib-report-modal > header,
:root[data-theme="dark"] .ib-report-modal > footer {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.18);
}

:root[data-theme="dark"] .ib-report-modal > header h2 {
  color: var(--neutral-text-strong, #f8fbff);
}

:root[data-theme="dark"] .ib-report-drill-summary {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(37, 99, 235, 0.13);
}

:root[data-theme="dark"] .ib-report-drill-summary > span,
:root[data-theme="dark"] .ib-report-drill-list > div strong {
  color: var(--neutral-text-strong, #e5edf8);
}

:root[data-theme="dark"] .ib-report-drill-list > div {
  border-color: rgba(var(--neutral-border-rgb, 148, 163, 184), 0.2);
  background: rgba(var(--neutral-panel-rgb, 2, 6, 23), 0.58);
}
