.table-open-positions-component h1 {
    font-family: "Courier New", Courier, monospace;
    border-bottom: 1px solid #455155;
    padding-bottom: 8px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: none;
    color: rgb(224, 224, 224);
}

.table-open-positions-component .table-wrapper {
    max-height: 180px;
    overflow-y: scroll;
    border: 1px solid #3a4149;
    border-radius: 6px;
    background: rgba(10, 15, 16, 0.5);
    width: 100%;
}

.table-open-positions-component .table-wrapper::-webkit-scrollbar {
    width: 12px;
}
.table-open-positions-component .table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.table-open-positions-component .table-wrapper::-webkit-scrollbar-thumb {
    background-color: #455155;
    border-radius: 10px;
    border: 4px solid transparent;
    background-clip: content-box;
}

.table-open-positions-component .orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
    table-layout: fixed;
}

.table-open-positions-component #positions-table col:nth-of-type(1) { width: 10%; }
.table-open-positions-component #positions-table col:nth-of-type(2) { width: 10%; }
.table-open-positions-component #positions-table col:nth-of-type(3) { width: 15%; }
.table-open-positions-component #positions-table col:nth-of-type(4) { width: 15%; }
.table-open-positions-component #positions-table col:nth-of-type(5) { width: 15%; }
.table-open-positions-component #positions-table col:nth-of-type(6) { width: 15%; }
.table-open-positions-component #positions-table col:nth-of-type(7) { width: 10%; }
.table-open-positions-component #positions-table col:nth-of-type(8) { width: 10%; }

.table-open-positions-component .orders-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #c6caca;
    font-size: 14px;
    font-weight: bold;
    text-transform: none;
    padding: 5px 12px;
    border-bottom: 2px solid #3a4149;
    background: rgba(25, 35, 38, 0.85);
    backdrop-filter: blur(5px);
    font-family: "Courier New", Courier, monospace;
}

.table-open-positions-component .orders-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #303840;
}

.table-open-positions-component .orders-table tbody tr:last-child {
    border-bottom: none;
}

.table-open-positions-component .orders-table tbody tr:hover {
    background-color: rgba(45, 58, 62, 0.6);
}

.table-open-positions-component .orders-table tbody td {
    padding: 14px 12px;
    color: #e0e0e0;
    vertical-align: middle;
    font-size: 14px;
}

.table-open-positions-component .orders-table .exchange-binance {
  color: #efb607;
  font-weight: bold;
}

.table-open-positions-component .orders-table .direction-long {
  color: #02ef91 !important;
}

.table-open-positions-component .orders-table .direction-short {
  color: #f64d54 !important;
}

.table-open-positions-component .orders-table .quantity,
.table-open-positions-component .orders-table .price,
.table-open-positions-component .orders-table .current-price,
.table-open-positions-component .orders-table .pnl {
    font-variant-numeric: tabular-nums;
}

.table-open-positions-component .pnl-positive { 
    color: #01c778 !important; 
}
.table-open-positions-component .pnl-negative { 
    color: #f64d54 !important; 
}