.orderbook-filters {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(210px, 1fr) minmax(240px, 1.4fr);
    gap: 20px;
    padding: 16px 20px;
    border: 1px solid #dce2e8;
    border-radius: 8px;
    background: #f8f9fa;
}
.orderbook-filters fieldset { min-width: 0; margin: 0; }
.orderbook-filters legend { font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.orderbook-filter-options { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.orderbook-filter-options > .form-check:first-child { flex-basis: 100%; }
.orderbook-filters .form-check { margin-bottom: 4px; overflow-wrap: anywhere; }
.orderbook-filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.orderbook-filter-summary { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.orderbook-filter-chip { display: inline-block; padding: 4px 10px; border-radius: 16px; background: #e9eef5; color: #43546b; font-size: .8rem; overflow-wrap: anywhere; }
.orderbook-filter-chip.is-active { background: #e5edff; color: #1c419a; border: 1px solid #b6c8ef; }
.orderbook-filters input:checked + label { color: #1c419a; font-weight: 600; }
.orderbook-create-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.orderbook-create-actions form p { margin-bottom: 12px; }
.orderbook-columns { margin: 4px 0 12px; }
.orderbook-columns summary { cursor: pointer; font-size: .9rem; font-weight: 600; padding: 8px 0; }
.orderbook-column-options { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border: 1px solid #dce2e8; border-radius: 8px; }
.orderbook-column-options .form-check { margin-right: 0; }
.orderbook-table-area { padding-top: 10px; padding-bottom: 10px; }
.orderbook-table-scroll {
    height: auto;
    max-height: none;
    overflow: visible;
}
.orderbook-list #entries_data td { white-space: normal; overflow-wrap: anywhere; }
.orderbook-list :focus-visible { outline: 3px solid #507dad; outline-offset: 3px; }
@media (max-width: 767px) {
    .orderbook-filters { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
}
@media (max-width: 991px) {
    .orderbook-list #entries_data, .orderbook-list #entries_data tbody { display: block; width: 100%; }
    .orderbook-list #entries_data thead { display: none; }
    .orderbook-list #entries_data tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid #dce2e8; }
    .orderbook-list #entries_data tbody td { display: block; width: auto; min-width: 0; border: 0; padding: 8px 12px; }
    .orderbook-list #entries_data tbody td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: #555; margin-bottom: 4px; }
    .orderbook-list #entries_data tbody td[data-label="Specification"], .orderbook-list #entries_data tbody td.dt-empty { grid-column: 1 / -1; }
    .orderbook-list #entries_data tbody td > .text-center { text-align: left !important; }
}
