/* Mobile data entry gets the visible screen, without changing form behaviour. */
@media(max-width:700px){
  html{overflow-x:clip}
  input,textarea,select{font-size:16px!important}
  .hd-form-focus,dialog.hd-form-dialog[open]{box-sizing:border-box!important;position:fixed!important;inset:var(--hd-form-top,0px) 0 auto!important;transform:none!important;margin:0!important;width:100%!important;max-width:none!important;height:var(--hd-form-height,100dvh)!important;max-height:none!important;min-width:0!important;background:#fff!important;color:#102e3b;z-index:2000!important;border:0!important;border-radius:0!important;padding:16px!important;overflow:auto!important;overscroll-behavior:contain;animation:none!important;box-shadow:none!important;scroll-padding-block:80px 24px}
  body.hd-form-mode .masthead,body.hd-form-mode .sidebar,body.hd-form-mode .topbar,body.hd-form-mode .preview-banner,body.hd-form-mode #hd-werner-preview{visibility:hidden}
  .hd-form-focus{display:block!important}
  .hd-form-focus .form-row,.hd-form-focus .cp-fields,.hd-form-focus.job-details{grid-template-columns:minmax(0,1fr)!important}
  .hd-form-focus :is(input,textarea,select),.hd-form-dialog :is(input,textarea,select){max-width:100%;min-width:0}
  .hd-form-toolbar{position:sticky;top:-16px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;background:#fff;border-bottom:1px solid #ecefec;margin:0 0 20px}
  .hd-form-toolbar h2{font:500 22px/1.3 Arial,sans-serif;letter-spacing:normal;color:#102e3b;margin:0}
  .hd-form-toolbar button{flex:none;min-height:44px;padding:8px 16px;border:1px solid #dce2d9;border-radius:24px;background:#f7f8f5;color:#425748;font:500 16px/1.4 Arial,sans-serif}
  .hd-form-dialog::backdrop{background:#fff}
  .hd-form-dialog .dialog-heading,.hd-form-dialog .agent-heading,.hd-form-dialog .job-entry-heading{position:sticky;top:-16px;z-index:5;background:#fff;padding:12px 0;border-bottom:1px solid #ecefec;margin-bottom:16px}
  .hd-form-focus>.job-actions,.hd-form-focus>.dialog-actions{flex-wrap:wrap}
}

@media(max-width:700px){
 .hd-form-focus>h1,.hd-form-focus>h2,.hd-form-focus>h3{display:none}
 .workspace,main,#jobs-library{min-width:0;max-width:100%}
 .job-details{grid-template-columns:minmax(0,1fr)}
}

@media(max-width:700px){
 .hd-form-focus :is(input,textarea,select):focus-visible,.hd-form-dialog :is(input,textarea,select):focus-visible{outline:2px solid #879187;outline-offset:2px}
 .hd-form-focus :is(input,textarea,select),.hd-form-dialog :is(input,textarea,select){border-color:#d4dcd1}
}
