.react-grid-layout {
  position: relative;
  transition: height 200ms ease;
}
.react-grid-item {
  transition: all 200ms ease;
  transition-property: left, top, width, height;
}
.react-grid-item img {
  pointer-events: none;
  user-select: none;
}
.react-grid-item.cssTransforms {
  transition-property: transform, width, height;
}
.react-grid-item.resizing {
  transition: none;
  z-index: 1;
  will-change: width, height;
}

.react-grid-item.react-draggable-dragging {
  transition: none;
  z-index: 3;
  will-change: transform;
}

.react-grid-item.dropping {
  visibility: hidden;
}

.react-grid-item.react-grid-placeholder {
  background: red;
  opacity: 0.2;
  transition-duration: 100ms;
  z-index: 2;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.react-grid-item.react-grid-placeholder.placeholder-resizing {
  transition: none;
}

.react-grid-item > .react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
}

.react-grid-item > .react-resizable-handle::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.react-resizable-hide > .react-resizable-handle {
  display: none;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-w,
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-n,
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}
.react-resizable {
  position: relative;
}
.react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-origin: content-box;
  box-sizing: border-box;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');
  background-position: bottom right;
  padding: 0 3px 3px 0;
}
.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}
.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}
.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}
.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}
.react-resizable-handle-w,
.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}
.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}
.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}
.react-resizable-handle-n,
.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}
.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}
.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}.flow-container {
  padding: 5px;
  height: calc(100% - 30px);
  overflow-y: auto;
  border-radius: 5px;
  white-space: pre-wrap;
}

.flow-item {
  padding: 5px 0;
  margin-bottom: 3px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.1s ease, color 0.1s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-item:hover {
  background-color: #333 !important;
  color: #ffffff;
}

.flow-item-left {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  cursor: pointer;
}

.flow-item-left-color {
  width: 5px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.flow-item-content {
  padding-left: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.flow-item-time,
.flow-item-stock-price,
.flow-item-strike,
.flow-item-expiration,
.flow-item-stock {
  flex: 0.75;
}

.flow-item-stock {
  font-weight: bold;
}

.flow-item-tag {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.flow-item-tag span {
  margin-right: 8px;
  font-weight: bold;
  font-size: 12px;
  font-family: "Fira Code", monospace;
  display: inline-block;
  text-align: right;
}

.flow-item-tag span:last-child {
  margin-left: 8px;
  width: 40px;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
}
/* Watchlist Panel Styles */
.watchlist-panel {
  padding: 4px 6px 6px 6px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-family: 'Quantico', monospace;
  user-select: none;
}

.watchlist-panel * {
  font-family: inherit;
}

/* Title Bar */
.watchlist-title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
  min-width: 0;
  flex-wrap: wrap;
}

.watchlist-dropdown-container {
  position: relative;
}

.watchlist-dropdown-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.watchlist-dropdown-button:hover {
  background-color: #222;
}

/* Scanner Dropdown Styles */
.scanner-dropdown-container {
  position: relative;
}

/* Consolidated Button Styles */
.watchlist-button {
  background: #232323;
  color: #fff;
  border: 1px solid #444;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.watchlist-button:hover {
  background: #333;
}

/* Special button variants */
.watchlist-button--sort {
  color: #888;
  font-size: 10px;
  font-weight: 600;
  min-width: 32px;
  transition: all 0.2s ease;
}

.watchlist-button--sort:hover {
  color: #fff;
}

.watchlist-button--sort.active {
  background: #4a5568;
  color: #fff;
  border-color: #718096;
}

.watchlist-button--action {
  background: none;
  border: none;
  color: #888;
  padding: 1px 2px;
  font-size: 10px;
  transition:
    color 0.2s,
    transform 0.2s;
  border-radius: 1px;
}

.watchlist-button--action:hover {
  transform: scale(1.1);
}

.watchlist-button--edit:hover {
  color: #00ff88;
}

.watchlist-button--delete:hover {
  color: #ff5c5c;
}

.watchlist-button--remove {
  color: #888;
  background: none;
  border: none;
  font-size: 14px;
  padding: 0 2px;
  width: 20px;
  text-align: center;
  transition:
    color 0.2s,
    transform 0.2s;
}

.watchlist-button--remove:hover {
  color: #ff5c5c;
  transform: scale(1.1);
}

.scanner-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px;
  z-index: 1000;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scanner-dropdown-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 4px 8px;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.scanner-dropdown-item:hover {
  background-color: #333;
}

.watchlist-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px;
  z-index: 1000;
  min-width: 180px;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.watchlist-dropdown-header {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #333;
  align-items: center;
}

.watchlist-search-input {
  flex: 1;
  background: #232323;
  color: #fff;
  border: 1px solid #444;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  min-width: 0;
}

.watchlist-search-input:focus {
  outline: none;
  border-color: #fff;
}

.watchlist-items-container {
  max-height: 60vh;
  overflow-y: auto;
}

.watchlist-no-results {
  padding: 8px;
  text-align: center;
  color: #888;
  font-size: 12px;
  font-style: italic;
}

.watchlist-item {
  padding: 2px 3px;
  cursor: pointer;
  background: transparent;
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
  font-size: 12px;
  margin-bottom: 1px;
}

.watchlist-item:hover,
.watchlist-item.active {
  background-color: #333;
}

.watchlist-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.watchlist-basket-change {
  font-size: 10px;
  font-weight: 400;
  padding: 1px 4px;
  border-radius: 2px;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}

.watchlist-name-text {
  font-weight: 400;
}

.watchlist-matching-symbols {
  color: #6c6c6c;
  font-size: 10px;
  font-weight: 400;
  margin-left: 2px;
  opacity: 0.9;
}

.watchlist-matching-label {
  font-weight: 500;
  color: #888;
}

.watchlist-basket-change.positive {
  color: #00ff88;
  background-color: rgba(0, 255, 136, 0.1);
}

.watchlist-basket-change.negative {
  color: #ff5c5c;
  background-color: rgba(255, 92, 92, 0.1);
}

.watchlist-basket-change.neutral {
  color: #888;
  background-color: rgba(136, 136, 136, 0.1);
}

.watchlist-item-actions {
  display: flex;
  gap: 1px;
  margin-left: 4px;
  flex-shrink: 0;
}

.watchlist-name-input {
  background: #232323;
  color: #fff;
  border: 1px solid #444;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  width: 100px;
  min-width: 0;
}

/* Watchlist Table */
.watchlist-table-container {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

.watchlist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.watchlist-table th,
.watchlist-table td {
  padding: 4px 8px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  box-sizing: border-box;
}

.watchlist-table th {
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #222;
  border-bottom: 1px solid #333;
}

/* Sort Icon Styles */
.sort-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
}

.sort-neutral::before,
.sort-neutral::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}

.sort-neutral::before {
  top: 1px;
  border-bottom: 3px solid #fff;
}

.sort-neutral::after {
  bottom: 1px;
  border-top: 3px solid #fff;
}

.sort-asc::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #fff;
}

.sort-desc::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #fff;
}

.watchlist-table th.sortable {
  min-width: 80px;
}

.watchlist-table tbody tr {
  border-bottom: 1px solid #222;
  transition: background-color 0.2s ease;
}

.watchlist-table tbody tr:hover {
  background-color: #232323;
}

.watchlist-row-selected {
  background-color: #2d3748 !important;
  /* border-left: 3px solid #4a9eff !important; */
  /* box-shadow: inset 0 0 0 1px #4a9eff !important; */
  position: relative;
}

.watchlist-row-selected:hover {
  background-color: #2d3748 !important;
}

.watchlist-symbol-cell {
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
  text-align: left;
}

.watchlist-symbol-cell:hover {
  color: rgb(183, 183, 183);
}

.watchlist-price-cell,
.watchlist-volume-cell,
.watchlist-volumenotional-cell,
.watchlist-change-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.watchlist-change-positive {
  color: #00ff88;
}

.watchlist-change-negative {
  color: #ff5c5c;
}

.watchlist-change-neutral {
  color: #fff;
}

/* Add specific width for the remove button column */
.watchlist-table th:last-child,
.watchlist-table td:last-child {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  padding: 4px 2px;
  text-align: center;
}

.watchlist-edit-input {
  width: 80px;
  font-weight: 600;
  background: #232323;
  color: #fff;
  border: 1px solid #444;
  padding: 2px 4px;
  border-radius: 2px;
}

.watchlist-add-row {
  color: #888;
}

/* Empty State Styles */
.watchlist-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: #888;
}

.watchlist-empty-message {
  text-align: center;
  max-width: 300px;
}

.watchlist-empty-message h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.watchlist-empty-message p {
  margin: 0 0 16px 0;
  font-size: 13px;
  line-height: 1.4;
  color: #888;
}

/* Ticker Description Tooltip */
.ticker-description-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  background: #232323;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.4;
  max-width: 300px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  margin-top: 4px;
  opacity: 0;
  animation: fadeInTooltip 0.2s ease-in-out forwards;
}

.ticker-description-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #232323;
}

@keyframes fadeInTooltip {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Watchlist Settings Modal Styles */
/* Locate Panel Styles - Following standard design patterns */
.locate-panel-main {
  background-color: #1a1a1a;
  color: #fff;
  padding: 4px;
  font-family: 'Quantico', sans-serif;
  height: 100%;
  user-select: none;
  overflow: auto;
  font-size: 12px;
}

/* Footer with status info */
.locate-footer {
  margin-top: 4px;
  padding: 4px 8px;
  background: #2a2a2a;
  border: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.locate-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.locate-messages {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Connection Status Bar - deprecated, keeping for compatibility */
.locate-status-bar {
  display: flex;
  justify-content: center;
  padding: 2px 4px;
  background: #333;
  margin-bottom: 4px;
  border: 1px solid #555;
}

/* Status Notifications Section */
.locate-notifications-section {
  background: #2a2a2a;
  border: 1px solid #444;
  margin-bottom: 4px;
  padding: 4px;
}

.locate-notifications-list {
  max-height: 120px;
  overflow-y: auto;
  margin-top: 4px;
}

.locate-notification-item {
  background: #333;
  border: 1px solid #555;
  padding: 4px 6px;
  margin-bottom: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: #e5e5e5;
}

.locate-clear-notifications-button {
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  margin-left: 8px;
}

.locate-clear-notifications-button:hover {
  background: #555;
}

.locate-connection-status {
  font-weight: 500;
  font-size: 11px;
}

.locate-connection-status--connected {
  color: #4ade80;
}

.locate-connection-status--disconnected {
  color: #f87171;
}

.locate-connection-status--error {
  color: #fbbf24;
}

/* Refresh Button */
.locate-refresh-button {
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  margin-left: 8px;
}

.locate-refresh-button:hover:not(:disabled) {
  background: #555;
}

.locate-refresh-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Order ID */
.locate-order-id {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #bbb;
}

/* Actions Column */
.locate-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  white-space: nowrap;
}

.locate-action-button {
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 1px 4px;
  font-size: 9px;
  cursor: pointer;
  min-width: 50px;
}

.locate-action-button:hover:not(:disabled) {
  background: #555;
}

.locate-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.locate-action-button--accept {
  background: #4ade80;
  border-color: #22c55e;
}

.locate-action-button--accept:hover:not(:disabled) {
  background: #22c55e;
}

.locate-action-button--reject {
  background: #f87171;
  border-color: #ef4444;
}

.locate-action-button--reject:hover:not(:disabled) {
  background: #ef4444;
}

.locate-status-text {
  font-size: 10px;
  color: #bbb;
  font-style: italic;
}

/* Enhanced Status Text Styles */
.locate-status-text--pending {
  color: #fbbf24;
  font-weight: 500;
}

.locate-status-text--submitted {
  color: #60a5fa;
  font-weight: 500;
}

.locate-status-text--offered {
  color: #4ade80;
  font-weight: 600;
  background: #065f46;
  padding: 1px 4px;
  border: 1px solid #10b981;
}

.locate-status-text--accepted {
  color: #22c55e;
  font-weight: 600;
  background: #064e3b;
  padding: 1px 4px;
  border: 1px solid #059669;
}

.locate-status-text--declined {
  color: #f87171;
  font-weight: 500;
}

.locate-status-text--expired {
  color: #9ca3af;
  font-weight: 500;
}

.locate-status-text--filled {
  color: #10b981;
  font-weight: 600;
  background: #064e3b;
  padding: 1px 4px;
  border: 1px solid #059669;
}

.locate-status-text--rejected {
  color: #ef4444;
  font-weight: 500;
}

.locate-status-text--available {
  color: #10b981;
  font-weight: 600;
  background: #064e3b;
  padding: 1px 4px;
  border: 1px solid #059669;
}

.locate-empty {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 10px;
}

/* Section Headers */
.locate-section-header {
  background: #333;
  color: #fff;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  display: inline-block;
}

/* Price Inquiry Section */
.locate-inquiry-section {
  margin-bottom: 6px;
}

.locate-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.locate-input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 60px;
}

.locate-input-group label {
  font-size: 10px;
  color: #bbb;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.locate-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.locate-input {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  padding: 2px 4px;
  font-size: 10px;
  font-family: 'Quantico', monospace;
  width: 100%;
  min-width: 50px;
  outline: none;
  transition: border-color 0.15s ease;
}

.locate-input:focus {
  border-color: #1e90ff;
}

.locate-input::placeholder {
  color: #666;
}

.locate-select {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  padding: 2px 4px;
  font-size: 10px;
  font-family: 'Quantico', monospace;
  width: 100%;
  min-width: 60px;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease;
}

.locate-select:focus {
  border-color: #1e90ff;
}

.locate-dropdown-arrow {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 8px;
  pointer-events: none;
}

.locate-button-group {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.locate-button {
  background: #393939;
  color: #fff;
  border: 1px solid #1e1e1e;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Quantico', monospace;
  min-width: 60px;
}

.locate-button:hover:not(:disabled) {
  background: #444;
}

.locate-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.locate-button--inquire {
  background: #1e90ff;
  border-color: #1e90ff;
}

.locate-button--inquire:hover:not(:disabled) {
  background: #0070cc;
  border-color: #0070cc;
}

.locate-button--refresh-pending {
  background: #444;
  color: #fff;
  border: 1px solid #666;
  padding: 3px 6px;
  font-size: 11px;
  cursor: pointer;
  margin-left: 8px;
}

.locate-button--refresh-pending:hover:not(:disabled) {
  background: #555;
}

.locate-button--refresh-pending:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.locate-button--inquire-all {
  background: #4a5568;
  border-color: #4a5568;
}

.locate-button--inquire-all:hover:not(:disabled) {
  background: #2d3748;
  border-color: #2d3748;
}

.locate-button--batch {
  background: #d32f2f;
  border-color: #d32f2f;
  margin-top: 6px;
}

.locate-button--batch:hover:not(:disabled) {
  background: #b71c1c;
  border-color: #b71c1c;
}

/* Inquiry Result */
.locate-inquiry-result {
  background: #00ff88;
  color: #000;
  padding: 2px 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Quantico', monospace;
  margin-top: 2px;
  display: inline-block;
}

/* Account Section */
.locate-account-section {
  margin-bottom: 12px;
}

/* Action Buttons */
.locate-action-buttons {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

/* Batch Section */
.locate-batch-section {
  margin-bottom: 12px;
}

/* Unified Locate Section */
.locate-unified-section {
  background: #2a2a2a;
  border: 1px solid #444;
  margin-bottom: 4px;
  padding: 4px;
  min-height: 150px;
}

/* Locate Requests Table */
.locate-requests-section {
  flex: 1;
  overflow: auto;
  min-height: 200px;
}

.locate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  table-layout: fixed;
  background: #1a1a1a;
}

/* Column widths - more balanced layout */
.locate-table th:nth-child(1),
.locate-table td:nth-child(1) {
  width: 12%;
} /* Symbol */
.locate-table th:nth-child(2),
.locate-table td:nth-child(2) {
  width: 8%;
} /* Qty */
.locate-table th:nth-child(3),
.locate-table td:nth-child(3) {
  width: 8%;
} /* Located */
.locate-table th:nth-child(4),
.locate-table td:nth-child(4) {
  width: 10%;
} /* Cost */
.locate-table th:nth-child(5),
.locate-table td:nth-child(5) {
  width: 8%;
} /* MPID */
.locate-table th:nth-child(6),
.locate-table td:nth-child(6) {
  width: 20%;
} /* Status */
.locate-table th:nth-child(7),
.locate-table td:nth-child(7) {
  width: 12%;
} /* Time */

.locate-table th {
  background: #181818;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  padding: 2px;
  text-align: left;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 2;
  letter-spacing: 0.1px;
  text-transform: uppercase;
}

.locate-table td {
  color: #fff;
  font-size: 9px;
  padding: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'Quantico', monospace;
  white-space: nowrap;
}

.locate-table td.locate-actions {
  overflow: visible;
}

.locate-table-row:hover {
  background-color: #232323;
  transition: background-color 0.1s;
}

.locate-symbol-cell {
  font-weight: 600;
  color: #64b5f6;
}

.locate-status {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 9px;
}

.locate-status--located {
  color: #00ff88;
}

.locate-status--rejected {
  color: #ff5c5c;
}

.locate-status--pending {
  color: #ffc107;
}

.locate-status--expired {
  color: #888;
}

.locate-pending-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.locate-notes {
  color: #00ff88;
  font-weight: 600;
  font-size: 9px;
}

/* Compact Mode Styles */
.locate-panel-main.compact .locate-table th,
.locate-panel-main.compact .locate-table td {
  padding: 2px 4px;
  font-size: 9px;
}

.locate-panel-main.compact .locate-input {
  padding: 2px 16px 2px 4px;
  font-size: 10px;
}

.locate-panel-main.compact .locate-select {
  padding: 2px 16px 2px 4px;
  font-size: 10px;
}

.locate-panel-main.compact .locate-button {
  padding: 2px 6px;
  font-size: 10px;
}

.locate-panel-main.compact .locate-action-button {
  padding: 2px 6px;
  font-size: 10px;
}

/* Scrollbar Styling */
.locate-requests-section::-webkit-scrollbar {
  width: 4px;
}

.locate-requests-section::-webkit-scrollbar-track {
  background: transparent;
}

.locate-requests-section::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}

.locate-requests-section::-webkit-scrollbar-thumb:hover {
  background: #555;
}
body {
  margin: 0;
  font-family: 'Inter', monospace;
}

.logs-container {
  gap: 4px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #191919;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
}

.logs-log {
  padding: 8px;
  max-width: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.logs-log::after {
  content: '';
  display: block;
  height: 16px;
  flex-shrink: 0;
}

.logs-log > .out {
  color: #e0e0e0;
}

.logs-log > .error {
  color: #f44336;
}

.log-entry {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  min-height: 1.2em;
  width: 100%;
}

.log-timestamp {
  color: #279e06;
  white-space: nowrap;
  font-family: 'Fira Code', monospace;
  flex-shrink: 0;
  margin-right: 8px;
}

.logs-log-message {
  color: #e0e0e0;
  word-wrap: break-word;
  white-space: pre-wrap;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.log-entry.error .logs-log-message {
  color: #f44336;
}

.log-entry.error .log-timestamp {
  color: #ff6b6b;
}

.logs-log::-webkit-scrollbar {
  width: 8px;
  background: #191919;
}

.logs-log::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 8px;
}

.logs-log::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(25, 25, 25, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 0;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 10;
  pointer-events: all;
}

.scroll-to-bottom-btn {
  background: transparent;
  color: #888;
  border: none;
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.scroll-to-bottom-btn:hover {
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-to-bottom-btn:active {
  color: #ccc;
}
.symbol-search-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.symbol-search-input {
  padding: 6px 8px;
  border-radius: 4px;
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #333;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  transition: border-color 0.2s ease;
}

.symbol-search-input:focus {
  border-color: #4a9eff;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.symbol-search-input::placeholder {
  color: #666;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 400px;
  max-height: 400px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.suggestions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: 'Quantico', monospace;
}

.suggestions-table th,
.suggestions-table td {
  padding: 2px 6px;
  text-align: left;
  border-bottom: 1px solid #232323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestions-table th {
  background: #232323;
  color: #fff;
  position: sticky;
  top: 0;
  font-weight: 600;
  font-size: 10px;
  font-family: 'Quantico', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 22px;
  cursor: pointer;
}

.suggestions-table tr {
  height: 28px;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.suggestions-table tr:hover,
.suggestions-table tr.highlighted {
  background: #232323;
}

.suggestions-table td:first-child {
  font-weight: 600;
  color: #fff;
  font-family: 'Quantico', monospace;
  font-size: 12px;
}

.suggestions-table td:nth-child(2) {
  max-width: 140px;
  font-size: 11px;
  font-family: 'Quantico', monospace;
}

.suggestions-table td:nth-child(3) {
  text-align: right;
  font-family: 'Quantico', monospace;
  color: #bdbdbd;
  font-weight: 700;
  font-size: 12px;
}

.no-suggestions {
  text-align: center;
  color: #888;
  font-style: italic;
  font-family: 'Quantico', monospace;
  padding: 8px;
}

/* Scrollbar */
.suggestions-dropdown::-webkit-scrollbar {
  width: 8px;
}

.suggestions-dropdown::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Sort indicators */
.suggestions-table th::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.3;
}

.suggestions-table th:hover::after {
  opacity: 0.6;
}

/* Loading state */
.suggestions-dropdown.loading {
  opacity: 0.7;
}

.suggestions-dropdown.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-top: 2px solid #4a9eff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .suggestions-dropdown {
    width: 100vw;
    left: 0;
    right: 0;
  }
}

@media (max-width: 900px) {
  .suggestions-dropdown {
    width: 98vw;
  }
}
.options-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 4px;
  gap: 4px;
  font-family: 'Quantico', sans-serif;
  user-select: none;
}

.options-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  flex-shrink: 0;
}

/* Trade Panel */
.options-trade-panel-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
  flex-shrink: 0;
}

.options-trade-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 8px;
  flex: 0 0 auto;
  min-width: 210px;
  max-width: 350px;
  width: 210px;
  display: flex;
  flex-direction: column;
}

.options-trade-panel-chart {
  flex: 1 1 200px;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  min-height: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.options-trade-panel-chart > * {
  flex: 1;
  min-height: 0;
}

.options-trade-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.options-trade-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.options-trade-panel-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.options-trade-panel-close:hover {
  color: rgba(255, 255, 255, 1);
}

.options-trade-panel-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.options-trade-panel-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.options-trade-panel-contract {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Fira Code', monospace;
}

.options-trade-panel-prices {
  display: flex;
  flex-direction: column;
  /* gap: 2px; */
  font-size: 10px;
}

.options-trade-panel-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 1px 0; */
}

.options-trade-panel-price-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 11px;
}

.options-trade-panel-price-value {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
}

.options-trade-panel-price-value.clickable {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  transition: all 0.2s;
}

.options-trade-panel-price-value.clickable:hover {
  background: rgba(100, 100, 255, 0.2);
  color: rgba(100, 100, 255, 1);
}

.options-trade-panel-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.options-trade-panel-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.options-trade-panel-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
}

.options-trade-panel-select,
.options-trade-panel-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
  outline: none;
  transition: all 0.2s;
}

.options-trade-panel-select {
  cursor: pointer;
}

.options-trade-panel-select option {
  background: #1e1e1e;
  color: rgba(255, 255, 255, 0.9);
}

.options-trade-panel-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.options-trade-panel-select:focus,
.options-trade-panel-input:focus {
  border-color: rgba(100, 100, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.options-trade-panel-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.options-trade-panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.options-trade-panel-buy,
.options-trade-panel-sell {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Quantico', sans-serif;
}

.options-trade-panel-buy {
  background: rgba(100, 200, 100, 0.2);
  color: rgba(100, 200, 100, 1);
  border: 1px solid rgba(100, 200, 100, 0.4);
}

.options-trade-panel-buy:hover {
  background: rgba(100, 200, 100, 0.3);
  border-color: rgba(100, 200, 100, 0.6);
}

.options-trade-panel-sell {
  background: rgba(200, 100, 100, 0.2);
  color: rgba(200, 100, 100, 1);
  border: 1px solid rgba(200, 100, 100, 0.4);
}

.options-trade-panel-sell:hover {
  background: rgba(200, 100, 100, 0.3);
  border-color: rgba(200, 100, 100, 0.6);
}

/* Expiration Tabs */
.expiration-tabs-container {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.expiration-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.expiration-tabs::-webkit-scrollbar {
  height: 8px;
}

.expiration-tabs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.expiration-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.expiration-tabs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.expiration-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 12px;
  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;
  min-width: 90px;
  user-select: none;
}

.expiration-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.expiration-tab.active {
  background: rgba(100, 100, 255, 0.2);
  border-color: rgba(100, 100, 255, 0.4);
}

.expiration-date {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
}

.expiration-days {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1px;
}

/* Controls Bar */
.options-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.options-controls-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.options-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.options-dropdown:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.options-dropdown:focus {
  border-color: rgba(100, 100, 255, 0.4);
}

/* Options Table */
.options-table-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.options-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px 4px;
  background: #191919;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  gap: 4px;
  position: sticky;
  top: 0;
  z-index: 101;
  flex-shrink: 0;
  position: relative;
}

.atm-iv-left {
  position: absolute;
  left: 8px;
  top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.atm-iv-right {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.calls-header {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puts-header {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strikes-control-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 102;
}

/* Table Subheader */
.options-table-subheader {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(40px, 1fr);
  gap: 2px;
  padding: 2px 4px;
  background: #191919;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  position: sticky;
  top: 32px;
  z-index: 100;
  text-align: center;
  flex-shrink: 0;
  /* margin-top: 4px; */
}

/* Table Body */
.options-table-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}

.options-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(40px, 1fr);
  gap: 2px;
  padding: 2px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
  font-size: 10px;
  text-align: center;
  align-items: center;
  min-height: 22px;
}

.options-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.options-row.selected {
  background: rgba(100, 100, 255, 0.15);
  border: 1px solid rgba(100, 100, 255, 0.3);
}

.strike-price {
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(100, 100, 255, 0.15);
  padding: 3px 0;
  border-radius: 2px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Column Styles - Call Columns */
.col-call-volume,
.col-call-bidSize,
.col-call-askSize,
.col-call-impliedVol,
.col-call-delta,
.col-call-theta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.col-call-bid {
  color: rgba(150, 180, 220, 0.9);
  font-weight: 500;
  font-size: 10px;
}

.col-call-bid.clickable:hover {
  background: rgba(150, 180, 220, 0.15);
  border-radius: 2px;
}

.col-call-ask {
  color: rgba(220, 180, 130, 0.9);
  font-weight: 500;
  font-size: 10px;
}

.col-call-ask.clickable:hover {
  background: rgba(220, 180, 130, 0.15);
  border-radius: 2px;
}

/* Column Styles - Put Columns */
.col-put-volume,
.col-put-bidSize,
.col-put-askSize,
.col-put-impliedVol,
.col-put-delta,
.col-put-theta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.col-put-bid {
  color: rgba(150, 180, 220, 0.9);
  font-weight: 500;
  font-size: 10px;
}

.col-put-bid.clickable:hover {
  background: rgba(150, 180, 220, 0.15);
  border-radius: 2px;
}

.col-put-ask {
  color: rgba(220, 180, 130, 0.9);
  font-weight: 500;
  font-size: 10px;
}

.col-put-ask.clickable:hover {
  background: rgba(220, 180, 130, 0.15);
  border-radius: 2px;
}

/* No bid/ask styling (when value is -1) */
.col-call-bid.no-bid-ask,
.col-call-ask.no-bid-ask,
.col-put-bid.no-bid-ask,
.col-put-ask.no-bid-ask {
  color: rgba(255, 80, 80, 0.9) !important;
  font-weight: 600;
}

/* ITM (In The Money) shading */
[class^='col-call-'].itm,
[class*=' col-call-'].itm {
  background: rgba(100, 200, 100, 0.08);
  padding: 3px 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[class^='col-put-'].itm,
[class*=' col-put-'].itm {
  background: rgba(100, 200, 100, 0.08);
  padding: 3px 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .options-table-subheader,
  .options-row {
    font-size: 9px;
  }

  .strike-price {
    font-size: 10px;
  }
}

/* Scrollbar styling for table body */
.options-table-body::-webkit-scrollbar {
  width: 8px;
}

.options-table-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.options-table-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.options-table-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Quantity Preset Buttons */
.quantity-preset-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.quantity-preset-button {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  background-color: rgba(25, 25, 25, 0.95);
  border: 1px solid rgba(180, 180, 249, 0.15);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 22px;
  font-family: 'Inter';
  font-weight: 500;
  font-size: 10px;
  padding: 0 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.quantity-preset-button:hover {
  border-color: rgba(180, 180, 249, 0.25);
  color: #fff;
}

.quantity-preset-button:active {
  background-color: rgba(180, 180, 249, 0.15);
  border-color: rgba(180, 180, 249, 0.3);
}

/* Strikes Dropdown */
.strikes-control-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.strikes-control-wrapper:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.strikes-input {
  width: 30px;
  height: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  outline: none;
  text-align: center;
  padding: 0;
  margin: 0;
  line-height: 16px;
  box-sizing: border-box;
}

.strikes-value-display {
  font-size: 11px;
  color: #fff;
  padding: 0;
  margin: 0;
  cursor: text;
  min-width: 30px;
  width: 30px;
  height: 16px;
  text-align: center;
  display: inline-block;
  line-height: 16px;
  box-sizing: border-box;
}

.strikes-dropdown-button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 2px;
  display: flex;
  align-items: center;
  font-size: 9px;
  height: 16px;
  line-height: 16px;
}

.strikes-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
  z-index: 1000;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.strikes-dropdown-item {
  padding-left: 8px;
  padding-right: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  border-radius: 2px;
  transition: background-color 0.2s;
}

.strikes-dropdown-item:first-child {
  padding-top: 0;
}

.strikes-dropdown-item:not(:last-child) {
  padding-bottom: 2px;
}

.strikes-dropdown-item:last-child {
  padding-bottom: 0;
}

.strikes-dropdown-item.selected {
  background-color: rgba(100, 100, 255, 0.3);
}

.strikes-dropdown-item:not(.selected):hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.pnl-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  font-family: 'Quantico', sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  overflow: hidden;
  user-select: none;
}

.pnl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #232323;
  border-bottom: 1.5px solid #181818;
  height: 36px;
  min-height: 36px;
}

.pnl-header h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pnl-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.timeframe-buttons {
  display: flex;
  gap: 2px;
  background: #181818;
  border-radius: 2px;
  padding: 2px;
  border: 1px solid #333;
}

.timeframe-btn {
  padding: 4px 10px;
  background: transparent;
  color: #888;
  border: none;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  height: 24px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeframe-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #aaa;
}

.timeframe-btn.active {
  background: #45b5ff;
  color: #000;
  font-weight: 600;
}

.setup-button {
  padding: 4px 8px;
  background-color: #555;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.15s;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.setup-button:hover {
  background-color: #666;
}

.clear-button {
  padding: 4px 8px;
  background-color: #ff4800;
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.15s;
  height: 24px;
}

.clear-button:hover {
  background-color: #ff6020;
}

.broker-select {
  padding: 4px 8px;
  background-color: #181818;
  color: #fff;
  border: 1px solid #333;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  cursor: pointer;
  height: 24px;
}

.broker-select:focus {
  outline: none;
  border-color: #45b5ff;
}

.load-button {
  padding: 4px 12px;
  background-color: #45b5ff;
  color: #000;
  border: none;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
  height: 24px;
}

.load-button:hover:not(:disabled) {
  background-color: #5ac5ff;
}

.load-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pnl-filters {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background-color: #232323;
  border-bottom: 1px solid #181818;
  gap: 12px;
  height: 32px;
  min-height: 32px;
}

.symbol-filter-input {
  flex: 1;
  max-width: 200px;
  padding: 4px 8px;
  background-color: #181818;
  border: 1px solid #333;
  border-radius: 2px;
  color: #f0f0f0;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  height: 22px;
}

.symbol-filter-input:focus {
  outline: none;
  border-color: #45b5ff;
}

.symbol-filter-input::placeholder {
  color: #666;
}

.min-pnl-filter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.min-pnl-filter label {
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.min-pnl-input {
  width: 80px;
  padding: 4px 8px;
  background-color: #181818;
  border: 1px solid #333;
  border-radius: 2px;
  color: #f0f0f0;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  height: 22px;
}

.min-pnl-input:focus {
  outline: none;
  border-color: #45b5ff;
}

.pnl-summary {
  display: flex;
  gap: 20px;
  padding: 8px 12px;
  background-color: #232323;
  border-bottom: 1px solid #181818;
  height: 48px;
  min-height: 48px;
  align-items: center;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-label {
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.summary-value {
  font-size: 13px;
  font-weight: 600;
}

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

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

.summary-value.commission {
  color: #fffa9f;
}

.pnl-table-container {
  flex: 1;
  overflow: auto;
  background-color: #1a1a1a;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #666;
  font-size: 11px;
}

.pnl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.pnl-table thead {
  position: sticky;
  top: 0;
  background-color: #181818;
  z-index: 1;
}

.pnl-table th {
  padding: 4px 6px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 20px;
}

.pnl-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.pnl-table tbody tr:hover {
  background-color: #232323;
  transition: background-color 0.1s;
}

.symbol-cell {
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
}

.option-details {
  font-size: 9px;
  color: #888;
  font-weight: normal;
  margin-left: 4px;
}

.side-badge {
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 600;
}

.side-badge.buy,
.side-badge.bot {
  color: #00ff88;
}

.side-badge.sell,
.side-badge.sld {
  color: #ff5c5c;
}

.pnl-table .commission {
  color: #fffa9f;
  font-size: 10px;
}

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

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

.pnl-table .pnl.loss {
  color: #ff5c5c;
}

.datetime-cell {
  font-size: 10px;
  color: #888;
}

/* Setup screen styles */
.pnl-setup {
  padding: 12px;
  max-width: 700px;
  margin: 0 auto;
  overflow-y: auto;
  height: 100%;
}

.setup-instructions {
  background-color: #232323;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 12px;
}

.setup-instructions h3 {
  margin-top: 0;
  color: #45b5ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.setup-instructions ol {
  margin-left: 16px;
  line-height: 1.6;
  font-size: 11px;
}

.setup-instructions ul {
  margin: 4px 0 4px 16px;
  font-size: 10px;
  line-height: 1.5;
}

.setup-instructions a {
  color: #45b5ff;
  text-decoration: none;
}

.setup-instructions a:hover {
  text-decoration: underline;
}

.setup-form {
  background-color: #232323;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.flex-input {
  width: 100%;
  padding: 6px 8px;
  background-color: #181818;
  color: #fff;
  border: 1px solid #333;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  height: 28px;
}

.flex-input:focus {
  outline: none;
  border-color: #45b5ff;
}

.save-button {
  width: 100%;
  padding: 8px;
  background-color: #45b5ff;
  color: #000;
  border: none;
  border-radius: 2px;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
  margin-top: 6px;
  height: 32px;
}

.save-button:hover:not(:disabled) {
  background-color: #5ac5ff;
}

.save-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.setup-form .broker-select {
  width: 100%;
  height: 28px;
}

/* Section Headers */
.pnl-section-header {
  background-color: #232323;
  border-bottom: 1px solid #181818;
  padding: 0;
}

.section-toggle-btn {
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Quantico', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.1s;
}

.section-toggle-btn:hover {
  background-color: #2a2a2a;
}

.section-toggle-btn span:first-child {
  font-size: 9px;
  color: #888;
}

/* Metrics Section */
.pnl-metrics {
  background-color: #1a1a1a;
  border-bottom: 1px solid #181818;
  padding: 12px;
}

.metrics-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.metrics-row:last-child {
  margin-bottom: 0;
}

.metric-card {
  flex: 1;
  background-color: #232323;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-card.long-card {
  flex: 1;
}

.metric-card.short-card {
  flex: 1;
}

.metric-label {
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.metric-subtext {
  font-size: 9px;
  color: #666;
}

/* Symbol Performance */
.symbol-performance {
  display: flex;
  gap: 12px;
}

.performance-section {
  flex: 1;
  background-color: #232323;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 8px;
}

.performance-section h3 {
  margin: 0 0 6px 0;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}

.performance-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.performance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background-color: #1a1a1a;
  border-radius: 2px;
}

.perf-symbol {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  min-width: 60px;
}

.perf-trades {
  font-size: 9px;
  color: #888;
  flex: 1;
}

.perf-pnl {
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

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

.perf-pnl.loss {
  color: #ff5c5c;
}

/* P&L Chart Section */
.pnl-chart-section {
  background-color: #1a1a1a;
  border-bottom: 1px solid #181818;
  padding: 12px;
}

.pnl-chart-container {
  width: 100%;
  height: 300px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 4px;
}
.stock-stop-menu-container,
.stock-close-menu-container,
.option-close-menu-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  width: 220px;
  background-color: rgba(28, 28, 28, 0.98);
  border: 1px solid #333;
  z-index: 100;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: 'Quantico', sans-serif;
}

/* Size options styling */
.size-options-sl,
.size-options {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 1px;
}

.size-options-sl span,
.size-options span {
  cursor: pointer;
  padding: 4px 2px;
  background-color: #252525;
  flex-grow: 1;
  text-align: center;
  font-size: 0.9em;
  transition: background-color 0.15s ease;
}

.size-options-sl span:hover,
.size-options span:hover {
  background-color: #333;
}

.size-options-sl span:first-child,
.size-options span:first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.size-options-sl span:last-child,
.size-options span:last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* Selected state with gradients */
.size-options span.selected {
  background: linear-gradient(to right, #2c6b95, #3ea3e6);
  color: #fff;
}

.size-options-sl span.selected {
  background: linear-gradient(to right, rgb(179, 118, 43), #e59024);
  color: #fff;
}

/* Trade options styling */
.trade-options {
  display: flex;
  gap: 8px;
}

.market-option {
  cursor: pointer;
  padding: 6px;
  background-color: #252525;
  color: #fff;
  text-align: center;
  width: 70px;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.market-option:hover {
  background-color: #333;
}

.limit-section {
  flex-grow: 1;
}

/* Option rows styling */
.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 6px;
  margin: 2px 0;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.option:hover {
  background-color: #333;
}

.option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #666;
}

.option.disabled:hover {
  background-color: #252525;
}

.sl-entry {
  color: #e59024;
}

.label {
  font-size: 0.9em;
  color: #ccc;
}

/* Input styling */
.custom-limit-input {
  width: 65px;
  padding: 2px 4px;
  background-color: #252525;
  color: #fff;
  border: 1px solid #444;
  border-radius: 3px;
  text-align: right;
  font-size: 0.9em;
}

.custom-limit-input:focus {
  outline: none;
  border-color: #555;
  background-color: #2a2a2a;
}

.custom-limit-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #1a1a1a;
  color: #666;
}

/* Stop-limit inputs styling */
.stop-limit-inputs {
  display: flex;
  gap: 4px;
}

.stop-limit-inputs .custom-limit-input {
  width: 60px;
}

/* Stop-limit section styling */
.stop-limit-section {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #333;
}

/* Button styling */
.trade-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.9em;
  transition: background-color 0.15s ease;
  font-family: 'Quantico', sans-serif;
  cursor: pointer;
}

.trade-sl-button {
  background-color: rgba(229, 144, 36, 0.15);
  color: #e59024;
  border: 1px solid rgba(229, 144, 36, 0.3);
}

.trade-sl-button:hover {
  background-color: rgba(229, 144, 36, 0.25);
}

.trade-close-button {
  background-color: rgba(62, 163, 230, 0.15);
  color: #3ea3e6;
  border: 1px solid rgba(62, 163, 230, 0.3);
}

.trade-close-button:hover {
  background-color: rgba(62, 163, 230, 0.25);
}

.down-arrow-icon {
  width: 10px;
  height: 10px;
  opacity: 0.8;
}

/* Chart Position Menu */
.chart-position-menu {
  position: fixed;
  z-index: 10000;
  background-color: #1e1e1e;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px;
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: 'Quantico', sans-serif;
}

.chart-position-menu button {
  font-family: 'Quantico', sans-serif;
}

.chart-position-menu input {
  font-family: 'Quantico', sans-serif;
}.position-panel-main {
  background-color: #1a1a1a;
  color: #fff;
  padding: 0 0 0 0;
  font-family: 'Quantico', sans-serif;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border: none;
  height: 100%;
  user-select: none;
  overflow: auto;
  /* z-index: 0; */
}

.tabs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  background: #232323;
  padding: 0 0 0 0;
  margin: 0;
  border-radius: 0;
  width: 100%;
  height: 28px;
  border-bottom: 1.5px solid #181818;
  position: static;
  z-index: 1;
}

.tab {
  padding: 0 18px;
  height: 28px;
  border: none;
  background: none;
  color: #bbb;
  cursor: pointer;
  border-radius: 0;
  font-size: 13px;
  /* font-family: 'Quantico', sans-serif; */
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  margin: 0;
  transition:
    color 0.15s,
    border-bottom 0.15s;
}

.tab.active {
  color: #fff;
  border-bottom: 2px solid #fff;
  background: none;
}

.tab:not(.active):hover {
  color: #fff;
  background: none;
}

.broker-section {
  margin-left: 0;
  margin-top: 0;
}

.position-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  table-layout: fixed;
  text-align: left;
}

.position-table th,
.position-table td {
  padding: 4px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-table th {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #181818;
  height: 20px;
  letter-spacing: 0.2px;
}

.position-table td {
  color: #fff;
  font-size: 11px;
  height: 20px;
}

.position-table tr {
  min-height: 20px;
}

.position-table tr:hover {
  background-color: #232323;
  transition: background-color 0.1s;
}

.privacy-toggle {
  background: none;
  border: none;
  padding: 0 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  height: 28px;
}

.privacy-icon {
  width: 16px;
  height: 16px;
}

.button-container {
  display: flex;
  gap: 4px;
}

.position-table td .position-status {
  margin-top: 3px;
  font-size: 0.85em;
}

.position-table td {
  color: #ccc;
  font-size: 0.95em;
}

.equity-row,
.option-row {
  /* cursor: pointer; */
  background-color: #2b2b2b;
  /* font-weight: 600; */
}

td.combined-size {
  color: #fff;
  font-size: 1em;
}
.arrow {
  font-size: 11px;
  padding-right: 5px;
}

td.pnl-cell .pnl-percentage {
  color: #ccc;
  font-size: 0.75em;
  margin-top: 5px;
  display: block;
}

.position-status.long {
  color: #00ff88;
}

.position-status.short {
  color: #ff5c5c;
}

.white {
  color: white !important;
}

.sub-info {
  color: #aaa;
  font-size: 0.75em;
}

.broker-badge {
  margin-left: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
}

.broker-badge.clearstreet {
  background-color: #4f00ce; /* Clearstreet purple */
}

.broker-badge.ibkr {
  background-color: #ff0000; /* IBKR red */
}

.pending-orders-table {
  width: 100%;
}

.pending-order-row {
  background: rgba(255, 255, 255, 0.02);
}

.pending-order-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.order-side {
  font-weight: bold;
}

.order-side.buy {
  color: #90ee90;
}

.order-status {
  color: #999;
}

.cancel-button {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-button:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.3);
}

/* History Panel */
.history-list {
  width: 100%;
  overflow: auto;
  height: 90%;
}

.history-header,
.history-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  min-height: 36px;
  font-family: 'Quantico', 'Fira Code', 'Consolas', monospace;
}

.history-header {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  background: #181818;
  height: 20px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-header span {
  padding: 4px 6px;
  text-transform: none;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.history-header span:first-child {
  padding-left: 16px;
}

.history-row {
  color: #fff;
  font-size: 14px;
  border-radius: 2px;
  margin-bottom: 1px;
  cursor: pointer;
  background: none;
  transition: background 0.15s;
}

.history-row:hover {
  background: #232323;
}

.history-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  font-family: inherit;
  gap: 6px;
}

.history-symbol {
  /* font-weight: 600; */
  font-size: 15px;
  letter-spacing: 0.5px;
}

.history-side {
  /* font-weight: 600; */
  font-size: 13px;
  margin-left: 0;
  text-transform: capitalize;
  text-align: left;
  width: auto;
}

.history-side.buy {
  color: #00ff88;
}
.history-side.sell {
  color: #ff5c5c;
}

.history-pnl {
  /* font-weight: 700; */
  font-size: 15px;
  font-family: inherit;
}

.history-pnl.positive {
  color: #00ff88;
}
.history-pnl.negative {
  color: #ff5c5c;
}

.history-col.vertical {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.history-row .history-col.vertical:first-child {
  padding-left: 16px;
}

/* Compact Mode Styles */
.position-table.compact th,
.position-table.compact td {
  padding: 2px 6px;
  height: 24px;
  vertical-align: middle;
}

.position-table.compact .equity-row,
.position-table.compact .option-row {
  min-height: 24px;
}

.position-table.compact .position-status {
  display: inline;
  margin-left: 8px;
  font-size: 10px;
}

.position-table.compact .broker-badge {
  margin-left: 4px;
  padding: 1px 3px;
  font-size: 9px;
  vertical-align: middle;
}

.position-table.compact .sub-info {
  display: inline;
  margin-left: 6px;
  font-size: 10px;
  color: #888;
}

.position-table.compact .pnl-percentage {
  display: inline;
  margin-left: 6px;
  margin-top: 0;
  font-size: 10px;
}

.position-table.compact .combined-size {
  font-size: 11px;
}

.position-table.compact .pnl-cell {
  font-size: 11px;
}

.position-table.compact .white {
  font-size: 11px;
}

.position-table.compact .button-container {
  gap: 2px;
}

.position-table.compact .trade-button {
  padding: 2px 6px;
  font-size: 10px;
  height: 20px;
  min-width: 28px;
}

.position-table.compact .down-arrow-icon {
  width: 8px;
  height: 8px;
  margin-left: 2px;
}

/* Option symbol styling */
.option-symbol {
  font-weight: normal;
  font-size: 0.85em;
}

/* Compact mode for options */

.position-table.compact td {
  font-size: 10px;
}

.position-table.compact th {
  font-size: 10px;
}

/* Make symbol text more prominent in compact mode */
.position-table.compact td:first-child {
  color: #ffffff !important;
  font-size: 12px !important;
  /* font-weight: 600; */
}

/* Compact mode: Simple left border for long/short with circle indicator for broker */
.position-table.compact .equity-row.long,
.position-table.compact .option-row.long {
  border-left: 3px solid #00ff88;
}

.position-table.compact .equity-row.short,
.position-table.compact .option-row.short {
  border-left: 3px solid #ff5c5c;
}

/* Broker circle indicators */
.broker-circle {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  /* margin-left: 0px; */
  margin-right: 4px;
}

.broker-circle.clearstreet {
  background-color: #9966ff; /* Brighter purple */
}

.broker-circle.ibkr {
  background-color: #ff4444; /* Brighter red */
}

/* Hide position status text in compact mode only */
.position-table.compact .position-status {
  display: none;
}
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

body {
  margin: 0;
  font-family: 'Inter', monospace;
  background-color: #1a1a1a;
  color: white;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.leveraged-etfs-panel {
  height: 175px;
  overflow-y: auto;
  margin-top: 5px;
}

.single-source-container {
  height: 100%;
}

.panel-wrapper {
  width: 100%;
  height: 100%;
  background: var(--color-bg-base);
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-alt);
  user-select: none;
  padding: 2px 0px 0px 6px;
  margin-bottom: 5px;
  width: 100%;
  box-sizing: border-box;
}

.panel-child {
  padding: 0px 6px;
  height: 100%;
}

.panel-header .drag-handle {
  flex: 1;
  cursor: move;
  color: var(--color-text-dim);
  font-size: 12px;
  font-family: 'Quantico', sans-serif;
  letter-spacing: 0.3px;
}

.popout-panel .panel-header .drag-handle {
  -webkit-app-region: drag;
}

.popout-panel .panel-header .panel-controls {
  -webkit-app-region: no-drag;
}

.panel-header .panel-controls {
  display: flex;
  align-items: center;
}

.panel-header .panel-controls button {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-header .panel-controls button img {
  width: 14px;
  height: 14px;
}

.panel-header .panel-controls button:hover {
  background: var(--color-bg-hover);
  border-radius: 4px;
  transform: translateY(-1px);
}

.panel-toolbar {
  display: flex;
  align-items: center;
}

.panel-toolbar button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 32px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 2px;
  box-sizing: border-box;
}

.panel-toolbar button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.panel-toolbar button img {
  width: 20px;
  height: 20px;
}

/* Remove the container z-index styles since we'll use portals */
.stock-stop-menu-container,
.stock-close-menu-container {
  position: relative;
}

/* Navbar */
.navbar-container {
  background-color: #090909;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #e0e0e0;
  font-family: 'Roboto', sans-serif;
  border-bottom: 1px solid #333;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  user-select: none;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
  gap: 6px;
}

.navbar-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  -webkit-app-region: no-drag;
  gap: 6px;
}

.navbar-logo {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
}

.navbar-logo:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.draggable-center-area {
  flex-grow: 1;
  height: 100%;
  -webkit-app-region: drag;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-center {
  display: flex;
  align-items: center;
}

.window-controls {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.window-control-button {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.window-control-button:hover {
  background: #333;
  color: #fff;
}

.window-control-button.close-button:hover {
  background: #ff4800;
  color: #fff;
}

.window-control-button img {
  width: 12px;
  height: 12px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
