/* The module supplies forms only; UOP owns the viewport, navigation and scrolling. */
body.b2b-uop-page{margin:0!important;padding:0!important;overflow:auto!important}
.uop-native-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}
#uop-native-stage{min-width:0;position:relative}
#uop-native-source[hidden],#uop-native-stage [hidden]{display:none!important}
#uop-native-source .sdelka-app.uop-native-module{display:block!important;min-height:0!important;height:auto!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;overflow:visible!important}
#uop-native-source .sdelka-content{padding:0!important;margin:0!important;width:100%!important;max-width:none!important;min-height:0!important;overflow:visible!important}
#uop-native-stage .sdelka-modal.uop-native-dialog{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;background:transparent!important;backdrop-filter:none!important;overflow:visible!important;z-index:auto!important}
#uop-native-stage .sdelka-modal.uop-native-dialog.open:not([hidden]){display:block!important}
#uop-native-stage .uop-native-dialog>.sdelka-modal-card{width:100%!important;max-width:none!important;max-height:none!important;margin:0!important;box-sizing:border-box;overflow:visible!important;box-shadow:none!important}
#uop-native-stage .sdelka-ai-v6{height:auto;min-height:0}
#uop-native-stage .sdelka-offer-create{margin-bottom:24px}
#uop-native-stage .sdelka-offer-tabs,#uop-native-stage .sdelka-offer-subtabs{display:flex;flex-wrap:wrap;gap:10px}
body.b2b-uop-page .uop-topbar{position:sticky;top:0}
@media(max-width:760px){#uop-native-stage .sdelka-form-grid.two{grid-template-columns:1fr!important}#uop-native-stage .sdelka-modal-card{padding:16px!important}#uop-native-stage input,#uop-native-stage select,#uop-native-stage textarea{max-width:100%;box-sizing:border-box}}

#uop-native-source .sdelka-app.uop-native-module[hidden]{display:none!important}

/* Keep Core's form styling after dialogs move out of the hidden module. */
#uop-native-stage.sdelka-app{display:block;min-height:0;width:100%;margin:0;padding:0;background:transparent;font-size:14px}
#uop-native-stage .sdelka-form-grid{gap:16px;align-items:start}
#uop-native-stage .sdelka-form-grid>*{min-width:0}
#uop-native-stage input:not([type=checkbox]):not([type=radio]),#uop-native-stage select,#uop-native-stage textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
#uop-native-stage input[type=checkbox],#uop-native-stage input[type=radio]{width:auto;flex:none}
#uop-native-stage label{line-height:1.45;overflow-wrap:anywhere}
#uop-native-stage .sdelka-modal-card{border-radius:14px;padding:24px}
@media(max-width:1100px){#uop-native-stage .sdelka-form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#uop-native-stage .sdelka-form-grid{grid-template-columns:minmax(0,1fr)!important}}
