#srTable td {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

#srTable th {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Chart container right padding */
#rightMain {
    padding-right: 1px !important;
}

/* Mobile view: Show chart container first */
@media (max-width: 991.98px) {
    #leftSidebar {
        order: 2;
    }

    #rightMain {
        order: 1;
    }

    .main-content-row {
        display: flex;
        flex-direction: column;
    }
}

.pane-wrapper {
    background: #131722;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

.chart-legend-floating {
    position: absolute;
    top: 4px;
    /* Slight offset for better alignment */
    left: 8px;
    /* Standard TradingView-style spacing */
    right: 120px;
    /* Stay clear of right price scale */
    z-index: 5;
    pointer-events: none;
    background: rgba(19, 23, 34, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
    font-size: 11px;
    border-radius: 4px;
}

.text-secondary-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 500;
}

.small-legend-text {
    font-size: 10px;
    font-family: 'Roboto Mono', monospace;
}

.btn-xs {
    padding: 1px 6px;
    font-size: 0.65rem;
    border-radius: 4px;
    font-weight: 600;
}

.toggle-indicator.active {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.indicator-pane.d-none {
    display: none !important;
}

#chartLegend strong {
    color: #64748b;
    margin-right: 3px;
}

.legend-val {
    color: #e2e8f0;
    margin-right: 8px;
    font-weight: 500;
}

.text-up {
    color: #10b981 !important;
}

.text-down {
    color: #ef4444 !important;
}

#depthTable th,
#depthTable td {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}