.table-tools { margin-block: .75rem; border: 1px solid #8292a3; border-radius: .25rem; background: #fff; color: #182b3b; }
.table-tools > summary { box-sizing: border-box; min-block-size: 44px; padding: .65rem .85rem; cursor: pointer; }
.table-tools-body { padding: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.table-tools-body > p, .table-tools-body > output { flex-basis: 100%; margin: 0; line-height: 1.6; }
.table-tools-body > label { display: inline-flex; align-items: center; min-block-size: 44px; gap: .5rem; }
.table-tools-body select { min-block-size: 44px; min-inline-size: 10rem; max-inline-size: 100%; font: inherit; color: inherit; background: #fff; }
.table-tools-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.table-tools-actions button { min-block-size: 44px; min-inline-size: 44px; padding: .5rem .75rem; font: inherit; border: 1px solid #8292a3; border-radius: .25rem; background: #f3f6f8; color: #182b3b; cursor: pointer; }
.table-tools-actions button:disabled { opacity: .6; cursor: default; }
.table-tools :is(button, select, input, summary):focus-visible { outline: 3px solid #175ba0; outline-offset: 3px; }
.table-tools-enabled .result-column-moves[hidden] { display: none !important; }
.table-tools-continuation { font-style: normal; }
/* Keep quest name pinning tied to its semantic ID after physical movement. */
.table-tools-enabled.quest-detail-table tbody :is(th,td) { position: static !important; }
.table-tools-enabled.quest-detail-table thead th { position: sticky !important; inset-block-start: 0; z-index: 3; background: #e8f0f7; }
.table-tools-enabled.quest-detail-table :is([data-quest-column="name"],[data-quest-field="name"]) { position: sticky !important; left: 0 !important; right: auto !important; z-index: 2; background: #fff; }
[dir="rtl"] .table-tools-enabled.quest-detail-table :is([data-quest-column="name"],[data-quest-field="name"]) { left: auto !important; right: 0 !important; }
.table-tools-enabled.quest-detail-table thead [data-quest-column="name"] { z-index: 4; background: #e8f0f7; }
