/* R13.9: compact Business Central-style workspace, adjustable device columns */
.bc-dev-r139{max-width:none!important;width:100%!important;padding:16px 20px 36px!important}
.bc-dev-r139 .sales-hero-card{padding:16px 20px!important;background:#fff!important}
.bc-dev-r139 .sales-hero-card h1{font-size:25px!important}
.bc-dev-r139 .bc-dev-commandbar{background:#f7faff!important;border:0!important;border-bottom:1px solid #e0e9f3!important;margin:12px 0!important;padding:6px 4px!important}
.bc-dev-r139 .sales-filter-grid{display:grid!important;grid-template-columns:minmax(240px,2fr) minmax(180px,1fr)!important;gap:12px!important;padding:10px!important}
.bc-dev-r139 .sales-kpi-grid{gap:10px!important;margin:12px 0!important}
.bc-dev-r139 .sales-kpi-card{padding:14px!important;min-height:95px!important}
.bc-dev-r139 .sales-table-card{overflow:hidden!important}
.bc-dev-r139 .table-wrapper{overflow:auto!important;width:100%!important;max-width:100%!important}
.bc-dev-r139 .bc-dev-resizable-table{table-layout:fixed!important;width:max-content!important;min-width:100%!important;border-collapse:separate!important;border-spacing:0!important}
.bc-dev-r139 .bc-dev-resizable-table th{position:relative!important;white-space:nowrap!important;overflow:visible!important;padding-right:13px!important;user-select:none}
.bc-dev-r139 .bc-dev-resizable-table td{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.bc-dev-r139 .bc-dev-resizable-table td .badge{max-width:calc(100% - 5px)!important}
.bc-dev-r139 .bc-dev-resizable-table .bc-col-handle{position:absolute;right:-4px;top:0;bottom:0;width:9px;cursor:col-resize;z-index:4;touch-action:none}
.bc-dev-r139 .bc-dev-resizable-table .bc-col-handle:after{content:"";position:absolute;right:4px;top:22%;height:56%;border-right:1px solid #c4d2e1}
.bc-dev-r139 .bc-dev-resizable-table .bc-col-handle:hover:after,.bc-dev-r139 .bc-dev-resizable-table .bc-col-handle.dragging:after{border-right:3px solid #0078d4}
.bc-dev-col-tools{display:flex;align-items:center;gap:12px;letter-spacing:normal;font-size:11px;font-weight:500}
.bc-dev-col-tools button{border:1px solid #c7d9ed;border-radius:4px;background:white;color:#006ab7;padding:5px 9px;font-size:11px;font-weight:700}
.bc-dev-r139 .device-modal{resize:both!important;overflow:auto!important;min-width:min(580px,calc(100vw - 24px))!important;min-height:330px!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important}
.bc-dev-r139 .device-modal .modal-body-custom{overflow-y:auto!important}
.bc-dev-r139 .device-modal .device-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(max-width:750px){.bc-dev-r139{padding:10px!important}.bc-dev-r139 .sales-filter-grid{grid-template-columns:1fr!important}.bc-dev-col-tools>span{display:none}.bc-dev-r139 .device-modal .device-edit-grid{grid-template-columns:1fr!important}}
