/* brand gutter: space from window left edge */
.navbar.fixed-top .navbar-brand {
  margin-left: 1rem;
}

/* white header row: gutter before Home */
.nav-scroller > .nav.nav-underline {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}


.trader-main {
  padding-top: 0.75rem;
  padding-bottom: 2rem;
}

.trader-card {
  border: 1px solid #dee2e6;
}

.trader-dashboard .account-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}

.trader-dashboard .account-item:hover {
  background: #f8f9fa;
}

.trader-dashboard .account-item.active {
  border-color: #3d8bfd;
  background: #eef5ff;
}

.trader-dashboard .kv dd {
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.trader-dashboard table {
  font-variant-numeric: tabular-nums;
}

.trader-error {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 28rem;
  z-index: 20;
  margin: 0;
}

.trader-dashboard .hint code {
  color: #198754;
}

.desk-account-wrap {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.desk-account-select {
  width: auto;
  min-width: 12rem;
  max-width: 20rem;
  display: inline-block;
}

.trader-desk .kv dd {
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.trader-desk table {
  font-variant-numeric: tabular-nums;
}

.desk-watch-form .desk-watch-input {
  width: 10rem;
  max-width: 40vw;
}
.desk-watch-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Watch list: fixed geometry so quote ticks do not reflow columns/rows */
.desk-watch-table {
  table-layout: fixed;
  width: 100%;
}
.desk-watch-table .desk-watch-col-sym { width: 18%; }
.desk-watch-table .desk-watch-col-num { width: 16%; }
.desk-watch-table .desk-watch-col-act { width: 18%; }
.desk-watch-table .desk-watch-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-align: right;
  white-space: nowrap;
}
.desk-watch-table .desk-watch-sym {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-watch-table .desk-watch-act {
  white-space: nowrap;
}


/* Watch symbol → Trade */
.desk-watch-table .desk-watch-sym {
  cursor: pointer;
  color: #0d6efd;
  text-decoration: none;
}
.desk-watch-table .desk-watch-sym:hover {
  text-decoration: underline;
}

/* Trade desk layout */
.trader-trade .trade-ticket-input {
  width: 6.5rem;
  max-width: 30vw;
}
.trader-trade .trade-quote-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.trader-trade .kv dd {
  margin-bottom: 0.25rem;
}


/* live-paper-topbar */
.trader-topbar.trader-mode-live {
  background-color: #c8e6c9 !important; /* pale green */
  border-bottom: 1px solid #a5d6a7;
}
.trader-topbar.trader-mode-live .navbar-brand,
.trader-topbar.trader-mode-live .trader-mode-label {
  color: #1b5e20 !important;
}
.trader-topbar.trader-mode-paper {
  background-color: #9e9e9e !important; /* gray */
  border-bottom: 1px solid #757575;
}
.trader-topbar.trader-mode-paper .navbar-brand,
.trader-topbar.trader-mode-paper .trader-mode-label {
  color: #212121 !important;
}
.trader-topbar.trader-mode-sim,
.trader-topbar.trader-mode-unknown {
  background-color: #343a40 !important; /* keep dark; not Live green */
}
.trader-topbar .trader-mode-label {
  font-weight: 600;
  font-size: 0.95rem;
  padding-top: 0;
  padding-bottom: 0;
}

.desk-broker-select {
  width: auto;
  min-width: 5.5rem;
  display: inline-block;
  vertical-align: middle;
}
.desk-broker-wrap {
  white-space: nowrap;
}
