/* Shared column headings for application tables. */
.orderbook-table-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 4px; color: #364b66; font-size: .875rem; text-align: center; }
.orderbook-table-state[hidden] { display: none; }
.orderbook-table-state[data-state="error"] { color: #943340; }
.orderbook-table-state[data-state="empty"] { color: #5d6d82; }
.orderbook-managed-table tbody tr[hidden] { display: none !important; }
.orderbook-app .table tbody tr.orderbook-table-state-row { background: #f5f7fa; }
.orderbook-app .table tbody tr.orderbook-table-state-row[data-state="error"] { background: #fff2f3; }
.orderbook-app .table .orderbook-table-state-cell { --bs-table-bg: #f5f7fa; --bs-table-bg-type: transparent; --bs-table-bg-state: transparent; }
.orderbook-app .table .orderbook-table-state-row[data-state="error"] > td { --bs-table-bg: #fff2f3; }
.orderbook-app .table .orderbook-table-state-cell::before { content: none !important; }
.orderbook-app .table .orderbook-table-state-cell { white-space: normal !important; text-align: center !important; overflow-wrap: anywhere; }
@media (max-width: 991px) {
    .orderbook-app .orderbook-list #entries_data tbody tr.orderbook-table-state-row { display: block; }
    .orderbook-app .orderbook-list #entries_data tbody tr.orderbook-table-state-row > td { display: block; width: 100%; }
}
.orderbook-table-state[data-state="loading"] .orderbook-table-state-message::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 9px; border: 2px solid #c1d1ef; border-top-color: #2454c6; border-radius: 50%; vertical-align: -2px; animation: orderbook-table-loading .8s linear infinite; }
.dt-container:has(.orderbook-managed-table) .dt-processing { display: none !important; }
@keyframes orderbook-table-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orderbook-table-state[data-state="loading"] .orderbook-table-state-message::before { animation: none; } }
.table thead th,
.table thead td {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 12px;
    vertical-align: middle;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}
.table.dataTable thead th.dt-orderable-asc,
.table.dataTable thead th.dt-orderable-desc { padding-right: 12px; }
.table.dataTable thead .dt-column-title { min-width: 0; white-space: normal; }
.table thead.table-dark th {
    background-color: #343a40;
    border-color: #454d55;
    color: #fff;
}
