:root{--sg-bg:#f4f7fb;--sg-panel:#fff;--sg-ink:#172033;--sg-muted:#6f7c91;--sg-line:#e3e9f2;--sg-sidebar:#111c31;--sg-sidebar2:#17243d;--sg-blue:#526ee8;--sg-orange:#f59b45;--sg-radius:16px;--sg-shadow:0 12px 32px rgba(31,47,76,.08)}
html,body.salesgrid-app-body{margin:0!important;padding:0!important;background:var(--sg-bg)!important;color:var(--sg-ink);min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
body.salesgrid-app-body>*:not(.sg-app-shell):not(.sg-login-screen):not(#wpadminbar):not(script):not(style){max-width:none}
body.salesgrid-app-body #wpadminbar{display:none!important}html{margin-top:0!important}
.sg-app-shell{min-height:100vh;display:grid;grid-template-columns:254px minmax(0,1fr);background:var(--sg-bg)}

.sg-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--sg-orange),#ffbd76);display:grid;place-items:center;color:#172033;font-weight:900;box-shadow:0 8px 20px rgba(245,155,69,.24)}


.sg-top-kicker{display:block;color:var(--sg-blue);font-size:9px;font-weight:900;letter-spacing:.12em}
.sg-content{padding:20px 24px 34px;min-width:0}.sg-content>.woocommerce,.sg-content .woocommerce-MyAccount-content{float:none!important;width:100%!important;margin:0!important;padding:0!important;max-width:none!important}.sg-content .woocommerce-MyAccount-navigation{display:none!important}.sg-content .bdm-workspace-nav{display:none!important}.sg-content .bdmom-shell,.sg-content .bdm-agent-shell,.sg-content .bdm-wrap{max-width:none!important;width:100%!important;margin:0!important;box-sizing:border-box}.sg-content .bdmom-head,.sg-content .bdm-agent-dashboard-header{margin-top:0!important}.sg-content .bdmom-section,.sg-content .bdmom-card,.sg-content .bdm-card,.sg-content .bdm-agent-card{border-color:var(--sg-line)!important;box-shadow:var(--sg-shadow)!important;border-radius:var(--sg-radius)!important}.sg-content table{border-radius:12px;overflow:hidden}.sg-content input,.sg-content select,.sg-content textarea{border-radius:10px!important}.sg-content .button,.sg-content button{border-radius:10px}
.sg-login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;box-sizing:border-box;background:radial-gradient(circle at 20% 10%,rgba(82,110,232,.13),transparent 31%),radial-gradient(circle at 90% 90%,rgba(245,155,69,.13),transparent 30%),#f3f6fb}.sg-login-panel{width:min(460px,100%);background:#fff;border:1px solid #e4eaf2;border-radius:24px;box-shadow:0 24px 70px rgba(31,47,76,.12);padding:34px;box-sizing:border-box}.sg-login-brand{display:flex;align-items:center;gap:12px}.sg-login-brand h1{margin:0!important;color:#172033!important;font-size:25px!important}.sg-login-brand p{margin:4px 0 0;color:#78859a;font-size:10px;text-transform:uppercase;letter-spacing:.1em}.sg-login-copy{margin:30px 0 20px}.sg-kicker{font-size:9px;font-weight:900;letter-spacing:.12em;color:#526ee8}.sg-login-copy h2,.sg-access-panel h2{margin:5px 0 8px!important;font-size:28px!important;color:#172033!important}.sg-login-copy p,.sg-access-panel p{margin:0;color:#6f7c91;line-height:1.6;font-size:13px}.sg-login-form{display:grid;gap:15px}.sg-login-form>label{display:grid;gap:6px;color:#344158;font-size:11px;font-weight:800}.sg-login-form input[type=text],.sg-login-form input[type=password]{width:100%;height:46px;box-sizing:border-box;border:1px solid #dce4ef;border-radius:12px;padding:0 13px;background:#f9fbfd;font-size:14px}.sg-login-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px}.sg-remember{display:flex!important;align-items:center;gap:7px!important;font-weight:600!important}.sg-login-row a{color:#526ee8;text-decoration:none;font-weight:800}.sg-login-form button,.sg-primary-link{min-height:47px;border:0;border-radius:12px;background:linear-gradient(135deg,#506be6,#647ef0);color:#fff!important;font-weight:900;font-size:13px;box-shadow:0 12px 26px rgba(82,110,232,.23);display:grid;place-items:center;text-decoration:none!important}.sg-login-foot{margin-top:18px;padding-top:16px;border-top:1px solid #edf1f6;color:#9aa5b5;font-size:9px;text-align:center}.sg-login-error{margin:0 0 16px;padding:11px 12px;border-radius:10px;background:#fff2f2;color:#a32b31;font-size:11px;font-weight:700}.sg-access-panel{text-align:left}.sg-access-panel .sg-primary-link{margin-top:22px}
@media(max-width:960px){.sg-app-shell{grid-template-columns:78px minmax(0,1fr)}.sg-content{padding:16px}}
@media(max-width:650px){.sg-app-shell{display:block}.sg-content{padding:12px}.sg-login-panel{padding:26px 22px;border-radius:20px}}

/* v2.18.4.2 — SalesGrid app-only presentation. The original BDM markup and
   actions are preserved; this layer only removes WordPress/WooCommerce theme
   chrome and visually unifies the workspace with the SalesGrid login shell. */
body.salesgrid-app-body > header,
body.salesgrid-app-body > footer,
body.salesgrid-app-body .site-header,
body.salesgrid-app-body .whb-header,
body.salesgrid-app-body .whb-main-header,
body.salesgrid-app-body .top-bar-wrapper,
body.salesgrid-app-body .wd-header-nav,
body.salesgrid-app-body .main-page-wrapper > .page-title,
body.salesgrid-app-body .page-title-default,
body.salesgrid-app-body .site-content > .page-title,
body.salesgrid-app-body .woocommerce-breadcrumb,
body.salesgrid-app-body .footer-container,
body.salesgrid-app-body .copyrights-wrapper,
body.salesgrid-app-body .scrollToTop,
body.salesgrid-app-body .woodmart-toolbar,
body.salesgrid-app-body .wd-toolbar,
body.salesgrid-app-body .wd-prefooter,
body.salesgrid-app-body .prefooter,
body.salesgrid-app-body .woocommerce-MyAccount-navigation,
body.salesgrid-app-body .wd-my-account-sidebar,
body.salesgrid-app-body .account-navigation-wrap{display:none!important}

body.salesgrid-app-body .website-wrapper,
body.salesgrid-app-body .main-page-wrapper,
body.salesgrid-app-body .container,
body.salesgrid-app-body .site-content,
body.salesgrid-app-body .woocommerce,
body.salesgrid-app-body .woocommerce-MyAccount-content{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-height:0!important;background:transparent!important}

/* Calm, dense Umetric-inspired workspace treatment. */
.sg-content{background:var(--sg-bg);}
.sg-content .bdmom-shell,
.sg-content .bdm-agent-shell,
.sg-content .bdm-stock-shell,
.sg-content .bdm-wrap{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;color:var(--sg-ink)!important}
.sg-content .bdmom-head,
.sg-content .bdm-agent-dashboard-header,
.sg-content .bdm-stock-header{background:linear-gradient(135deg,#fff,#f8faff)!important;border:1px solid var(--sg-line)!important;border-radius:18px!important;padding:18px 20px!important;margin:0 0 18px!important;box-shadow:var(--sg-shadow)!important}
.sg-content .bdmom-head h1,
.sg-content .bdm-agent-dashboard-header h1,
.sg-content .bdm-stock-header h1{color:var(--sg-ink)!important;font-size:24px!important;line-height:1.15!important;margin:0!important}
.sg-content .bdmom-head p,
.sg-content .bdm-agent-dashboard-header p,
.sg-content .bdm-stock-header p{color:var(--sg-muted)!important}

.sg-content .bdmom-card,
.sg-content .bdmom-section,
.sg-content .bdm-card,
.sg-content .bdm-agent-card,
.sg-content .bdm-global-order-search,
.sg-content .bdm-view-as-switch{background:#fff!important;border:1px solid var(--sg-line)!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(31,47,76,.06)!important}

.sg-content .bdmom-stats,
.sg-content .bdm-stats,
.sg-content .bdm-agent-stats{gap:12px!important}
.sg-content .bdmom-stat,
.sg-content .bdm-stat,
.sg-content .bdm-agent-stat{border:1px solid var(--sg-line)!important;border-radius:14px!important;background:linear-gradient(180deg,#fff,#f9fbff)!important;box-shadow:none!important}

.sg-content table{background:#fff!important;border:1px solid var(--sg-line)!important;border-collapse:separate!important;border-spacing:0!important;border-radius:14px!important;overflow:hidden!important}
.sg-content table th{background:#f7f9fd!important;color:#627088!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.sg-content table td{border-color:#edf1f6!important;color:#263248!important}

.sg-content input[type=text],
.sg-content input[type=search],
.sg-content input[type=tel],
.sg-content input[type=number],
.sg-content input[type=date],
.sg-content input[type=email],
.sg-content select,
.sg-content textarea{background:#fff!important;border:1px solid #dce4ef!important;color:#253149!important;box-shadow:none!important;min-height:42px!important}
.sg-content input:focus,
.sg-content select:focus,
.sg-content textarea:focus{border-color:var(--sg-blue)!important;box-shadow:0 0 0 3px rgba(82,110,232,.12)!important;outline:0!important}

.sg-content .button{border-radius:10px!important}
.sg-content .button-primary,
.sg-content button.button-primary{background:var(--sg-blue)!important;border-color:var(--sg-blue)!important;color:#fff!important;box-shadow:0 8px 18px rgba(82,110,232,.18)!important}

/* Avoid the huge blank horizontal margins generated by theme/account layouts. */
.sg-content .woocommerce-MyAccount-content,
.sg-content .bdmom-shell,
.sg-content .bdm-agent-shell,
.sg-content .bdm-stock-shell{max-width:1500px!important;margin-left:auto!important;margin-right:auto!important}

@media (min-width:1100px){.sg-content{padding:22px 28px 36px!important}}

/* v1.2 independent module routing */




.sg-content>.bdmom-top-notice-area:empty{display:none}
.salesgrid-independent-tabs .bdm-workspace-nav,.salesgrid-independent-tabs .bdmom-app-nav,.salesgrid-independent-tabs .bdmom-manager-shortcuts{display:none!important}
.sg-content .bdm-global-order-search{margin-top:0}
.sg-content #bdmom-create,.sg-content #bdmom-orders,.sg-content #bdmom-agents,.sg-content #bdmom-attendance,.sg-content #bdmom-agent-performance,.sg-content #bdmom-agent-report-notes,.sg-content #bdmom-suppliers,.sg-content #bdmom-sales-profit-report,.sg-content #bdmom-profits,.sg-content #bdmom-commissions,.sg-content #bdmom-customer-feedback,.sg-content #bdmom-sms-updates,.sg-content #bdmom-system-health,.sg-content #bdmom-sales-overview{margin-top:18px}


/* v1.4 mobile bottom navigation -------------------------------------------------
   Keep every SalesGrid workspace independent while making navigation usable on
   phones. The dock scrolls horizontally instead of squeezing eight modules into
   unreadable icons, and logout is always available as the last dock item. */
.sg-mobile-logout{display:none!important}

@media (max-width:650px){
  html,body.salesgrid-app-body{overflow-x:hidden!important}
  .sg-app-shell{display:block!important;min-height:100vh!important}
  
  .sg-content{padding:10px 10px 18px!important;overflow-x:hidden!important}

  
  
  .sg-top-kicker{font-size:8px!important}
  
  
  

  
  
  
  
  
  
  
  
  .sg-mobile-logout{
    display:flex!important;color:#ffc086!important;background:rgba(245,155,69,.10)!important
  }
  

  /* Preserve desktop functionality but make dense BDM content usable on phones. */
  .sg-content .bdmom-shell,.sg-content .bdm-agent-shell,.sg-content .bdm-stock-shell,.sg-content .bdm-wrap{
    width:100%!important;max-width:100%!important;margin:0!important;padding:0!important
  }
  .sg-content .bdmom-head,.sg-content .bdm-agent-dashboard-header,.sg-content .bdm-stock-header{
    padding:13px!important;border-radius:14px!important;margin-bottom:12px!important
  }
  .sg-content .bdmom-head h1,.sg-content .bdm-agent-dashboard-header h1,.sg-content .bdm-stock-header h1{
    font-size:19px!important
  }
  .sg-content .bdmom-section,.sg-content .bdmom-card,.sg-content .bdm-card,.sg-content .bdm-agent-card,
  .sg-content .bdm-global-order-search,.sg-content .bdm-view-as-switch{
    border-radius:13px!important;padding-left:12px!important;padding-right:12px!important
  }
  .sg-content .bdmom-stats,.sg-content .bdm-stats,.sg-content .bdm-agent-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important
  }
  .sg-content table{min-width:680px!important}
  .sg-content .table-responsive,.sg-content .bdmom-table-wrap,.sg-content .bdm-table-wrap,
  .sg-content .woocommerce-orders-table,.sg-content .shop_table{
    overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;max-width:100%!important
  }
  .sg-content form{max-width:100%!important}
  .sg-content input[type=text],.sg-content input[type=search],.sg-content input[type=tel],
  .sg-content input[type=number],.sg-content input[type=date],.sg-content input[type=email],
  .sg-content select,.sg-content textarea{max-width:100%!important;width:100%!important;box-sizing:border-box!important}
}

@media (max-width:380px){
  
  .sg-content .bdmom-stats,.sg-content .bdm-stats,.sg-content .bdm-agent-stats{grid-template-columns:1fr!important}
}

/* v1.5 SalesGrid unified brand + mobile app treatment */
.sg-grid-logo{position:relative;display:grid!important;grid-template-columns:repeat(2,8px);grid-template-rows:repeat(2,8px);gap:5px;align-content:center;justify-content:center;font-size:0!important;line-height:0!important;overflow:hidden}
.sg-grid-logo i{display:block;width:8px;height:8px;border-radius:2px;background:#fff}
.sg-mark.sg-grid-logo{background:linear-gradient(145deg,#ff8a2d,#ffad58)!important}

.sg-mark.sg-grid-logo{width:58px;height:58px;border-radius:18px;grid-template-columns:repeat(2,10px);grid-template-rows:repeat(2,10px);gap:6px}
.sg-mark.sg-grid-logo i{width:10px;height:10px;border-radius:3px}


.sg-login-brand p{display:none!important}
.sg-login-copy{margin-top:30px!important}
.sg-login-copy h2{margin-top:7px!important}
.sg-login-copy>p{display:none!important}
.sg-login-brand h1{font-weight:900!important;letter-spacing:-.04em!important}








@media (max-width:650px){
  html,body.salesgrid-app-body{background:#0c1d35!important;color:#fff!important}
  .sg-app-shell{background:linear-gradient(165deg,#0d213d 0%,#14375f 48%,#214f82 100%)!important}
  
  .sg-content{background:transparent!important;padding:12px 10px 22px!important}
  
  
  
  
  
  

  /* Make the mobile workspace feel like an app instead of a white webpage. */
  .sg-content .bdmom-shell,.sg-content .bdm-agent-shell,.sg-content .bdm-stock-shell,.sg-content .bdm-wrap{background:transparent!important;color:#eaf3ff!important}
  .sg-content .bdmom-head,.sg-content .bdm-agent-dashboard-header,.sg-content .bdm-stock-header{
    background:linear-gradient(135deg,#173b65,#214f82)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important
  }
  .sg-content .bdmom-head h1,.sg-content .bdm-agent-dashboard-header h1,.sg-content .bdm-stock-header h1{color:#fff!important}
  .sg-content .bdmom-head p,.sg-content .bdm-agent-dashboard-header p,.sg-content .bdm-stock-header p{color:#bdd4ec!important}
  .sg-content .bdmom-card,.sg-content .bdmom-section,.sg-content .bdm-card,.sg-content .bdm-agent-card,.sg-content .bdm-global-order-search,.sg-content .bdm-view-as-switch{
    background:linear-gradient(180deg,#f8fbff,#eef5fc)!important;border:1px solid rgba(255,255,255,.35)!important;box-shadow:0 12px 30px rgba(2,17,37,.22)!important
  }
  .sg-content .bdmom-stat,.sg-content .bdm-stat,.sg-content .bdm-agent-stat{
    background:linear-gradient(145deg,#163c68,#245b96)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;box-shadow:0 8px 22px rgba(0,0,0,.15)!important
  }
  .sg-content .bdmom-stat *,.sg-content .bdm-stat *,.sg-content .bdm-agent-stat *{color:#fff!important}
  .sg-content table{border-color:#d6e2ef!important}
  
  
  

  /* Mobile login: full-color app screen, no white-page feel. */
  .sg-login-screen{background:radial-gradient(circle at 15% 10%,rgba(80,122,255,.30),transparent 34%),radial-gradient(circle at 90% 80%,rgba(255,145,52,.20),transparent 32%),linear-gradient(160deg,#091a31,#12375f 58%,#1c4f84)!important;padding:18px!important}
  .sg-login-panel{background:rgba(13,34,60,.92)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 24px 70px rgba(0,0,0,.34)!important;color:#fff!important;backdrop-filter:blur(14px)}
  .sg-login-brand h1,.sg-login-copy h2,.sg-access-panel h2{color:#fff!important}
  .sg-kicker{color:#73d2ff!important}
  .sg-login-form>label{color:#cfe1f3!important}
  .sg-login-form input[type=text],.sg-login-form input[type=password]{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.14)!important;color:#fff!important}
  .sg-login-form input::placeholder{color:#91abc7!important}
  .sg-login-row,.sg-login-row a{color:#bcd4ed!important}
  .sg-login-form button{background:linear-gradient(135deg,#2f73ec,#5966f2)!important}
  .sg-login-foot{border-color:rgba(255,255,255,.10)!important;color:#93abc4!important}
}

/* v1.6 — restore the polished BDM quick-search card and improve progressive controls */
.sg-content .bdm-global-order-search{
  position:relative!important;
  margin:12px 0 18px!important;
  padding:18px!important;
  border:1px solid #9dc4e5!important;
  border-top:4px solid #1c6ca7!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#eaf5ff 0%,#f8fbff 62%,#fff3e7 100%)!important;
  box-shadow:0 12px 28px rgba(18,59,96,.13)!important;
  color:#173b59!important;
}
.sg-content .bdm-global-order-search-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:14px!important}
.sg-content .bdm-global-order-search-head strong{color:#123b60!important;font-size:18px!important;font-weight:900!important;line-height:1.2!important}
.sg-content .bdm-global-order-search-head span:not(.bdm-global-order-search-badge){margin-top:4px!important;color:#5f7488!important;font-size:11px!important;font-weight:700!important}
.sg-content .bdm-global-order-search-badge{padding:6px 10px!important;border-radius:999px!important;background:linear-gradient(135deg,#195080,#257ab7)!important;color:#fff!important;font-size:9px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.sg-content .bdm-global-order-search-field{color:#294e6d!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.sg-content .bdm-global-order-search select,
.sg-content .bdm-global-order-search input[type="search"]{
  min-height:50px!important;background:#fff!important;border:1px solid #abc5da!important;border-radius:11px!important;color:#173b59!important;-webkit-text-fill-color:#173b59!important;box-shadow:0 2px 8px rgba(18,59,96,.05)!important
}
.sg-content .bdm-global-order-search select:focus,
.sg-content .bdm-global-order-search input[type="search"]:focus{border-color:#1c6ca7!important;box-shadow:0 0 0 4px rgba(28,108,167,.12)!important}
.sg-content .bdm-global-order-search-status{color:#5d7488!important;font-weight:800!important}

.sg-content .bdmom-load-more-wrap,
.sg-content .bdm-agent-load-more-wrap,
.sg-content .bdm-admin-load-more-wrap{
  margin:18px auto 10px!important;padding:14px!important;max-width:520px!important;border:1px solid #d9e5f1!important;border-radius:16px!important;background:linear-gradient(135deg,#f7fbff,#edf5fc)!important;box-shadow:0 8px 20px rgba(22,57,88,.08)!important
}
.sg-content .bdmom-load-more,
.sg-content .bdm-agent-load-more,
.sg-content .bdm-admin-load-more{
  width:100%!important;max-width:none!important;min-height:50px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#1d67a0,#2b7fbd)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:900!important;letter-spacing:.02em!important;box-shadow:0 8px 18px rgba(25,80,128,.18)!important
}
.sg-content .bdmom-load-more:hover,
.sg-content .bdm-agent-load-more:hover,
.sg-content .bdm-admin-load-more:hover{transform:translateY(-1px)!important;filter:brightness(1.03)!important}
.sg-content .bdmom-load-more-wrap small,
.sg-content .bdm-agent-load-more-wrap small,
.sg-content .bdm-admin-load-more-wrap small,
.sg-content .bdm-progressive-load-status{color:#60788d!important;font-size:10px!important;font-weight:800!important;text-align:center!important}

@media (max-width:650px){
  .sg-content .bdm-global-order-search{
    margin:8px 0 14px!important;padding:14px!important;border:1px solid rgba(132,197,255,.36)!important;border-top:4px solid #58b9f2!important;
    background:linear-gradient(145deg,#153d68 0%,#1b5689 58%,#256ca4 100%)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.22)!important;color:#fff!important
  }
  .sg-content .bdm-global-order-search-head{align-items:center!important;margin-bottom:12px!important}
  .sg-content .bdm-global-order-search-head strong{color:#fff!important;font-size:16px!important}
  .sg-content .bdm-global-order-search-head span:not(.bdm-global-order-search-badge){color:#c5ddf2!important;font-size:10px!important}
  .sg-content .bdm-global-order-search-badge{background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.17)!important;color:#fff!important}
  .sg-content .bdm-global-order-search-field{color:#d8eafa!important}
  .sg-content .bdm-global-order-search select,
  .sg-content .bdm-global-order-search input[type="search"]{
    min-height:48px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(255,255,255,.55)!important;color:#153a5d!important;-webkit-text-fill-color:#153a5d!important
  }
  .sg-content .bdm-global-order-search-status{color:#c4daf0!important}

  .sg-content .bdmom-load-more-wrap,
  .sg-content .bdm-agent-load-more-wrap,
  .sg-content .bdm-admin-load-more-wrap{
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:14px 0 8px!important;padding:10px!important;
    border:1px solid rgba(255,255,255,.12)!important;border-radius:15px!important;background:linear-gradient(135deg,#13375e,#1b4d7c)!important;box-shadow:0 12px 26px rgba(0,0,0,.18)!important
  }
  .sg-content .bdmom-load-more,
  .sg-content .bdm-agent-load-more,
  .sg-content .bdm-admin-load-more{
    min-height:52px!important;border-radius:12px!important;background:linear-gradient(135deg,#2d75ea,#5b69f2)!important;box-shadow:0 8px 18px rgba(30,75,175,.28)!important;font-size:12px!important
  }
  .sg-content .bdmom-load-more-wrap small,
  .sg-content .bdm-agent-load-more-wrap small,
  .sg-content .bdm-admin-load-more-wrap small,
  .sg-content .bdm-progressive-load-status{color:#b9d3ed!important;font-size:9px!important}
}

/* v1.6.2 — simplified Agent mobile navigation + commission cards */
@media (max-width:650px){
  /* Agent navigation is intentionally minimal: Dashboard, My Stock, Log out. */
  
  
  
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .sg-mobile-logout,
  .sg-app-shell[data-sg-endpoint="my-stock"] .sg-mobile-logout{
    display:flex!important;
    background:linear-gradient(135deg,#b94a16,#ef7d26)!important;
    color:#fff!important;
  }
  

  /* Agent commission ledger: strong color hierarchy and fully visible text. */
  .sg-content .bdm-agent-commission-ledger{
    border:1px solid rgba(111,185,255,.30)!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#102f52,#154571)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.22)!important;
    overflow:hidden!important;
  }
  .sg-content .bdm-agent-commission-ledger-head{
    padding:15px!important;
    background:linear-gradient(135deg,#0f3158,#1f67a0)!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
  }
  .sg-content .bdm-agent-commission-ledger-head h3,
  .sg-content .bdm-agent-commission-ledger-head p{color:#fff!important}
  .sg-content .bdm-agent-commission-unpaid{
    background:linear-gradient(135deg,#f58220,#ff9f43)!important;
    box-shadow:0 8px 18px rgba(245,130,32,.24)!important;
  }
  .sg-content .bdm-agent-commission-unpaid span,
  .sg-content .bdm-agent-commission-unpaid strong{color:#fff!important}
  .sg-content .bdm-agent-commission-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;padding:12px!important}
  .sg-content .bdm-agent-commission-balance-card{
    min-height:82px!important;
    padding:12px!important;
    border:1px solid rgba(255,255,255,.11)!important;
    background:linear-gradient(145deg,#194e7e,#23679e)!important;
    box-shadow:0 7px 18px rgba(0,0,0,.13)!important;
  }
  .sg-content .bdm-agent-commission-balance-card span{color:#bcd8f1!important;font-size:8px!important}
  .sg-content .bdm-agent-commission-balance-card strong{color:#fff!important;font-size:17px!important}
  .sg-content .bdm-agent-commission-balance-card.paid{
    background:linear-gradient(145deg,#126845,#1f8b5d)!important;border-color:rgba(111,233,173,.25)!important
  }
  .sg-content .bdm-agent-commission-balance-card.paid span{color:#ccebdd!important}
  .sg-content .bdm-agent-commission-balance-card.paid strong{color:#fff!important}
  .sg-content .bdm-agent-commission-last{
    margin:0 12px 12px!important;padding:11px!important;
    border:1px solid rgba(255,255,255,.12)!important;
    background:rgba(255,255,255,.08)!important;
  }
  .sg-content .bdm-agent-commission-last strong{color:#fff!important}
  .sg-content .bdm-agent-commission-last span{color:#bcd3e8!important}
  .sg-content .bdm-agent-commission-history>details{
    border:1px solid rgba(255,255,255,.13)!important;background:rgba(255,255,255,.06)!important
  }
  .sg-content .bdm-agent-commission-history summary{background:rgba(255,255,255,.08)!important;color:#fff!important}
  .sg-content .bdm-agent-commission-history-wrap{overflow:visible!important}
  .sg-content .bdm-agent-commission-history table,
  .sg-content .bdm-agent-commission-history tbody,
  .sg-content .bdm-agent-commission-history tr,
  .sg-content .bdm-agent-commission-history td{display:block!important;width:100%!important;box-sizing:border-box!important}
  .sg-content .bdm-agent-commission-history table{min-width:0!important}
  .sg-content .bdm-agent-commission-history thead{display:none!important}
  .sg-content .bdm-agent-commission-history tr{
    margin:8px!important;padding:10px 11px!important;width:calc(100% - 16px)!important;
    border:1px solid rgba(255,255,255,.10)!important;border-radius:12px!important;
    background:linear-gradient(135deg,#173f68,#1f557f)!important;
  }
  .sg-content .bdm-agent-commission-history td{
    display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
    padding:5px 0!important;border:0!important;color:#eaf4ff!important;text-align:right!important;
  }
  .sg-content .bdm-agent-commission-history td:nth-child(1):before{content:"Date"}
  .sg-content .bdm-agent-commission-history td:nth-child(2):before{content:"Amount"}
  .sg-content .bdm-agent-commission-history td:nth-child(3):before{content:"Reference"}
  .sg-content .bdm-agent-commission-history td:before{color:#9fc2e1!important;font-size:8px!important;font-weight:900!important;text-transform:uppercase!important}
  .sg-content .bdm-agent-commission-history td strong{color:#7ff0b2!important}

  /* Completed sales / commission table as readable cards on small screens. */
  .sg-content .bdm-agent-month-sales{
    border:1px solid rgba(111,185,255,.28)!important;border-radius:18px!important;
    background:linear-gradient(180deg,#102f52,#154571)!important;
    box-shadow:0 14px 30px rgba(0,0,0,.20)!important;overflow:hidden!important
  }
  .sg-content .bdm-agent-month-sales-head{
    padding:14px!important;background:linear-gradient(135deg,#143a64,#205f95)!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important
  }
  .sg-content .bdm-agent-month-sales-head h3{color:#fff!important}
  .sg-content .bdm-agent-month-sales-head p{color:#bed6ed!important}
  .sg-content .bdm-agent-month-sales-count{background:#f58220!important;color:#fff!important}
  .sg-content .bdm-agent-month-sales-table-wrap{padding:10px!important;overflow:visible!important}
  .sg-content .bdm-agent-month-sales tr{
    margin:0 0 10px!important;padding:11px 12px!important;
    border:1px solid rgba(255,255,255,.11)!important;border-radius:14px!important;
    background:linear-gradient(145deg,#173f68,#1e557f)!important;
    box-shadow:0 7px 16px rgba(0,0,0,.13)!important;
  }
  .sg-content .bdm-agent-month-sales td{color:#eaf4ff!important;border:0!important}
  .sg-content .bdm-agent-month-sales td:before{color:#99bddc!important}
  .sg-content .bdm-agent-month-sales td.product,
  .sg-content .bdm-agent-month-sales td.product strong{color:#fff!important}
  .sg-content .bdm-agent-month-sales td.commission{color:#7ff0b2!important;font-size:12px!important}
  .sg-content .bdm-agent-commission-status.is-paid{background:#1c7b51!important;color:#d8ffea!important}
  .sg-content .bdm-agent-commission-status.is-unpaid{background:#a95513!important;color:#fff3e7!important}
  .sg-content .bdm-agent-month-sales-empty{color:#d6e8f8!important}
}

/* v1.7 — definitive SalesGrid login + credential safety UX */
.sg-login-screen.sg-login-split{min-height:100vh;display:grid!important;grid-template-columns:minmax(0,1.36fr) minmax(430px,1fr);padding:0!important;background:#eef3f9!important}
.sg-login-hero{min-height:100vh;box-sizing:border-box;padding:34px clamp(42px,6vw,86px);display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 18% 16%,rgba(56,190,255,.20),transparent 30%),radial-gradient(circle at 82% 86%,rgba(255,139,45,.12),transparent 27%),linear-gradient(145deg,#0a2443 0%,#103c68 58%,#164d80 100%);color:#fff}
.sg-login-hero-brand{display:flex;align-items:center;gap:16px}.sg-login-hero-brand h1{margin:0!important;color:#fff!important;font-size:34px!important;line-height:1!important;font-weight:900!important;letter-spacing:-.045em!important}.sg-login-hero-copy{max-width:760px;padding:46px 0 32px}.sg-login-hero-copy .sg-kicker{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08);color:#d8ebff!important;font-size:11px!important;font-weight:900;letter-spacing:.02em}.sg-login-hero-copy h2{margin:38px 0 20px!important;color:#fff!important;font-size:clamp(52px,5.1vw,88px)!important;line-height:.98!important;letter-spacing:-.055em!important;font-weight:900!important}.sg-login-hero-copy h2 em{font-style:normal;color:#69d0ff}.sg-login-hero-copy p{max-width:790px;margin:0!important;color:#d7e6f5!important;font-size:18px!important;line-height:1.75!important}.sg-login-feature-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:38px}.sg-login-feature-row span{display:inline-flex;align-items:center;min-height:42px;padding:0 17px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08);color:#f3f8ff;font-size:13px;font-weight:750}
.sg-login-card-wrap{display:grid;place-items:center;min-height:100vh;padding:28px clamp(28px,4vw,58px);box-sizing:border-box;background:linear-gradient(135deg,#edf3f9,#f8fafc)}
.sg-login-card-wrap .sg-login-panel{width:min(570px,100%)!important;padding:50px!important;border-radius:28px!important;border:1px solid #dfe7f1!important;border-top:5px solid transparent!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#2e72f0,#53c9f4,#ff8730) border-box!important;box-shadow:0 24px 70px rgba(24,51,83,.12)!important}
.sg-login-card-wrap .sg-login-copy{margin:0 0 34px!important}.sg-login-card-wrap .sg-login-copy h2{margin:0!important;color:#09294c!important;font-size:38px!important;line-height:1.1!important;font-weight:900!important;letter-spacing:-.035em!important}.sg-login-form{gap:22px!important}.sg-login-form>label{gap:9px!important;color:#304762!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.035em!important}.sg-login-form input[type=text],.sg-login-form input[type=password]{height:58px!important;border-radius:14px!important;background:#f8fbff!important;border:1px solid #cfdaea!important;font-size:16px!important;color:#102b4b!important;padding:0 16px!important}.sg-password-field{position:relative;display:block}.sg-password-field input{padding-right:78px!important}.sg-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);min-width:60px;height:38px;padding:0 10px;border:0;border-radius:10px;background:#e7f0ff;color:#2057a8;font-size:11px;font-weight:900;cursor:pointer}.sg-password-toggle:hover{background:#dbe9ff}.sg-login-form>button{min-height:58px!important;border-radius:14px!important;font-size:16px!important;background:linear-gradient(135deg,#2c72f1,#285bd8)!important}.sg-login-row{font-size:12px!important}.sg-login-error{font-size:12px!important;padding:13px 14px!important;border:1px solid #ffd3d3!important}.sg-login-foot{font-size:11px!important}
@media(max-width:820px){
  .sg-login-screen.sg-login-split{display:block!important;min-height:100vh;background:linear-gradient(160deg,#091a31,#12375f 58%,#1c4f84)!important;padding:0!important}
  .sg-login-hero{min-height:auto;padding:22px 20px 18px;background:transparent!important;display:block}.sg-login-hero-brand{gap:12px}.sg-login-hero-brand .sg-mark{width:46px;height:46px;border-radius:14px}.sg-login-hero-brand h1{font-size:26px!important}.sg-login-hero-copy{padding:28px 0 4px}.sg-login-hero-copy .sg-kicker{font-size:9px!important;padding:7px 10px}.sg-login-hero-copy h2{font-size:42px!important;margin:22px 0 13px!important;line-height:1.02!important}.sg-login-hero-copy p{font-size:14px!important;line-height:1.55!important;color:#c6dbef!important}.sg-login-feature-row{display:none}
  .sg-login-card-wrap{min-height:auto;padding:14px 14px 28px;background:transparent!important;display:block}.sg-login-card-wrap .sg-login-panel{width:100%!important;padding:24px 18px!important;border:1px solid rgba(255,255,255,.14)!important;border-top:4px solid #5cccf7!important;border-radius:22px!important;background:rgba(12,34,61,.88)!important;box-shadow:0 22px 60px rgba(0,0,0,.32)!important;backdrop-filter:blur(14px)}.sg-login-card-wrap .sg-login-copy{margin:0 0 22px!important}.sg-login-card-wrap .sg-login-copy h2{font-size:28px!important;color:#fff!important}.sg-login-form>label{color:#d7e8f8!important}.sg-login-form input[type=text],.sg-login-form input[type=password]{height:52px!important;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.14)!important;color:#fff!important}.sg-password-toggle{background:rgba(255,255,255,.12);color:#fff}.sg-password-toggle:hover{background:rgba(255,255,255,.18)}.sg-login-row,.sg-login-row a{color:#c7ddf2!important}.sg-login-form>button{min-height:53px!important}.sg-login-foot{color:#91abc4!important;border-color:rgba(255,255,255,.11)!important}
}


/* v1.8 — agent stock navigation + mobile commissions visibility */
@media (max-width:650px){
  /* Keep the Agent app bar to exactly Dashboard, My Stock and Log out. */
  
  
  

  /* Sales & commissions: every cell value is visible and each sale is an app card. */
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales{
    border:1px solid rgba(89,177,255,.30)!important;
    border-radius:19px!important;
    background:linear-gradient(180deg,#0d2b4b 0%,#123d65 100%)!important;
    box-shadow:0 16px 32px rgba(0,0,0,.22)!important;
    overflow:hidden!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales-head,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales-head{
    padding:15px!important;background:linear-gradient(135deg,#164b7b,#2374ad)!important;
    border-bottom:1px solid rgba(255,255,255,.12)!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales-head h3,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales-head h3{color:#fff!important;font-size:15px!important}
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales-head p,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales-head p{color:#c8e2f6!important;font-size:10px!important}
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-sales-filters,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-sales-filters{
    background:#12395f!important;border-color:rgba(255,255,255,.10)!important;padding:12px!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-sales-filters label,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-sales-filters label{color:#d2e7f8!important;flex:1 1 130px!important}
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-sales-filters input,
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-sales-filters select,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-sales-filters input,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-sales-filters select{
    width:100%!important;min-height:42px!important;background:#fff!important;color:#153a5c!important;-webkit-text-fill-color:#153a5c!important;
    border:1px solid #d5e4ef!important;border-radius:10px!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales-table-wrap,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales-table-wrap{overflow:visible!important;padding:10px!important}
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales table,
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales tbody,
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales tr,
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales table,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales tbody,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales tr,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td{
    display:block!important;width:100%!important;box-sizing:border-box!important;min-width:0!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales thead,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales thead{display:none!important}
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales tr,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales tr{
    margin:0 0 10px!important;padding:10px 12px!important;border:1px solid rgba(255,255,255,.12)!important;
    border-radius:14px!important;background:linear-gradient(145deg,#17456f,#1e5f90)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.16)!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td{
    display:grid!important;grid-template-columns:98px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;
    padding:6px 0!important;border:0!important;color:#f2f8ff!important;-webkit-text-fill-color:#f2f8ff!important;
    font-size:11px!important;line-height:1.35!important;text-align:left!important;visibility:visible!important;opacity:1!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td::before,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td::before{
    content:attr(data-label)!important;display:block!important;color:#9fc7e7!important;-webkit-text-fill-color:#9fc7e7!important;
    font-size:8px!important;font-weight:900!important;line-height:1.3!important;text-transform:uppercase!important;text-align:left!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td *,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td *{
    color:#fff!important;-webkit-text-fill-color:#fff!important;visibility:visible!important;opacity:1!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td.product,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td.product{
    display:grid!important;text-align:left!important;padding:6px 0!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td.commission,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td.commission{
    color:#79f0b4!important;-webkit-text-fill-color:#79f0b4!important;font-weight:900!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-month-sales td.commission *,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-month-sales td.commission *{color:#79f0b4!important;-webkit-text-fill-color:#79f0b4!important}
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-commission-status.is-paid,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-commission-status.is-paid{
    display:inline-flex!important;width:max-content!important;background:#17734b!important;color:#e5fff1!important;-webkit-text-fill-color:#e5fff1!important;
  }
  .sg-app-shell[data-sg-endpoint="my-deliveries"] .bdm-agent-commission-status.is-unpaid,
  .sg-app-shell[data-sg-endpoint="my-stock"] .bdm-agent-commission-status.is-unpaid{
    display:inline-flex!important;width:max-content!important;background:#c36312!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  }
}

/* v1.9 — final login copy + mobile app polish */
.sg-login-hero-brand h1::after,
.sg-login-hero-brand h1::before{content:none!important;display:none!important}
.sg-login-hero-brand{justify-content:flex-start!important}
.sg-login-hero-copy h2{max-width:820px}
@media(max-width:820px){
  .sg-login-screen.sg-login-split{background:
    radial-gradient(circle at 14% 8%,rgba(76,194,255,.18),transparent 27%),
    radial-gradient(circle at 84% 92%,rgba(255,139,45,.14),transparent 25%),
    linear-gradient(165deg,#07182c 0%,#0d2d50 52%,#154d7c 100%)!important}
  .sg-login-hero{padding-bottom:8px!important}
  .sg-login-hero-copy h2{font-size:40px!important;letter-spacing:-.045em!important}
  .sg-login-card-wrap{padding-top:6px!important}
  .sg-login-card-wrap .sg-login-panel{background:linear-gradient(180deg,rgba(14,43,74,.96),rgba(9,30,55,.96))!important}
}
\n\n/* v2.18.4.15 — restore richer legacy order-card presentation and make the\n   agent My Orders header legible inside the SalesGrid shell. */\n.sg-content .bdm-agent-orders-list-section .bdm-agent-list-head{\n  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;\n  margin:0 0 16px!important;padding:16px 18px!important;border-radius:16px!important;\n  background:linear-gradient(135deg,#123b60 0%,#1b5f91 72%,#2877aa 100%)!important;\n  border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 10px 24px rgba(18,59,96,.18)!important;\n}\n.sg-content .bdm-agent-orders-list-section .bdm-agent-list-head h3{\n  margin:0!important;color:#fff!important;font-size:21px!important;font-weight:900!important;letter-spacing:-.02em!important\n}\n.sg-content .bdm-agent-orders-list-section .bdm-agent-list-head p{\n  margin:5px 0 0!important;color:#d9ecfb!important;font-size:12px!important;line-height:1.45!important;max-width:720px!important\n}\n.sg-content .bdm-agent-orders-list-section .bdm-agent-list-head>span{\n  flex:0 0 auto!important;margin:0!important;padding:7px 11px!important;border-radius:999px!important;\n  background:#ff9b45!important;color:#13243b!important;font-size:10px!important;font-weight:900!important;box-shadow:0 5px 14px rgba(245,155,69,.24)!important\n}\n\n/* Legacy BDM-style coloured single-order cards. */\n.sg-content .bdm-account-card{\n  position:relative!important;border-radius:15px!important;padding:16px!important;overflow:hidden!important;\n  box-shadow:0 8px 22px rgba(18,59,96,.10)!important;\n}\n.sg-content .bdm-account-card-delivery{\n  background:linear-gradient(180deg,#eaf4ff 0%,#f7fbff 34%,#ffffff 100%)!important;\n  border:1px solid #b8d7f5!important;border-left:6px solid #2574c8!important\n}\n.sg-content .bdm-account-card-shop{\n  background:linear-gradient(180deg,#fff0df 0%,#fff8ef 34%,#ffffff 100%)!important;\n  border:1px solid #ffd0a0!important;border-left:6px solid #f58220!important\n}\n.sg-content .bdm-account-card .bdm-order-compact-cell{\n  background:rgba(255,255,255,.78)!important;border-color:rgba(18,59,96,.11)!important;box-shadow:0 2px 7px rgba(18,59,96,.035)!important\n}\n.sg-content .bdm-account-card .bdm-order-compact-cell span{color:#60758a!important}\n.sg-content .bdm-account-card .bdm-order-compact-cell strong{color:#173d5f!important}\n.sg-content .bdm-account-card-head h3{color:#123b60!important;font-weight:900!important}\n.sg-content .bdm-account-card .bdm-account-actions{border-top-color:rgba(18,59,96,.12)!important}\n\n/* Manager single-order cards get the same richer visual language without\n   changing any original controls or data. */\n.sg-content .bdmom-order{\n  background:linear-gradient(180deg,#f1f7fd 0%,#ffffff 42%)!important;\n  border-color:#c9dceb!important;border-left-color:#2f6fa9!important;box-shadow:0 8px 22px rgba(18,59,96,.09)!important\n}\n.sg-content .bdmom-order.bdmom-shop-card{\n  background:linear-gradient(180deg,#fff2e2 0%,#ffffff 42%)!important;\n  border-color:#ffd2a5!important;border-left-color:#f58220!important\n}\n\n@media(max-width:650px){\n  .sg-content .bdm-agent-orders-list-section .bdm-agent-list-head{\n    align-items:flex-start!important;flex-direction:row!important;padding:14px!important;border-radius:14px!important\n  }\n  .sg-content .bdm-agent-orders-list-section .bdm-agent-list-head>div{min-width:0!important}\n  .sg-content .bdm-agent-orders-list-section .bdm-agent-list-head h3{font-size:18px!important}\n  .sg-content .bdm-agent-orders-list-section .bdm-agent-list-head p{font-size:11px!important;color:#d7e8f7!important}\n  .sg-content .bdm-agent-orders-list-section .bdm-agent-list-head>span{font-size:9px!important;padding:6px 8px!important}\n  .sg-content .bdm-account-card{padding:13px!important;border-radius:14px!important}\n  .sg-content .bdm-account-card-delivery{background:linear-gradient(180deg,#dceeff 0%,#f7fbff 38%,#ffffff 100%)!important}\n  .sg-content .bdm-account-card-shop{background:linear-gradient(180deg,#ffe8cf 0%,#fff8ef 38%,#ffffff 100%)!important}\n}


/* v2.18.4.22 — restore a rich colored top panel for the desktop agent dashboard. */
@media (min-width:651px){
  .sg-content .bdm-agent-dashboard-header{
    position:relative!important;
    overflow:hidden!important;
    background:linear-gradient(135deg,#0f2f55 0%, #184d83 52%, #2a74c7 100%)!important;
    border:1px solid rgba(30,84,140,.28)!important;
    border-radius:24px!important;
    padding:24px 24px 26px!important;
    box-shadow:0 18px 40px rgba(15,47,85,.22)!important;
    color:#fff!important;
  }
  .sg-content .bdm-agent-dashboard-header:before,
  .sg-content .bdm-agent-dashboard-header:after{
    content:"";
    position:absolute;
    border-radius:50%;
    pointer-events:none;
    opacity:.34;
  }
  .sg-content .bdm-agent-dashboard-header:before{
    width:300px;height:300px;right:-110px;top:-140px;
    background:radial-gradient(circle,rgba(255,255,255,.28) 0%,rgba(255,255,255,.04) 54%,transparent 72%);
  }
  .sg-content .bdm-agent-dashboard-header:after{
    width:230px;height:230px;left:-80px;bottom:-120px;
    background:radial-gradient(circle,rgba(245,155,69,.26) 0%,rgba(245,155,69,.08) 52%,transparent 72%);
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-hero-top,
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-nav{
    position:relative;z-index:2;
  }
  .sg-content .bdm-agent-dashboard-header h2,
  .sg-content .bdm-agent-dashboard-header .bdm-agent-greeting,
  .sg-content .bdm-agent-dashboard-header .bdm-agent-greeting strong,
  .sg-content .bdm-agent-dashboard-header p,
  .sg-content .bdm-agent-dashboard-header .bdm-agent-availability-status{
    color:#fff!important;
  }
  .sg-content .bdm-agent-dashboard-header h2{
    margin-top:8px!important;
    font-size:32px!important;
    letter-spacing:-.03em!important;
    line-height:1.05!important;
    text-shadow:0 2px 10px rgba(0,0,0,.14);
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-greeting{
    font-size:16px!important;
    opacity:.92;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-availability-card{
    padding:14px!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.10)!important;
    border:1px solid rgba(255,255,255,.18)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(5,21,38,.18)!important;
    backdrop-filter:blur(10px);
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-status-switch{
    width:176px!important;
    min-height:48px!important;
    flex-basis:176px!important;
    background:rgba(255,255,255,.14)!important;
    box-shadow:0 12px 26px rgba(8,25,44,.22)!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-status-choice{
    min-height:48px!important;height:48px!important;font-size:12px!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-status-choice.is-active{
    transform:translateY(-2px) scale(1.01)!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-status-choice.is-active:before{
    top:-10px!important;font-size:7px!important;padding:2px 8px!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-nav{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px!important;
    margin-top:20px!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-link{
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    min-height:88px!important;
    padding:18px 20px!important;
    border-radius:20px!important;
    color:#fff!important;
    text-decoration:none!important;
    border:1px solid rgba(255,255,255,.14)!important;
    box-shadow:0 14px 28px rgba(7,22,38,.16)!important;
    transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-link:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 34px rgba(7,22,38,.22)!important;
    filter:saturate(1.04);
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-link span:last-child{
    font-size:16px!important;
    font-weight:900!important;
    line-height:1.2!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-icon{
    width:56px!important;height:56px!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.18)!important;
    border:1px solid rgba(255,255,255,.14)!important;
    display:grid!important;place-items:center!important;flex:0 0 auto;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-icon svg{
    width:26px!important;height:26px!important;stroke:#fff!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-commissions{
    background:linear-gradient(135deg,#15a34a 0%, #22b455 100%)!important;
  }
  .sg-content .bdm-agent-dashboard-header .bdm-agent-section-orders{
    background:linear-gradient(135deg,#2e75de 0%, #468ef0 100%)!important;
  }
}


/* v2.18.4.24 — dedicated Historical Orders access on the Orders workspace. */
.bdmom-historical-orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 16px;padding:16px 18px;border:1px solid #d9d0ef;border-left:6px solid #8066b3;border-radius:16px;background:linear-gradient(135deg,#fbf9ff,#f1edff);box-shadow:0 8px 24px rgba(77,59,121,.08)}
.bdmom-historical-orders-copy{min-width:220px;flex:1}.bdmom-historical-orders-copy strong{display:block;color:#46356f;font-size:15px;font-weight:900}.bdmom-historical-orders-copy span{display:block;margin-top:4px;color:#756b8d;font-size:10px;font-weight:700;line-height:1.45}.bdmom-historical-orders-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bdmom-historical-orders-count{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border-radius:999px;background:#fff;color:#5f4a91;font-size:10px;font-weight:900;border:1px solid #ded5f1}.bdmom-historical-orders-button{background:#7458ae!important;border-color:#7458ae!important;color:#fff!important;font-weight:900!important;min-height:40px!important}.bdmom-historical-orders-button.is-active{background:#523989!important;border-color:#523989!important;box-shadow:0 8px 18px rgba(82,57,137,.22)!important}.bdmom-historical-orders-clear{background:#fff!important;border-color:#d8d0e8!important;color:#5a477f!important;font-weight:900!important;min-height:40px!important}.bdmom-historical-orders-warning{flex:0 0 100%;padding:9px 11px;border-radius:10px;background:#fff6df;color:#7d5710;font-size:9px;font-weight:800;line-height:1.45;border:1px solid #f0d99e}
@media(max-width:650px){.bdmom-historical-orders-toolbar{padding:13px!important;border-radius:13px!important}.bdmom-historical-orders-actions{width:100%}.bdmom-historical-orders-button,.bdmom-historical-orders-clear{flex:1 1 150px;text-align:center}.bdmom-historical-orders-count{width:100%;justify-content:center;box-sizing:border-box}}


/* v2.18.4.25 — original popup editing + clean catalogue picker.
   Product prices are intentionally not shown in operational BDM screens. */
.sg-content .bdm-fast-product-editor-price,
.sg-content [data-bdm-fast-line-price],
.sg-content .bdm-agent-edit-price,
.sg-content .bdmom-edit-price{
  display:none!important;
}
.sg-content .bdm-fast-edit-item small{
  display:none!important;
}
.sg-content .bdm-fast-product-editor-protected{
  font-size:0!important;
}
.sg-content .bdm-fast-product-editor-protected:after{
  content:"Product replacement/removal is locked because this is a completed stock-controlled item.";
  font-size:10px!important;
}
.sg-content .bdm-fast-edit-modal{
  z-index:100500!important;
}
.sg-content .bdm-fast-edit-dialog{
  max-height:calc(100vh - 40px)!important;
  overflow:auto!important;
  border-radius:20px!important;
  box-shadow:0 30px 80px rgba(10,29,50,.34)!important;
}


/* v2.18.4.27 — Orders sorting for OMs + 24-card progressive loading. */
.sg-content .bdmom-agent-orders-panel{
  border:1px solid #dce5f1!important;
  border-left:5px solid #4f6fe8!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#f8fbff,#f3f6ff)!important;
  box-shadow:0 8px 22px rgba(43,67,113,.07)!important;
}
.sg-content .bdmom-agent-orders-badge{
  background:#e9edff!important;color:#405ac4!important;border:1px solid #d7defe!important;
}
.sg-content .bdmom-load-more{
  min-height:52px!important;
  background:linear-gradient(135deg,#4c6be6,#647ff0)!important;
  border-color:#526ee8!important;color:#fff!important;
  box-shadow:0 10px 22px rgba(82,110,232,.18)!important;
}
.sg-content .bdmom-order-status-historical-order{
  border-left:5px solid #8066b3!important;
  background:linear-gradient(180deg,#fff,#fbf9ff)!important;
}
.sg-content .bdmom-mini-badge.historical{
  background:#ede7fb!important;color:#654d9b!important;border:1px solid #dacff2!important;
}
@media(max-width:650px){
  .sg-content .bdmom-agent-orders-form{grid-template-columns:1fr!important}
  .sg-content .bdmom-load-more{width:100%!important}
}


/* v2.18.4.28 — Historical Orders are part of the normal chronological order list. */
.sg-content .bdmom-historical-orders-toolbar{display:none!important}
.sg-content .bdmom-order-status-historical-order{
  border-left-color:var(--sg-line)!important;
  background:#fff!important;
}
.sg-content .bdmom-mini-badge.historical{
  display:inline-flex!important;
  background:#ede7fb!important;
  color:#654d9b!important;
  border:1px solid #dacff2!important;
  font-weight:900!important;
}


/* v2.18.4.29 — guaranteed Fast Edit popup visibility in standalone SalesGrid. */
html.bdm-fast-edit-visible{overflow:hidden!important}
.sg-content .bdm-fast-edit-modal[hidden]{display:none!important}
.sg-content .bdm-fast-edit-modal{
  position:fixed!important;
  inset:0!important;
  z-index:100500!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
}
.sg-content .bdm-fast-edit-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(8,25,39,.76)!important;
  backdrop-filter:blur(3px)!important;
}
.sg-content .bdm-fast-edit-dialog{
  position:relative!important;
  z-index:1!important;
  width:min(920px,100%)!important;
  max-height:92vh!important;
  overflow:auto!important;
  border-radius:20px!important;
  background:#f7fafc!important;
  box-shadow:0 30px 80px rgba(0,0,0,.34)!important;
}
@media(max-width:700px){
  .sg-content .bdm-fast-edit-modal{align-items:flex-end!important;padding:0!important}
  .sg-content .bdm-fast-edit-dialog{width:100%!important;max-height:96vh!important;border-radius:17px 17px 0 0!important}
}


/* v2.18.4.30 — compact, scan-first manager order cards. */
#bdmom-orders .bdmom-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:start!important;
}
#bdmom-orders .bdmom-order{
  position:relative!important;
  overflow:visible!important;
  padding:15px!important;
  border:1px solid #e2e8f0!important;
  border-left:4px solid #9aa8b8!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 7px 20px rgba(26,45,72,.06)!important;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease!important;
}
#bdmom-orders .bdmom-order:hover{
  border-color:#d5deea!important;
  box-shadow:0 12px 28px rgba(26,45,72,.09)!important;
}
#bdmom-orders .bdmom-order-status-processing{border-left-color:#4f7ee8!important}
#bdmom-orders .bdmom-order-status-out-for-delivery{border-left-color:#f39a3d!important}
#bdmom-orders .bdmom-order-status-on-hold{border-left-color:#e6ad31!important}
#bdmom-orders .bdmom-order-status-completed{border-left-color:#31a66a!important}
#bdmom-orders .bdmom-order-status-failed,
#bdmom-orders .bdmom-order-status-delivery-failed{border-left-color:#d85a63!important}
#bdmom-orders .bdmom-order-status-historical-order{border-left-color:#8a72bd!important}

#bdmom-orders .bdmom-order-head{margin:0 0 10px!important}
#bdmom-orders .bdmom-order-title-block{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:10px!important;
  align-items:start!important;
}
#bdmom-orders .bdmom-order-title-block h4{
  grid-column:1!important;
  margin:0!important;
  color:#172b43!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:-.02em!important;
}
#bdmom-orders .bdmom-order-date-lines{
  grid-column:1!important;
  margin-top:4px!important;
  font-size:9px!important;
  color:#7b8898!important;
}
#bdmom-orders .bdmom-order-primary-badges{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  margin:0!important;
  justify-content:flex-end!important;
  align-content:flex-start!important;
  gap:5px!important;
}
#bdmom-orders .bdmom-order-secondary-badges{
  grid-column:1 / -1!important;
  margin-top:7px!important;
  gap:5px!important;
}
#bdmom-orders .bdmom-order-primary-badges .bdmom-sale-badge,
#bdmom-orders .bdmom-order-primary-badges .bdmom-badge,
#bdmom-orders .bdmom-order-secondary-badges span{
  min-height:auto!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  font-size:8px!important;
  line-height:1.1!important;
  font-weight:900!important;
}

#bdmom-orders .bdmom-order-compact-main{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
}
#bdmom-orders .bdmom-order-compact-cell{
  min-width:0!important;
  padding:9px 10px!important;
  border:0!important;
  border-radius:12px!important;
  background:#f7f9fc!important;
}
#bdmom-orders .bdmom-order-compact-cell > span{
  display:block!important;
  margin:0 0 3px!important;
  color:#8290a1!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-transform:uppercase!important;
  letter-spacing:.045em!important;
}
#bdmom-orders .bdmom-order-compact-cell > strong{
  display:block!important;
  min-width:0!important;
  color:#25384e!important;
  font-size:11px!important;
  line-height:1.32!important;
  font-weight:850!important;
  overflow-wrap:anywhere!important;
}
#bdmom-orders .bdmom-order-compact-wide{grid-column:1 / -1!important}
#bdmom-orders .bdmom-order-compact-wide:nth-of-type(3){
  background:#f0f5ff!important;
}
#bdmom-orders .bdmom-card-secondary-field{display:none!important}
#bdmom-orders .bdmom-order.is-details-open .bdmom-card-secondary-field{display:block!important}
#bdmom-orders .bdmom-order.is-details-open .bdmom-card-secondary-field.bdmom-order-compact-wide{display:block!important}

#bdmom-orders .bdmom-compact-actions{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:7px!important;
  align-items:center!important;
  margin-top:11px!important;
  padding-top:10px!important;
  border-top:1px solid #edf1f5!important;
}
#bdmom-orders .bdmom-compact-actions .button,
#bdmom-orders .bdmom-compact-edit-locked,
#bdmom-orders .bdmom-compact-status-readonly{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  margin:0!important;
  padding:7px 11px!important;
  border-radius:11px!important;
  box-sizing:border-box!important;
  font-size:9px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
#bdmom-orders .bdmom-view-details{
  justify-self:start!important;
  background:#f1f5f9!important;
  border-color:#dde5ed!important;
  color:#314b65!important;
}
#bdmom-orders .bdmom-compact-edit{
  min-width:64px!important;
  background:#fff!important;
  border-color:#cfd9e5!important;
  color:#274b70!important;
}
#bdmom-orders .bdmom-compact-edit-locked{
  color:#806321!important;
  background:#fff6d8!important;
  border:1px solid #eddda7!important;
}
#bdmom-orders .bdmom-compact-status{position:relative!important}
#bdmom-orders .bdmom-compact-status-toggle{
  min-width:76px!important;
  background:linear-gradient(135deg,#4f6fe8,#647ff0)!important;
  border-color:#526ee8!important;
  color:#fff!important;
}
#bdmom-orders .bdmom-compact-status-toggle span{margin-left:5px!important}
#bdmom-orders .bdmom-compact-status-menu{
  position:absolute!important;
  z-index:200!important;
  right:0!important;
  bottom:calc(100% + 7px)!important;
  width:172px!important;
  padding:6px!important;
  border:1px solid #dce4ee!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 16px 38px rgba(27,48,76,.18)!important;
}
#bdmom-orders .bdmom-compact-status-menu[hidden]{display:none!important}
#bdmom-orders .bdmom-compact-status-menu button{
  appearance:none!important;
  width:100%!important;
  min-height:37px!important;
  padding:7px 9px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#2d4359!important;
  font-size:9px!important;
  font-weight:850!important;
  text-align:left!important;
  cursor:pointer!important;
}
#bdmom-orders .bdmom-compact-status-menu button:hover{background:#f2f6fb!important}
#bdmom-orders .bdmom-compact-status-readonly{
  color:#667789!important;
  background:#f2f5f8!important;
  border:1px solid #e1e7ed!important;
}

/* Heavy manager controls remain available, but stay out of layout until asked. */
#bdmom-orders .bdmom-order-expand[hidden]{display:none!important}
#bdmom-orders .bdmom-order-expand{
  margin-top:12px!important;
  content-visibility:auto!important;
  contain-intrinsic-size:1px 700px!important;
}
#bdmom-orders .bdmom-order.is-details-open .bdmom-order-expand{
  padding-top:12px!important;
  border-top:1px solid #e9eef4!important;
}
#bdmom-orders .bdmom-order-expand .bdmom-order-tools{display:none!important}
#bdmom-orders .bdmom-order:not(.is-details-open) .bdmom-duplicate-review-box,
#bdmom-orders .bdmom-order:not(.is-details-open) .bdmom-duplicate-delete-panel,
#bdmom-orders .bdmom-order:not(.is-details-open) .bdm-sale-review-panel{
  display:none!important;
}

/* Keep the hidden/detail area visually quieter than the scan-first summary. */
#bdmom-orders .bdmom-order.is-details-open .bdmom-manager-controls,
#bdmom-orders .bdmom-order.is-details-open .bdmom-secondary-drawer,
#bdmom-orders .bdmom-order.is-details-open .bdmom-customer-sms-tools{
  border-radius:13px!important;
  box-shadow:none!important;
}

@media(max-width:1100px){
  #bdmom-orders .bdmom-grid{grid-template-columns:1fr!important}
}
@media(max-width:650px){
  #bdmom-orders .bdmom-order{
    padding:12px!important;
    border-radius:16px!important;
  }
  #bdmom-orders .bdmom-order-title-block{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #bdmom-orders .bdmom-order-primary-badges{
    grid-column:1!important;
    grid-row:auto!important;
    justify-content:flex-start!important;
    margin-top:7px!important;
  }
  #bdmom-orders .bdmom-order-compact-main{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }
  #bdmom-orders .bdmom-order-compact-cell{padding:8px 9px!important}
  #bdmom-orders .bdmom-compact-actions{
    grid-template-columns:minmax(0,1fr) auto auto!important;
  }
  #bdmom-orders .bdmom-view-details{
    width:100%!important;
    justify-self:stretch!important;
  }
}
@media(max-width:390px){
  #bdmom-orders .bdmom-order-compact-main{grid-template-columns:1fr!important}
  #bdmom-orders .bdmom-order-compact-wide{grid-column:auto!important}
}


/* v2.18.4.32 — blue order cards with white text */
#bdmom-orders .bdmom-order{
  background:linear-gradient(180deg,#2e68d8 0%, #2458bf 100%)!important;
  border-color:#3e78ea!important;
  box-shadow:0 14px 28px rgba(24,54,121,.22)!important;
}
#bdmom-orders .bdmom-order:hover{
  border-color:#6ca0ff!important;
  box-shadow:0 18px 34px rgba(18,46,108,.28)!important;
}
#bdmom-orders .bdmom-order h4,
#bdmom-orders .bdmom-order .bdmom-order-date-lines,
#bdmom-orders .bdmom-order .bdmom-order-date-lines span,
#bdmom-orders .bdmom-order .bdmom-order-title-block,
#bdmom-orders .bdmom-order .bdmom-order-title-block *{
  color:#ffffff!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-cell{
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-cell > span{
  color:rgba(235,243,255,.86)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-cell > strong{
  color:#ffffff!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-wide:nth-of-type(3){
  background:rgba(255,255,255,.12)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-secondary-badges span{
  color:#173d88!important;
  background:rgba(255,255,255,.92)!important;
}
#bdmom-orders .bdmom-order .bdmom-mini-badge.historical{
  background:#ebe5ff!important;
  color:#5a45a1!important;
}
#bdmom-orders .bdmom-compact-actions{
  border-top:1px solid rgba(255,255,255,.16)!important;
}
#bdmom-orders .bdmom-view-details{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.18)!important;
  color:#ffffff!important;
}
#bdmom-orders .bdmom-compact-edit{
  background:#ffffff!important;
  border-color:#ffffff!important;
  color:#2458bf!important;
}
#bdmom-orders .bdmom-compact-edit:hover{
  background:#f4f8ff!important;
}
#bdmom-orders .bdmom-compact-status-readonly{
  background:rgba(255,255,255,.14)!important;
  border-color:rgba(255,255,255,.16)!important;
  color:#ffffff!important;
}
#bdmom-orders .bdmom-order.is-details-open .bdmom-order-expand{
  border-top:1px solid rgba(255,255,255,.16)!important;
}
#bdmom-orders .bdmom-order.is-details-open .bdmom-manager-controls,
#bdmom-orders .bdmom-order.is-details-open .bdmom-secondary-drawer,
#bdmom-orders .bdmom-order.is-details-open .bdmom-customer-sms-tools{
  background:rgba(255,255,255,.96)!important;
}


/* v2.18.4.33 — guaranteed mobile logout for every SalesGrid role/endpoint.
   The fixed dock logout is independent of role-specific navigation contents. */


@media(max-width:650px){
  /* Avoid duplicate logout entries: use one fixed final item for everyone. */
  

  

  

  

  

  

  /* Agent navigation remains centered in the space left of the logout item. */
  
}


/* v2.18.4.34 — refined SalesGrid order-card palette.
   Uses the same navy/blue family already used across the BDM dashboard. */
#bdmom-orders .bdmom-order{
  background:linear-gradient(145deg,#123b60 0%,#174f7f 52%,#195080 100%)!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-left:4px solid rgba(255,255,255,.38)!important;
  box-shadow:0 13px 30px rgba(18,59,96,.18)!important;
}
#bdmom-orders .bdmom-order:hover{
  border-color:rgba(255,255,255,.20)!important;
  box-shadow:0 17px 34px rgba(18,59,96,.23)!important;
  transform:translateY(-1px)!important;
}

/* Keep status differentiation subtle on the dark navy card. */
#bdmom-orders .bdmom-order-status-processing{border-left-color:#7db7ff!important}
#bdmom-orders .bdmom-order-status-out-for-delivery{border-left-color:#ffb45f!important}
#bdmom-orders .bdmom-order-status-on-hold{border-left-color:#ffd36b!important}
#bdmom-orders .bdmom-order-status-completed{border-left-color:#75dfaa!important}
#bdmom-orders .bdmom-order-status-failed,
#bdmom-orders .bdmom-order-status-delivery-failed{border-left-color:#ff8d96!important}
#bdmom-orders .bdmom-order-status-historical-order{border-left-color:#c1a9f3!important}

#bdmom-orders .bdmom-order h4{
  color:#fff!important;
  letter-spacing:-.015em!important;
}
#bdmom-orders .bdmom-order .bdmom-order-date-lines,
#bdmom-orders .bdmom-order .bdmom-order-date-lines span,
#bdmom-orders .bdmom-order .bdmom-order-date-lines strong{
  color:rgba(235,244,252,.88)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-cell{
  background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-wide:nth-of-type(3){
  background:rgba(255,255,255,.105)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-cell > span{
  color:rgba(205,224,240,.78)!important;
}
#bdmom-orders .bdmom-order .bdmom-order-compact-cell > strong{
  color:#fff!important;
}

/* Cleaner badge treatment against the navy card. */
#bdmom-orders .bdmom-order-primary-badges .bdmom-sale-badge,
#bdmom-orders .bdmom-order-primary-badges .bdmom-badge{
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:none!important;
}
#bdmom-orders .bdmom-order .bdmom-order-secondary-badges span{
  background:rgba(255,255,255,.94)!important;
  color:#123b60!important;
  border:0!important;
}
#bdmom-orders .bdmom-order .bdmom-mini-badge.historical{
  background:#eee9ff!important;
  color:#5c4896!important;
}

/* Compact actions: calm ghost button, white edit, orange status accent. */
#bdmom-orders .bdmom-compact-actions{
  border-top:1px solid rgba(255,255,255,.13)!important;
}
#bdmom-orders .bdmom-view-details{
  background:rgba(255,255,255,.09)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  color:#fff!important;
}
#bdmom-orders .bdmom-view-details:hover{
  background:rgba(255,255,255,.15)!important;
}
#bdmom-orders .bdmom-compact-edit{
  background:#fff!important;
  border-color:#fff!important;
  color:#174f7f!important;
}
#bdmom-orders .bdmom-compact-status-toggle{
  background:linear-gradient(135deg,#e97b1f,#f59b45)!important;
  border-color:#f59b45!important;
  color:#fff!important;
  box-shadow:0 6px 15px rgba(245,155,69,.22)!important;
}
#bdmom-orders .bdmom-compact-status-readonly{
  background:rgba(255,255,255,.09)!important;
  border-color:rgba(255,255,255,.13)!important;
  color:#fff!important;
}

/* Expanded controls remain light for maximum readability. */
#bdmom-orders .bdmom-order.is-details-open .bdmom-order-expand{
  border-top-color:rgba(255,255,255,.14)!important;
}
#bdmom-orders .bdmom-order.is-details-open .bdmom-manager-controls,
#bdmom-orders .bdmom-order.is-details-open .bdmom-secondary-drawer,
#bdmom-orders .bdmom-order.is-details-open .bdmom-customer-sms-tools,
#bdmom-orders .bdmom-order.is-details-open .bdmom-detail-contact-panel,
#bdmom-orders .bdmom-order.is-details-open .bdmom-internal-notes{
  background:#fff!important;
  color:#25384e!important;
}


/* v2.18.4.35 — mobile parity for navy order cards + single logout control. */
.sg-mobile-logout{display:none!important}

@media(max-width:650px){
  /* There must be exactly one logout action in the bottom dock. */
  
  

  /* Force the same refined navy order-card design used on desktop. */
  body.salesgrid-app-body #bdmom-orders .bdmom-order,
  body.salesgrid-app-body .sg-content #bdmom-orders .bdmom-order{
    background:linear-gradient(145deg,#123b60 0%,#174f7f 52%,#195080 100%)!important;
    border:1px solid rgba(255,255,255,.11)!important;
    border-left:4px solid rgba(255,255,255,.38)!important;
    box-shadow:0 10px 24px rgba(18,59,96,.20)!important;
    color:#fff!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-processing{border-left-color:#7db7ff!important}
  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-out-for-delivery{border-left-color:#ffb45f!important}
  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-on-hold{border-left-color:#ffd36b!important}
  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-completed{border-left-color:#75dfaa!important}
  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-failed,
  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-delivery-failed{border-left-color:#ff8d96!important}
  body.salesgrid-app-body #bdmom-orders .bdmom-order-status-historical-order{border-left-color:#c1a9f3!important}

  body.salesgrid-app-body #bdmom-orders .bdmom-order h4,
  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-date-lines,
  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-date-lines span,
  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-date-lines strong,
  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-compact-cell > strong{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-compact-cell{
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.08)!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-compact-wide:nth-of-type(3){
    background:rgba(255,255,255,.105)!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order .bdmom-order-compact-cell > span{
    color:rgba(205,224,240,.82)!important;
    -webkit-text-fill-color:rgba(205,224,240,.82)!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-compact-actions{
    border-top-color:rgba(255,255,255,.13)!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-view-details{
    background:rgba(255,255,255,.09)!important;
    border-color:rgba(255,255,255,.16)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-compact-edit{
    background:#fff!important;
    border-color:#fff!important;
    color:#174f7f!important;
    -webkit-text-fill-color:#174f7f!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-compact-status-toggle{
    background:linear-gradient(135deg,#e97b1f,#f59b45)!important;
    border-color:#f59b45!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order-secondary-badges span{
    background:rgba(255,255,255,.94)!important;
    color:#123b60!important;
    -webkit-text-fill-color:#123b60!important;
  }
}


/* v2.18.4.36 — unified order-card design for Managers and Agents.
   Status/sale pills use only red, green or orange for fast recognition.
   Typography is deliberately medium-weight rather than heavy/black. */

/* ---------- Shared card shell ---------- */
body.salesgrid-app-body #bdmom-orders .bdmom-order,
body.salesgrid-app-body .bdm-account-card{
  background:linear-gradient(145deg,#123b60 0%,#174f7f 52%,#195080 100%)!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-left:4px solid rgba(255,255,255,.34)!important;
  border-radius:18px!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(18,59,96,.18)!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased!important;
  text-rendering:optimizeLegibility!important;
}

/* ---------- Shared headings and dates ---------- */
body.salesgrid-app-body #bdmom-orders .bdmom-order h4,
body.salesgrid-app-body .bdm-account-card h3{
  margin:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:18px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:-.012em!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-date-lines,
body.salesgrid-app-body .bdm-account-card .bdm-order-date-lines{
  color:rgba(229,239,248,.86)!important;
  font-size:10px!important;
  line-height:1.45!important;
  font-weight:400!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-date-lines span,
body.salesgrid-app-body #bdmom-orders .bdmom-order-date-lines strong,
body.salesgrid-app-body .bdm-account-card .bdm-order-date-lines span,
body.salesgrid-app-body .bdm-account-card .bdm-order-date-lines strong{
  color:rgba(229,239,248,.90)!important;
  -webkit-text-fill-color:rgba(229,239,248,.90)!important;
  font-weight:500!important;
}

/* ---------- Shared compact information cells ---------- */
body.salesgrid-app-body #bdmom-orders .bdmom-order-compact-cell,
body.salesgrid-app-body .bdm-account-card .bdm-order-compact-cell{
  background:rgba(255,255,255,.075)!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-compact-cell > span,
body.salesgrid-app-body .bdm-account-card .bdm-order-compact-cell > span{
  color:rgba(202,221,238,.82)!important;
  -webkit-text-fill-color:rgba(202,221,238,.82)!important;
  font-size:9px!important;
  line-height:1.2!important;
  font-weight:600!important;
  letter-spacing:.035em!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-compact-cell > strong,
body.salesgrid-app-body .bdm-account-card .bdm-order-compact-cell > strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  line-height:1.38!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-compact-wide:nth-of-type(3),
body.salesgrid-app-body .bdm-account-card .bdm-order-compact-wide:nth-of-type(3){
  background:rgba(255,255,255,.105)!important;
}

/* ---------- Shared badge typography ---------- */
body.salesgrid-app-body #bdmom-orders .bdmom-order-primary-badges span,
body.salesgrid-app-body #bdmom-orders .bdmom-order-secondary-badges span,
body.salesgrid-app-body .bdm-account-card .bdm-order-primary-badges span,
body.salesgrid-app-body .bdm-account-card .bdm-account-card-meta span{
  border:0!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:9px!important;
  line-height:1.05!important;
  font-weight:700!important;
  letter-spacing:.015em!important;
  text-transform:none!important;
  box-shadow:none!important;
}

/* SALE TYPE — orange for delivery, green for shop sale. */
body.salesgrid-app-body #bdmom-orders .bdmom-sale-delivery,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-delivery{
  background:#e98524!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-sale-shop,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-shop{
  background:#26935f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* PROCESSING / OUT / ON HOLD / HISTORICAL — orange. */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-processing,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-out-for-delivery,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-on-hold,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-historical-order,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.historical,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-processing,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-out-for-delivery,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-on-hold,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-historical-order{
  background:#e98524!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* COMPLETED / COMPLETE — green. */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-completed,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-completed,
body.salesgrid-app-body #bdmom-orders .bdmom-status-completed,
body.salesgrid-app-body .bdm-account-card .bdm-action-complete{
  background:#26935f!important;
  border-color:#26935f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* FAILED / REJECTED — red. */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-failed,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-delivery-failed,
body.salesgrid-app-body #bdmom-orders .bdmom-status-failed,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-failed,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-delivery-failed,
body.salesgrid-app-body .bdm-account-card .bdm-action-failed,
body.salesgrid-app-body .bdm-account-card .bdm-sale-review-badge{
  background:#c93d45!important;
  border-color:#c93d45!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* OUT FOR DELIVERY / HOLD action buttons remain orange for visibility. */
body.salesgrid-app-body #bdmom-orders .bdmom-status-out,
body.salesgrid-app-body #bdmom-orders .bdmom-status-hold,
body.salesgrid-app-body .bdm-account-card .bdm-action-out,
body.salesgrid-app-body .bdm-account-card .bdm-action-hold{
  background:#e98524!important;
  border-color:#e98524!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Unassigned/warning badges: orange rather than pale yellow. */
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.warning,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.duplicate{
  background:#e98524!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* ---------- Same status accent edge for both user types ---------- */
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-processing,
body.salesgrid-app-body .bdm-account-card-status-processing{
  border-left-color:#f2a24e!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-out-for-delivery,
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-on-hold,
body.salesgrid-app-body .bdm-account-card-status-out-for-delivery,
body.salesgrid-app-body .bdm-account-card-status-on-hold{
  border-left-color:#f2a24e!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-completed,
body.salesgrid-app-body .bdm-account-card-status-completed{
  border-left-color:#59c48f!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-failed,
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-delivery-failed,
body.salesgrid-app-body .bdm-account-card-status-failed,
body.salesgrid-app-body .bdm-account-card-status-delivery-failed{
  border-left-color:#e36a71!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-order-status-historical-order,
body.salesgrid-app-body .bdm-account-card-status-historical-order{
  border-left-color:#f2a24e!important;
}

/* ---------- Actions: readable, not over-bold ---------- */
body.salesgrid-app-body #bdmom-orders .bdmom-compact-actions .button,
body.salesgrid-app-body #bdmom-orders .bdmom-compact-status-readonly,
body.salesgrid-app-body .bdm-account-card .button{
  font-weight:650!important;
  letter-spacing:0!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-view-details{
  background:rgba(255,255,255,.10)!important;
  border-color:rgba(255,255,255,.16)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-compact-edit,
body.salesgrid-app-body .bdm-account-card .bdm-agent-edit-button{
  background:#fff!important;
  border-color:#fff!important;
  color:#174f7f!important;
  -webkit-text-fill-color:#174f7f!important;
}

/* Agent card support areas remain light when opened/used, like manager details. */
body.salesgrid-app-body .bdm-account-card .bdm-order-expand-body,
body.salesgrid-app-body .bdm-account-card .bdm-secondary-drawer-body,
body.salesgrid-app-body .bdm-account-card .bdm-account-contact-panel,
body.salesgrid-app-body .bdm-account-card .bdm-agent-order-notes,
body.salesgrid-app-body .bdm-account-card .bdm-account-actions,
body.salesgrid-app-body .bdm-account-card .bdm-shop-sale-summary{
  color:#25384e!important;
}
body.salesgrid-app-body .bdm-account-card .bdm-secondary-drawer-body,
body.salesgrid-app-body .bdm-account-card .bdm-account-contact-panel,
body.salesgrid-app-body .bdm-account-card .bdm-agent-order-notes{
  background:#fff!important;
}

/* ---------- Mobile parity ---------- */
@media(max-width:650px){
  body.salesgrid-app-body #bdmom-orders .bdmom-order,
  body.salesgrid-app-body .bdm-account-card{
    background:linear-gradient(145deg,#123b60 0%,#174f7f 52%,#195080 100%)!important;
    border-radius:16px!important;
    color:#fff!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order h4,
  body.salesgrid-app-body .bdm-account-card h3{
    font-size:17px!important;
    font-weight:700!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order-compact-cell > strong,
  body.salesgrid-app-body .bdm-account-card .bdm-order-compact-cell > strong{
    font-size:11.5px!important;
    font-weight:600!important;
  }

  body.salesgrid-app-body #bdmom-orders .bdmom-order-primary-badges span,
  body.salesgrid-app-body #bdmom-orders .bdmom-order-secondary-badges span,
  body.salesgrid-app-body .bdm-account-card .bdm-order-primary-badges span,
  body.salesgrid-app-body .bdm-account-card .bdm-account-card-meta span{
    font-size:8.5px!important;
    font-weight:700!important;
  }
}


/* v2.18.4.38 — one order-card language for Senior Managers, Order Managers
   and Delivery Agents. Agent workflow controls remain role-specific only
   inside View More Details. */

/* Shop Sale is an orange sale-type badge everywhere. */
body.salesgrid-app-body #bdmom-orders .bdmom-sale-shop,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-shop{
  background:#e98524!important;
  border-color:#e98524!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Agent grid mirrors the Manager card density. */
body.salesgrid-app-body .bdm-account-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:start!important;
}
body.salesgrid-app-body .bdm-account-card{
  padding:15px!important;
  overflow:visible!important;
}

/* Match Manager header composition: number/date left, sale/status badges right. */
body.salesgrid-app-body .bdm-account-card .bdm-order-title-block{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  column-gap:10px!important;
  align-items:start!important;
}
body.salesgrid-app-body .bdm-account-card .bdm-order-title-block h3{
  grid-column:1!important;
}
body.salesgrid-app-body .bdm-account-card .bdm-order-date-lines{
  grid-column:1!important;
}
body.salesgrid-app-body .bdm-account-card .bdm-order-primary-badges{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  margin:0!important;
  justify-content:flex-end!important;
  align-content:flex-start!important;
  gap:5px!important;
}

/* Only the same scan-critical information appears before View More Details. */
body.salesgrid-app-body .bdm-account-card .bdm-card-secondary-field{
  display:none!important;
}
body.salesgrid-app-body .bdm-account-card.is-details-open .bdm-card-secondary-field{
  display:block!important;
}
body.salesgrid-app-body .bdm-account-card.is-details-open .bdm-card-secondary-field.bdm-order-compact-wide{
  display:block!important;
}

/* Agent action bar is intentionally the same geometry as Manager cards. */
body.salesgrid-app-body .bdm-account-card .bdmom-compact-actions{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:7px!important;
  align-items:center!important;
  margin-top:11px!important;
  padding-top:10px!important;
  border-top:1px solid rgba(255,255,255,.13)!important;
}
body.salesgrid-app-body .bdm-account-card .bdmom-compact-actions .button,
body.salesgrid-app-body .bdm-account-card .bdmom-compact-edit-locked,
body.salesgrid-app-body .bdm-account-card .bdmom-compact-status-readonly{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  margin:0!important;
  padding:7px 11px!important;
  border-radius:11px!important;
  box-sizing:border-box!important;
  font-size:9px!important;
  line-height:1.1!important;
  font-weight:650!important;
  letter-spacing:0!important;
  text-decoration:none!important;
}
body.salesgrid-app-body .bdm-account-card .bdmom-view-details{
  justify-self:start!important;
  background:rgba(255,255,255,.10)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body .bdm-account-card .bdmom-compact-edit{
  min-width:64px!important;
  background:#fff!important;
  border-color:#fff!important;
  color:#174f7f!important;
  -webkit-text-fill-color:#174f7f!important;
}
body.salesgrid-app-body .bdm-account-card .bdmom-compact-status-toggle{
  min-width:76px!important;
  background:linear-gradient(135deg,#e97b1f,#f59b45)!important;
  border-color:#f59b45!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body .bdm-account-card .bdmom-compact-status-readonly{
  background:rgba(255,255,255,.09)!important;
  border:1px solid rgba(255,255,255,.13)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body .bdm-account-card .bdmom-compact-edit-locked{
  background:#fff1d7!important;
  border:1px solid #e7c887!important;
  color:#7b561b!important;
}

/* Mature Agent controls are still present, simply collapsed like Manager cards. */
body.salesgrid-app-body .bdm-account-card .bdm-agent-detail-panel[hidden]{
  display:none!important;
}
body.salesgrid-app-body .bdm-account-card .bdm-agent-detail-panel{
  margin-top:12px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(255,255,255,.14)!important;
  content-visibility:auto!important;
  contain-intrinsic-size:1px 720px!important;
}
body.salesgrid-app-body .bdm-account-card .bdm-agent-order-tools{
  display:none!important;
}

/* Keep expanded Agent workflow panels light/readable, exactly like Manager details. */
body.salesgrid-app-body .bdm-account-card.is-details-open .bdm-secondary-drawer,
body.salesgrid-app-body .bdm-account-card.is-details-open .bdm-account-actions,
body.salesgrid-app-body .bdm-account-card.is-details-open .bdm-shop-sale-summary,
body.salesgrid-app-body .bdm-account-card.is-details-open .bdm-sale-review-panel{
  border-radius:13px!important;
}

/* Remove the old Agent-only blue/orange left-edge distinction; status owns the edge. */
body.salesgrid-app-body .bdm-account-card-delivery,
body.salesgrid-app-body .bdm-account-card-shop{
  border-left-width:4px!important;
}

/* Mobile: same header, same card, same controls. */
@media(max-width:1100px){
  body.salesgrid-app-body .bdm-account-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:650px){
  body.salesgrid-app-body .bdm-account-card{
    padding:12px!important;
    border-radius:16px!important;
  }
  body.salesgrid-app-body .bdm-account-card .bdm-order-title-block{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.salesgrid-app-body .bdm-account-card .bdm-order-primary-badges{
    grid-column:1!important;
    grid-row:auto!important;
    justify-content:flex-start!important;
    margin-top:7px!important;
  }
  body.salesgrid-app-body .bdm-account-card .bdmom-compact-actions{
    grid-template-columns:minmax(0,1fr) auto auto!important;
  }
  body.salesgrid-app-body .bdm-account-card .bdmom-view-details{
    width:100%!important;
    justify-self:stretch!important;
  }
}


/* v2.18.4.40 — stronger Orders section heading + green Out for Delivery. */

/* Out for Delivery uses the same green family as Complete, for every role. */
body.salesgrid-app-body .bdmom-status-out,
body.salesgrid-app-body .bdm-action-out,
body.salesgrid-app-body #bdmom-orders .bdmom-status-out,
body.salesgrid-app-body .bdm-account-card .bdm-action-out{
  background:#26935f!important;
  border-color:#26935f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 6px 14px rgba(38,147,95,.20)!important;
}
body.salesgrid-app-body .bdmom-status-out:hover,
body.salesgrid-app-body .bdm-action-out:hover{
  background:#227f53!important;
  border-color:#227f53!important;
  color:#fff!important;
}

/* The compact status menu uses the same colour cue. */
body.salesgrid-app-body #bdmom-orders
  [data-bdm-compact-status-action="out-for-delivery"]{
  background:#26935f!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body #bdmom-orders
  [data-bdm-compact-status-action="out-for-delivery"]:hover{
  background:#227f53!important;
}

/* Agent "My Orders" heading becomes a clear section banner. */
body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 16px!important;
  padding:16px 18px 16px 20px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-left:5px solid #f59b45!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#102f4d 0%,#123b60 46%,#174f7f 100%)!important;
  box-shadow:0 10px 24px rgba(18,59,96,.15)!important;
}
body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head:after{
  content:""!important;
  position:absolute!important;
  right:-38px!important;
  top:-48px!important;
  width:150px!important;
  height:150px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.035)!important;
  pointer-events:none!important;
}
body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head > div{
  position:relative!important;
  z-index:1!important;
  min-width:0!important;
}
body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head h3{
  margin:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
}
body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head p{
  margin:5px 0 0!important;
  color:rgba(225,238,249,.82)!important;
  -webkit-text-fill-color:rgba(225,238,249,.82)!important;
  font-size:11px!important;
  line-height:1.4!important;
  font-weight:450!important;
}
body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head > span{
  position:relative!important;
  z-index:1!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 12px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:999px!important;
  background:#f59b45!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:750!important;
  white-space:nowrap!important;
  box-shadow:0 5px 12px rgba(245,155,69,.18)!important;
}

@media(max-width:650px){
  body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head{
    align-items:flex-start!important;
    padding:14px 14px 14px 16px!important;
    border-radius:14px!important;
  }
  body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head h3{
    font-size:21px!important;
    font-weight:800!important;
  }
  body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head p{
    max-width:250px!important;
    font-size:10px!important;
  }
  body.salesgrid-app-body .bdm-agent-orders-list-section > .bdm-agent-list-head > span{
    min-height:30px!important;
    padding:6px 9px!important;
    font-size:9px!important;
  }
}


/* v2.18.4.41 — Office shift-handover workspace. */
.bdmom-office-workspace{
  max-width:1180px;
  margin:0 auto;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.bdmom-office-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 14px;
  padding:20px 22px;
  border-radius:18px;
  background:linear-gradient(135deg,#102f4d,#123b60 48%,#174f7f);
  color:#fff;
  box-shadow:0 12px 28px rgba(18,59,96,.15);
}
.bdmom-office-kicker{
  display:block;
  margin-bottom:5px;
  color:#ffb466;
  font-size:9px;
  font-weight:800;
  letter-spacing:.13em;
}
.bdmom-office-hero h2{
  margin:0!important;
  color:#fff!important;
  font-size:28px!important;
  line-height:1.08!important;
  letter-spacing:-.025em;
}
.bdmom-office-hero p{
  max-width:720px;
  margin:7px 0 0;
  color:rgba(235,244,252,.84);
  font-size:12px;
  line-height:1.5;
}
.bdmom-office-shared{
  flex:0 0 auto;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(255,255,255,.09);
  color:#fff;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}
.bdmom-office-notice,
.bdmom-office-shift-state{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
  padding:13px 15px;
  border-radius:13px;
}
.bdmom-office-notice strong,
.bdmom-office-shift-state strong{display:block;font-size:12px}
.bdmom-office-notice span,
.bdmom-office-shift-state span{display:block;margin-top:3px;font-size:10px;line-height:1.45}
.bdmom-office-notice.is-warning,
.bdmom-office-shift-state.is-pending{
  border:1px solid #f0c17f;background:#fff6e7;color:#7b4910;
}
.bdmom-office-notice.is-success,
.bdmom-office-shift-state.is-complete{
  border:1px solid #b9dfcb;background:#edf9f2;color:#17653b;
}
.bdmom-office-notice.is-error{
  border:1px solid #efb9bd;background:#fff0f1;color:#992d35;
}
.bdmom-office-shift-state.is-offline{
  border:1px solid #dce3ea;background:#f5f7f9;color:#586778;
}
.bdmom-office-shift-state.is-senior{
  border:1px solid #cfdcec;background:#eff5fb;color:#244e70;
}
.bdmom-office-shift-state small{flex:0 0 auto;font-size:9px;font-weight:700}

.bdmom-office-compose-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
  margin-bottom:16px;
}
.bdmom-office-compose-card,
.bdmom-office-feed{
  border:1px solid #e0e7ef;
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 22px rgba(31,47,76,.06);
}
.bdmom-office-compose-card{padding:17px}
.bdmom-office-card-head{
  display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;
}
.bdmom-office-card-icon{
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
  border-radius:10px;background:#e98524;color:#fff;font-size:15px;font-weight:800;
}
.bdmom-office-card-icon.is-general{background:#26935f}
.bdmom-office-card-head h3{margin:0!important;color:#163b59!important;font-size:16px!important}
.bdmom-office-card-head p{margin:4px 0 0;color:#718091;font-size:10px;line-height:1.4}

.bdmom-office-search-row{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:9px;
}
.bdmom-office-search-row label,
.bdmom-office-note-field{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#506477;
  font-size:10px;
  font-weight:650;
}
.bdmom-office-search-row select,
.bdmom-office-search-row input,
.bdmom-office-note-field textarea{
  width:100%!important;
  box-sizing:border-box!important;
  border:1px solid #cfd9e4!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#22384c!important;
  font-size:12px!important;
}
.bdmom-office-search-row select,
.bdmom-office-search-row input{min-height:42px!important}
.bdmom-office-note-field{margin-top:11px}
.bdmom-office-note-field textarea{
  min-height:126px;
  padding:10px 11px!important;
  resize:vertical;
  line-height:1.5;
}
.bdmom-office-search-results{
  max-height:270px;
  margin-top:7px;
  overflow:auto;
  border:1px solid #d6e0e9;
  border-radius:11px;
  background:#fff;
  box-shadow:0 12px 26px rgba(22,54,83,.12);
}
.bdmom-office-search-result{
  display:flex!important;
  width:100%!important;
  min-height:0!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:3px!important;
  padding:10px 11px!important;
  border:0!important;
  border-bottom:1px solid #edf1f5!important;
  border-radius:0!important;
  background:#fff!important;
  color:#26465f!important;
  text-align:left!important;
  cursor:pointer!important;
}
.bdmom-office-search-result:last-child{border-bottom:0!important}
.bdmom-office-search-result:hover{background:#f3f8fc!important}
.bdmom-office-search-result strong{font-size:11px;font-weight:700}
.bdmom-office-search-result span{color:#748493;font-size:9px;line-height:1.4}
.bdmom-office-search-empty{padding:12px;color:#72808e;font-size:10px}
.bdmom-office-selected-order{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:8px;
  padding:10px 11px;
  border:1px solid #b8d9c6;
  border-radius:11px;
  background:#edf9f2;
  color:#17653b;
}
.bdmom-office-selected-order strong{font-size:11px}
.bdmom-office-selected-order span{font-size:9px;line-height:1.4}
.bdmom-office-save{
  width:100%!important;
  min-height:44px!important;
  margin-top:10px!important;
  border-color:#174f7f!important;
  background:#174f7f!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:700!important;
}
.bdmom-office-save:disabled{opacity:.48!important;cursor:not-allowed!important}

.bdmom-office-feed{padding:17px}
.bdmom-office-feed-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  margin-bottom:13px;padding-bottom:12px;border-bottom:1px solid #e8edf2;
}
.bdmom-office-feed-head h3{margin:0!important;color:#163b59!important;font-size:19px!important}
.bdmom-office-feed-head p{margin:4px 0 0;color:#718091;font-size:10px}
.bdmom-office-feed-head>span{
  padding:6px 9px;border-radius:999px;background:#eaf2f8;color:#285b7d;
  font-size:9px;font-weight:700;white-space:nowrap;
}
.bdmom-office-note-list{display:flex;flex-direction:column;gap:9px}
.bdmom-office-note{
  padding:13px 14px;
  border:1px solid #e1e7ed;
  border-left:4px solid #26935f;
  border-radius:13px;
  background:#fbfcfd;
}
.bdmom-office-note.is-order{border-left-color:#e98524}
.bdmom-office-note-top{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;
}
.bdmom-office-note-author strong{display:block;color:#243f55;font-size:11px}
.bdmom-office-note-author span{display:block;margin-top:2px;color:#7a8996;font-size:8px}
.bdmom-office-note-type{
  padding:5px 8px;border-radius:999px;background:#26935f;color:#fff;font-size:8px;font-weight:700;
}
.bdmom-office-note.is-order .bdmom-office-note-type{background:#e98524}
.bdmom-office-order-context{
  display:grid;
  grid-template-columns:auto minmax(120px,1fr) auto;
  gap:6px 10px;
  align-items:center;
  margin:0 0 9px;
  padding:9px 10px;
  border-radius:10px;
  background:#eef4f8;
  color:#3e5d74;
}
.bdmom-office-order-context a{color:#174f7f!important;text-decoration:none!important}
.bdmom-office-order-context span{font-size:9px}
.bdmom-office-order-context .wide{grid-column:1/-1}
.bdmom-office-order-status{
  justify-self:end;
  padding:4px 7px;
  border-radius:999px;
  background:#e98524;
  color:#fff!important;
  font-weight:700;
}
.bdmom-office-note-text{
  color:#2f4354;
  font-size:11px;
  line-height:1.55;
  white-space:normal;
}
.bdmom-office-empty{
  padding:22px;border:1px dashed #cad6e1;border-radius:12px;
  background:#f8fafc;color:#6e7d8b;text-align:center;font-size:11px;
}
.bdmom-office-load-more{
  display:flex!important;
  width:min(100%,360px)!important;
  min-height:42px!important;
  align-items:center!important;
  justify-content:center!important;
  margin:14px auto 0!important;
  border-color:#d4dee7!important;
  background:#f7f9fb!important;
  color:#36546c!important;
  font-weight:700!important;
}

@media(max-width:800px){
  .bdmom-office-hero{flex-direction:column}
  .bdmom-office-shared{white-space:normal}
  .bdmom-office-compose-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .bdmom-office-hero{padding:16px;border-radius:15px}
  .bdmom-office-hero h2{font-size:23px!important}
  .bdmom-office-notice,.bdmom-office-shift-state{align-items:flex-start;flex-direction:column}
  .bdmom-office-compose-card,.bdmom-office-feed{padding:13px;border-radius:14px}
  .bdmom-office-search-row{grid-template-columns:1fr}
  .bdmom-office-order-context{grid-template-columns:1fr}
  .bdmom-office-order-status{justify-self:start}
  .bdmom-office-note-top{align-items:flex-start}
}


/* v2.18.4.42 — larger handover writing area + persistent manager greeting. */

.bdmom-office-order-form .bdmom-office-note-field textarea{
  min-height:230px!important;
}
.bdmom-office-compose-card form:not(.bdmom-office-order-form) .bdmom-office-note-field textarea{
  min-height:280px!important;
}

/* Persistent greeting / attendance bar shown above every manager workspace. */
.bdmom-persistent-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 16px;
  padding:16px 18px;
  border:1px solid #dce6ef;
  border-left:5px solid #f59b45;
  border-radius:17px;
  background:linear-gradient(135deg,#ffffff 0%,#f6faff 60%,#eef6fc 100%);
  box-shadow:0 8px 22px rgba(31,47,76,.06);
}
.bdmom-persistent-copy{min-width:0}
.bdmom-persistent-greeting{
  display:block;
  margin-bottom:2px;
  color:#6b7b8d;
  font-size:10px;
  font-weight:600;
}
.bdmom-persistent-head h2{
  margin:0!important;
  color:#123b60!important;
  font-size:24px!important;
  line-height:1.08!important;
  font-weight:800!important;
  letter-spacing:-.025em!important;
}
.bdmom-persistent-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:7px;
}
.bdmom-persistent-meta>span{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border-radius:999px;
  background:#eaf2f8;
  color:#3c5d75;
  font-size:8.5px;
  line-height:1;
  font-weight:700;
}
.bdmom-persistent-state.is-online{
  background:#e4f6ec!important;
  color:#17653b!important;
}
.bdmom-persistent-state.is-offline{
  background:#edf0f3!important;
  color:#66727f!important;
}
.bdmom-persistent-handover.is-complete{
  background:#e4f6ec!important;
  color:#17653b!important;
}
.bdmom-persistent-handover.is-pending{
  background:#fff1df!important;
  color:#9a540d!important;
}

.bdmom-persistent-attendance{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.bdmom-persistent-attendance>input[data-bdm-office-code]{
  width:112px!important;
  min-height:40px!important;
  margin:0!important;
  padding:7px 9px!important;
  border:1px solid #ccd8e4!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#29465d!important;
  font-size:11px!important;
  font-weight:600!important;
  text-align:center!important;
  letter-spacing:.05em!important;
}
.bdmom-persistent-attendance-buttons{
  display:flex;
  align-items:center;
  gap:7px;
}
.bdmom-persistent-attendance-buttons form{margin:0!important}
.bdmom-persistent-attendance-buttons .button{
  min-width:92px!important;
  min-height:40px!important;
  margin:0!important;
  padding:8px 13px!important;
  border-radius:10px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.bdmom-persistent-checkin{
  background:#26935f!important;
  border-color:#26935f!important;
}
.bdmom-persistent-checkout{
  background:#c93d45!important;
  border-color:#c93d45!important;
}
.bdmom-persistent-attendance-buttons .button:disabled{
  opacity:.38!important;
  cursor:not-allowed!important;
}
.bdmom-persistent-attendance-status{
  max-width:210px;
  color:#617487;
  font-size:8.5px;
  line-height:1.35;
}

/* The old renderer's header is intentionally not needed inside filtered
   SalesGrid modules; this persistent bar is the one source of truth. */
.sg-content>.bdmom-persistent-head + .bdmom-head{
  display:none!important;
}

@media(max-width:760px){
  .bdmom-persistent-head{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
    padding:14px;
    border-radius:14px;
  }
  .bdmom-persistent-head h2{font-size:21px!important}
  .bdmom-persistent-attendance{
    width:100%;
    align-items:stretch;
    flex-direction:column;
  }
  .bdmom-persistent-attendance>input[data-bdm-office-code]{
    width:100%!important;
    box-sizing:border-box!important;
  }
  .bdmom-persistent-attendance-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .bdmom-persistent-attendance-buttons form,
  .bdmom-persistent-attendance-buttons .button{
    width:100%!important;
  }
  .bdmom-persistent-attendance-status{max-width:none}
  .bdmom-office-order-form .bdmom-office-note-field textarea,
  .bdmom-office-compose-card form:not(.bdmom-office-order-form) .bdmom-office-note-field textarea{
    min-height:210px!important;
  }
}


/* v2.18.4.44 — global SalesGrid loading feedback / double-click guard. */
.sg-global-loader{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(8,25,47,.30);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease,visibility .14s ease;
}
.sg-global-loader.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:all;
}
.sg-loader-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  width:min(100%,390px);
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:17px;
  background:linear-gradient(135deg,#102f4d 0%,#123b60 54%,#174f7f 100%);
  color:#fff;
  box-shadow:0 22px 60px rgba(4,18,36,.28);
}
.sg-loader-mark{
  display:grid;
  grid-template-columns:repeat(2,10px);
  grid-template-rows:repeat(2,10px);
  gap:3px;
  flex:0 0 auto;
  padding:9px;
  border-radius:12px;
  background:rgba(255,255,255,.10);
}
.sg-loader-mark i{
  display:block;
  width:10px;
  height:10px;
  border-radius:3px;
  background:#f59b45;
  animation:sg-loader-grid 1s ease-in-out infinite;
}
.sg-loader-mark i:nth-child(2){animation-delay:.12s}
.sg-loader-mark i:nth-child(3){animation-delay:.24s}
.sg-loader-mark i:nth-child(4){animation-delay:.36s}
.sg-loader-copy{min-width:0}
.sg-loader-copy strong{
  display:block;
  color:#fff;
  font-size:13px;
  line-height:1.15;
  font-weight:750;
  letter-spacing:-.01em;
}
.sg-loader-copy small{
  display:block;
  margin-top:4px;
  color:rgba(228,240,251,.80);
  font-size:9.5px;
  line-height:1.35;
  font-weight:500;
}
.sg-loader-spinner{
  width:22px;
  height:22px;
  border:2px solid rgba(255,255,255,.22);
  border-top-color:#fff;
  border-radius:50%;
  animation:sg-loader-spin .75s linear infinite;
}
.sg-control-loading{
  position:relative!important;
  opacity:.72!important;
  cursor:wait!important;
}
html.sg-is-loading,
body.sg-is-loading{cursor:wait!important}


@keyframes sg-loader-spin{to{transform:rotate(360deg)}}
@keyframes sg-loader-grid{
  0%,100%{opacity:.36;transform:scale(.82)}
  45%{opacity:1;transform:scale(1)}
}
@media(max-width:650px){
  .sg-global-loader{align-items:flex-end;padding:16px 14px 88px}
  .sg-loader-card{width:100%;padding:13px 14px;border-radius:15px}
}
@media(prefers-reduced-motion:reduce){
  .sg-global-loader,.sg-loader-mark i,.sg-loader-spinner{animation:none!important;transition:none!important}
}


/* v2.18.4.45 — simplified New Order allocation + Senior Dispatch guide. */
body.salesgrid-app-body .bdmom-agent-assignment-field{
  position:relative;
}
body.salesgrid-app-body .bdmom-agent-assignment-select{
  min-height:46px!important;
  border:1px solid #c8d6e3!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#223f57!important;
  font-size:11px!important;
  font-weight:650!important;
}
body.salesgrid-app-body .bdmom-agent-assignment-select:focus{
  border-color:#174f7f!important;
  box-shadow:0 0 0 3px rgba(23,79,127,.10)!important;
}
body.salesgrid-app-body .bdmom-assignment-order-note{
  display:block;
  margin-top:5px;
  color:#738493;
  font-size:8.5px;
  line-height:1.4;
  font-weight:550;
}

body.salesgrid-app-body .bdmom-dispatch-allocation-guide{
  margin:14px 0 16px;
  padding:14px;
  border:1px solid #d7e3ec;
  border-radius:15px;
  background:#f8fbfd;
}
body.salesgrid-app-body .bdmom-dispatch-allocation-guide-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}
body.salesgrid-app-body .bdmom-dispatch-allocation-guide-title h4{
  margin:0!important;
  color:#173f60!important;
  font-size:16px!important;
  line-height:1.2!important;
}
body.salesgrid-app-body .bdmom-dispatch-allocation-guide-title p{
  margin:4px 0 0!important;
  color:#6b7c89!important;
  font-size:9.5px!important;
  line-height:1.45!important;
}
body.salesgrid-app-body .bdmom-dispatch-allocation-guide .bdmom-allocation-advisor{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.salesgrid-app-body .bdmom-dispatch-allocation-guide .bdmom-allocation-agent{
  min-height:0!important;
}
body.salesgrid-app-body .bdmom-dispatch-allocation-guide .bdmom-allocation-agent p{
  min-height:42px;
}

@media(max-width:700px){
  body.salesgrid-app-body .bdmom-dispatch-allocation-guide{
    padding:11px;
  }
}


/* v2.18.4.46 — compact, ordered and visually distinct New Order form. */
body.salesgrid-app-body #bdmom-create{
  overflow:hidden!important;
  padding:0 16px 16px!important;
  border:1px solid #d8e4ee!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f8fbfe 0%,#ffffff 170px)!important;
  box-shadow:0 10px 26px rgba(18,59,96,.07)!important;
}

/* Strong section header without wasting vertical space. */
body.salesgrid-app-body #bdmom-create .bdmom-create-headbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 -16px 13px!important;
  padding:14px 17px!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  background:linear-gradient(135deg,#102f4d 0%,#123b60 52%,#195080 100%)!important;
  color:#fff!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-head-copy{
  min-width:0!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-kicker{
  display:block!important;
  margin:0 0 3px!important;
  color:#ffb466!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.11em!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-headbar h3{
  margin:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:20px!important;
  line-height:1.12!important;
  font-weight:750!important;
  letter-spacing:-.018em!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-headbar p{
  margin:4px 0 0!important;
  color:rgba(232,242,250,.82)!important;
  -webkit-text-fill-color:rgba(232,242,250,.82)!important;
  font-size:9.5px!important;
  line-height:1.4!important;
  font-weight:450!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-head-badge{
  flex:0 0 auto!important;
  padding:6px 9px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.09)!important;
  color:#fff!important;
  font-size:8px!important;
  line-height:1!important;
  font-weight:700!important;
  white-space:nowrap!important;
}

/* Sale type selector: smaller, colored, easier to scan. */
body.salesgrid-app-body #bdmom-create .bdmom-sale-choice{
  gap:8px!important;
  margin:0 0 10px!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-sale-option span{
  min-height:62px!important;
  box-sizing:border-box!important;
  padding:10px 12px!important;
  border:1px solid #d5e0e9!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#173f60!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:700!important;
  box-shadow:none!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-sale-option small{
  margin-top:3px!important;
  color:#71808e!important;
  font-size:9px!important;
  line-height:1.3!important;
  font-weight:450!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-sale-option:not(.shop) span{
  border-left:4px solid #195080!important;
  background:linear-gradient(135deg,#f8fbff,#edf5fc)!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-sale-option.shop span{
  border-left:4px solid #e98524!important;
  background:linear-gradient(135deg,#fffaf4,#fff3e5)!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-sale-option input:checked + span{
  border-color:#195080!important;
  background:linear-gradient(135deg,#eaf4fd,#f7fbff)!important;
  box-shadow:0 0 0 2px rgba(25,80,128,.09)!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-sale-option.shop input:checked + span{
  border-color:#e98524!important;
  background:linear-gradient(135deg,#fff0df,#fff8f0)!important;
  color:#84410b!important;
  box-shadow:0 0 0 2px rgba(233,133,36,.10)!important;
}

/* Starting status becomes a compact information strip. */
body.salesgrid-app-body #bdmom-create .bdmom-create-status{
  display:block!important;
  margin:0 0 11px!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-processing-lock{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:0!important;
  width:max-content!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:7px 10px!important;
  border:1px solid #c3d8ea!important;
  border-radius:10px!important;
  background:#eef6fc!important;
  color:#123b60!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-processing-lock strong{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#e98524!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:8.5px!important;
  line-height:1!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-processing-lock small{
  display:block!important;
  margin:0!important;
  color:#587084!important;
  font-size:8.5px!important;
  line-height:1.25!important;
  font-weight:500!important;
}

/* Dense, orderly 4-column data entry grid. */
body.salesgrid-app-body #bdmom-create .bdmom-create-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px 9px!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-field{
  gap:4px!important;
  min-width:0!important;
  color:#344d61!important;
  font-size:9.5px!important;
  line-height:1.15!important;
  font-weight:650!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-field input,
body.salesgrid-app-body #bdmom-create .bdmom-field select,
body.salesgrid-app-body #bdmom-create .bdmom-field textarea{
  width:100%!important;
  box-sizing:border-box!important;
  border:1px solid #cedae5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#20384c!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:500!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-field input,
body.salesgrid-app-body #bdmom-create .bdmom-field select{
  min-height:39px!important;
  height:39px!important;
  padding:6px 10px!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-field input:focus,
body.salesgrid-app-body #bdmom-create .bdmom-field select:focus,
body.salesgrid-app-body #bdmom-create .bdmom-field textarea:focus{
  border-color:#195080!important;
  box-shadow:0 0 0 3px rgba(25,80,128,.08)!important;
  outline:0!important;
}

/* Make key operational fields visually easier to identify. */
body.salesgrid-app-body #bdmom-create .bdmom-agent-assignment-field,
body.salesgrid-app-body #bdmom-create .bdmom-financier-field{
  padding:8px!important;
  border:1px solid #d6e4ef!important;
  border-radius:12px!important;
  background:#f3f8fc!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-agent-assignment-field{
  border-left:4px solid #26935f!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-financier-field{
  border-left:4px solid #e98524!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-agent-assignment-select{
  min-height:39px!important;
  height:39px!important;
  font-size:10.5px!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-assignment-order-note,
body.salesgrid-app-body #bdmom-create #bdmom-assignment-recommendation{
  margin-top:4px!important;
  font-size:7.8px!important;
  line-height:1.3!important;
}

/* Product block follows the same compact visual language. */
body.salesgrid-app-body #bdmom-create-form > h4{
  margin:12px 0 6px!important;
  padding:8px 10px!important;
  border-left:4px solid #e98524!important;
  border-radius:9px!important;
  background:#f5f9fc!important;
  color:#173f60!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:750!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-item-row{
  gap:8px!important;
  padding:10px!important;
  border:1px solid #d9e3eb!important;
  border-radius:11px!important;
  background:#fbfdff!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-item-top{
  gap:7px 9px!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-actions{
  gap:7px!important;
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid #e3eaf0!important;
}
body.salesgrid-app-body #bdmom-create .bdmom-create-actions .button{
  min-height:40px!important;
  padding:7px 13px!important;
  border-radius:10px!important;
  font-size:10px!important;
  font-weight:700!important;
}

/* Tablet/mobile keeps orderliness without tiny fields. */
@media(max-width:980px){
  body.salesgrid-app-body #bdmom-create .bdmom-create-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-field-span-2,
  body.salesgrid-app-body #bdmom-create .bdmom-agent-assignment-field,
  body.salesgrid-app-body #bdmom-create .bdmom-financier-field{
    grid-column:1/-1!important;
  }
}
@media(max-width:650px){
  body.salesgrid-app-body #bdmom-create{
    padding:0 12px 13px!important;
    border-radius:15px!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-create-headbar{
    align-items:flex-start!important;
    margin:0 -12px 11px!important;
    padding:13px!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-create-headbar h3{
    font-size:18px!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-create-head-badge{
    display:none!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-sale-choice{
    grid-template-columns:1fr 1fr!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-sale-option span{
    min-height:58px!important;
    padding:9px 10px!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-processing-lock{
    width:100%!important;
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:5px!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-create-grid{
    grid-template-columns:1fr!important;
  }
  body.salesgrid-app-body #bdmom-create .bdmom-field-span-2,
  body.salesgrid-app-body #bdmom-create .bdmom-agent-assignment-field,
  body.salesgrid-app-body #bdmom-create .bdmom-financier-field{
    grid-column:auto!important;
  }
}


/* v2.18.4.49 — Staff Dispatch sale-scope enforcement in Agent workspace. */
body.salesgrid-app-body .bdm-agent-scope-lock{
  min-width:220px;
  padding:9px 12px;
  border:1px solid #edbf82;
  border-radius:11px;
  background:linear-gradient(135deg,#fff5e7,#fffaf3);
  color:#81490f;
  text-align:left;
}
body.salesgrid-app-body .bdm-agent-scope-lock strong{
  display:block;
  font-size:11px;
  line-height:1.2;
  font-weight:750;
}
body.salesgrid-app-body .bdm-agent-scope-lock span{
  display:block;
  margin-top:3px;
  font-size:8.5px;
  line-height:1.35;
  font-weight:500;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner{
  margin:0 0 13px;
  padding:10px 12px;
  border:1px solid #bed4e5;
  border-left:4px solid #195080;
  border-radius:11px;
  background:#f1f7fc;
  color:#174465;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner.is-shop{
  border-color:#efc18b;
  border-left-color:#e98524;
  background:#fff7ed;
  color:#82490d;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner strong{
  display:block;
  font-size:11px;
  font-weight:750;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner span{
  display:block;
  margin-top:3px;
  font-size:9px;
  line-height:1.4;
  font-weight:500;
}
body.salesgrid-app-body .bdmom-delivery-scope-disabled{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1 1 100px;
  min-height:22px;
  padding:3px 6px;
  border:1px solid #e7bd82;
  border-radius:5px;
  background:#fff3df;
  color:#8b510e;
  font-size:6.8px;
  line-height:1.05;
  font-weight:800;
  text-align:center;
}
body.salesgrid-app-body .bdmom-priority-control.is-disabled{
  margin-top:5px;
  padding:6px 7px;
  border:1px solid #e3c89e;
  border-radius:6px;
  background:#fff8ed;
  color:#8a581b;
  font-size:7px;
  line-height:1.25;
  font-weight:750;
  text-align:center;
}
@media(max-width:650px){
  body.salesgrid-app-body .bdm-agent-scope-lock{
    min-width:0;
    width:100%;
    box-sizing:border-box;
  }
}


/* v2.18.4.50 — friendlier single-mode banner for agent create form. */
body.salesgrid-app-body .bdm-agent-sale-scope-banner{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  margin:0 0 14px;
  padding:12px 14px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,#eaf4fd 0%,#d9ebfb 100%);
  box-shadow:0 8px 20px rgba(17,54,88,.08);
  text-align:center;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner.is-shop{
  background:linear-gradient(135deg,#fff1df 0%,#ffe4bf 100%);
  color:#8a4a08;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner.is-delivery{
  background:linear-gradient(135deg,#e7f4ff 0%,#d5ebff 100%);
  color:#15476c;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner strong{
  display:block;
  margin:0;
  font-size:16px;
  line-height:1.1;
  letter-spacing:.08em;
  font-weight:800;
}
body.salesgrid-app-body .bdm-agent-sale-scope-banner span{
  display:none !important;
}
@media(max-width:650px){
  body.salesgrid-app-body .bdm-agent-sale-scope-banner{
    min-height:50px;
    border-radius:12px;
    padding:10px 12px;
  }
  body.salesgrid-app-body .bdm-agent-sale-scope-banner strong{
    font-size:14px;
  }
}


/* v2.18.4.51 — unify Shop Sale badges to a clear orange. */
body.salesgrid-app-body #bdmom-orders .bdmom-sale-shop,
body.salesgrid-app-body #bdmom-orders .bdmom-sale-shop_sale,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-shop,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-shop_sale,
body.salesgrid-app-body .bdm-sale-type-shop,
body.salesgrid-app-body .bdm-sale-type-shop_sale,
body.salesgrid-app-body .bdmom-sale-shop,
body.salesgrid-app-body .bdmom-sale-shop_sale{
  background:#f58220 !important;
  border-color:#f58220 !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  box-shadow:none !important;
}

/* v2.18.4.61 — Orders Fast Mode */
body.salesgrid-app-body #bdmom-orders .bdmom-order-fast .bdmom-order-expand-body{padding:16px!important}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-loading{padding:16px;border:1px dashed #c8d6e2;border-radius:10px;background:#f8fbfd;color:#557085;font-size:12px;font-weight:700}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-loading.is-error{border-color:#efb7b7;background:#fff6f6;color:#9b2c2c}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div{padding:10px 11px;border:1px solid #e1e8ee;border-radius:9px;background:#fff;min-width:0}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div.wide{grid-column:span 2}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid span{display:block;color:#718393;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid strong{display:block;color:#173f60;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
body.salesgrid-app-body #bdmom-orders .is-details-loading .bdmom-view-details{opacity:.75;pointer-events:none}
@media(max-width:900px){body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{grid-template-columns:1fr}body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div.wide{grid-column:auto}}

/* v2.18.4.70 — readable expanded order details.
 * Desktop uses three properly sized fact cards per row instead of squeezing six
 * narrow cards across. Values such as phone numbers, names, dates and IDs stay
 * on one readable line. Delivery/location and customer notes use wider cards. */
@media(min-width:761px){
  body.salesgrid-app-body #bdmom-orders .bdmom-order-fast .bdmom-order-expand-body{padding:12px!important}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:8px;
    margin:0 0 10px;
  }
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div{
    grid-column:span 2;
    min-width:0;
    min-height:62px;
    padding:9px 11px;
    border-radius:8px;
  }
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div.wide{grid-column:span 3}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid span{
    margin-bottom:5px;
    font-size:9px;
    line-height:1.2;
    letter-spacing:.035em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid strong{
    font-size:12px;
    line-height:1.35;
    white-space:nowrap;
    overflow:visible;
    overflow-wrap:normal;
    word-break:normal;
  }
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div.wide strong{
    white-space:normal;
    overflow-wrap:break-word;
  }
  body.salesgrid-app-body #bdmom-orders .bdmom-inline-contact-grid{display:none!important}
}
@media(max-width:760px){
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div{padding:9px 10px;border-radius:8px;min-width:0}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div.wide{grid-column:1/-1}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid strong{overflow-wrap:normal;word-break:normal}
  body.salesgrid-app-body #bdmom-orders .bdmom-inline-contact-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 10px}
  body.salesgrid-app-body #bdmom-orders .bdmom-inline-contact-grid .bdmom-contact-button{min-height:42px!important;padding:6px 8px!important;font-size:10px!important}
}
@media(max-width:480px){
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{grid-template-columns:1fr}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div.wide{grid-column:auto}
  body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid strong{font-size:12px}
}


/* v2.18.4.72 — continuous blue expanded order details; simplified source labels.
 * Keep the expanded information visually connected to the blue order-card area:
 * no white fact tiles, white readable type, and only subtle translucent dividers. */
body.salesgrid-app-body #bdmom-orders .bdmom-order-fast .bdmom-order-expand-body{
  background:linear-gradient(135deg,#14466f 0%,#1a5b8b 100%)!important;
  border-radius:12px!important;
  padding:12px!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid{
  background:transparent!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid>div{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:none!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid span{
  color:rgba(255,255,255,.72)!important;
  -webkit-text-fill-color:rgba(255,255,255,.72)!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-fast-details-grid strong{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}


/* v2.18.4.79 — Deep order badge colours for legibility.
 * Keep every order label high-contrast against the dark SalesGrid cards.
 * Duplicate is always red. */
body.salesgrid-app-body #bdmom-orders .bdmom-order-primary-badges span,
body.salesgrid-app-body #bdmom-orders .bdmom-order-secondary-badges span,
body.salesgrid-app-body .bdm-account-card .bdm-order-primary-badges span,
body.salesgrid-app-body .bdm-account-card .bdm-account-card-meta span{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-color:transparent!important;
  text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
}

/* Sale type */
body.salesgrid-app-body #bdmom-orders .bdmom-sale-delivery,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-delivery{
  background:#c85f08!important;
  border-color:#c85f08!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-sale-shop,
body.salesgrid-app-body #bdmom-orders .bdmom-sale-shop_sale,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-shop,
body.salesgrid-app-body .bdm-account-card .bdm-sale-type-shop_sale,
body.salesgrid-app-body .bdm-sale-type-shop,
body.salesgrid-app-body .bdm-sale-type-shop_sale{
  background:#9f4d08!important;
  border-color:#9f4d08!important;
}

/* Default/processing statuses — deep blue */
body.salesgrid-app-body #bdmom-orders .bdmom-badge,
body.salesgrid-app-body .bdm-account-card .bdm-account-status{
  background:#234f78!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.salesgrid-app-body #bdmom-orders .bdmom-badge-processing,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-processing{
  background:#245a8d!important;
  border-color:#245a8d!important;
}

/* Out for delivery — deep orange */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-out-for-delivery,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-out-delivery,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-out-for-delivery,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-out-delivery{
  background:#b85b08!important;
  border-color:#b85b08!important;
}

/* On hold / waiting — deep amber */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-on-hold,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-on-hold,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.warning,
body.salesgrid-app-body #bdmom-orders .bdmom-serial-pending-badge{
  background:#946200!important;
  border-color:#946200!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Completed — deep green */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-completed,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-completed{
  background:#08734b!important;
  border-color:#08734b!important;
}

/* Duplicate / failed / rejected / invalid — deep red */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-duplicate,
body.salesgrid-app-body #bdmom-orders .bdmom-duplicate-badge,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.duplicate,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.invalid,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.critical,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-failed,
body.salesgrid-app-body #bdmom-orders .bdmom-badge-delivery-failed,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-duplicate,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-failed,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-delivery-failed,
body.salesgrid-app-body .bdm-account-card .bdm-sale-review-badge{
  background:#b4232d!important;
  border-color:#b4232d!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Historical — deep purple */
body.salesgrid-app-body #bdmom-orders .bdmom-badge-historical-order,
body.salesgrid-app-body #bdmom-orders .bdmom-mini-badge.historical,
body.salesgrid-app-body .bdm-account-card .bdm-account-status-historical-order{
  background:#5b3a91!important;
  border-color:#5b3a91!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}


/* v2.18.4.96 — universal mobile Sales & Commissions ledger fix.
 * The earlier mobile card rules were limited to the Agent endpoint. Senior
 * Manager View As can render the same ledger inside the order-manager shell,
 * leaving table values clipped/off-screen. Apply the responsive layout to the
 * ledger itself, regardless of which SalesGrid endpoint hosts it. */
@media (max-width:650px){
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales-head{
    width:100%!important;
    box-sizing:border-box!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:end!important;
    gap:8px!important;
    width:100%!important;
    padding:10px!important;
    box-sizing:border-box!important;
    background:#12395f!important;
    border-color:rgba(255,255,255,.10)!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters label{
    display:flex!important;
    flex-direction:column!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    color:#d2e7f8!important;
    -webkit-text-fill-color:#d2e7f8!important;
    font-size:9px!important;
    line-height:1.3!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters label:first-of-type{
    grid-column:1/-1!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters input,
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters select{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    margin:0!important;
    padding:8px 10px!important;
    box-sizing:border-box!important;
    border:1px solid #d5e4ef!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#153a5c!important;
    -webkit-text-fill-color:#153a5c!important;
    font-size:16px!important; /* Prevent iOS input zoom. */
    line-height:1.2!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters .button,
  body.salesgrid-app-body .sg-content .bdm-agent-sales-filters button{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    margin:0!important;
    border-radius:10px!important;
    box-sizing:border-box!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales-table-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:8px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales table,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales tbody,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales tr,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales table{
    table-layout:fixed!important;
    margin:0!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales thead{
    display:none!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales tr{
    margin:0 0 9px!important;
    padding:9px 11px!important;
    height:auto!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#17456f,#1e5f90)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.16)!important;
    overflow:hidden!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales tr:last-child{
    margin-bottom:0!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.product,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.status{
    display:grid!important;
    grid-template-columns:minmax(92px,34%) minmax(0,1fr)!important;
    align-items:start!important;
    justify-content:initial!important;
    gap:9px!important;
    min-height:0!important;
    height:auto!important;
    padding:5px 0!important;
    border:0!important;
    color:#f2f8ff!important;
    -webkit-text-fill-color:#f2f8ff!important;
    font-size:11px!important;
    line-height:1.4!important;
    text-align:left!important;
    white-space:normal!important;
    overflow:visible!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td::before{
    content:attr(data-label)!important;
    display:block!important;
    width:auto!important;
    min-width:0!important;
    margin:0!important;
    color:#9fc7e7!important;
    -webkit-text-fill-color:#9fc7e7!important;
    font-size:8px!important;
    font-weight:900!important;
    line-height:1.35!important;
    letter-spacing:.02em!important;
    text-align:left!important;
    text-transform:uppercase!important;
    white-space:normal!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td > *{
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:inherit!important;
    line-height:inherit!important;
    text-align:left!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.product strong{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:12px!important;
    font-weight:900!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.commission{
    color:#79f0b4!important;
    -webkit-text-fill-color:#79f0b4!important;
    font-weight:900!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.status{
    align-items:center!important;
  }
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales .bdm-agent-commission-status{
    display:inline-flex!important;
    width:max-content!important;
    max-width:100%!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
  }
}

@media (max-width:390px){
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.product,
  body.salesgrid-app-body .sg-content .bdm-agent-month-sales td.status{
    grid-template-columns:minmax(84px,34%) minmax(0,1fr)!important;
    gap:7px!important;
  }
}

/* Office handover cards and conversations. */
#bdmom-office .bdmom-office-note-list{gap:18px}
#bdmom-office .bdmom-office-note{background:linear-gradient(135deg,#153a59,#205579);border:1px solid #2c648c;border-left:5px solid #36c28a;border-radius:18px;padding:18px;box-shadow:0 8px 22px #12334e18;scroll-margin-top:100px;min-width:0;overflow-wrap:anywhere}
#bdmom-office .bdmom-office-note.is-order{border-left-color:#ff9a38}
#bdmom-office .bdmom-office-note-author strong{font-size:16px;color:#fff}
#bdmom-office .bdmom-office-note-author span{font-size:12px;color:#d7e7f5}
#bdmom-office .bdmom-office-note-type{font-size:12px;flex-shrink:0;padding:7px 10px}
#bdmom-office .bdmom-office-note-text{background:#f0f7fc;color:#183f5e;border-radius:12px;padding:15px;font-size:16px;line-height:1.65}
#bdmom-office .bdmom-office-order-context{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;background:#dfeefa}
#bdmom-office .bdmom-office-order-context span{font-size:14px}
#bdmom-office .bdmom-office-note-top{flex-wrap:wrap}
#bdmom-office .bdmom-office-conversation{margin-top:14px;color:#fff}
#bdmom-office .bdmom-office-conversation summary{cursor:pointer;font-size:15px;font-weight:700;padding:13px;background:#ffffff17;border:1px solid #ffffff42;border-radius:10px;min-height:46px;box-sizing:border-box}
#bdmom-office .bdmom-office-conversation summary:focus-visible{outline:3px solid #ffac54;outline-offset:3px}
#bdmom-office .bdmom-office-messages{display:flex;flex-direction:column;gap:12px;margin:14px 0}
#bdmom-office .bdmom-office-reply{background:#e6f7f0;border-left:4px solid #28a676;color:#174737;padding:14px;border-radius:4px 14px 14px 14px;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
#bdmom-office .bdmom-office-reply-meta{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;margin-bottom:7px}
#bdmom-office .bdmom-office-reply-meta strong{font-size:15px;color:#174737}
#bdmom-office .bdmom-office-reply-meta span{font-size:12px;color:#426858}
#bdmom-office .bdmom-office-thread-empty{color:#d7e7f5;font-size:14px}
#bdmom-office .bdmom-office-reply-form .bdmom-office-note-field{color:#fff;font-size:14px}
#bdmom-office .bdmom-office-reply-form textarea{min-height:100px!important;height:auto!important;font-size:16px!important;box-sizing:border-box;width:100%}
#bdmom-office .bdmom-office-reply-form .bdmom-office-save{background:#ed871f!important;color:#fff!important;min-height:48px;font-size:14px!important}
#bdmom-office .bdmom-office-compose-card{background:#eaf3fb;border-color:#c7ddef}
#bdmom-office .bdmom-office-compose-card:nth-child(2){background:#eaf7f0;border-color:#c6e4d5}
#bdmom-office [hidden]{display:none!important}
@media(max-width:600px){
 #bdmom-office .bdmom-office-note{padding:13px}
 #bdmom-office .bdmom-office-note-author strong{font-size:16px}
 #bdmom-office .bdmom-office-note-text{padding:12px}
 #bdmom-office .bdmom-office-order-context{grid-template-columns:minmax(0,1fr)}
 #bdmom-office .bdmom-office-order-status{justify-self:start}
}

/* Compact handover cards, matching the dashboard card layout. */
#bdmom-office .bdmom-office-note-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px;align-items:start}
#bdmom-office .bdmom-office-note{width:100%;box-sizing:border-box;padding:14px}
#bdmom-office .bdmom-office-order-context{grid-template-columns:minmax(0,1fr)}
#bdmom-office .bdmom-office-order-status{justify-self:start}
.bdm-manager-earned{color:#163e60}.bdm-earned-stats,.bdm-earned-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;margin:18px 0}.bdm-earned-stats article,.bdm-earned-grid article{padding:18px;border-radius:15px;background:#173e60;color:white;overflow-wrap:anywhere}.bdm-earned-stats strong{display:block;font-size:24px;color:#ffad53}.bdm-earned-grid h3{color:white;font-size:16px}.bdm-manager-earned nav{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.bdm-manager-earned{background:#f1f6fb;padding:18px;border-radius:16px;font-size:16px}.bdm-manager-earned>h2,.bdm-manager-earned>h3{color:#163e60}.bdm-manager-earned>p,.bdm-manager-earned>nav{color:#31536e;line-height:1.5}

/* 2.18.4.208: phone-only order/call handover search. */
.bdmom-office-search-row.is-phone-only{grid-template-columns:minmax(0,1fr)}
.bdmom-office-phone-help{margin:6px 0 0;color:#5d7388;font-size:11px;line-height:1.45}
.bdmom-office-note.is-call{border-left-color:#326db4}
.bdmom-office-note.is-call .bdmom-office-note-type{background:#326db4}
.bdmom-office-search-result:focus-visible{outline:2px solid #3179c5!important;outline-offset:-2px}

/* v2.18.4.214 — compact, tap-friendly agent sale origin selector. */
.bdm-agent-sale-origin{border:1px solid #c6d8e7;border-radius:9px;padding:8px 10px;margin:8px 0 10px;background:#edf5fb;min-width:0}
.bdm-agent-sale-origin[hidden]{display:none!important}
.bdm-agent-sale-origin legend{font-weight:800;color:#123d60;font-size:12px;padding:0 3px}
.bdm-agent-sale-origin-options{display:flex;gap:7px;flex-wrap:wrap}
.bdm-agent-sale-origin-options label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;border:1px solid #b6cfdf;background:#fff;border-radius:8px;padding:7px 9px;font-size:12px;font-weight:800;color:#143b5a;cursor:pointer;line-height:1.3;flex:1 1 145px}
.bdm-agent-sale-origin-options label:has(input:checked){border-color:#1b6ba2;background:#dceefa;box-shadow:inset 0 0 0 1px #1b6ba2}
.bdm-agent-sale-origin-options input{width:17px!important;height:17px!important;margin:0!important;flex-shrink:0}
.bdm-agent-sale-origin-options small{font-size:10px;font-weight:700;color:#19764b}
@media(max-width:480px){.bdm-agent-sale-origin{padding:7px;margin:7px 0}.bdm-agent-sale-origin-options{gap:5px}.bdm-agent-sale-origin-options label{font-size:11px;flex:1 1 130px;padding:7px 6px}}

/* v2.18.4.215 — Senior Manager completed-sale origin correction. */
.bdm-senior-origin-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#e9f3fa;border:1px solid #bed4e7;border-radius:9px;padding:9px 11px;margin:10px 0;color:#153b5d;max-width:100%;box-sizing:border-box}
.bdm-senior-origin-quick label{font-weight:800;font-size:12px}
.bdm-senior-origin-quick select{min-width:0;max-width:100%;flex:1 1 170px;background:#fff;color:#123653;border:1px solid #acc7dc;border-radius:7px;min-height:38px}
.bdm-senior-origin-quick button{min-height:38px;flex:0 0 auto;background:#123653!important;border-color:#123653!important;color:#fff!important;font-weight:800}
@media(max-width:480px){.bdm-senior-origin-quick{padding:8px;gap:6px}.bdm-senior-origin-quick label{width:100%}.bdm-senior-origin-quick select{flex:1 1 150px}}
