/* source block 179: dmm-v21909-mobile-portrait-quick-add-final; v2.19.18 line 34513 */

/* v2.19.09 — MOBILE ONLY: rebuild Quick Add as a true portrait workflow.
   Desktop (901px+) and Driver Portal remain untouched. */
@media (max-width:900px){
  body:not(.driver-mode) #customerPickerDialog.job-history-mode{
    position:fixed!important;inset:0!important;margin:0!important;padding:0!important;
    width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;background:#fff!important;overflow:hidden!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode>form{
    display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .dialog-head{
    position:absolute!important;top:0!important;right:0!important;z-index:150!important;
    width:52px!important;height:52px!important;min-height:52px!important;margin:0!important;padding:0!important;
    border:0!important;background:transparent!important;pointer-events:none!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .dialog-close{
    position:absolute!important;top:7px!important;right:7px!important;width:42px!important;height:42px!important;
    min-height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;
    border-radius:10px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.15)!important;
    pointer-events:auto!important;z-index:151!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode #jobCustomerRecentSales{
    flex:1 1 auto!important;min-height:0!important;width:100%!important;max-width:100%!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console{
    display:flex!important;flex-direction:column!important;gap:0!important;width:100%!important;height:100%!important;
    min-width:0!important;max-width:100%!important;overflow:hidden!important;background:#f5f7fa!important;
  }

  /* Compact customer identity card. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-head{
    flex:0 0 auto!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:10px 58px 9px 10px!important;border-radius:0!important;background:#111827!important;
    overflow:visible!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-customer{
    display:block!important;width:100%!important;min-width:0!important;margin:0 0 8px!important;color:#fff!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-customer>strong{
    display:block!important;font-size:1rem!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;color:#fff!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-customer .console-contact-name,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-customer .console-invoice-address{display:none!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-head-actions{
    display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1fr)!important;gap:7px!important;width:100%!important;min-width:0!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-created-by,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-marketing-consent,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-job-phone,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-change-customer{min-width:0!important;width:100%!important;margin:0!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-created-by{display:none!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-job-phone{grid-column:1/2!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-marketing-consent{grid-column:2/3!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-change-customer{grid-column:1/-1!important;min-height:40px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-control-shell,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-control-display,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-marketing-visual{width:100%!important;min-width:0!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-job-phone input{width:100%!important;min-width:0!important;font-size:16px!important;}

  /* One vertical workflow; no desktop columns. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-body{
    flex:1 1 auto!important;display:flex!important;flex-direction:column!important;gap:9px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;
    padding:9px 9px 88px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell{
    order:1!important;display:flex!important;flex-direction:column!important;gap:8px!important;
    width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-stage-nav{
    order:-1!important;position:sticky!important;top:-9px!important;z-index:30!important;
    display:flex!important;gap:6px!important;width:calc(100% + 18px)!important;margin:0 -9px!important;padding:8px 9px!important;
    overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;background:#fff!important;border:0!important;border-bottom:1px solid #dce3eb!important;
    border-radius:0!important;box-shadow:0 3px 8px rgba(15,23,42,.07)!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-stage-btn{
    flex:0 0 auto!important;min-width:92px!important;min-height:38px!important;padding:7px 10px!important;white-space:nowrap!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell>.job-console-history,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell>.quick-product-selector,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell>.quick-driver-calendar,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell>.quick-required-panel,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell>.customer-history-search-mode{
    flex:none!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:42dvh!important;
    overflow:hidden!important;border-radius:10px!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-driver-cal-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-required-body{
    max-height:32dvh!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;
  }

  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-build{
    order:2!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;margin:0!important;overflow:visible!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-build-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-build-grid>*{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:100%!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-field-head{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-dark-section-head{padding:10px!important;border-radius:9px 9px 0 0!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-product-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-product-actions #consoleAddProduct{grid-column:1/-1!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-product-actions button{width:100%!important;min-width:0!important;min-height:40px!important;padding:7px 6px!important;font-size:.72rem!important;white-space:normal!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-change-address-btn{margin-left:0!important;width:100%!important;min-height:40px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-address-inputs{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;width:100%!important;padding:8px!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-address-inputs input{width:100%!important;min-width:0!important;min-height:44px!important;font-size:16px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-totals-strip{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px 10px!important;padding:9px 10px!important;border-radius:9px!important;overflow:hidden!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-totals-strip .totals-caption{grid-column:1/-1!important;margin:0!important;font-size:.8rem!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-totals-strip span{min-width:0!important;font-size:.72rem!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-totals-strip .console-total-grand{grid-column:1/-1!important;font-size:.8rem!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-delivery-cost-row{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;width:100%!important;min-width:0!important;padding:9px!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-time-split{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important;gap:6px!important;width:100%!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-field input,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-field select,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-field textarea{width:100%!important;min-width:0!important;max-width:100%!important;font-size:16px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-split-notes{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-split-notes textarea{height:105px!important;min-height:105px!important;}

  /* Persistent mobile completion bar. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-save-bar{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:120!important;
    width:100%!important;min-height:0!important;margin:0!important;padding:8px 9px calc(8px + env(safe-area-inset-bottom))!important;
    background:#fff!important;border-top:1px solid #d7dee7!important;box-shadow:0 -5px 16px rgba(15,23,42,.12)!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-final-actions{
    display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)!important;gap:7px!important;width:100%!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-save-note{grid-column:1/-1!important;min-height:0!important;margin:0!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode #consoleEditFullJob,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode #consoleAddJobNow{width:100%!important;min-width:0!important;min-height:46px!important;margin:0!important;}
}
@media (max-width:480px){
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-head-actions{grid-template-columns:1fr!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-job-phone,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-marketing-consent,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-change-customer{grid-column:1!important;}
}

/* source block 180: dmm-v21910-mobile-quickadd-spacing-planner-density; v2.19.18 line 34664 */

/* v2.19.10 — mobile-only refinement from v2.19.09.
   Restore a denser/taller-useful Planner viewport and add breathing room to portrait Quick Add.
   Desktop (901px+) and Driver Portal remain unchanged. */
@media (max-width:900px){
  :root{--hour-height:72px!important;}

  /* Planner: retain date/nav improvements but show more of the working day. */
  body:not(.driver-mode) #calendarSection .calendar-wrap{
    max-height:calc(100dvh - 150px)!important;
    min-height:0!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body:not(.driver-mode) #calendarSection .time-label{height:72px!important;}

  /* Quick Add: prevent stage sections visually running into one another. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-body{gap:16px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell{gap:14px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-build-grid{gap:18px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-build-grid>*{
    position:relative!important;
    margin-top:0!important;
    margin-bottom:0!important;
    clear:both!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-selector{
    margin-bottom:12px!important;
    max-height:52dvh!important;
    overflow:hidden!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-list{
    max-height:40dvh!important;
    padding-bottom:14px!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-dark-section-head{
    margin-top:4px!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-address-block,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-products-block,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-product-subtotal,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-job-total,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-notes-field{
    margin-top:8px!important;
    margin-bottom:8px!important;
  }
}

/* source block 181: dmm-v21912-mobile-quickadd-fit-only; v2.19.18 line 34713 */

/* v2.19.12 — MOBILE ONLY. Based strictly on v2.19.10.
   Fix Quick Add history/product portrait fit only. Planner/dashboard/desktop/driver untouched. */
@media (max-width:900px){
  /* Previous jobs: full portrait width, vertical scroll, actions below each job. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .customer-history-search-mode{
    width:100%!important;max-width:100%!important;max-height:58dvh!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .customer-history-search-head{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-customer-history-search,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .recent-sales-tools,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode #consoleUseMainRecent{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-list{
    width:100%!important;max-width:100%!important;max-height:46dvh!important;overflow-y:auto!important;overflow-x:hidden!important;
    padding:5px!important;box-sizing:border-box!important;-webkit-overflow-scrolling:touch!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-row{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;padding:5px!important;margin:0 0 6px!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-main{
    display:grid!important;grid-template-columns:70px minmax(0,1fr) 56px!important;gap:6px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-copy,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-copy strong,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-copy small{min-width:0!important;max-width:100%!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-actions{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px!important;gap:5px!important;width:100%!important;min-width:0!important;max-width:100%!important;margin-top:5px!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-actions button{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-show-more{width:100%!important;max-width:100%!important;box-sizing:border-box!important;}

  /* Products: full portrait width and usable vertical list; no right-side clipping. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-selector{
    width:100%!important;max-width:100%!important;max-height:58dvh!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-products-left-head,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-search{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-group-strip{
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-list{
    width:100%!important;max-width:100%!important;max-height:46dvh!important;overflow-y:auto!important;overflow-x:hidden!important;
    padding:5px!important;box-sizing:border-box!important;-webkit-overflow-scrolling:touch!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-row{
    display:grid!important;grid-template-columns:minmax(0,1fr) 72px 54px!important;gap:5px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-copy,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-copy strong,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-copy small,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-price,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-add{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-price{white-space:normal!important;text-align:right!important;line-height:1.05!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-build{margin-top:14px!important;}
}
@media (max-width:430px){
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-main{grid-template-columns:64px minmax(0,1fr) 52px!important;}
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-row{grid-template-columns:minmax(0,1fr) 66px 50px!important;}
}

/* source block 182: dmm-v21913-mobile-quickadd-stage-height-only; v2.19.18 line 34783 */

/* v2.19.13 — surgical MOBILE Quick Add stage-height fix only.
   Do not alter Planner, Dashboard, desktop Back Office or Driver Portal. */
@media (max-width:900px){
  /* Reserve a genuinely useful portrait workspace for whichever Quick Add stage is active. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .job-console-history,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-product-selector,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-driver-calendar,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-required-panel,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .customer-history-search-mode{
    height:62dvh!important;
    min-height:460px!important;
    max-height:68dvh!important;
    flex:0 0 auto!important;
    overflow:hidden!important;
  }

  /* The stage itself stays fixed-height; its working list/body is the scroll owner. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-driver-cal-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-required-body{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
  }
}
@media (max-width:430px){
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .job-console-history,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-product-selector,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-driver-calendar,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-required-panel,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .customer-history-search-mode{
    height:64dvh!important;
    min-height:480px!important;
    max-height:70dvh!important;
  }
}

/* source block 183: dmm-v21914-mobile-quickadd-workspace-pin-only; v2.19.18 line 34826 */

/* v2.19.14 — MOBILE QUICK ADD ONLY.
   Keep Planner, Dashboard, desktop Back Office and Driver Portal untouched.
   One shared stage workspace keeps Delivery Address below the active stage. */
@media (max-width:900px){
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:clamp(540px,74dvh,690px)!important;
    min-height:540px!important;
    max-height:690px!important;
    overflow:hidden!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
  }

  /* Stage navigation remains at the top of the reserved workspace. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-stage-nav{
    flex:0 0 auto!important;
  }

  /* Every possible active stage fills the SAME remaining workspace. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .job-console-history,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-product-selector,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-driver-calendar,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .quick-required-panel,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell > .customer-history-search-mode{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  /* Headers/chips stay visible; the useful content scrolls inside the stage. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .customer-history-search-head,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-products-left-head,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-group-strip,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-required-head,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-required-foot{
    flex:0 0 auto!important;
  }
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .console-history-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-product-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-driver-cal-list,
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-required-body{
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
  }

  /* Build/Delivery Address can only begin AFTER the reserved stage workspace. */
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .job-console-build{
    flex:0 0 auto!important;
    clear:both!important;
    margin-top:14px!important;
    position:relative!important;
    z-index:1!important;
  }
}
@media (max-width:430px){
  body:not(.driver-mode) #customerPickerDialog.job-history-mode .quick-left-shell{
    height:clamp(560px,76dvh,700px)!important;
    min-height:560px!important;
    max-height:700px!important;
  }
}

/* source block 184: dmm-v21915-driver-terms-touch-scroll-fix; v2.19.18 line 34908 */

/* v2.19.15 — DRIVER T&C ONLY. Mobile portrait scroll + signature reliability.
   Back Office, Quick Add, Planner, Dashboard and Required Data are untouched. */
@media (max-width:900px){
  body.driver-mode .driver-selected-pane:has(#driverTermsInline){
    overflow:hidden!important;
    overscroll-behavior:none!important;
    touch-action:auto!important;
  }
  body.driver-mode .driver-selected-pane:has(#driverTermsInline) > .driver-job-v3,
  body.driver-mode .driver-selected-pane:has(#driverTermsInline) .driver-job-detail-v3,
  body.driver-mode .driver-selected-pane:has(#driverTermsInline) .driver-detail-grid,
  body.driver-mode .driver-selected-pane:has(#driverTermsInline) .driver-main-stack{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.driver-mode #driverTermsInline{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:calc(100dvh - 94px)!important;
    max-height:calc(100dvh - 94px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;
    padding-bottom:40px!important;
    box-sizing:border-box!important;
  }
  body.driver-mode #driverTermsInline .driver-terms-copy-body{
    max-height:none!important;
    overflow:visible!important;
  }
  body.driver-mode #driverTermsInline .driver-terms-sign-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:16px!important;
  }
  body.driver-mode #driverTermsInline canvas{
    display:block!important;
    width:100%!important;
    min-height:160px!important;
    touch-action:none!important;
    -ms-touch-action:none!important;
    user-select:none!important;
    -webkit-user-select:none!important;
    -webkit-touch-callout:none!important;
  }
  body.driver-mode #driverTermsInline .driver-terms-actions{
    padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
  }
}

