* {
  box-sizing: border-box;
}

:root {
  --van-overlay-z-index: 1000;
  --van-action-sheet-max-height: 90%;
}


html, body, #app {
  width: 100vw;
  height: 100vh;
  margin: 0;
  font-size: 0.14rem;
  overflow: hidden;
  background: rgb(249, 250, 252);
}
@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {
  #app {
    padding-top: constant(safe-area-inset-top); //为导航栏+状态栏的高度 88px
    padding-top: env(safe-area-inset-top); //为导航栏+状态栏的高度 88px
    padding-left: constant(safe-area-inset-left); //如果未竖屏时为0
    padding-left: env(safe-area-inset-left); //如果未竖屏时为0
    padding-right: constant(safe-area-inset-right); //如果未竖屏时为0
    padding-right: env(safe-area-inset-right); //如果未竖屏时为0
    padding-bottom: constant(safe-area-inset-bottom); //为底下圆弧的高度 34px
    padding-bottom: env(safe-area-inset-bottom); //为底下圆弧的高度 34px
  }
}


.main {
  width: 100%;
  height: calc(100% - 1rem);
  position: relative;
  font-size: large;
  overflow: auto;
}

.main::-webkit-scrollbar {
  display: none;
}


.leaflet-control-attribution.leaflet-control {
  display: none!important;
}

.block-input {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.25rem + 2px);
  padding: 0.125rem 0.25rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.125rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.text-unwrap {
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;
}

.text-expired {
  color: #ff8917;
}

.text-primary {
  color: var(--van-tag-primary-color)!important;
}

.text-danger {
  color: #dc3545!important;
}

.text-success {
  color: #198754!important;
}

.text-gray {
  color: #adb5bd!important;
}

.text-info {
  color: #0dcaf0!important;
}

.divider {
  margin: 0.125rem 0;
}

.swipe-btn {
  height: 100%;
}

.divider {
  height: 5px;
  width: 100%;
}

.van-empty {
  padding: 0!important;
}

.overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  font-size: large;

  .dialog-form {
    position: absolute;
    left: calc((100% - 6rem)/2);
    top: calc((100% - 5rem)/3);
    background: #FFFFFF;
    margin: auto;
    width: 6rem;
    height: 5rem;
    border-radius: 5px;
    padding: 0.1rem;
    overflow-y: auto;

    h5 {
      text-align: center;
      margin: 0;
    }

    .text-area {
      padding: 0 0 0.2rem 0;
      border: none;

      .van-cell {
        width: calc(100% - 0.32rem);
        padding: 0.2rem;
        margin: auto;
        border: 1px solid #dddddd;
      }
    }
    hr {
      border-color: #dddddd;
      border-style: dashed;
      margin-top: 0.1rem;
      margin-bottom: 0.2rem;
    }
    .footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 0.16rem;

      :deep(.van-button) {
        width: 40%;
      }
    }
  }
}
