/* ===== K線圖表頁面樣式 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #131722;
    color: #d1d4dc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', sans-serif;
    font-size: 13px;
}

/* ===== 頂部工具列 ===== */
#toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    background-color: #1a1a2e;
    border-bottom: 1px solid #2B2B43;
    user-select: none;
    -webkit-user-select: none;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 樞紐指標切換開關 */
.pivot-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    font-size: 12px;
}
.pivot-toggle:hover {
    background-color: #2a2a3e;
}
.pivot-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 16px;
    border-radius: 8px;
    background-color: #3a3a5e;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.pivot-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #787b86;
    transition: all 0.2s ease;
}
.pivot-toggle input[type="checkbox"]:checked {
    background-color: #FF9800;
}
.pivot-toggle input[type="checkbox"]:checked::after {
    left: 18px;
    background-color: #ffffff;
}
.pivot-label {
    color: #787b86;
    font-weight: 500;
}
.pivot-toggle input[type="checkbox"]:checked ~ .pivot-label {
    color: #FF9800;
}

/* 成交量切換開關 */
.vol-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    font-size: 12px;
}
.vol-toggle:hover {
    background-color: #2a2a3e;
}
.vol-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 16px;
    border-radius: 8px;
    background-color: #3a3a5e;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.vol-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #787b86;
    transition: all 0.2s ease;
}
.vol-toggle input[type="checkbox"]:checked {
    background-color: #2962FF;
}
.vol-toggle input[type="checkbox"]:checked::after {
    left: 18px;
    background-color: #ffffff;
}
.vol-label {
    color: #787b86;
    font-weight: 500;
}
.vol-toggle input[type="checkbox"]:checked ~ .vol-label {
    color: #d1d4dc;
}

/* 商品下拉選單 */
#symbolSelect {
    background-color: #2a2a3e;
    color: #d1d4dc;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}

#symbolSelect:hover {
    border-color: #5a5a7e;
}

#symbolSelect option {
    background-color: #1a1a2e;
    color: #d1d4dc;
}

/* 時間週期按鈕 */
.tf-group {
    display: flex;
    gap: 2px;
}

.tf-btn {
    background-color: transparent;
    color: #787b86;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tf-btn:hover {
    color: #d1d4dc;
    background-color: #2a2a3e;
}

.tf-btn.active {
    color: #ffffff;
    background-color: #2962FF;
    border-color: #2962FF;
}

/* 連線狀態 */
#connectionStatus {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
}

.status-connected {
    color: #26a69a;
}

.status-disconnected {
    color: #ef5350;
}

.status-connecting {
    color: #ffa726;
}

.status-reconnecting {
    color: #ffa726;
}

/* ===== 圖表容器 ===== */
#chartContainer {
    position: relative;
    width: 100%;
    height: calc(100% - 44px - 28px);
    overflow: hidden;
}

#chart {
    width: 100%;
    height: 100%;
}

/* ===== 底部狀態列 ===== */
#statusBar {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background-color: #1a1a2e;
    border-top: 1px solid #2B2B43;
    font-size: 11px;
    color: #787b86;
}

/* ===== OHLC 十字游標數值浮層 (字體放大 2 倍) ===== */
#ohlcLegend {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 10;
    background-color: rgba(19, 23, 34, 0.85);
    border: 1px solid #2B2B43;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 22px;
    font-family: 'Consolas', 'Courier New', monospace;
    pointer-events: none;
    user-select: none;
    min-width: 180px;
    display: none;
}
#ohlcLegend.visible {
    display: block;
}
.ohlc-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.8;
}
.ohlc-label {
    color: #787b86;
    margin-right: 4px;
}
.ohlc-value {
    color: #d1d4dc;
    text-align: right;
    min-width: 100px;
}
.ohlc-time {
    color: #d1d4dc;
    font-size: 18px;
}

/* ===== 載入中遮罩 ===== */
#loadingOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(19, 23, 34, 0.8);
    z-index: 100;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

#loadingOverlay.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2B2B43;
    border-top: 3px solid #2962FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #787b86;
    font-size: 14px;
}

/* ===== 客製化捲軸 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #2B2B43;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #3a3a5e;
}

/* ===== 樞紐水平切割線控制 ===== */
.level-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-level-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    font-size: 12px;
}
.pv-level-toggle:hover {
    background-color: #2a2a3e;
}
.pv-level-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 14px;
    border-radius: 7px;
    background-color: #3a3a5e;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.pv-level-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #787b86;
    transition: all 0.2s ease;
}
.pv-level-toggle input[type="checkbox"]:checked {
    background-color: #4CAF50;
}
.pv-level-toggle input[type="checkbox"]:checked::after {
    left: 15.5px;
    background-color: #ffffff;
}
.pv-level-label {
    color: #787b86;
    font-weight: 500;
    font-size: 12px;
}
.pv-level-toggle input[type="checkbox"]:checked ~ .pv-level-label {
    color: #4CAF50;
}

.pv-level-inputs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pv-input {
    width: 60px;
    padding: 2px 4px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 3px;
    color: #d1d4dc;
    font-size: 11px;
    text-align: right;
    outline: none;
}
.pv-input:read-only {
    background-color: #1e1e32;
    color: #787b86;
    cursor: default;
}
.pv-input:focus {
    border-color: #5a5a7e;
}
.pv-btn {
    padding: 2px 8px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 3px;
    color: #d1d4dc;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    line-height: 1.2;
}
.pv-btn:hover {
    background-color: #3a3a5e;
}

.pv-diff {
    font-size: 11px;
    color: #d1d4dc;
    min-width: 55px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.pv-diff.below {
    color: #ff5252;
}

/* 標籤顯示切換 */
.pv-label-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    user-select: none;
    padding: 4px 5px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    font-size: 11px;
}
.pv-label-toggle:hover {
    background-color: #2a2a3e;
}
.pv-label-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 14px;
    border-radius: 7px;
    background-color: #3a3a5e;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.pv-label-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #787b86;
    transition: all 0.2s ease;
}
.pv-label-toggle input[type="checkbox"]:checked {
    background-color: #FF9800;
}
.pv-label-toggle input[type="checkbox"]:checked::after {
    left: 15.5px;
    background-color: #ffffff;
}
.pv-label-label {
    color: #787b86;
    font-weight: 500;
    font-size: 11px;
}
.pv-label-toggle input[type="checkbox"]:checked ~ .pv-label-label {
    color: #d1d4dc;
}

/* 進階輸入彈窗按鈕 */
.pv-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #3a3a5e;
    border-radius: 3px;
    color: #787b86;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    outline: none;
}
.pv-popup-btn:hover {
    color: #d1d4dc;
    border-color: #5a5a7e;
}

/* 進階輸入浮動面板 (可拖曳、不遮擋圖表) */
.pv-popup-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a2e;
    border: 1px solid #3a3a5e;
    border-radius: 8px;
    min-width: 340px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.pv-popup-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 10px;
    cursor: move;
    user-select: none;
    font-size: 18px;
    font-weight: 600;
    color: #d1d4dc;
    border-bottom: 1px solid #2a2a3e;
}
.pv-popup-close {
    cursor: pointer;
    color: #787b86;
    font-size: 22px;
    line-height: 1;
}
.pv-popup-close:hover {
    color: #d1d4dc;
}
.pv-popup-body {
    padding: 16px;
}
.pv-popup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.pv-popup-row:last-child {
    margin-bottom: 0;
}
.pv-popup-label {
    color: #787b86;
    font-size: 18px;
    min-width: 64px;
    text-align: right;
    flex-shrink: 0;
}
.pv-popup-input {
    flex: 1;
    padding: 8px 10px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 20px;
    text-align: right;
    outline: none;
    min-width: 0;
}
.pv-popup-input:focus {
    border-color: #5a5a7e;
}
.pv-popup-threshold {
    width: 20%;
    padding: 8px 10px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 18px;
    text-align: right;
    outline: none;
    flex-shrink: 0;
}
.pv-popup-threshold:focus {
    border-color: #5a5a7e;
}
.pv-popup-threshold::placeholder {
    color: #5a5a7e;
    font-size: 14px;
}

.pv-popup-body .pv-diff {
    width: 20%;
    flex-shrink: 0;
    text-align: center;
    font-size: 18px;
    color: #d1d4dc;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 彈窗 action 列 — 按鈕寬度 20%，與門檻/價差對齊 */
.pv-popup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pv-popup-actions .pv-popup-label {
    flex-shrink: 0;
}
.pv-popup-actions .pv-popup-spacer {
    flex: 1;
}
.pv-popup-clear-btn,
.pv-popup-calc-btn {
    width: 20%;
    flex-shrink: 0;
    padding: 8px 0;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    text-align: center;
}
.pv-popup-clear-btn:hover,
.pv-popup-calc-btn:hover {
    background-color: #3a3a5e;
}
/* ===== 復盤播放器 ===== */
/* 浮在圖表底部上方，預設隱藏，不佔版面、不影響即時頁面 */
#replayPanel {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    z-index: 20;
    width: min(1140px, calc(100% - 24px));
    padding: 8px 12px;
    background-color: rgba(26, 26, 46, 0.94);
    border: 1px solid #2B2B43;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    font-size: 12px;
    color: #d1d4dc;
}
#replayPanel.visible {
    display: block;
}
#replayPanel.dragging {
    user-select: none;
    cursor: move;
}

#replayPanel .rp-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

#replayPanel .rp-drag {
    flex-shrink: 0;
    padding: 2px 2px;
    color: #5a5a7e;
    font-size: 14px;
    line-height: 1;
    cursor: move;
    touch-action: none;
}
#replayPanel .rp-drag:hover {
    color: #d1d4dc;
}

#replayPanel .rp-step {
    width: 26px;
    padding: 4px 0;
    text-align: center;
    font-family: 'Consolas', 'Courier New', monospace;
}

#replayPanel .rp-btn {
    flex-shrink: 0;
    padding: 4px 10px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}
#replayPanel .rp-btn:hover {
    background-color: #3a3a5e;
}
#replayPanel .rp-play {
    width: 34px;
    padding: 4px 0;
    text-align: center;
    font-size: 14px;
}

#replayPanel .rp-time {
    flex-shrink: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#replayPanel .rp-dim {
    color: #787b86;
}

#replayPanel .rp-datewrap {
    position: relative;
    flex-shrink: 0;
}
#replayPanel .rp-datebtn {
    min-width: 64px;
    padding: 4px 8px;
    font-family: 'Consolas', 'Courier New', monospace;
}

#replayPanel .rp-cal {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    z-index: 30;
    width: 212px;
    padding: 8px;
    background-color: rgba(24, 24, 42, 0.98);
    border: 1px solid #3a3a5e;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
#replayPanel .rp-cal[hidden] {
    display: none;
}
#replayPanel .rp-cal.below {
    bottom: auto;
    top: calc(100% + 6px);
}
#replayPanel .rp-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
#replayPanel .rp-cal-title {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    color: #d1d4dc;
}
#replayPanel .rp-cal-nav {
    width: 24px;
    height: 22px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}
#replayPanel .rp-cal-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
#replayPanel .rp-cal-week,
#replayPanel .rp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
#replayPanel .rp-cal-week span {
    padding: 2px 0;
    text-align: center;
    font-size: 10px;
    color: #787b86;
}
#replayPanel .rp-cal-day {
    height: 26px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 11px;
    font-family: 'Consolas', 'Courier New', monospace;
    cursor: pointer;
    outline: none;
}
#replayPanel .rp-cal-day:hover {
    background-color: #3a3a5e;
}
#replayPanel .rp-cal-day.off {
    color: #4a4a66;
    cursor: default;
}
#replayPanel .rp-cal-day.off:hover {
    background-color: transparent;
}
#replayPanel .rp-cal-day.empty {
    visibility: hidden;
}
#replayPanel .rp-cal-day.active {
    background-color: #26a69a;
    border-color: #26a69a;
    color: #0d0d17;
}

#replayPanel .rp-progress {
    flex: 1 1 180px;
    min-width: 120px;
    height: 4px;
    accent-color: #26a69a;
    cursor: pointer;
}

#replayPanel .rp-speeds {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
}
#replayPanel .rp-speed {
    padding: 3px 8px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #787b86;
    font-size: 11px;
    cursor: pointer;
    outline: none;
}
#replayPanel .rp-speed:hover {
    background-color: #3a3a5e;
}
#replayPanel .rp-speed.active {
    background-color: #26a69a;
    border-color: #26a69a;
    color: #0d0d17;
}

#replayPanel .rp-seek {
    flex: 0 0 110px;
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    padding: 4px 6px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 10px;
    font-family: 'Consolas', 'Courier New', monospace;
    outline: none;
}
#replayPanel .rp-seek:focus {
    border-color: #5a5a7e;
}
#replayPanel .rp-seek::placeholder {
    color: #5a5a7e;
}
#replayPanel .rp-seekbtn {
    flex: 0 0 auto;
    padding: 4px 8px;
    min-width: 28px;
}

/* ===== 模擬下單面板 ===== */
#tradeOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
}

#tradePanel {
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #2B2B43;
    font-size: 12px;
    color: #d1d4dc;
}

#tradePanel .tp-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
}
#tradePanel .tp-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
    color: #787b86;
}
#tradePanel .tp-price b {
    color: #d1d4dc;
    font-weight: 600;
}
#tradePanel .tp-net b {
    color: #ffb74d;
    font-weight: 600;
}
#tradePanel .tp-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
    color: #787b86;
}
#tradePanel .tp-qty input {
    width: 54px;
    padding: 2px 6px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    outline: none;
}
#tradePanel .tp-qty input:focus {
    border-color: #5a5a7e;
}

#tradePanel .tp-btn {
    padding: 3px 10px;
    background-color: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 4px;
    color: #d1d4dc;
    font-size: 11px;
    cursor: pointer;
    outline: none;
}
#tradePanel .tp-btn:hover {
    background-color: #3a3a5e;
}

#tradePanel .tp-row {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin-top: 3px;
}
#tradePanel .tp-side-label {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: none;
}
#tradePanel .tp-side-label.buy {
    color: #ef5350;
}
#tradePanel .tp-side-label.sell {
    color: #26a69a;
}
#tradePanel .tp-price-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 0;
    background-color: #1e1e30;
    border: 1px solid #2B2B43;
    border-radius: 3px;
    color: #d1d4dc;
    font-size: 11px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    outline: none;
}
#tradePanel .tp-price-btn:hover {
    background-color: #3a3a5e;
}
#tradePanel .tp-row.tp-buy .tp-price-btn {
    color: #ef5350;
}
#tradePanel .tp-row.tp-sell .tp-price-btn {
    color: #26a69a;
}
#tradePanel .tp-row .tp-price-btn.mid {
    border-color: #ffb74d;
    color: #ffb74d;
}

#tradePanel .tp-pending {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    max-height: 76px;
    overflow-y: auto;
}
#tradePanel .tp-pending:empty {
    display: none;
}
#tradePanel .tp-order {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    background-color: #1e1e30;
    border: 1px solid #2B2B43;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 11px;
    white-space: nowrap;
}
#tradePanel .tp-order .tp-side-buy {
    color: #ef5350;
}
#tradePanel .tp-order .tp-side-sell {
    color: #26a69a;
}
#tradePanel .tp-order .tp-order-time {
    color: #787b86;
}
#tradePanel .tp-order button {
    padding: 0 4px;
    background: transparent;
    border: none;
    color: #787b86;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    outline: none;
}
#tradePanel .tp-order button:hover {
    color: #ef5350;
}

