/* ══════════════════════════════════════════════════════════════════
   TRADING PLAN · WORKSTATION — densid. Bloomberg + tokens do terminal
   ══════════════════════════════════════════════════════════════════ */

#view-trading-plan .tp-page--plan {
  background: var(--bg0, #000);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  padding: 0;
}

.tp-ws {
  --tpws-accent: var(--cyan, #00a8cc);
  --tpws-accent-soft: rgba(0, 168, 204, 0.14);
  --tpws-amber: var(--cyan, #00a8cc);
  --tpws-amber-soft: rgba(0, 168, 204, 0.14);
  --tpws-green: var(--green, #3FE3BC);
  --tpws-mint: var(--inst-green, #3FE3BC);
  --tpws-red: var(--red, #E85C5C);
  --tpws-bg0: var(--bg0, #000000);
  --tpws-bg1: #0A0A0A;
  --tpws-bg2: #101010;
  --tpws-line: rgba(255, 255, 255, 0.06);
  --tpws-line2: rgba(255, 255, 255, 0.1);
  --tpws-dim: var(--text-dim, #6a7884);
  --tpws-text: var(--text, #ebe5d8);
  display: flex;
  flex: 1 1 auto;
  font-family: var(--font-bloomberg, var(--mono, 'IBM Plex Mono', monospace));
  gap: 0;
  min-height: 0;
  width: 100%;
}

/* ── LEFT · PLAN WATCHLIST ─────────────────────────────────────── */

.tp-ws-list {
  background: var(--tpws-bg0);
  border-right: 1px solid var(--tpws-line2);
  display: flex;
  flex: 0 0 53.75%;
  flex-direction: column;
  max-width: 780px;
  min-height: 0;
  min-width: 510px;
}

.tp-ws-list-hd {
  align-items: center;
  border-bottom: 1px solid var(--tpws-line2);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 9px 14px 8px;
}

.tp-ws-list-title {
  color: var(--tpws-accent);
  font-size: 20.8px;
  font-weight: 700;
  letter-spacing: 2px;
}

.tp-ws-list-count {
  color: var(--tpws-dim);
  font-size: 18.6px;
  letter-spacing: 1.4px;
}

.tp-ws-filters {
  border-bottom: 1px solid var(--tpws-line);
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 10px;
}

.tp-ws-filter {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--tpws-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 18.6px;
  font-weight: 600;
  letter-spacing: 1.1px;
  padding: 5px 10px 6px;
  transition: color .12s, border-color .12s, background .12s;
}

.tp-ws-filter b {
  color: #4E4E4E;
  font-weight: 700;
  margin-left: 3px;
}

.tp-ws-filter:hover { color: var(--tpws-text); }

.tp-ws-filter.active {
  background: transparent;
  border-bottom-color: var(--tpws-accent);
  color: var(--tpws-accent);
}

.tp-ws-filter.active b { color: var(--tpws-accent); }

.tp-ws-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  position: relative;
}

.tp-ws-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.tp-ws-table thead th {
  background: var(--tpws-bg1);
  border-bottom: 1px solid var(--tpws-line2);
  color: var(--tpws-dim);
  font-size: 17.2px;
  font-weight: 600;
  letter-spacing: 1.2px;
  padding: 7px 8px;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 2;
}

.tp-ws-table thead th:first-child { padding-left: 12px; width: 18%; }
.tp-ws-table thead th:nth-child(2) { width: 14%; }
.tp-ws-table thead th:nth-child(3) { width: 10%; }
.tp-ws-table thead th:nth-child(4) { width: 10%; }
.tp-ws-table thead th:nth-child(5) { width: 8%; }
.tp-ws-table thead th:nth-child(6) { width: 13%; }
.tp-ws-table thead th:nth-child(7) { width: 12%; }
.tp-ws-table thead th:nth-child(8) { width: 15%; }

.tp-ws-row { cursor: pointer; }

.tp-ws-row td {
  border-bottom: 1px solid #121212;
  color: #C8C8C8;
  font-size: 20.8px;
  letter-spacing: 0.3px;
  overflow: hidden;
  padding: 7px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-ws-row td:first-child {
  color: #8B8B8B;
  font-size: 18.6px;
  padding-left: 12px;
}

.tp-ws-row:hover td { background: #0D0D0D; }

.tp-ws-row.sel td {
  background: var(--tpws-accent-soft);
  border-bottom-color: rgba(0, 168, 204, 0.28);
}

.tp-ws-row.sel td:first-child {
  box-shadow: inset 2px 0 0 var(--tpws-accent);
  color: var(--tpws-accent);
}

.tp-ws-td-sym { color: var(--tpws-text) !important; font-weight: 600; }
.tp-ws-long { color: var(--tpws-green) !important; font-weight: 700; }
.tp-ws-short { color: var(--tpws-red) !important; font-weight: 700; }

.tp-ws-st {
  font-size: 18.6px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tp-ws-st i {
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 5px;
  vertical-align: 1px;
  width: 6px;
}

.tp-ws-st--live { color: var(--tpws-green); }
.tp-ws-st--live i { background: var(--tpws-green); box-shadow: 0 0 5px rgba(63, 227, 188, 0.55); }
.tp-ws-st--armed { color: var(--tpws-accent); }
.tp-ws-st--armed i { background: var(--tpws-accent); box-shadow: 0 0 5px rgba(0, 168, 204, 0.45); }
.tp-ws-st--closed { color: #767676; }
.tp-ws-st--closed i { background: #5A5A5A; }
.tp-ws-st--canc { color: #8A4A4A; }
.tp-ws-st--canc i { background: #8A4A4A; }

.tp-ws-mode {
  display: inline-block;
  font-size: 17.2px;
  font-weight: 700;
  letter-spacing: 1px;
}
.tp-ws-mode--auto { color: var(--tpws-accent); }
.tp-ws-mode--semi { color: var(--tpws-dim); }

.tp-ws-td-sess { color: var(--tpws-dim) !important; font-size: 18.6px; letter-spacing: 1px; }

.tp-ws-empty {
  align-items: center;
  color: #5C5C5C;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
}

.tp-ws-empty.ih-hidden { display: none; }
.tp-ws-empty-ic { color: var(--tpws-accent); font-size: 34.4px; opacity: 0.7; }
.tp-ws-empty-tx { color: #9A9A9A; font-size: 20.8px; font-weight: 700; letter-spacing: 1.8px; }
.tp-ws-empty-sub { font-size: 18.6px; letter-spacing: 0.4px; }

/* sidebar footer */
.tp-ws-list-ft {
  background: var(--tpws-bg1);
  border-top: 1px solid var(--tpws-line2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.tp-ws-ft-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 10px;
}

.tp-ws-ftbtn {
  background: transparent;
  border: 1px solid var(--tpws-line2);
  border-radius: 2px;
  color: #A8A8A8;
  cursor: pointer;
  font-family: inherit;
  font-size: 17.9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 10px;
  transition: background .12s, color .12s, border-color .12s;
}

.tp-ws-ftbtn:hover { background: #161616; color: #FFF; border-color: #3A3A3A; }

.tp-ws-ftbtn--add {
  background: var(--tpws-accent-soft);
  border-color: rgba(0, 168, 204, 0.45);
  color: var(--tpws-accent);
}

.tp-ws-ftbtn--add:hover {
  background: rgba(0, 168, 204, 0.22);
  color: #2FD4E8;
}

/* AUTO / SEMI · ativo sem moldura neon */
.tp-ws-ftbtn--mode.on {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #4A8FA0;
}

.tp-ws-ftbtn--mode.on:hover {
  background: #161616;
  border-color: transparent;
  color: #6AADB8;
}

/* PUBLISH · sem moldura; texto institucional */
.tp-ws-ftbtn--publish {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #A8A8A8;
}

.tp-ws-ftbtn--publish:hover {
  background: #161616;
  border-color: transparent;
  color: #4A8FA0;
}

.tp-ws-telemetry {
  border-top: 1px solid var(--tpws-line);
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  max-height: 160px;
  overflow: hidden;
  padding: 0;
}

.tp-ws-tel-cell {
  border-bottom: 1px solid var(--tpws-line);
  border-right: 1px solid var(--tpws-line);
  min-width: 0;
  padding: 6px 10px 7px;
}

.tp-ws-tel-cell:nth-child(2n) { border-right: 0; }

.tp-ws-tel-lbl {
  color: var(--tpws-dim);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  margin-bottom: 2px;
}

.tp-ws-tel-val {
  color: var(--tpws-text);
  font-size: 20.8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tp-ws-tel-val.amber { color: var(--tpws-accent); }
.tp-ws-tel-val.green { color: var(--tpws-green); }
.tp-ws-tel-val.red { color: var(--tpws-red); }
.tp-ws-tel-val.dim { color: var(--tpws-dim); }

.tp-ws-tel-orders {
  grid-column: 1 / -1;
  max-height: 62px;
  overflow-y: auto;
  padding: 5px 10px 7px;
}

.tp-ws-tel-ord {
  color: var(--tpws-dim);
  display: flex;
  font-size: 17.9px;
  gap: 8px;
  justify-content: space-between;
  letter-spacing: 0.3px;
  padding: 2px 0;
}

.tp-ws-tel-ord b { color: #C8C8C8; font-weight: 600; }
.tp-ws-tel-ord .pos { color: var(--tpws-green); }
.tp-ws-tel-ord .neg { color: var(--tpws-red); }

/* ── RIGHT · ACTIVE SET ────────────────────────────────────────── */

.tp-ws-detail {
  background: var(--tpws-bg0);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.tp-ws-detail-empty {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.tp-ws-detail-empty.ih-hidden { display: none; }

.tp-ws-detail-empty-tt {
  color: var(--tpws-accent);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.65;
}

.tp-ws-detail-empty-tx {
  color: var(--tpws-dim);
  font-size: 20.8px;
  letter-spacing: 0.5px;
}

.tp-ws-set {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.tp-ws-set.ih-hidden { display: none; }

.tp-ws-set-hd {
  align-items: center;
  background: var(--tpws-bg1);
  border-bottom: 1px solid var(--tpws-line2);
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 12px;
}

.tp-ws-set-hd-l {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.tp-ws-set-tag {
  color: var(--tpws-dim);
  font-size: 17.2px;
  font-weight: 600;
  letter-spacing: 2px;
}

.tp-ws-set-id {
  color: var(--tpws-text);
  font-size: 24.4px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.tp-ws-set-sym {
  color: var(--tpws-accent);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.tp-ws-set-side { font-size: 20.8px; font-weight: 700; letter-spacing: 1.5px; }
.tp-ws-set-side.tp-ws-long { color: var(--tpws-green); }
.tp-ws-set-side.tp-ws-short { color: var(--tpws-red); }

.tp-ws-set-hd-r {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.tp-ws-abtn {
  background: #141414;
  border: 1px solid var(--tpws-line2);
  border-radius: 2px;
  color: #C9C9C9;
  cursor: pointer;
  font-family: inherit;
  font-size: 17.9px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 11px;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}

.tp-ws-abtn:hover { background: #1E1E1E; color: #FFF; }

.tp-ws-abtn--ghost {
  background: transparent;
  border-color: #2E2E2E;
  color: #9A9A9A;
}

/* EXECUTE / CLOSE — institucional (sem neon / glow) */
.tp-ws-abtn--exec {
  background: #141414;
  border-color: #2E2E2E;
  color: #B8C4C0;
}

.tp-ws-abtn--exec:hover {
  background: #1A1A1A;
  border-color: #3A3A3A;
  color: #E8E8E8;
}

.tp-ws-abtn--ready {
  border-color: #3A4542;
  color: #C5D0CC;
  animation: tpwsReadyPulse 1.4s ease-in-out infinite;
}

@keyframes tpwsReadyPulse {
  0%, 100% { border-color: #3A4542; color: #C5D0CC; }
  50% { border-color: #4A5552; color: #D8E0DC; }
}

.tp-ws-abtn--cancel {
  background: #121212;
  border-color: #2A2A2A;
  color: #9A9696;
}

.tp-ws-abtn--cancel:hover {
  background: #1A1A1A;
  border-color: #3A3A3A;
  color: #D0CBCB;
}

.tp-ws-abtn--mode { padding: 6px 10px; }
.tp-ws-abtn--mode.on {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #4A8FA0;
}

.tp-ws-live-tag {
  align-items: center;
  color: var(--tpws-green);
  display: inline-flex;
  font-size: 18.6px;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 1.4px;
  padding: 4px 4px;
}

.tp-ws-live-tag i {
  animation: tpwsPulse 1.4s ease-in-out infinite;
  background: var(--tpws-green);
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  width: 6px;
}

@keyframes tpwsPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* meta strip */
.tp-ws-meta {
  align-items: center;
  border-bottom: 1px solid var(--tpws-line2);
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0;
  padding: 7px 10px 8px;
}

.tp-ws-meta-cell {
  align-items: baseline;
  border-right: 1px solid var(--tpws-line);
  display: flex;
  gap: 6px;
  padding: 2px 14px 2px 4px;
  white-space: nowrap;
}

.tp-ws-meta-cell:last-child { border-right: 0; }

.tp-ws-meta-lbl {
  color: var(--tpws-dim);
  font-size: 17.2px;
  font-weight: 600;
  letter-spacing: 1.1px;
}

.tp-ws-meta-lbl::after { content: ':'; }

.tp-ws-meta-val {
  color: var(--tpws-text);
  font-size: 20.8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tp-ws-meta-val.amber { color: var(--tpws-accent); }
.tp-ws-meta-val.green { color: var(--tpws-green); }
.tp-ws-meta-val.red { color: var(--tpws-red); }
.tp-ws-meta-val.dim { color: var(--tpws-dim); }

/* chart toolbar */
.tp-ws-chartbar {
  align-items: center;
  background: var(--inst-panel, #080b0f);
  border-bottom: 1px solid var(--tpws-line);
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 12px 9px;
  box-sizing: border-box;
}

.tp-ws-tfs {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
}

.tp-ws-tf {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--inst-radius, 2px);
  color: var(--inst-text-dim, var(--tpws-dim));
  cursor: pointer;
  font-family: var(--inst-mono, inherit);
  font-size: 17.71px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 9px;
}

.tp-ws-tf:hover {
  border-color: var(--inst-border-dim, #242a31);
  color: var(--inst-text, #cfcfcf);
}

.tp-ws-tf.active {
  background: var(--inst-cyan, var(--tpws-accent));
  border-color: var(--inst-cyan, var(--tpws-accent));
  color: #000;
  font-weight: 700;
}

.tp-ws-tf-sep {
  align-self: center;
  background: var(--inst-border-dim, var(--tpws-line));
  flex: 0 0 1px;
  height: 16px;
  margin: 0 3px;
  width: 1px;
}

.tp-ws-chart-tools {
  display: flex;
  flex-shrink: 0;
  gap: 3px;
}

.tp-ws-tool {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--inst-text-dim, var(--tpws-dim));
  cursor: pointer;
  font-family: var(--inst-mono, inherit);
  font-size: 16.22px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

.tp-ws-tool:hover {
  border-color: #2A2A2A;
  color: #D0D0D0;
}

/* chart */
.tp-ws-chart-wrap {
  background: #000;
  flex: 1 1 auto;
  min-height: 180px;
  /* visible: chips/linhas de alerta na escala (Alt+click) não podem ser clipados */
  overflow: visible;
  position: relative;
}

.tp-ws-chart {
  bottom: 0;
  inset: 0;
  left: 0;
  position: absolute !important;
  right: 0;
  top: 0;
  width: auto !important;
  height: auto !important;
}

/* Régua local (Shift+drag) — canvas + HUD DELTA/BARS/CHANGE */
#tp-ws-chart.tp-ws-measuring { cursor: crosshair; }

.tp-ws-measure-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}

.tp-ws-measure-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 31;
  display: none;
  min-width: 128px;
  padding: 9px 11px;
  background: rgba(6, 10, 14, 0.92);
  border: 1px solid rgba(0, 168, 204, 0.45);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
}

.tp-ws-measure-hud.active { display: block; }

.tp-ws-measure-title {
  color: var(--tpws-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin-bottom: 6px;
}

.tp-ws-measure-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 0;
}

.tp-ws-measure-metric span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 1px;
}

.tp-ws-measure-metric strong {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.tp-ws-measure-metric strong small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 500;
}

.tp-ws-measure-metric strong.is-pos { color: #74DEC6; }
.tp-ws-measure-metric strong.is-neg { color: #E8A020; }

/* Hover de data/hora no crosshair (paridade Overview / VShape) */
#tp-ws-chart .mtg-crosshair-time {
  position: absolute;
  transform: translateX(-50%);
  bottom: auto;
  padding: 3px 9px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
  z-index: 40;
  font-family: var(--font-bloomberg, var(--inst-mono, var(--mono, monospace)));
  font-variant-numeric: tabular-nums;
}

#tp-ws-chart .mtg-crosshair-time.visible {
  opacity: 1;
}

/* Card Last/High/Average/Low — só no Trading Plan (não altera Overview/Terminal). */
#tp-ws-chart .bbg-range-stats {
  z-index: 50;
  top: 10px;
  right: 78px;
  font-size: 12.5px;
  line-height: 1.35;
  max-width: calc(100% - 88px);
}

#tp-ws-chart .bbg-rs-rows {
  gap: 2px;
  padding: 7px 12px 8px;
}

#tp-ws-chart .bbg-rs-row {
  grid-template-columns: 14px minmax(0, 1fr) auto;
  column-gap: 6px;
  min-height: 18px;
}

#tp-ws-chart .bbg-rs-icon--sq {
  width: 6px;
  height: 6px;
}

#tp-ws-chart .bbg-rs-icon--high,
#tp-ws-chart .bbg-rs-icon--low {
  width: 10px;
  height: 10px;
}

#tp-ws-chart .bbg-rs-icon--high::after,
#tp-ws-chart .bbg-rs-icon--low::after {
  height: 9px;
}

#tp-ws-chart .bbg-rs-icon--avg {
  width: 5px;
  height: 5px;
  margin: 2px;
}

#tp-ws-chart .bbg-rs-label {
  font-size: 12.5px;
}

#tp-ws-chart .bbg-rs-val {
  font-size: 12.5px;
  padding-left: 10px;
}

.tp-ws-chart-legend {
  display: flex;
  gap: 10px;
  left: 8px;
  pointer-events: none;
  position: absolute;
  top: 6px;
  z-index: 3;
}

.tp-ws-chart-legend span {
  color: var(--tpws-dim);
  font-size: 17.2px;
  letter-spacing: 0.7px;
}

.tp-ws-chart-legend span i {
  border-radius: 1px;
  display: inline-block;
  height: 2px;
  margin-right: 4px;
  vertical-align: 3px;
  width: 12px;
}

.tp-ws-chart-loading {
  align-items: center;
  color: var(--tpws-dim);
  display: flex;
  font-size: 18.6px;
  inset: 0;
  justify-content: center;
  letter-spacing: 2px;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.tp-ws-chart-loading.ih-hidden { display: none; }

/* bottom · ledger */
.tp-ws-bottom {
  border-top: 1px solid var(--tpws-line2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-height: 340px;
  min-height: 190px;
}

.tp-ws-bottom-tabs {
  border-bottom: 1px solid var(--tpws-line);
  display: flex;
  flex-shrink: 0;
  gap: 0;
  padding: 0 8px;
}

.tp-ws-btab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--tpws-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 18.6px;
  font-weight: 700;
  letter-spacing: 1.3px;
  padding: 8px 11px 6px;
}

.tp-ws-btab b {
  color: #4A4A4A;
  font-weight: 700;
  margin-left: 3px;
}

.tp-ws-btab:hover { color: #CACACA; }
.tp-ws-btab.active { border-bottom-color: var(--tpws-accent); color: var(--tpws-accent); }
.tp-ws-btab.active b { color: var(--tpws-accent); }

.tp-ws-btab-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.tp-ws-btab-panel.ih-hidden { display: none; }

.tp-ws-legs-scroll {
  height: 100%;
  overflow: auto;
}

.tp-ws-legs {
  border-collapse: collapse;
  min-width: 980px;
  table-layout: fixed;
  width: 100%;
}

.tp-ws-legs thead th {
  background: var(--tpws-bg1);
  border-bottom: 1px solid var(--tpws-line2);
  color: var(--tpws-dim);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 9px 10px;
  position: sticky;
  text-align: left;
  top: 0;
  white-space: nowrap;
  z-index: 2;
}

.tp-ws-legs thead th:first-child { padding-left: 12px; }

.tp-ws-legs tbody td {
  border-bottom: 1px solid #111;
  color: #C8C8C8;
  font-size: 20.8px;
  letter-spacing: 0.25px;
  padding: 9px 10px;
  white-space: nowrap;
}

.tp-ws-legs tbody td:first-child { font-weight: 700; padding-left: 12px; }

.tp-ws-leg--entry td:first-child { color: var(--tpws-accent); }
.tp-ws-leg--stop td:first-child { color: var(--tpws-red); }
.tp-ws-leg--tp td:first-child { color: var(--tpws-green); }

.tp-ws-legs .neg { color: var(--tpws-red); }
.tp-ws-legs .pos { color: var(--tpws-green); }
.tp-ws-legs .dim { color: var(--tpws-dim); }

.tp-ws-notes {
  background: #0A0A0A;
  border: 0;
  color: var(--tpws-text);
  font-family: inherit;
  font-size: 20.8px;
  height: 100%;
  letter-spacing: 0.3px;
  line-height: 1.55;
  min-height: 100px;
  outline: none;
  padding: 10px 14px;
  resize: none;
  width: 100%;
}

.tp-ws-notes::placeholder { color: #565656; }

.tp-ws-stub {
  color: var(--tpws-dim);
  font-size: 20.8px;
  letter-spacing: 0.5px;
  padding: 16px 14px;
}

@media (max-width: 1180px) {
  .tp-ws { flex-direction: column; }
  .tp-ws-list {
    border-bottom: 1px solid var(--tpws-line2);
    border-right: 0;
    flex: 0 0 auto;
    max-height: 42%;
    max-width: none;
    min-width: 0;
  }
  .tp-ws-legs { min-width: 860px; }
}

/* ── Alt+Shift · gráfico Trading Plan em tela cheia (Esc restaura) ── */
body.fs-tp-chart #ih-panel-trading-plan .tp-ws-list,
body.fs-tp-chart #ih-panel-trading-plan .tp-ws-bottom,
body.fs-tp-chart #ih-panel-trading-plan .tp-ws-meta,
body.fs-tp-chart #ih-panel-trading-plan .tp-ws-detail-empty,
body.fs-tp-chart #ih-panel-trading-plan .tp-ws-set-hd {
  display: none !important;
}

body.fs-tp-chart #ih-panel-trading-plan .tp-ws {
  display: block;
}

body.fs-tp-chart #ih-panel-trading-plan .tp-ws-detail,
body.fs-tp-chart #ih-panel-trading-plan .tp-ws-set {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-width: none !important;
  min-height: 0;
  width: 100% !important;
}

body.fs-tp-chart #ih-panel-trading-plan .tp-ws-set.ih-hidden {
  display: flex !important;
}

body.fs-tp-chart #ih-panel-trading-plan .tp-ws-chart-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

body.fs-tp-chart #ih-panel-trading-plan .tp-ws-chartbar {
  flex-shrink: 0;
}
