.bs { max-width: 90rem; }
.bs .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bs-help { max-width: 52rem; margin: 0 0 .8rem; color: var(--muted); }
.bs-top, .bs-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; padding: .6rem .7rem; background: #fff; border: 1px solid #c9ced2; border-radius: 6px; margin-bottom: .6rem; }
.bs-bar { align-items: center; }
.bs-field { display: grid; gap: .15rem; font-size: .82rem; color: var(--muted); }
.bs-field input, .bs-field select, .bs-inline select, .bs .bs-table input { font: inherit; font-size: .95rem; padding: .35rem .5rem; border: 1px solid #8b9298; border-radius: 3px; background: #fff; color: var(--ink); box-sizing: border-box; }
.bs-field input { width: 15rem; max-width: 100%; } .bs-pick select { min-width: 14rem; max-width: 22rem; }
.bs-btns { display: inline-flex; gap: .35rem; flex-wrap: wrap; }
.bs .btn { min-height: 2.4rem; padding: .35rem .8rem; font-size: .92rem; }
.bs-saved { margin-left: auto; font-size: .85rem; color: var(--muted); }
.bs-inline { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.bs .sm-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; } .bs .sm-check input { width: 1.05rem; height: 1.05rem; }
.bs-wrap { overflow: auto; background: #fff; border: 1px solid #c9ced2; border-radius: 6px; }
.bs-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 44rem; }
.bs-table th { background: #E8ECEF; font: 600 .9rem var(--font-ui); text-align: left; padding: .45rem .5rem; border-bottom: 1px solid #9aa0a6; position: sticky; top: 0; z-index: 1; }
.bs-table tbody th { position: static; background: #F4F5F6; text-align: center; color: var(--muted); font-weight: 500; border-bottom: 1px solid #dfe2e5; border-right: 1px solid #dfe2e5; }
.bs-table td { padding: 0; border-bottom: 1px solid #dfe2e5; border-right: 1px solid #eef0f1; }
.bs-table td input { width: 100%; border: 0; border-radius: 0; padding: .5rem .5rem; background: transparent; }
.bs-table td input:focus { outline: 2px solid #0b5cab; outline-offset: -2px; background: #f3f8fd; }
.bs-table td input::selection { background: #b6d4f0; }
.bs-x { width: 2.2rem; height: 2.2rem; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 3px; }
.bs-x:hover, .bs-x:focus-visible { background: #fbe1de; color: #8f1c13; }
.bs-tips { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); max-width: 60rem; }
.bs-dwg-tools { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.bs-dwg { border-collapse: collapse; table-layout: fixed; margin: .3rem; font-family: Calibri, Arial, sans-serif; }
.bs-dwg th, .bs-dwg td { border: 1px solid #000; padding: 3px 6px; text-align: center; vertical-align: middle; overflow-wrap: anywhere; background: #fff; color: #000; }
.bs-dwg th[data-col] { position: relative; cursor: grab; user-select: none; } .bs-dwg td.nowrap { white-space: nowrap; overflow-wrap: normal; }
.dw-grip { position: absolute; top: 0; right: -3px; width: 8px; height: 100%; cursor: col-resize; z-index: 2; }
.dw-grip:hover { background: rgba(11, 92, 171, .35); }
.dw-empty { color: #4F5A64; font-style: italic; }

.bs-rowtools { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.bs-muted { font-size: .85rem; color: var(--muted); }
.bs-table th[data-col] { cursor: grab; user-select: none; position: sticky; } .bs-table th .dw-grip { position: absolute; }
.bs-table .c-del { width: 5.2rem; white-space: nowrap; }
.bs-table tbody th.c-item { display: table-cell; white-space: nowrap; padding: 0 .2rem; }
.bs-table tbody th.c-item span { display: inline-block; min-width: 1.4rem; }
.bs-handle { width: 1.6rem; height: 2.2rem; border: 0; background: transparent; color: #6b7178; font-size: .9rem; letter-spacing: -2px; cursor: grab; touch-action: none; border-radius: 3px; }
.bs-handle:hover { background: #E1E5E8; color: var(--ink); }
.bs-table tr.is-focus > th.c-item { background: #dbe8f5; }
.bs-x + .bs-x { margin-left: .1rem; } .bs-x[data-ins]:hover { background: #e1f0f0; color: #1f5d60; }
.bs-table tr.is-dragging, .bs-table th.is-dragging, .bs-dwg th.is-dragging { opacity: .45; }
.bs-table tr.drop-before > * { box-shadow: inset 0 3px 0 #0b5cab; } .bs-table tr.drop-after > * { box-shadow: inset 0 -3px 0 #0b5cab; }
.bs-table th.drop-before, .bs-dwg th.drop-before { box-shadow: inset 3px 0 0 #0b5cab; } .bs-table th.drop-after, .bs-dwg th.drop-after { box-shadow: inset -3px 0 0 #0b5cab; }
body.bs-dragging, body.bs-dragging * { user-select: none !important; cursor: grabbing !important; }
