
/* Mobile workspace: screen only; document print geometry is unchanged. */
@media screen and (max-width:800px){
input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%;min-height:44px}
button,a.button{min-height:44px;touch-action:manipulation}
.actions,.document-tools{flex-wrap:wrap;gap:8px}
.form-grid,.formgrid,.two-col,.three-col{grid-template-columns:minmax(0,1fr)!important}
.form-grid>*,.formgrid>*{min-width:0}
.dialog-body,.modal-body{overscroll-behavior:contain}
#crm-dialog{max-width:100vw;width:100%;max-height:96dvh;margin:auto;padding:0}
.tabs{overflow-x:auto;flex-wrap:nowrap;overscroll-behavior-x:contain}.tabs>*{flex-shrink:0}
.table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.document-flow{height:calc(100dvh - 75px);min-height:560px}
.document-flow .document-steps{display:flex;overflow-x:auto}.document-flow .document-steps button{min-width:110px;flex:1}
.document-flow .document-tools select{min-width:0;width:100%;max-width:100%}
.document-flow .document-step-text small{display:none}
.document-tools .help{white-space:normal!important}
.rd-photos img{max-width:100%;object-fit:contain}
}
