html,body,#root{width:100%;min-height:100vh;margin:0;padding:0}*,:before,:after{box-sizing:border-box}html.rr-safari input[type=date]:not(.rr-date-has-value):not(:focus)::-webkit-datetime-edit{opacity:0}html.rr-safari input[type=date]:not(.rr-date-has-value):not(:focus)::-webkit-datetime-edit-fields-wrapper{opacity:0}html.rr-safari input[type=date]:not(.rr-date-has-value):not(:focus)::-webkit-datetime-edit-text{opacity:0}html.rr-safari input[type=date]:not(.rr-date-has-value):not(:focus)::-webkit-datetime-edit-month-field{opacity:0}html.rr-safari input[type=date]:not(.rr-date-has-value):not(:focus)::-webkit-datetime-edit-day-field{opacity:0}html.rr-safari input[type=date]:not(.rr-date-has-value):not(:focus)::-webkit-datetime-edit-year-field{opacity:0}html.rr-safari input[type=date].rr-date-has-value::-webkit-datetime-edit{opacity:1}html.rr-safari input[type=date].rr-date-has-value::-webkit-datetime-edit-fields-wrapper{opacity:1}html.rr-safari input[type=date].rr-date-has-value::-webkit-datetime-edit-text{opacity:1}html.rr-safari input[type=date].rr-date-has-value::-webkit-datetime-edit-month-field{opacity:1}html.rr-safari input[type=date].rr-date-has-value::-webkit-datetime-edit-day-field{opacity:1}html.rr-safari input[type=date].rr-date-has-value::-webkit-datetime-edit-year-field{opacity:1}html.rr-safari input[type=date]:focus::-webkit-datetime-edit{opacity:1}html.rr-safari input[type=date]:focus::-webkit-datetime-edit-fields-wrapper{opacity:1}html.rr-safari input[type=date]:focus::-webkit-datetime-edit-text{opacity:1}html.rr-safari input[type=date]:focus::-webkit-datetime-edit-month-field{opacity:1}html.rr-safari input[type=date]:focus::-webkit-datetime-edit-day-field{opacity:1}html.rr-safari input[type=date]:focus::-webkit-datetime-edit-year-field{opacity:1}/* Opt-in only: the normal ERP and standalone chat do not receive these styles. */
html.rr-mobile-erp, .rr-mobile-erp body { overflow-x: hidden; }
.rr-mobile-erp main { min-width: 0; max-width: 100%; }
.rr-mobile-erp main .MuiStack-root:not(:is(.MuiDataGrid-root, table) *) { flex-wrap: wrap; }
.rr-mobile-erp main .MuiTextField-root { max-width: 100%; }
.rr-mobile-erp .MuiInputBase-input { font-size: 16px; }
.rr-mobile-erp main .MuiTableContainer-root { max-width: 100%; overflow-x: auto; }
.rr-mobile-erp main .MuiButton-root:not(:is(.MuiDataGrid-root, table) *) { min-height: 40px; flex-shrink: 0; white-space: nowrap; }
.rr-mobile-erp main div:has(> .rr-mobile-scroll-table) { height: auto !important; width: 100% !important; max-width: 100%; }
.rr-mobile-erp .MuiTableContainer-root,
.rr-mobile-erp .rr-mobile-scroll-table .MuiDataGrid-virtualScroller {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}
.rr-mobile-erp .MuiDialog-container > .MuiDialog-paper {
  margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0;
  padding-top: env(safe-area-inset-top, 0px);
}
.rr-mobile-erp .MuiDialogTitle-root { padding: 16px; }
.rr-mobile-erp .MuiDialogContent-root { padding: 16px; overflow-x: auto; }
.rr-mobile-erp .MuiDialogContent-root .MuiStack-root:not(:is(.MuiDataGrid-root, table) *) { flex-wrap: wrap; }
.rr-mobile-erp .MuiDialogActions-root {
  flex-wrap: wrap; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0;
}
.rr-mobile-erp .MuiDialogActions-root .MuiButton-root { min-height: 42px; margin-left: 0; }
@media (max-width: 600px) {
  .rr-mobile-erp .MuiDialogContent-root [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
}

