/* Current- and all-market orders, scoped to Binance PC futures. */
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) {
    --bfo-panel: #1c2330;
    --bfo-surface: #171c27;
    --bfo-border: #354052;
    --bfo-text: #eef2f7;
    --bfo-muted: #aab4c3;
    --bfo-buy: #5bc894;
    --bfo-sell: #f27377;
    text-align: left !important;
}
html[data-binance-futures-theme][color-scheme="light"] :is(#down_menu_funding, #down_menu_orderall) {
    --bfo-panel: #f8fafc;
    --bfo-surface: #ffffff;
    --bfo-border: #d6deea;
    --bfo-text: #202938;
    --bfo-muted: #64748b;
    --bfo-buy: #087443;
    --bfo-sell: #c23643;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) > table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) > table > tbody > tr > td:nth-child(2) {
    width: 8px;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel {
    box-sizing: border-box;
    width: 100%;
    table-layout: fixed;
    border: 1px solid var(--bfo-border);
    border-radius: 9px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bfo-panel);
    color: var(--bfo-text);
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel > tbody > tr:first-child > td {
    box-sizing: border-box;
    height: 37px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--bfo-border);
    font-size: 0.83rem !important;
    font-weight: 700;
    text-align: left;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel-buy > tbody > tr:first-child > td {
    background: #1b2927 !important;
    box-shadow: inset 3px 0 var(--bfo-buy);
    color: var(--bfo-buy) !important;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel-sell > tbody > tr:first-child > td {
    background: #2d2228 !important;
    box-shadow: inset 3px 0 var(--bfo-sell);
    color: var(--bfo-sell) !important;
}
html[data-binance-futures-theme][color-scheme="light"] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel-buy > tbody > tr:first-child > td {
    background: #e8f5ed !important;
}
html[data-binance-futures-theme][color-scheme="light"] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel-sell > tbody > tr:first-child > td {
    background: #fcebed !important;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel > tbody > tr:nth-child(2) > td {
    padding: 0;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] {
    max-width: 100%;
    overflow-x: auto;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table {
    width: 100%;
    min-width: 520px;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    background: var(--bfo-surface);
    color: var(--bfo-text) !important;
    font-size: 0.8rem !important;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table td {
    box-sizing: border-box;
    padding: 7px 6px;
    border: 0 !important;
    border-bottom: 1px solid var(--bfo-border) !important;
    color: var(--bfo-text);
    font-family: inherit;
    font-size: 0.8rem;
    line-height: 1.35;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table tr:first-child td {
    height: 29px;
    background: var(--bfo-panel);
    color: var(--bfo-muted) !important;
    font-size: 0.72rem;
    font-weight: 600;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table tr:not(:first-child) td {
    background: var(--bfo-surface) !important;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table tr:not(:first-child):hover td {
    background: var(--bfo-panel) !important;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table tr:not(:first-child) td:first-child,
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table tr:not(:first-child) td:nth-child(3) {
    font-weight: 700;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table tr:not(:first-child) td:nth-child(2) span {
    display: inline-block;
    margin-left: 3px;
    padding: 1px 4px;
    border-color: var(--bfo-border) !important;
    color: var(--bfo-muted);
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table .v_orders_buy_btn,
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table .v_orders_sell_btn {
    color: var(--bfo-sell) !important;
    cursor: pointer;
}
html[data-binance-futures-theme] :is(#down_menu_funding, #down_menu_orderall) .bf-order-panel div[id^="order_"] > table :is(.v_orders_buy_btn, .v_orders_sell_btn) i {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid var(--bfo-border);
    border-radius: 5px;
}
