/* Mobile foundation for SalesGrid. Scoped to dashboard surfaces, never the storefront. */
body.salesgrid-app-body{--bdm-mobile-ink:#173f60;--bdm-mobile-soft:#edf5fc;--bdm-mobile-line:#bfd4e5;--bdm-mobile-orange:#f58220}
body.salesgrid-app-body :is(.bdmom-product-results,.bdm-agent-create-results,.bdm-agent-product-results,[data-bdm-fast-product-results],.bdmom-profit-results,.bdmom-commission-results){color:#173f60!important;background:#f1f6fb!important;-webkit-text-fill-color:#173f60!important}
body.salesgrid-app-body :is(.bdmom-product-option,.bdm-agent-create-option,.bdm-agent-product-option,.bdm-fast-product-option,.bdmom-profit-option,.bdmom-commission-option){color:#173f60!important;background:#fff!important;border:1px solid #d1e1ed!important;border-radius:10px!important;margin:6px!important;padding:13px!important;min-height:58px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere}
body.salesgrid-app-body :is(.bdmom-product-option,.bdm-agent-create-option,.bdm-agent-product-option,.bdm-fast-product-option,.bdmom-profit-option,.bdmom-commission-option) :is(strong,b,span){color:#173f60!important;-webkit-text-fill-color:#173f60!important;white-space:normal!important;font-size:15px!important;line-height:1.5!important}
body.salesgrid-app-body :is(.bdmom-product-option,.bdm-agent-create-option,.bdm-agent-product-option,.bdm-fast-product-option,.bdmom-profit-option,.bdmom-commission-option) small{display:block;color:#4e687e!important;-webkit-text-fill-color:#4e687e!important;font-size:12px!important;line-height:1.5!important}
body.salesgrid-app-body :is(.bdmom-product-option,.bdm-agent-create-option,.bdm-agent-product-option,.bdm-fast-product-option):is(:hover,:focus-visible){border-color:#e99244!important;background:#fff0df!important;outline:2px solid #e99244;outline-offset:1px}
body.salesgrid-app-body .bdm-universal-product-picker-head,body.salesgrid-app-body .bdm-fast-edit-head{display:flex!important;background:linear-gradient(135deg,#123b60,#206e9a)!important;color:#fff!important}
body.salesgrid-app-body .bdm-universal-product-picker-footer{display:grid!important}
body.salesgrid-app-body :is(.bdm-universal-product-picker-head,.bdm-fast-edit-head) :is(strong,h3){color:#fff!important;-webkit-text-fill-color:#fff!important}
body.salesgrid-app-body :is(.bdm-universal-product-picker-head,.bdm-fast-edit-head) :is(small,span){color:#d8eaf7!important;-webkit-text-fill-color:#d8eaf7!important}
body.salesgrid-app-body .bdm-universal-product-picker-copy strong{color:#173f60!important;-webkit-text-fill-color:#173f60!important;font-size:15px!important;line-height:1.45!important}
body.salesgrid-app-body .bdm-universal-product-picker-copy small{color:#4e687e!important;-webkit-text-fill-color:#4e687e!important;font-size:12px!important;line-height:1.5!important}
body.salesgrid-app-body .bdm-universal-product-picker-card{border-left:4px solid #3a82b5!important;background:#fff!important;min-height:64px!important;padding:12px!important}
body.salesgrid-app-body .bdm-universal-product-picker-card:focus-visible{outline:3px solid #f58220!important;outline-offset:1px}
body.salesgrid-app-body .bdm-universal-product-picker-card:hover{background:#fff2e1!important}
body.salesgrid-app-body .bdm-mobile-table-scroll{width:100%;max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid #c5d8e8;border-radius:12px;margin:12px 0}
body.salesgrid-app-body .bdm-mobile-table-scroll:focus-visible{outline:3px solid #f58220;outline-offset:2px}
@media(max-width:760px){
 body.salesgrid-app-body{font-size:15px;line-height:1.5}
 body.salesgrid-app-body .sg-content{padding:12px 10px 22px!important;min-width:0;background:linear-gradient(160deg,#eaf3fc,#f7f9fc 55%,#fff4e8)!important}
 body.salesgrid-app-body :is(.sg-main,.sg-content,.bdmom-shell,.bdm-agent-shell,.bdm-stock,.bdm-calls){min-width:0;max-width:100%;box-sizing:border-box}
 body.salesgrid-app-body .sg-main{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important}
 body.salesgrid-app-body .sg-topbar{position:relative!important;min-height:62px;padding:12px!important;gap:8px;flex-wrap:wrap}
 body.salesgrid-app-body .sg-topbar h1{font-size:21px!important;line-height:1.3!important}
 body.salesgrid-app-body .sg-sidebar{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;scrollbar-width:thin}
 body.salesgrid-app-body .sg-side-nav :is(button,.sg-side-nav-static>span){min-height:48px!important}
 body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal,.bdm-universal-product-picker,.bdm-order-preview) :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=submit]),select,textarea){font-size:16px!important;line-height:1.45!important;min-height:48px!important;max-width:100%!important;min-width:0!important;width:100%;box-sizing:border-box!important;padding:11px 12px!important;border:1px solid #b8ccdd!important;border-radius:10px!important;background:#fff!important;color:#173f60!important;-webkit-text-fill-color:#173f60!important}
 body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal,.bdm-universal-product-picker) :is(input,select,textarea):focus-visible{outline:3px solid #f8b269!important;outline-offset:2px;border-color:#b46114!important}
 body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal) :is(input[readonly],input:disabled,select:disabled){background:#e9eff5!important;color:#526b80!important;-webkit-text-fill-color:#526b80!important;opacity:1}
 body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal) label{font-size:13px!important;line-height:1.5!important;gap:6px!important;min-width:0}
 body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal,.bdm-universal-product-picker,.bdm-order-preview) :is(button,.button,a.calls-card-contact-button){min-height:46px!important;box-sizing:border-box;touch-action:manipulation;line-height:1.4!important;white-space:normal;overflow-wrap:anywhere}
 body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal) input:is([type=checkbox],[type=radio]){width:21px!important;height:21px!important;min-height:21px!important;flex:0 0 21px;accent-color:#195080}
 body.salesgrid-app-body :is(.bdmom-create-grid,.bdm-agent-create-grid,.bdm-fast-edit-grid,.bdm-fast-referral-fields,.bdm-fast-edit-product-picker,.bdmom-edit-grid,.bdm-agent-edit-grid,.bdm-stock-grid,.bdm-stock-remove-form,.bdmom-supplier-entry-grid,.bdm-report-filter,.bdmom-filters,.calls-grid,.calls-product-picker){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body.salesgrid-app-body :is(.bdmom-create-grid,.bdm-agent-create-grid,.bdm-fast-edit-grid,.bdm-fast-referral-fields,.bdm-fast-edit-product-picker,.bdmom-edit-grid,.bdm-stock-grid,.calls-grid,.calls-product-picker)>*{grid-column:1/-1!important;min-width:0}
 body.salesgrid-app-body :is(.bdmom-item-fields,.bdmom-existing,.bdm-agent-create-existing){min-width:0;max-width:100%}
 body.salesgrid-app-body :is(.bdmom-grid,.bdm-account-grid,.calls-card-list){grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 body.salesgrid-app-body :is(.bdmom-section,.bdm-agent-create-section,.bdm-stock-section,.calls-panel){padding:15px!important;border-radius:15px!important;border-top:3px solid #76a6c8!important;background:linear-gradient(155deg,#edf5fc,#fff 200px)!important;box-sizing:border-box;min-width:0;max-width:100%}
 body.salesgrid-app-body :is(#bdmom-create,.bdm-agent-create-section,#calls-entry){border-top-color:#f58220!important;background:linear-gradient(145deg,#e7f2ff,#f8fbff 65%,#fff1df)!important}
 body.salesgrid-app-body :is(.bdmom-section,.bdm-stock-section,.calls-panel)>:is(h2,h3){font-size:20px!important;line-height:1.35!important}
 body.salesgrid-app-body :is(.bdmom-order,.bdm-account-card,.calls-record-card){padding:15px!important;border-radius:16px!important;min-width:0;max-width:100%;overflow-wrap:anywhere}
 body.salesgrid-app-body :is(.bdmom-create-actions,.bdm-agent-create-actions,.calls-filter,.bdm-filter-actions,.bdmom-filter-actions){display:flex!important;flex-wrap:wrap!important;gap:10px!important}
 body.salesgrid-app-body :is(.bdmom-create-actions,.bdm-agent-create-actions,.bdm-filter-actions,.bdmom-filter-actions)>:is(button,.button){width:100%!important;min-height:50px!important;font-size:15px!important}
 body.salesgrid-app-body .calls-filter>label{flex:1 1 160px!important}
 body.salesgrid-app-body .bdm-stock-direct-form{min-width:0!important;display:flex!important;flex-direction:column;align-items:stretch;gap:8px}
 body.salesgrid-app-body .bdm-stock-direct-form select{min-width:0!important}
 body.salesgrid-app-body :is(.bdm-fast-edit-modal,.bdm-universal-product-picker,.bdm-order-preview){padding:8px!important;inset:auto 0 auto 0!important;top:var(--bdm-visual-top,0px)!important;height:var(--bdm-visual-height,100dvh)!important;box-sizing:border-box!important;align-items:stretch!important;z-index:100500!important}
 body.salesgrid-app-body .bdm-universal-product-picker{z-index:100600!important}
 body.salesgrid-app-body :is(.bdm-fast-edit-dialog,.bdm-universal-product-picker-dialog,.bdm-order-preview-dialog){width:100%!important;max-width:100%!important;max-height:100%!important;height:auto!important;min-height:0!important;border-radius:16px!important;box-sizing:border-box!important;background:#f0f6fc!important;overflow:auto!important}
 body.salesgrid-app-body .bdm-universal-product-picker-dialog{display:flex!important;flex-direction:column!important;overflow:hidden!important}
 body.salesgrid-app-body :is(.bdm-universal-product-picker-head,.bdm-fast-edit-head){padding:13px!important;gap:9px!important;flex:0 0 auto}
 body.salesgrid-app-body :is(.bdm-universal-product-picker-close,.bdm-fast-edit-close,.bdm-order-preview-close){min-height:46px!important;min-width:46px!important;width:46px!important;height:46px!important;flex:0 0 46px!important}
 body.salesgrid-app-body .bdm-universal-product-picker-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:12px!important;gap:8px!important;flex:0 0 auto}
 body.salesgrid-app-body .bdm-universal-product-picker-results{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:10px!important;background:#edf5fc!important}
 body.salesgrid-app-body .bdm-universal-product-picker-footer{grid-template-columns:80px minmax(0,1fr) 80px!important;gap:7px!important;padding:10px!important;flex:0 0 auto}
 body.salesgrid-app-body .bdm-universal-product-picker-page{font-size:12px!important}
 body.salesgrid-app-body :is(.bdm-fast-edit-body,.bdm-order-preview-dialog){padding:12px!important}
 body.salesgrid-app-body .bdm-fast-edit-section{background:#fff!important;border-left:3px solid #80afd0!important;padding:13px!important}
 body.salesgrid-app-body .bdm-fast-edit-section h4{font-size:16px!important;color:#173f60!important}
 body.salesgrid-app-body :is(.bdmom-product-results,.bdm-agent-create-results,.bdm-agent-product-results):not([hidden]){max-height:calc(var(--bdm-visual-height,100dvh) - 110px)!important;bottom:auto!important;top:calc(var(--bdm-visual-top,0px) + 88px)!important;left:10px!important;right:10px!important;min-width:0!important}
 body.salesgrid-app-body.bdm-mobile-dialog-open .sg-sidebar{visibility:hidden!important;pointer-events:none!important}
 body.salesgrid-app-body .bdm-mobile-table-scroll table{max-width:none!important;margin:0!important;min-width:650px}
 body.salesgrid-app-body .bdm-mobile-table-scroll :is(td,th){font-size:13px!important;line-height:1.5!important;padding:11px!important}
 body.salesgrid-app-body .bdm-mobile-table-scroll caption{color:#355d7c;background:#eaf3fc;text-align:left;padding:9px 11px;font-size:12px}
 body.salesgrid-app-body .bdm-mobile-table-scroll[role=region]:before{content:'Swipe sideways to see all columns';display:block;padding:8px 11px;background:#e5eff8;color:#315c7b;font-size:12px}
}
@media(prefers-reduced-motion:reduce){body.salesgrid-app-body :is(.sg-content,.bdm-fast-edit-modal,.bdm-universal-product-picker) *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:760px){
 body.salesgrid-app-body .sg-topbar{background:linear-gradient(135deg,#123b60,#206e9a)!important;border-bottom:3px solid #f58220!important}
 body.salesgrid-app-body .sg-topbar h1{color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.salesgrid-app-body .sg-top-kicker{color:#c9e3f5!important;-webkit-text-fill-color:#c9e3f5!important}
 body.salesgrid-app-body :is(.bdm-agent-create-section,#bdmom-create,#bdmom-edit-items,.bdm-stock-grid,.bdm-stock-remove-form,#calls-entry,.bdm-fast-edit-body) label{color:#315976!important;-webkit-text-fill-color:#315976!important}
 body.salesgrid-app-body :is(.bdm-agent-create-section,.bdmom-section,.bdm-stock-section,.calls-panel)>:is(h2,h3),body.salesgrid-app-body .bdm-agent-create-head h3{color:#173f60!important;-webkit-text-fill-color:#173f60!important}
 body.salesgrid-app-body .bdm-universal-product-picker-tools label{font-size:13px!important;color:#315976!important;-webkit-text-fill-color:#315976!important}
 body.salesgrid-app-body .bdm-universal-product-picker-footer .button{padding:8px!important;white-space:nowrap!important;font-size:13px!important;border:1px solid #b7cddd!important;border-radius:9px!important;background:#e7f0f8!important;color:#173f60!important;-webkit-text-fill-color:#173f60!important}
 body.salesgrid-app-body .bdm-universal-product-picker-footer .button:last-child{background:#f58220!important;border-color:#f58220!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.salesgrid-app-body .bdm-universal-product-picker-footer .button:disabled{background:#e4eaf0!important;border-color:#cbd6e0!important;color:#63788a!important;-webkit-text-fill-color:#63788a!important;opacity:1!important}
 body.salesgrid-app-body :is(.bdm-fast-edit-save,.bdm-fast-product-editor-save,.bdmom-create-actions button[type=submit],.bdm-agent-create-submit){background:#ed7917!important;border:1px solid #dc6a0d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:15px!important;border-radius:10px!important}
}
@media(max-width:760px){
 body.salesgrid-app-body .bdm-calls #calls-entry .calls-search-label{color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.salesgrid-app-body :is(.bdm-agent-create-head,.bdmom-create-headbar){background:linear-gradient(135deg,#123b60,#206e9a)!important;border-radius:12px;padding:15px!important}
 body.salesgrid-app-body :is(.bdm-agent-create-head,.bdmom-create-headbar) :is(h3,p,span){color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.salesgrid-app-body .bdm-imei-modal{top:var(--bdm-visual-top,0px)!important;bottom:auto!important;height:var(--bdm-visual-height,100dvh)!important;padding:10px!important;box-sizing:border-box}
 body.salesgrid-app-body .bdm-imei-dialog{max-width:100%!important;max-height:100%!important;overflow-y:auto!important;box-sizing:border-box;background:#edf5fc!important}
 body.salesgrid-app-body .bdm-imei-dialog :is(input,select){font-size:16px!important;min-height:48px!important;box-sizing:border-box;max-width:100%}
 body.salesgrid-app-body .bdm-imei-dialog button{min-height:46px!important;white-space:normal}
 body.salesgrid-app-body .bdm-imei-head{flex-wrap:wrap;gap:10px;color:#173f60!important}
}

/* v2.18.4.203: mobile-first workspace finishing layer. All rules scoped to SalesGrid. */
body.salesgrid-app-body .sg-content :is(.bdmom-manager-hero,.bdmom-manager-period-card,.bdmom-section,.bdm-ops-section,.bdm-ops-panel,.bdm-activation-group,.bdm-permission-card){min-width:0;max-width:100%;box-sizing:border-box}
body.salesgrid-app-body .sg-content :is(.bdmom-section,.bdm-ops-panel,.bdm-permission-card) :is(h2,h3,h4,p,small,strong,span){overflow-wrap:anywhere}
body.salesgrid-app-body .sg-content .bdmom-sales-agent-filter{max-width:100%;box-sizing:border-box}
body.salesgrid-app-body .sg-content .bdmom-chart-bars{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
body.salesgrid-app-body .sg-content :is(.bdmom-manager-period-grid,.bdmom-manager-metrics,.bdm-ops-grid,.bdm-ops-highlights,.bdm-permission-grid){min-width:0}
body.salesgrid-app-body .sg-content :is(.bdmom-order-compact-cell,.bdmom-manager-metric,.bdm-ops-highlight){min-width:0;overflow-wrap:anywhere}
body.salesgrid-app-body .sg-content :is(.bdm-activation-table,.bdmom-dispatch-table,.bdmom-supplier-table,.bdmom-agent-report-table){max-width:none}
body.salesgrid-app-body .sg-content .bdm-activation-summary{flex-wrap:wrap}
body.salesgrid-app-body .sg-content .bdm-permission-card label{align-items:flex-start;white-space:normal}
body.salesgrid-app-body .sg-content .bdm-permission-card label span{flex:1;min-width:0}
@media (min-width:761px) and (max-width:1120px){
 body.salesgrid-app-body .sg-content{padding:16px!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-period-grid{grid-template-columns:minmax(0,1fr)!important}
 body.salesgrid-app-body .sg-content .bdm-ops-grid{grid-template-columns:minmax(0,1fr)!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-period-card{min-width:0}
 body.salesgrid-app-body .sg-content .bdmom-sales-overview-head{flex-wrap:wrap}
}
@media (max-width:760px){
 body.salesgrid-app-body .sg-content{width:100%!important;overflow-x:clip!important}
 body.salesgrid-app-body .sg-content :is(.bdmom-shell,.bdmom-manager-hero,.bdm-ops-section,.bdm-manager-earned,.bdm-stock-shell){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
 body.salesgrid-app-body .sg-content #bdmom-sales-overview{padding:14px!important;margin-top:10px!important;border-radius:15px!important}
 body.salesgrid-app-body .sg-content .bdmom-sales-overview-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
 body.salesgrid-app-body .sg-content .bdmom-sales-agent-filter{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:10px!important;min-width:0!important;width:100%!important;padding:12px!important}
 body.salesgrid-app-body .sg-content .bdmom-sales-agent-filter label{width:100%;min-width:0!important}
 body.salesgrid-app-body .sg-content .bdmom-sales-agent-filter :is(select,button){width:100%!important;min-height:46px!important;font-size:16px!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-period-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-period-card{width:100%!important;min-width:0!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-metric{padding:12px 8px!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-metric strong{font-size:clamp(17px,5vw,24px)!important;line-height:1.25!important;overflow-wrap:anywhere}
 body.salesgrid-app-body .sg-content .bdmom-manager-metric span{font-size:11px!important;line-height:1.35!important}
 body.salesgrid-app-body .sg-content .bdmom-manager-chart{margin-top:12px!important;padding:10px!important;max-width:100%;box-sizing:border-box}
 body.salesgrid-app-body .sg-content .bdmom-manager-chart-head{flex-wrap:wrap!important;gap:8px!important}
 body.salesgrid-app-body .sg-content .bdmom-chart-bars{width:100%;overflow-x:auto!important}
 body.salesgrid-app-body .sg-content .bdmom-chart-day{min-width:25px}
 body.salesgrid-app-body .sg-content .bdm-ops-section{margin-top:17px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-title{padding:16px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-date{white-space:normal!important}
 body.salesgrid-app-body .sg-content .bdm-ops-highlights{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-highlight{padding:12px 10px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-highlight strong{font-size:clamp(20px,6vw,26px)!important}
 body.salesgrid-app-body .sg-content .bdm-ops-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-panel{padding:13px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-panel header{flex-wrap:wrap!important}
 body.salesgrid-app-body .sg-content .bdm-ops-count{white-space:normal!important}
 body.salesgrid-app-body .sg-content .bdm-ops-shop-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-shop-cards>div{padding:9px 6px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-shop-cards b{font-size:19px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-scroll{overflow:visible!important;border:0!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table{display:block!important;width:100%!important;min-width:0!important;border-collapse:separate!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table thead{display:none!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table tbody{display:grid!important;gap:9px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:10px!important;border:1px solid #d8e7f1!important;border-radius:11px!important;background:#fff!important;box-shadow:0 3px 10px rgba(14,53,77,.05)}
 body.salesgrid-app-body .sg-content .bdm-ops-table td{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;padding:6px!important;background:transparent!important;border:0!important;color:#183a53!important;font-size:12px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table td::before{content:attr(data-bdm-label);display:block!important;color:#688193!important;font-size:10px!important;letter-spacing:.02em!important;text-transform:uppercase!important;font-weight:800!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table td[colspan]{grid-column:1/-1!important}
 body.salesgrid-app-body .sg-content .bdm-ops-table td :is(strong,small){overflow-wrap:anywhere!important}
 body.salesgrid-app-body .sg-content :is(.bdmom-create-actions,.bdmom-compact-actions,.bdmom-status-actions,.bdmom-compact-status-menu){min-width:0;max-width:100%;box-sizing:border-box}
 body.salesgrid-app-body .sg-content .bdmom-status-actions :is(button,.button){min-height:46px!important}
 body.salesgrid-app-body .sg-content .bdm-permission-grid{grid-template-columns:minmax(0,1fr)!important}
 body.salesgrid-app-body .sg-content .bdm-permission-card{padding:14px!important}
 body.salesgrid-app-body .sg-content .bdm-permission-card button{width:100%!important}
 body.salesgrid-app-body .sg-content .bdm-activation-scroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
 body.salesgrid-app-body .sg-content .bdm-activation-summary span{flex:1 1 130px}
 body.salesgrid-app-body .sg-content .bdm-mobile-table-scroll{max-width:100%!important}
 body.salesgrid-app-body .sg-content .sg-side-nav a{min-height:44px!important}
}
@media (max-width:360px){
 body.salesgrid-app-body .sg-content .bdmom-manager-metric{padding:9px 6px!important}
 body.salesgrid-app-body .sg-content .bdm-ops-shop-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.salesgrid-app-body .sg-content .bdm-ops-shop-cards>div:last-child{grid-column:1/-1}
 body.salesgrid-app-body .sg-content .bdm-ops-table tr{grid-template-columns:minmax(0,1fr)!important}
}


/* v2.18.4.205 — genuine mobile-first navy cards. Never require horizontal
   scrolling to read the rows of a SalesGrid data table. Desktop is untouched. */
@media (max-width:760px){
 body.salesgrid-app-body .sg-content :is(.bdm-mobile-table-scroll,.bdmom-table-wrap,.bdm-table-wrap,.table-responsive,.bdmom-team-sales-scroll,.bdm-activation-scroll,.bdm-ops-scroll,.calls-table-wrap,.woocommerce-orders-table,.shop_table){
   width:100%!important;min-width:0!important;max-width:100%!important;
   overflow-x:visible!important;overflow-y:visible!important;max-height:none!important;
   -webkit-overflow-scrolling:auto!important;border:0!important;background:transparent!important;
 }
 body.salesgrid-app-body .sg-content .bdm-mobile-table-scroll::before{display:none!important;content:none!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table,
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table:is(.bdm-ops-table,.bdm-activation-table,.bdmom-team-sales-table){
   display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
   border:0!important;border-collapse:separate!important;border-spacing:0!important;
   background:transparent!important;table-layout:auto!important;overflow:visible!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table>thead{display:none!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(tbody,tfoot){
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   background:transparent!important;border:0!important;padding:0!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(tbody,tfoot)>tr,
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table.bdm-ops-table tbody>tr{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
   width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
   margin:0!important;padding:13px!important;border-radius:14px!important;
   background:linear-gradient(145deg,#103251,#174a74)!important;
   border:1px solid #306a94!important;border-left:4px solid #f59a44!important;
   box-shadow:0 5px 16px rgba(15,49,78,.14)!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table tr[hidden],
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table tr[style*="display: none"],
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table tr[style*="display:none"]{display:none!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th),
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table.bdm-ops-table td{
   display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;box-sizing:border-box!important;padding:10px 3px!important;margin:0!important;
   border:0!important;border-bottom:1px solid rgba(204,229,250,.18)!important;
   background:transparent!important;color:#f2f8fc!important;
   -webkit-text-fill-color:#f2f8fc!important;font-size:13px!important;line-height:1.5!important;
   white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;text-align:left!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th):last-child{border-bottom:0!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th)::before,
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table.bdm-ops-table td::before{
   content:attr(data-bdm-label)!important;display:block!important;
   color:#a8cde8!important;-webkit-text-fill-color:#a8cde8!important;
   font-size:10px!important;font-weight:800!important;line-height:1.5!important;
   letter-spacing:.045em!important;text-transform:uppercase!important;margin-bottom:4px!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th) :is(b,strong,span,small,em,code),
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table .bdmom-team-sales-product strong,
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(.bdmom-team-sales-financier,.bdmom-team-sales-staff,.bdmom-team-sales-type,.bdmom-team-sales-order,.bdmom-team-sales-client,.bdmom-team-sales-phone){
   color:#fff!important;-webkit-text-fill-color:#fff!important;white-space:normal!important;
   max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table td a:not(.button):not([class*="btn"]),
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table td a:not(.button):not([class*="btn"]) :is(strong,span){color:#b7e5ff!important;-webkit-text-fill-color:#b7e5ff!important;overflow-wrap:anywhere!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
   background:#fff!important;color:#163e60!important;-webkit-text-fill-color:#163e60!important;
   width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(button,.button){
   max-width:100%!important;min-height:44px!important;white-space:normal!important;overflow-wrap:anywhere!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(form,fieldset,div,select,pre){max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(pre,code){white-space:pre-wrap!important;word-break:break-all!important}
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table caption{display:block!important;max-width:100%!important;white-space:normal!important}
 body.salesgrid-app-body .sg-content .bdmom-chart-bars{
   display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
   grid-template-rows:repeat(2,135px)!important;align-items:end!important;
   gap:12px 4px!important;height:auto!important;min-width:0!important;max-width:100%!important;
   overflow:visible!important;
 }
 body.salesgrid-app-body .sg-content .bdmom-chart-day{min-width:0!important;max-width:100%!important;overflow:hidden!important}
 body.salesgrid-app-body .sg-content .bdmom-chart-columns{height:110px!important;min-width:0!important}
 body.salesgrid-app-body .sg-content .bdmom-chart-day-label{font-size:clamp(7px,2vw,10px)!important;white-space:normal!important;text-align:center!important}
}

/* Common report, stock and HR wrappers may have inline overflow:auto. */
@media (max-width:760px){
 body.salesgrid-app-body .sg-content :is(
   .bdmom-attendance-table-wrap,.bdm-payment-history-scroll,.bdm-shared-commission-scroll,
   .bdm-agent-month-sales-table-wrap,.bdm-agent-commission-history-wrap,
   .bdmom-payment-confirmations-wrap,.bdmom-payment-list-wrap,.bdmom-agent-table-wrap,
   .bdmom-profit-summary,.bdmom-profit-table-wrap,.bdmom-profit-table-read,
   .bdmom-commission-table-wrap,.bdmom-commission-report-table-wrap,
   .bdmom-commission-payment-history-wrap,.bdmom-sms-review-table-wrap,
   .bdmom-supplier-table-wrap,.bdm-agent-table,.bdm-stock-table-wrap,
   .bdm-live-stock-table-wrap,.bdm-agent-unit-table-wrap,.calls-history-scroll,
   .bdm-mc-table,.hr-overflow,.bdm-agent-sales-report-scroll
 ) {max-width:100%!important;min-width:0!important;max-height:none!important;overflow-x:visible!important;overflow-y:visible!important}
 body.salesgrid-app-body .sg-content :is(.bdmom-app-nav,.bdmom-profit-brand-filter){
    width:100%!important;max-width:100%!important;min-width:0!important;
    display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px!important;
 }
 body.salesgrid-app-body .sg-content .bdmom-app-nav>a{min-width:0!important;flex:1 1 110px!important;max-width:100%!important;white-space:normal!important}
}
@media(max-width:760px){
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table td :is(button,.button,input[type=submit]){
   display:inline-flex;align-items:center;justify-content:center;max-width:100%!important;
   background:#e9f4fc!important;border:1px solid #b5d4ea!important;
   color:#143e60!important;-webkit-text-fill-color:#143e60!important;
   padding:10px 14px!important;font-weight:800!important;border-radius:9px!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table td :is(button,.button,input[type=submit]):is(:hover,:focus-visible){
   background:#fff!important;border-color:#f49a44!important;outline:2px solid #f49a44!important;outline-offset:2px!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table td :is(.button-danger,.bdm-deactivate-button,[class*="delete"],[class*="remove"]){
   background:#ffebe8!important;color:#922d26!important;-webkit-text-fill-color:#922d26!important;border-color:#ecb9b3!important;
 }
}


/* v2.18.4.207 — compact navy data cards, matching the order-card density.
 * Labels and values share a single line where possible. Only secondary
 * fields collapse; action controls always remain accessible. Desktop remains
 * an unchanged table, and no mobile record needs horizontal scrolling. */
@media (max-width:760px){
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(tbody,tfoot){
   gap:7px!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(tbody,tfoot)>tr,
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table.bdm-ops-table tbody>tr{
   position:relative!important;display:flex!important;flex-direction:column!important;
   padding:9px 11px!important;border-radius:11px!important;
   gap:0!important;box-shadow:0 2px 8px rgba(15,49,78,.12)!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th),
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table.bdm-ops-table td,
 body.salesgrid-app-body .sg-content .bdm-agent-month-sales table.bdm-mobile-card-table td{
   display:grid!important;grid-template-columns:minmax(70px,32%) minmax(0,1fr)!important;
   column-gap:8px!important;row-gap:1px!important;align-items:start!important;
   width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:0!important;padding:3px 0!important;
   margin:0!important;border:0!important;background:transparent!important;
   color:#f5faff!important;-webkit-text-fill-color:#f5faff!important;
   font-size:11.5px!important;font-weight:600!important;line-height:1.32!important;
   white-space:normal!important;text-align:left!important;overflow-wrap:anywhere!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th)::before,
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table.bdm-ops-table td::before,
 body.salesgrid-app-body .sg-content .bdm-agent-month-sales table.bdm-mobile-card-table td::before{
   content:attr(data-bdm-label)!important;display:block!important;
   grid-column:1!important;grid-row:1!important;
   font-size:9px!important;line-height:1.34!important;font-weight:750!important;
   text-transform:none!important;letter-spacing:0!important;
   color:#a8d0ef!important;-webkit-text-fill-color:#a8d0ef!important;
   margin:1px 0 0!important;padding:0!important;white-space:normal!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th)>:not(.bdm-mobile-card-more-toggle){
   grid-column:2!important;min-width:0!important;max-width:100%!important;
   margin-top:0!important;margin-bottom:0!important;line-height:1.34!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th) small{
   font-size:10px!important;line-height:1.22!important;margin:0!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th) strong{
   font-size:11.5px!important;line-height:1.32!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th):has(form,select,textarea,input:not([type=hidden])){
   grid-template-columns:minmax(0,1fr)!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th):has(form,select,textarea,input:not([type=hidden]))::before{
   grid-column:1!important;grid-row:auto!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th):has(form,select,textarea,input:not([type=hidden])) > *{
   grid-column:1!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table td[data-bdm-compact-extra="1"]{
   display:none!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table tr.bdm-mobile-compact-expanded>td[data-bdm-compact-extra="1"]{
   display:grid!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table tr.bdm-mobile-compact-row{
   padding-bottom:9px!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table .bdm-mobile-card-more-toggle{
   display:inline-flex!important;align-items:center!important;justify-content:center!important;
   position:static!important;grid-column:1/-1!important;grid-row:auto!important;order:99!important;justify-self:end!important;
   margin-top:5px!important;
   width:auto!important;max-width:calc(100% - 20px)!important;min-width:0!important;
   min-height:25px!important;height:25px!important;padding:3px 10px!important;margin:0!important;
   background:rgba(255,255,255,.10)!important;border:1px solid rgba(192,222,246,.35)!important;
   border-radius:7px!important;color:#e8f5ff!important;-webkit-text-fill-color:#e8f5ff!important;
   font-size:10px!important;font-weight:800!important;line-height:1.2!important;
   box-shadow:none!important;cursor:pointer!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table .bdm-mobile-card-more-toggle:focus-visible{
   outline:2px solid #ffad59!important;outline-offset:2px!important;
 }
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table tr.bdm-mobile-compact-expanded>td[data-bdm-compact-extra="1"]{
   padding-top:5px!important;
 }
 /* Avoid vertically stretching every action control within a compact record. */
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table :is(td,th) :is(button,.button,input[type=submit]):not(.bdm-mobile-card-more-toggle){
   min-height:34px!important;padding:6px 10px!important;
 }
}
@media (min-width:761px){
 body.salesgrid-app-body .sg-content table.bdm-mobile-card-table .bdm-mobile-card-more-toggle{display:none!important}
}
