/* RUYA_V2.4.24.3_HF4_DOCUMENT_CHILD_PERMISSION_DATA_SAFE */
@media (max-width:900px){
  html,body,#root{overscroll-behavior:none}
  #root .ruyaChildSwitchBack{align-items:flex-end!important;padding:0!important}
  #root .ruyaChildSwitchModal{width:100%!important;max-width:100%!important;max-height:min(72dvh,620px)!important;border-radius:22px 22px 0 0!important;margin:0!important;padding-bottom:calc(14px + env(safe-area-inset-bottom))!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important}
  #root .ruyaChildSwitchModal>button{min-height:60px!important;touch-action:manipulation!important}
  #root .parentNotifications .notificationCard,
  #root .notificationList .notificationCard{min-height:0!important}
}
body.ruyaDocumentViewerOpen{overflow:hidden!important;touch-action:none!important}
.ruyaDocumentViewerOverlay{position:fixed;inset:0;z-index:2147483646;background:#eef2f7;display:flex;flex-direction:column;overflow:hidden}
.ruyaDocumentViewerBar{position:relative;z-index:2;flex:0 0 auto;min-height:58px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;box-sizing:border-box;background:rgba(255,255,255,.98);border-bottom:1px solid #dbe4ef;display:flex;align-items:center;justify-content:space-between;gap:10px}
.ruyaDocumentViewerBar strong{font-size:13px;line-height:1.25;color:#203552;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:55vw;font-weight:650}
.ruyaDocumentViewerBar>div{display:flex;gap:7px}.ruyaDocumentViewerBar button{border:0;border-radius:999px;background:#173b88;color:#fff;font-weight:650;font-size:13px;padding:9px 11px;min-width:70px;touch-action:manipulation}
.ruyaDocumentViewerStage{position:relative;flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#eef2f7;padding:10px;box-sizing:border-box;touch-action:pinch-zoom}
.ruyaDocumentViewerStage iframe,.ruyaDocumentViewerStage video{display:block;width:100%;height:100%;min-height:100%;border:0;background:#fff}.ruyaDocumentViewerStage video{object-fit:contain;background:#111}
.ruyaDocumentViewerImage{display:block;max-width:100%;height:auto;margin:0 auto;transform-origin:center center;touch-action:pinch-zoom}
@media(max-width:600px){.ruyaDocumentViewerBar strong{max-width:38vw}.ruyaDocumentViewerBar button{font-size:12px;padding:9px 9px;min-width:60px}.ruyaDocumentViewerStage{padding:6px}}
