/* FRA Prop HQ v9.2.6 — hard table/chart contrast pass.
   Loaded LAST on purpose so legacy + cached theme rules cannot win. */

/* ---------- TABLES: opaque, readable, calm ---------- */
body:not(.signed-out) .accounts-panel,
body:not(.signed-out) #view-accounts .panel,
body:not(.signed-out) .panel:has(> .table-wrap){
  background:rgba(255,255,255,.96)!important;
  border:1px solid #d4dbd7!important;
  box-shadow:0 12px 32px rgba(48,60,54,.06)!important;
}

body:not(.signed-out) .table-wrap,
body:not(.signed-out) #view-dashboard .accounts-panel .table-wrap,
body:not(.signed-out) #view-accounts .table-wrap{
  background:#f7f9f8!important;
  border:1px solid #d9dfdc!important;
  border-radius:14px!important;
  box-shadow:none!important;
  isolation:isolate!important;
}

body:not(.signed-out) .data-table{
  background:#f7f9f8!important;
}

body:not(.signed-out) .data-table thead,
body:not(.signed-out) .data-table thead tr,
body:not(.signed-out) .data-table thead th,
body:not(.signed-out) #view-dashboard .accounts-panel .data-table thead th{
  background:#eef2f0!important;
  color:#59645e!important;
  border-color:#d7deda!important;
  opacity:1!important;
}

body:not(.signed-out) .data-table tbody tr,
body:not(.signed-out) .data-table tbody td{
  background:#fafbfa!important;
  color:#344039!important;
  border-color:#e3e8e5!important;
  opacity:1!important;
}

body:not(.signed-out) .data-table tbody tr:nth-child(even) td{
  background:#f2f5f3!important;
}

body:not(.signed-out) .data-table tbody tr:hover td{
  background:#eaf1ed!important;
}

body:not(.signed-out) .data-table td strong,
body:not(.signed-out) .data-table td b{
  color:#202a25!important;
}

body:not(.signed-out) .data-table .table-sub,
body:not(.signed-out) .data-table small{
  color:#7a8580!important;
}

/* Keep ambient candles OUT of the data table itself. */
body:not(.signed-out) #view-dashboard .accounts-panel,
body:not(.signed-out) #view-dashboard .accounts-panel .table-wrap,
body:not(.signed-out) #view-dashboard .accounts-panel .data-table,
body:not(.signed-out) #view-accounts .panel,
body:not(.signed-out) #view-accounts .table-wrap,
body:not(.signed-out) #view-accounts .data-table{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* ---------- CHARTS: proper dark grey plotting surface ---------- */
body:not(.signed-out) .chart-container,
body:not(.signed-out) .chart-container.tall,
body:not(.signed-out) .nt-chart-wrap,
body:not(.signed-out) .v760-history-wrap{
  background:#3f4549!important;
  background-image:none!important;
  border:1px solid #343a3e!important;
  border-radius:15px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
  overflow:hidden!important;
}

body:not(.signed-out) .chart-container canvas,
body:not(.signed-out) .nt-chart-wrap canvas,
body:not(.signed-out) .v760-history-wrap canvas{
  background:transparent!important;
}

/* Chart.js reads these variables when charts are rendered. */
body:not(.signed-out),
body:not(.signed-out).terminal-trial,
body:not(.signed-out) .terminal-trial{
  --chart-muted:#d1d7da!important;
  --chart-grid:rgba(255,255,255,.11)!important;
  --chart-fill:rgba(143,207,99,.20)!important;
  --chart-fill-end:rgba(143,207,99,0)!important;
}

/* Strategy Lab chart was near-black; bring it into the same dark-grey family. */
body:not(.signed-out) #view-strategies .lab-chart-workspace,
body:not(.signed-out) #view-strategies .lab-chart-stage,
body:not(.signed-out) #view-strategies .lab-chart-wrap,
body:not(.signed-out) #view-strategies .lab-chart-topbar{
  background:#3f4549!important;
  background-image:none!important;
}
body:not(.signed-out) #view-strategies .lab-chart-topbar{
  border-color:#52585c!important;
}
