/* BCM client mobile dashboard polish · 2026-08-17 */
@media (max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  body.sabd-system-shell{--bcm-side-w:min(86vw,300px)!important}
  body.sabd-system-shell .system-mobile-menu{left:12px!important;top:12px!important;width:44px!important;height:44px!important;border-radius:10px!important;background:#111d30!important;border-color:#2b3950!important;color:#fff!important;box-shadow:0 8px 24px rgba(8,18,33,.18)!important}
  body.sabd-system-shell #clientPortalNav{width:min(86vw,300px)!important;padding:18px 15px 16px!important}
  body.sabd-system-shell #clientPortalNav .client-shell-portal-brand{margin-bottom:14px!important;padding-bottom:16px!important}
  body.sabd-system-shell #clientPortalNav .portal-logo-mark{width:58px!important;height:40px!important;flex-basis:58px!important}
  body.sabd-system-shell #clientPortalNav .portal-brand-copy{display:flex!important;max-width:170px!important}
  body.sabd-system-shell #clientPortalNav .portal-brand-copy strong{font-size:13px!important}
  body.sabd-system-shell #clientPortalNav button{height:43px!important;font-size:12px!important}
  body.sabd-system-shell #clientPortalNav .client-user{display:block!important;font-size:9.5px!important;padding:13px 9px 7px!important}
  body.sabd-system-shell .client-portal-panel{margin-left:0!important;padding:72px 12px 20px!important;background:#f4f6f9!important}
  body.sabd-system-shell .client-portal-wrap{width:100%!important;max-width:none!important}
  body.sabd-system-shell .client-portal-head{display:block!important;margin-bottom:16px!important;padding:0 2px!important}
  body.sabd-system-shell .client-portal-head h1{font-size:24px!important;line-height:1.08!important;letter-spacing:-.035em!important}
  body.sabd-system-shell .client-portal-head p{font-size:11.5px!important;line-height:1.45!important;margin:6px 0 0!important}
  body.sabd-system-shell .client-portal-head .right{margin:10px 0 0!important}
  body.sabd-system-shell .client-pill{font-size:9px!important;padding:6px 8px!important}
  body.sabd-system-shell .client-cards{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0 0 14px!important}
  body.sabd-system-shell .client-card-wrap{width:auto!important;padding:0!important;min-width:0!important}
  body.sabd-system-shell .client-card-wrap:last-child{grid-column:1/-1!important}
  body.sabd-system-shell .client-card{min-height:96px!important;padding:14px 13px 12px!important;border-radius:10px!important}
  body.sabd-system-shell .client-card-label{font-size:8.5px!important;margin-bottom:7px!important;letter-spacing:.07em!important}
  body.sabd-system-shell .client-card-value{font-size:25px!important;line-height:1!important}
  body.sabd-system-shell .client-card-sub{font-size:9.5px!important;line-height:1.3!important;margin-top:7px!important}
  body.sabd-system-shell .client-card-wrap:last-child .client-card{min-height:82px!important;display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:'label value' 'sub value'!important;align-items:center!important}
  body.sabd-system-shell .client-card-wrap:last-child .client-card-label{grid-area:label!important;margin:0!important}
  body.sabd-system-shell .client-card-wrap:last-child .client-card-value{grid-area:value!important;font-size:28px!important;padding-left:16px!important}
  body.sabd-system-shell .client-card-wrap:last-child .client-card-sub{grid-area:sub!important;margin:4px 0 0!important}
  body.sabd-system-shell .client-panel-box{margin-bottom:12px!important;border-radius:10px!important}
  body.sabd-system-shell .client-panel-head{padding:12px 13px!important;gap:8px!important;align-items:flex-start!important;flex-wrap:wrap!important}
  body.sabd-system-shell .client-panel-head h2{font-size:13px!important;line-height:1.2!important}
  body.sabd-system-shell .client-panel-head span{margin-left:auto!important;font-size:9.5px!important;line-height:1.35!important;text-align:right!important}
  body.sabd-system-shell .client-job-row{padding:13px!important}
  body.sabd-system-shell .client-job-top{gap:8px!important;align-items:flex-start!important}
  body.sabd-system-shell .client-job-no{font-size:11px!important}
  body.sabd-system-shell .client-job-value{font-size:11px!important;white-space:nowrap!important}
  body.sabd-system-shell .client-job-project{font-size:12px!important;line-height:1.35!important;margin-top:5px!important}
  body.sabd-system-shell .client-job-meta{font-size:10px!important;line-height:1.4!important}
  body.sabd-system-shell .client-empty{padding:26px 14px!important;font-size:11px!important}
  .cx-dashboard-box{margin-bottom:12px!important}
  .cx-dashboard-row{display:grid!important;grid-template-columns:8px minmax(0,1fr)!important;gap:4px 10px!important;padding:12px 13px!important}
  .cx-dashboard-dot{grid-column:1!important;grid-row:1!important;margin-top:4px!important}
  .cx-dashboard-copy{grid-column:2!important;grid-row:1!important}
  .cx-dashboard-copy strong{font-size:11px!important;line-height:1.35!important}
  .cx-dashboard-copy span{font-size:10px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4!important}
  .cx-dashboard-time{grid-column:2!important;grid-row:2!important;margin-left:0!important;font-size:8.5px!important}
  .cx-notification-row{grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;padding:13px!important}
  .cx-notification-icon{width:32px!important;height:32px!important;border-radius:8px!important}
  .cx-notification-copy strong{font-size:11.5px!important;line-height:1.35!important}
  .cx-notification-copy p{font-size:10.5px!important;line-height:1.45!important}
  .cx-notification-meta{grid-column:2!important;text-align:left!important;font-size:8.5px!important;margin-top:-3px!important}
  body.sabd-system-shell .client-msg-layout{display:flex!important;flex-direction:column!important;min-height:0!important;border-radius:10px!important;overflow:hidden!important}
  body.sabd-system-shell .client-msg-list{width:100%!important;max-height:260px!important;border-right:0!important;border-bottom:1px solid #e1e7ee!important}
  body.sabd-system-shell .client-msg-thread{min-height:430px!important;width:100%!important}
  body.sabd-system-shell .client-thread-row{padding:12px 13px!important}
  body.sabd-system-shell .client-thread-head{padding:14px!important}
  body.sabd-system-shell .client-thread-messages{padding:12px!important}
  body.sabd-system-shell .client-bubble{max-width:88%!important;font-size:11px!important}
  body.sabd-system-shell .client-thread-compose{padding:12px!important}
  body.sabd-system-shell .client-thread-compose textarea{min-height:88px!important}
  body.sabd-system-shell .client-thread-actions{align-items:flex-end!important;gap:8px!important}
  body.sabd-system-shell .client-modal-backdrop{padding:0!important;align-items:stretch!important;background:rgba(8,18,33,.62)!important}
  body.sabd-system-shell .client-modal{width:100%!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;box-shadow:none!important}
  body.sabd-system-shell .client-modal-head{position:sticky!important;top:0!important;z-index:4!important;padding:17px 16px!important;background:#fff!important}
  body.sabd-system-shell .client-modal-head h2{font-size:20px!important;line-height:1.15!important;margin-right:46px!important}
  body.sabd-system-shell .client-modal-close{right:14px!important;top:14px!important}
  body.sabd-system-shell .client-modal-body{padding:16px!important}
  body.sabd-system-shell .client-meta{width:100%!important;padding-right:0!important}
  body.sabd-system-shell .client-project-dashboard{padding:0 12px 14px!important}
  body.sabd-system-shell .client-project-dashboard-head{padding:12px!important}
  body.sabd-system-shell .client-project-summary{padding:8px 6px 2px!important}
  body.sabd-system-shell .client-project-stat{width:50%!important;padding:0 3px 6px!important}
  body.sabd-system-shell .client-project-stat-inner{min-height:72px!important;padding:10px!important}
  body.sabd-system-shell .client-project-section{padding:12px!important}
  body.sabd-system-shell .client-project-messages{padding:0 12px 16px!important}
  body.sabd-system-shell .client-project-compose-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  body.sabd-system-shell .client-project-compose-row .client-action{width:100%!important;margin-top:0!important}
  body.sabd-system-shell .client-files-box{padding:12px!important}
  body.sabd-system-shell .client-files-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.sabd-system-shell .client-files-row input[type=file]{width:100%!important;min-width:0!important}
  body.sabd-system-shell .client-file-title{width:100%!important}
  body.sabd-system-shell #clientProjectFileUpload{width:100%!important}
  body.sabd-system-shell .client-file-item{align-items:flex-start!important;gap:8px!important}
  body.sabd-system-shell .client-file-open{margin-left:auto!important;flex:0 0 auto!important}
  body.sabd-system-shell .client-message-form{max-width:none!important}
  body.sabd-system-shell .client-message-form textarea{min-height:130px!important}
  body.sabd-system-shell .client-message-form .client-action{width:100%!important}
  .cx-legal-gate{padding:10px!important;align-items:flex-end!important}
  .cx-legal-card{max-height:94dvh!important;border-radius:16px 16px 0 0!important}
  .cx-legal-head{padding:18px 18px 15px!important}
  .cx-legal-body{padding:20px 18px!important}
  .cx-legal-body h1{font-size:24px!important}
  .cx-legal-summary{padding:14px!important}
  .cx-legal-links{display:grid!important;grid-template-columns:1fr 1fr!important}
  .cx-legal-link{text-align:center!important;padding:10px 8px!important}
}
@media (max-width:390px){
  body.sabd-system-shell .client-portal-panel{padding-left:10px!important;padding-right:10px!important}
  body.sabd-system-shell .client-card{padding-left:11px!important;padding-right:11px!important}
  body.sabd-system-shell .client-card-sub{font-size:9px!important}
  .cx-legal-links{grid-template-columns:1fr!important}
}
