/* DESK FXO · Report RESUMO layout (chrome only — no broker/history logic) */
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk {
  --fxo-bg: #000000;
  --fxo-panel: #0a0a0a;
  --fxo-line: #2a2a2a;
  --fxo-dim: #888888;
  --fxo-text: #ffffff;
  --fxo-pos: #4ade80;
  --fxo-neg: #f87171;
  --fxo-warn: #fbbf24;
  --fxo-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --fxo-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --ldg-bg: var(--fxo-bg);
  --ldg-line: var(--fxo-line);
  --ldg-pos: var(--fxo-pos);
  --ldg-neg: var(--fxo-neg);
  --ldg-dim: var(--fxo-dim);
  --ldg-steel: #d0d0d0;
  --ldg-cream: #f0f0f0;
  --ldg-idle: #0a0a0a;
  --ldg-pos-fill: rgba(74, 222, 128, 0.12);
  --ldg-neg-fill: rgba(248, 113, 113, 0.14);
  --ldg-fs-title: 18px;
  --ldg-fs-head: 14px;
  --ldg-fs-label: 15px;
  --ldg-fs-value: 22px;
  --ldg-fs-note: 14px;
  --ldg-fs-asset: 16px;
  --des-day-font: 18px;
  --des-day-font-sm: 15px;
  --des-day-font-xs: 13px;
  --des-day-font-display: 26px;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--fxo-line) !important;
  background: var(--fxo-bg) !important;
  color: var(--fxo-text);
  font-family: var(--fxo-font);
  font-size: 16px !important;
  overflow: hidden !important;
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk .imp-des-ledger-head,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk .imp-des-ledger-foot,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk .imp-des-ledger-brand {
  display: none !important;
}

/* —— Top bar —— */
.fxo-desk .fxo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--fxo-line);
  background: #050505;
}

.fxo-desk .fxo-topbar__left,
.fxo-desk .fxo-topbar__status,
.fxo-desk .fxo-topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fxo-desk .fxo-topbar__status {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.fxo-desk .fxo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--fxo-line);
  background: #111;
  color: #cfcfcf;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fxo-desk .fxo-chip--desk {
  color: #fff;
  border-color: #3a3a3a;
}

.fxo-desk .fxo-chip--clock {
  color: var(--fxo-dim);
  font-variant-numeric: tabular-nums;
}

.fxo-desk .fxo-chip--clock b {
  color: #e8e8e8;
  font-weight: 600;
}

.fxo-desk .fxo-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fxo-desk .fxo-pill--ok {
  color: var(--fxo-pos);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.fxo-desk .fxo-meta-quiet {
  color: var(--fxo-dim);
  font-size: 13px !important;
  letter-spacing: 0.04em;
}

.fxo-desk .fxo-meta-quiet b {
  color: #ddd;
  font-weight: 600;
}

.fxo-desk .fxo-user {
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--fxo-line);
  color: #ddd;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 26px;
}

/* —— Body split · 50 / 50 —— */
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .fxo-body.imp-des-ledger-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .fxo-main.imp-des-ledger-left,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .fxo-side.imp-des-ledger-right {
  width: auto !important;
  max-width: none !important;
  flex: unset !important;
}

.fxo-desk .fxo-main.imp-des-ledger-left,
.fxo-desk .fxo-side.imp-des-ledger-right {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.fxo-desk .fxo-main {
  border-right: 1px solid var(--fxo-line);
}

.fxo-desk .fxo-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom: 1px solid var(--fxo-line);
  background: var(--fxo-panel);
}

.fxo-desk .fxo-main .fxo-block:last-child,
.fxo-desk .fxo-side .fxo-block:last-child {
  border-bottom: none;
}

.fxo-desk .fxo-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.85);
}

.fxo-desk .fxo-block__title {
  margin: 0;
  color: #fff;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fxo-desk .fxo-block__sub {
  color: var(--fxo-dim);
  font-size: 12px !important;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— KPI grid —— */
.fxo-desk .fxo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  flex: 0 0 auto;
}

.fxo-desk .fxo-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px 14px;
  border-right: 1px solid var(--fxo-line);
  border-bottom: 1px solid var(--fxo-line);
  background: #000;
}

.fxo-desk .fxo-kpi:nth-child(6n) {
  border-right: none;
}

.fxo-desk .fxo-kpi__lbl {
  color: var(--fxo-dim);
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fxo-desk .fxo-kpi__val {
  color: #fff;
  font-family: var(--fxo-mono);
  font-size: 22px !important;
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.fxo-desk .fxo-kpi__sub {
  color: var(--fxo-dim);
  font-family: var(--fxo-mono);
  font-size: 13px !important;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* —— Tables —— */
.fxo-desk .fxo-table-wrap {
  min-height: 0;
  overflow: auto;
}

.fxo-desk .fxo-table-wrap--scroll {
  flex: 1 1 auto;
  max-height: 220px;
}

.fxo-desk .fxo-table,
.fxo-desk table.imp-des-ledger-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #000 !important;
}

.fxo-desk .fxo-table thead th,
.fxo-desk table.imp-des-ledger-table thead th {
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--fxo-line) !important;
  color: var(--fxo-dim) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  background: #080808 !important;
}

.fxo-desk .fxo-table tbody td,
.fxo-desk table.imp-des-ledger-table tbody td {
  padding: 9px 12px !important;
  border-bottom: 1px solid #1a1a1a !important;
  color: #eaeaea !important;
  font-size: 15px !important;
  font-variant-numeric: tabular-nums;
  vertical-align: middle !important;
  background: transparent !important;
}

.fxo-desk .fxo-table--asset .imp-des-ledger-asset-cls,
.fxo-desk .imp-des-ledger-asset-cls {
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}

.fxo-desk .fxo-mono {
  font-family: var(--fxo-mono);
}

.fxo-desk .fxo-side--buy {
  color: var(--fxo-pos) !important;
  font-weight: 700;
}

.fxo-desk .fxo-side--sell {
  color: var(--fxo-neg) !important;
  font-weight: 700;
}

.fxo-desk .fxo-pl--pos {
  color: var(--fxo-pos) !important;
}

.fxo-desk .fxo-pl--neg {
  color: var(--fxo-neg) !important;
}

.fxo-desk .fxo-status--filled {
  color: var(--fxo-pos) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 13px !important;
}

.fxo-desk .fxo-empty {
  color: var(--fxo-dim) !important;
  text-align: center !important;
  padding: 18px 10px !important;
}

.fxo-desk .fxo-block--activity {
  flex: 0 0 auto;
  min-height: 0;
  max-height: 160px;
}

.fxo-desk .fxo-block--activity .fxo-table-wrap--scroll {
  max-height: 110px;
}

.fxo-desk .fxo-block--desk {
  flex: 0 0 auto;
}

.fxo-desk .fxo-block--exec {
  flex: 0 0 auto;
}

/* —— Calendar · full right column —— */
.fxo-desk .fxo-block--cal {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  padding-bottom: 6px;
  border-bottom: none !important;
}

.fxo-desk .fxo-block__head--cal {
  align-items: center;
}

.fxo-desk .fxo-block--cal .imp-des-cal-stats {
  padding: 4px 12px 0 !important;
}

.fxo-desk .fxo-block--cal .imp-des-cal-wrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 8px 10px 0 !important;
  overflow: auto !important;
}

.fxo-desk .fxo-block--cal .imp-des-cal-label {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

.fxo-desk .fxo-block--cal .imp-des-cal-btn {
  width: 30px !important;
  height: 30px !important;
  border: 1px solid var(--fxo-line) !important;
  background: #111 !important;
  color: #ddd !important;
  font-size: 18px !important;
}

.fxo-desk .fxo-block--cal .imp-des-ledger-cal-legend {
  padding: 8px 12px 10px !important;
  border-top: 1px solid var(--fxo-line);
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-ledger-cal-legend,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-ledger-leg {
  font-size: 14px !important;
  letter-spacing: 0.08em;
}

/* —— Daily P&L · fills remaining left column —— */
.fxo-desk .fxo-main .fxo-block--dailypnl {
  flex: 1 1 auto !important;
  min-height: 220px !important;
  max-height: none !important;
  padding: 10px 12px 12px;
  background: #000;
  border-bottom: none !important;
  display: flex;
  flex-direction: column;
}

.fxo-desk .fxo-dailypnl__legend {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  padding: 0 0 8px !important;
  border-top: none !important;
  border-bottom: none !important;
}

.fxo-desk .fxo-dailypnl {
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.fxo-desk .fxo-dailypnl__chart {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fxo-desk .fxo-dailypnl__title {
  flex: 0 0 auto;
  margin-bottom: 6px;
  color: #bdbdbd;
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fxo-desk .fxo-dailypnl__canvas {
  flex: 1 1 auto;
  width: 100% !important;
  height: 100% !important;
  min-height: 180px;
  display: block;
}

.fxo-desk .fxo-dailypnl__sum {
  flex: 0 0 168px;
  display: flex;
  flex-direction: column;
  border: 1px solid #3a3a3a;
  background: #050505;
  align-self: stretch;
}

.fxo-desk .fxo-dailypnl__sum-row {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
}

.fxo-desk .fxo-dailypnl__sum-row + .fxo-dailypnl__sum-row {
  border-top: 1px solid #3a3a3a;
}

.fxo-desk .fxo-dailypnl__sum-lbl {
  color: var(--fxo-dim);
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fxo-desk .fxo-dailypnl__sum-val {
  color: var(--fxo-pos);
  font-family: var(--fxo-mono);
  font-size: 26px !important;
  font-weight: 700;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Calendar cells · larger type */
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-cell {
  min-height: 58px !important;
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-day {
  font-size: 13px !important;
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-pl {
  font-size: 14px !important;
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-pct,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-meta {
  font-size: 11px !important;
}

:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-stat-pill,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-cal-stat-lbl,
:is(#view-report, .des-day-original-report-panel, .des-day-governance-panel)
  section.imp-des-resumo-ledger.fxo-desk
  .imp-des-ledger-leg {
  font-size: 14px !important;
}

@media (max-width: 1100px) {
  .fxo-desk .fxo-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fxo-desk .fxo-kpi:nth-child(6n) {
    border-right: 1px solid var(--fxo-line);
  }
  .fxo-desk .fxo-kpi:nth-child(4n) {
    border-right: none;
  }
}
