:root {
  --ux-safe-top: env(safe-area-inset-top, 0px);
  --ux-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ux-safe-left: env(safe-area-inset-left, 0px);
  --ux-safe-right: env(safe-area-inset-right, 0px);
}

html {
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, video, canvas {
  max-width: 100%;
}

.app-tabbar {
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  height: auto !important;
  box-sizing: border-box !important;
}
.app-header, .sub-page-header, .page-header {
  padding-top: env(safe-area-inset-top, 0px);
}

.table-wrap, .table-responsive, .scroll-x {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .el-dialog, .modal-dialog, .van-dialog {
    max-width: 94vw !important;
  }
  .el-message-box {
    width: 86vw !important;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 14px;
  }
}
