/* Compact Balance Display */
.balance-display-compact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-app-region: no-drag;
  pointer-events: auto;
  margin-right: 16px;
  font-family: 'Quantico', monospace;
}

.total-balance {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  white-space: nowrap;
  -webkit-app-region: no-drag;
  pointer-events: auto;
  height: 24px;
  box-sizing: border-box;
}

.total-balance:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.total-label {
  color: rgba(174, 206, 255, 0.8);
  font-weight: 500;
  font-size: 11px;
}

.total-cash {
  font-weight: 600;
  font-size: 11px;
  color: #ffffff;
}

.total-buying-power {
  display: flex;
  align-items: center;
  gap: 4px;
}

.total-buying-power-label {
  color: rgba(174, 206, 255, 0.8);
  font-size: 11px;
}

.buying-power-value {
  font-weight: 600;
  font-size: 11px;
  color: #ffffff;
}

.total-pnl {
  display: flex;
  align-items: center;
  gap: 4px;
}

.total-pnl-label {
  color: rgba(174, 206, 255, 0.8);
  font-size: 11px;
}

.pnl-value {
  font-weight: 600;
  font-size: 11px;
}

.pnl-value.profit {
  color: #00ff88;
}

.pnl-value.loss {
  color: #ff4800;
}

.expand-arrow {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease;
  margin-left: 4px;
}

.expand-arrow.expanded {
  transform: rotate(180deg);
}

/* Account Breakdown */
.account-breakdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  box-sizing: border-box;
}

.account-breakdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1a1a1a;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.account-row:last-child {
  border-bottom: none;
}

.account-id {
  font-weight: 600;
  color: #e0e0e0;
  min-width: 40px;
  font-size: 11px;
}

.account-cash {
  font-weight: 600;
  color: #ffffff;
  min-width: 60px;
  text-align: right;
  font-size: 11px;
}

.account-buying-power {
  font-weight: 600;
  color: #ffffff;
  min-width: 60px;
  text-align: right;
  font-size: 11px;
}

.account-pnl {
  font-weight: 600;
  min-width: 60px;
  text-align: right;
  font-size: 11px;
}

.account-pnl.profit {
  color: #00ff88;
}

.account-pnl.loss {
  color: #ff4800;
}

/* Session Indicator */
.session-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
  height: 24px;
  box-sizing: border-box;
  margin-right: 8px;
  min-width: 100px;
}

.session-indicator.news-alert {
  animation: newsFlash 4s ease-in-out infinite;
}

.session-indicator:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  /* transform: translateY(-1px); */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.session-name {
  font-size: 11px;
  font-weight: 500;
  color: #e0e0e0;
  font-family: 'Quantico', monospace;
  letter-spacing: 0.3px;
  line-height: 1;
}

.session-timer {
  font-size: 11px;
  font-weight: 500;
  color: #e0e0e0;
  font-family: 'Quantico', monospace;
  letter-spacing: 0.3px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  min-width: 60px;
  text-align: right;
}

@keyframes newsFlash {
  0%,
  100% {
    background-color: rgba(255, 255, 255, 0.03);
    transform: scale(1);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }
  20%,
  40%,
  60%,
  80% {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1);
  }
}

/* Connection Indicators */
.connection-indicators {
  display: flex;
  align-items: center;
  /* margin-right: 2px; */
  gap: 4px;
}

.status-indicator-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
  height: 24px;
  box-sizing: border-box;
}

.status-indicator-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-label {
  font-size: 11px;
  font-weight: 500;
  color: #e0e0e0;
  font-family: 'Quantico', monospace;
  letter-spacing: 0.3px;
}
:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{left:0;opacity:0;pointer-events:none;position:absolute;top:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{background:inherit;position:absolute}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay) ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay) ease-in}.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;padding:8px 16px;width:max-content}.styles-module_arrow__K0L3T{height:8px;width:8px}[class*=react-tooltip__place-top]>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*=react-tooltip__place-right]>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*=react-tooltip__place-bottom]>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*=react-tooltip__place-left]>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}