.bk-grid-scroll{max-width:100%;overflow-x:auto;position:relative;overscroll-behavior-inline:contain}
.bk-grid-head{display:grid;align-items:center;box-sizing:border-box;padding:4px 8px;min-height:30px;position:sticky;top:0;z-index:3;background:#f5f6f9;border-bottom:1px solid #dce2ea;color:#728197;font:500 11px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.bk-grid-title{position:relative;align-items:center;min-width:0;height:26px;padding:0 7px;box-sizing:border-box;user-select:none;cursor:grab;touch-action:none;grid-row:1}
.bk-grid-title>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bk-grid-title:focus-visible{outline:2px solid #87b8fd;outline-offset:-2px}
.bk-grid-resize{position:absolute;right:0;top:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;border-right:1px solid #d4dce7}
.bk-grid-resize:hover,.bk-grid-resize:focus{border-color:#2785ea;background:#2785ea22}
.bk-grid-dragging{background:#e9f2ff}
.bk-grid-row{box-sizing:border-box;align-items:center!important;min-height:34px!important;max-width:none!important}
.bk-grid-cell{box-sizing:border-box;align-self:center;white-space:nowrap;font-size:12px;line-height:1.3;padding-left:6px!important;padding-right:6px!important;overflow:hidden;text-overflow:ellipsis}
.bk-grid-cell .jd-value-input{max-width:100%;box-sizing:border-box}
.bk-grid-row .catalog-service{grid-row:1;grid-column:4 / -1}
.bk-grid-row .deletion-note{display:none}
.bk-grid-scroll .catalog-stock-heading,.bk-grid-scroll .receipt-column-head{display:none!important}
.bk-grid-scroll .jd-catalog-entry{min-width:max-content}
.bk-grid-scroll .catalog-group,.bk-grid-scroll .jd-category-group{min-width:100%}
@media(max-width:600px){.bk-grid-title{height:32px}.bk-grid-resize{width:12px}.bk-grid-row{min-height:40px!important}}

/* Unified compact rows and personal typography; column widths stay user-controlled. */
.bk-personal-type :is(.office,#detail,dialog.inv-dialog,.product-reservations-dialog){font-family:var(--bk-font)!important;font-size:var(--bk-text)!important}
.bk-personal-type :is(.bk-grid-cell,.pb-row,.catalog-row,.order-line,.client-directory-row,.employee-row,.req-line,.receipt-review-card.view-list,.table-wrap td,#detail p,#detail dt,#detail dd,#detail input,#detail select,#detail textarea,#detail .archive-log,#detail .product-history-table){font-family:var(--bk-font)!important;font-size:var(--bk-text)!important;line-height:1.3!important}
.bk-personal-type :is(.bk-grid-row,.catalog-row,.pb-row,.order-line:not(.order-peek),.client-directory-row,.employee-row,.req-line){min-height:var(--bk-row)!important;padding-top:var(--bk-space)!important;padding-bottom:var(--bk-space)!important;row-gap:0!important;margin-top:0!important;margin-bottom:0!important}
.bk-personal-type .bk-grid-cell{font-size:var(--bk-text)!important;line-height:1.3!important;white-space:nowrap!important;min-width:0}
.bk-personal-type .bk-grid-cell :is(b,small,span,a,button){font-family:inherit!important;font-size:inherit!important;line-height:inherit!important}
.bk-personal-type .bk-grid-cell button{padding-top:0!important;padding-bottom:0!important;min-height:24px!important}
.bk-personal-type .bk-grid-row :is(.pb-name,.catalog-name){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-personal-type .bk-grid-cell :is(.text-button,[data-pb-card]){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;text-align:left}
.bk-personal-type .pb-row .pb-acts{display:flex;align-items:center;gap:4px;white-space:nowrap}
.bk-personal-type :is(.table-wrap td,.table-wrap th,#detail td,#detail th){padding-top:var(--bk-space)!important;padding-bottom:var(--bk-space)!important;vertical-align:middle}
.bk-personal-type #detail :is(.product-specs,.profile-settings-data){row-gap:var(--bk-space)!important}
.bk-personal-type #detail :is(.archive-log,.product-history-table td,.sp-row){padding-top:var(--bk-space)!important;padding-bottom:var(--bk-space)!important;margin-top:0!important;margin-bottom:0!important}
.bk-personal-type #detail :is(.product-specs dt,.product-specs dd){min-height:0!important;padding-block:var(--bk-space)!important}
.bk-appearance{border-top:1px solid #e3e7ed;margin-top:12px;padding-top:10px}.bk-appearance h3{font-size:14px;margin:0 0 8px}.bk-appearance-fields{display:flex;align-items:end;flex-wrap:wrap;gap:8px}.bk-appearance-fields label{display:grid;gap:4px;font-size:12px;flex:1 1 120px}.bk-appearance-fields select{width:100%;min-height:32px}.bk-appearance p{font-size:11px}
@media(pointer:coarse){.bk-personal-type :is(.bk-grid-row,.catalog-row,.pb-row,.order-line,.client-directory-row,.employee-row,.req-line){min-height:max(36px,var(--bk-row))!important}}

.statement-scroll th{position:sticky!important}.bk-statement-resize{position:absolute;right:0;top:0;bottom:0;width:9px;z-index:8;cursor:col-resize;touch-action:none;user-select:none;border-right:1px solid #c6d0dc}.bk-statement-resize:hover,.bk-statement-resize:focus{background:#2785ea33;border-right:2px solid #2785ea;outline:none}
html.bk-personal-type #app .office :is(.bk-grid-row,.pb-row,.catalog-row,.order-line,.client-directory-row,.employee-row,.req-line){min-height:var(--bk-row)!important;padding-block:var(--bk-space)!important;font-size:var(--bk-text)!important;font-family:var(--bk-font)!important}
html.bk-personal-type #app .office :is(.bk-grid-cell,.statement-scroll td,.statement-scroll th){font-size:var(--bk-text)!important;font-family:var(--bk-font)!important;line-height:1.3!important}
html.bk-personal-type #app .office .statement-scroll :is(td,th){height:var(--bk-row)!important;padding-block:var(--bk-space)!important}
html.bk-personal-type #detail :is(p,dt,dd,input,select,textarea,.archive-log,.product-history-table,.sp-row){font-family:var(--bk-font)!important;font-size:var(--bk-text)!important;line-height:1.3!important}
@media(pointer:coarse){html.bk-personal-type #app .office :is(.bk-grid-row,.pb-row,.catalog-row,.order-line,.client-directory-row,.employee-row,.req-line){min-height:max(36px,var(--bk-row))!important}}
/* Always-visible horizontal thumb, independent of OS auto-hidden scrollbars. */
body .bk-bottom-scroll{position:fixed;z-index:60;left:12px;right:12px;bottom:0;box-sizing:border-box;height:26px;padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px));border:1px solid #dce2e9;border-bottom:0;border-radius:8px 8px 0 0;background:#f5f7fa;box-shadow:0 -2px 8px #23384b10}
body .bk-bottom-scroll[hidden]{display:none!important}
body .bk-bottom-scroll input[type=range]{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;height:16px;min-height:16px;margin:0;padding:0;border:0;border-radius:5px;background:transparent;box-shadow:none;cursor:ew-resize;touch-action:none}
body .bk-bottom-scroll input[type=range]::-webkit-slider-runnable-track{height:10px;border-radius:5px;background:#e2e7ed}
body .bk-bottom-scroll input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:var(--bk-scroll-thumb,60px);height:10px;margin:0;border:0;border-radius:5px;background:#8a9aab}
body .bk-bottom-scroll input[type=range]::-moz-range-track{height:10px;border-radius:5px;background:#e2e7ed}
body .bk-bottom-scroll input[type=range]::-moz-range-thumb{width:var(--bk-scroll-thumb,60px);height:10px;border:0;border-radius:5px;background:#8a9aab}
body .bk-bottom-scroll input[type=range]:focus-visible{outline:2px solid #8abaff;outline-offset:2px}
html.bk-has-bottom-scroll .office-main{padding-bottom:48px!important}

/* One horizontal control while the viewport-pinned scrollbar is active. Vertical scrolling stays native. */
html.bk-has-bottom-scroll::-webkit-scrollbar,html.bk-has-bottom-scroll body::-webkit-scrollbar,html.bk-has-bottom-scroll #app *::-webkit-scrollbar{height:0!important}

/* Compact sheet geometry: hairline borders, selection instead of row checkboxes. */
.bk-grid-title{padding-inline:3px!important;cursor:pointer}.bk-grid-cell{padding-inline:3px!important;border-right:1px solid #e8edf2}.bk-grid-resize,.bk-statement-resize{width:5px!important;border-right-width:1px!important}
#content table{border-spacing:0;border-collapse:collapse}#content :is(th,td){padding-inline:4px!important;border-right:1px solid #e8edf2}#content thead th{cursor:pointer}
.bk-grid-title[aria-sort=ascending]::after,#content th[aria-sort=ascending]::after{content:' ↑';color:#2474c5}.bk-grid-title[aria-sort=descending]::after,#content th[aria-sort=descending]::after{content:' ↓';color:#2474c5}
#content :is(.jd-single-select,.req-select,.bulk-check){position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;margin:0!important;padding:0!important}
#content .bk-sheet-selected,#content .bk-sheet-selected>td,#content .jd-selected>.order-line{background:#dcecff!important;box-shadow:inset 0 1px #a8c9ef,inset 0 -1px #a8c9ef}
.bk-sheet-stats{position:fixed;z-index:65;bottom:26px;left:12px;right:12px;padding:5px 10px;border:1px solid #d9e1eb;background:#f7f9fc;color:#34516b;font:12px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap;overflow:auto;box-sizing:border-box}.bk-sheet-stats[hidden]{display:none!important}
@media(pointer:coarse){.bk-grid-resize,.bk-statement-resize{width:10px!important}}

.bk-sheet-stats{overflow:hidden;text-overflow:ellipsis}

/* One geometry for page tables and tables inside cards. */
.bk-grid-head{position:relative;top:auto;z-index:12;isolation:isolate}
.bk-grid-scroll{overflow-anchor:none}
.bk-grid-row{margin-block:0!important;row-gap:0!important;border-bottom:1px solid #e4e9ef}
.bk-grid-row .bk-grid-cell{vertical-align:middle;min-height:0;line-height:1.3}
dialog .bk-grid-scroll{width:100%;max-width:100%;min-width:0}
dialog .bk-grid-cell{font-size:var(--bk-text,12px);padding-block:var(--bk-space,3px)}
dialog table{border-spacing:0;border-collapse:collapse}
dialog :is(td,th){padding:3px 4px;vertical-align:middle;border-right:1px solid #e8edf2}
dialog th{position:relative;cursor:pointer}
dialog .bk-grid-title[aria-sort=ascending]::after{content:' ↑';color:#2474c5}
dialog .bk-grid-title[aria-sort=descending]::after{content:' ↓';color:#2474c5}
#content .group-receipt-inbox[data-bk-grid-ready]{overflow:visible}
#content .group-receipt-inbox[data-bk-grid-ready] .receipt-intake-row{gap:0;min-width:0}
.bk-native-pin{position:relative;z-index:12;background:#f5f6f9}.bk-native-pin th{position:relative!important;top:auto!important}

/* One final geometry layer: fixed columns, no secondary width handlers. */
@layer bk-control-size {
 html body :is(.office-main,dialog[open]) .bk-grid-scroll {box-sizing:border-box!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-anchor:none!important}
 html body .bk-grid-scroll .bk-grid-head,
 html body .bk-grid-scroll .bk-grid-row:not(.bk-table-span-row) {display:grid!important;grid-template-columns:var(--bk-table-columns)!important;width:var(--bk-table-width)!important;min-width:var(--bk-table-width)!important;max-width:none!important;box-sizing:border-box!important;padding:3px 4px!important;gap:0!important;align-items:center!important;margin:0!important}
 html body .bk-grid-scroll :is(.bk-grid-head[hidden],.bk-grid-title[hidden],.bk-grid-row[hidden],.bk-grid-row[data-folder-hidden=true]){display:none!important}
 html body .bk-grid-scroll .bk-grid-head{background:#f5f6f9!important;min-height:32px!important;border-bottom:1px solid #dce2ea!important}
 html body .bk-grid-scroll .bk-grid-title{box-sizing:border-box!important;min-width:0!important;height:26px!important;padding:0 6px!important;display:flex!important;align-items:center!important;position:relative!important;touch-action:none!important;white-space:nowrap!important;grid-row:1!important}
 html body .bk-grid-scroll .bk-grid-title>span:first-child{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 html body .bk-grid-scroll .bk-grid-resize{display:block!important;position:absolute!important;top:0!important;right:-3px!important;bottom:0!important;width:7px!important;background:transparent!important;border:0!important;border-left:1px solid #dce2e9!important;z-index:5!important;cursor:col-resize!important;touch-action:none!important}
 html body .bk-grid-scroll .bk-grid-resize:hover{border-color:#438dd8!important;background:#438dd81a!important}
 html body .bk-grid-scroll .bk-grid-row{min-height:30px!important;border-bottom:1px solid #e6eaf0!important}
 html body .bk-grid-scroll .bk-grid-cell{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:auto!important;min-height:0!important;margin:0!important;padding:2px 4px!important;align-self:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;border-right:1px solid #edf0f4!important;font:var(--bk-text,12px)/1.3 var(--bk-font,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif)!important}
 html body .bk-grid-scroll .bk-table-numeric{text-align:center!important;justify-self:stretch!important;font-variant-numeric:tabular-nums!important}
 html body .bk-grid-scroll .bk-grid-cell :is(input,select){box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
 html body .bk-managed-table,html body .bk-managed-table>tbody{display:block!important;width:var(--bk-table-width)!important;min-width:0!important;table-layout:fixed!important;margin:0!important}
 html body .bk-managed-table>:is(thead,colgroup){display:none!important}
 html body .bk-managed-table .bk-table-span-row{display:block!important;width:var(--bk-table-width)!important}
 html body .bk-managed-table .bk-table-span-row>td{display:block!important;box-sizing:border-box!important;width:100%!important}
 html body .bk-grid-scroll .bk-table-columns{position:absolute!important;right:3px!important;top:2px!important;width:26px!important;height:26px!important;min-height:26px!important;opacity:0;pointer-events:none}
 html body .bk-grid-head:focus-within .bk-table-columns,html body .bk-grid-head:hover .bk-table-columns{opacity:1;pointer-events:auto}
 html body .bk-grid-scroll .receipt-grid{display:block!important;overflow:visible!important;max-height:none!important;gap:0!important;width:var(--bk-table-width)!important}
 html body .bk-grid-scroll .bk-grid-cell :is(.receipt-preview,.receipt-file-tools){display:none!important}
 html body .jd-file-tile{display:inline-flex!important;align-items:center!important;gap:6px!important;min-width:0!important;height:32px!important;max-width:100%!important;padding:3px 7px!important}
 html body .jd-file-tile .jd-file-thumb{width:auto!important;height:auto!important;min-width:26px!important;font-size:11px!important}
 html body .jd-product-photo{height:auto!important;min-height:42px!important;max-height:64px!important}
 html body .jd-photo-open{display:block;padding:10px;font-size:12px}
}
.bk-columns-pop{max-width:min(340px,calc(100vw - 16px));max-height:min(65vh,520px);overflow-y:auto;padding:10px;box-sizing:border-box}
.bk-columns-pop label{display:flex;align-items:center;gap:6px;min-height:28px;white-space:nowrap}
.bk-columns-pop>button{width:100%;margin-top:8px}
@media(pointer:coarse){html body .bk-grid-head .bk-table-columns{opacity:1;pointer-events:auto}}
@layer bk-control-size {
 html body .bk-grid-scroll [data-bk-grid-ready]{padding:0!important;margin:0!important;border-inline:0!important;gap:0!important}
 html body .bk-grid-scroll :is(.jd-catalog-entry,.order-entry,.req-entry){padding:0!important;margin:0!important;border-inline:0!important;width:var(--bk-table-width)!important;min-width:0!important;box-sizing:border-box!important}
 html body .bk-grid-scroll :is(.catalog-group,.jd-category-group)>:not(summary){padding-inline:0!important;margin-inline:0!important;border-inline:0!important}
}
@layer bk-control-size {html body .jd-file-tile{flex-direction:row!important;text-decoration:none!important}.jd-file-tile>span{margin:0!important}}
@layer bk-control-size {
 html body .bk-grid-scroll .bk-grid-row{border-radius:0!important;border-top:0!important;border-inline:0!important}
 html body .bk-grid-scroll .bk-grid-cell{height:auto!important}
 html body .bk-grid-scroll .bk-grid-row :is(button,.receipt-date,.receipt-time){height:28px!important;min-height:28px!important;padding-block:2px!important;margin-block:0!important;box-sizing:border-box!important;font-size:inherit!important;line-height:1.3!important}
 html body .bk-grid-scroll .bk-grid-cell :is(a,b,small,button){font-family:inherit!important;font-size:inherit!important}
}

@layer bk-control-size {
 html body.bk-workspace .bk-grid-scroll .bk-grid-row:not(.bk-table-span-row) {
  align-items:center!important;
 }
 html body.bk-workspace table[data-table-key^="receipt-duplicate-files-"] .bk-grid-row {
  box-sizing:border-box!important;height:max(36px,var(--bk-list-row,36px))!important;
  grid-template-rows:minmax(0,1fr)!important;padding-block:1px!important;
 }
 html body.bk-workspace table[data-table-key^="receipt-duplicate-files-"] .bk-grid-cell {
  max-height:100%!important;align-self:center!important;white-space:nowrap!important;
 }
 html body.bk-workspace .bk-columns-pop label {
  display:grid!important;grid-template-columns:18px 1fr!important;align-items:center!important;
  justify-content:start!important;text-align:left!important;gap:8px!important;padding:3px 6px!important;margin:0!important;
 }
 html body.bk-workspace .bk-columns-pop label>input[type=checkbox] {
  width:16px!important;height:16px!important;min-width:0!important;min-height:0!important;
  margin:0!important;place-self:center!important;
 }
}
