/* home */
.home {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: auto;
}

.home-body {
  position: absolute;
  left: 0;
  top: 50px;
  right: 0;
  bottom: 0;
  overflow: auto;
  background: var(--color-background);
  z-index: 98;
}

.home-body-content {
  position: relative;
  padding: 20px 20px 50px 240px;
  min-height: 100%;
}

.home-page-main {
  .home-navs {
    bottom: auto;
    height: 50px;
    border-radius: 0;
    background-color: transparent;

    &::before {
      display: none;
    }

    .head-logo-content {
      display: none;
      padding: 5px 0;
      border: none;
    }

    .arco-menu {
      display: none;
    }
  }

  .home-breadcrumb {
    display: none;
  }

  .home-body-content {
    padding-left: 30px;
  }
}

/* navs */
.home-navs {
  position: absolute;
  width: 220px;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow: auto;
  font-size: 14px;
  background: var(--color-white);
  .arco-menu-home {
    padding: 16px 8px;

    .arco-menu-inner {
      padding: 0;
    }

    .arco-menu-inline {
      margin-bottom: 20px;
    }

    .arco-menu-inline-header {
      padding: 9px 40px !important;
      min-height: 38px;
      line-height: 20px;
      font-weight: 400;

      .arco-menu-icon {
        position: absolute;
        left: 16px;
        font-size: 16px;
      }

      &.arco-menu-selected {
        &:hover {
          background-color: var(--color-primary-light);
        }
      }
    }

    .arco-menu-item {
      height: auto;
      min-height: 38px;
      line-height: 20px;
      padding: 9px 40px !important;
      white-space: normal;
      .arco-menu-indent-list {
        display: none;
      }

      &.arco-menu-selected {
        font-weight: 500;
        color: var(--color-primary);
        background-color: var(--color-primary-light);
      }
    }
  }
}

/* head */
.home-header {
  position: absolute;
  width: 100%;
  height: 56px;
  top: 0;
  left: 0;
  z-index: 99;
  padding: 12px 16px 11px;
  background-color: #fff;

  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);

  .home-title {
    font-size: 20px;
    font-weight: bold;
  }

  .home-action {
    &-item {
      display: inline-block;
      vertical-align: middle;
      height: 32px;
      line-height: 32px;
      padding: 0 8px;
      font-weight: 400;
      border-radius: var(--border-radius-small);

      &:not(:first-child) {
        margin-left: 8px;
      }

      .svg-icon {
        font-size: 18px;
      }

      .svg-icon + span {
        margin-left: 6px;
      }
      > span {
        display: inline-block;
        vertical-align: middle;
      }

      &.cursor {
        cursor: pointer;

        &:hover {
          background-color: var(--color-background);
        }
      }
    }
  }
}

// menu-dialog
.menu-dialog {
  .arco-dialog.is-fullscreen {
    border-radius: 0;
    box-shadow: none;

    .arco-dialog__body {
      padding: 10px;

      &::after {
        display: none;
      }
    }
  }

  .menu-logout {
    padding: 10px;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border: 1px solid var(--color-text-gray-1);
    border-radius: 50%;
    font-size: 30px;
    text-align: center;
    color: var(--color-text-gray-1);
    cursor: pointer;

    &:hover {
      border-color: var(--color-danger);
      color: var(--color-danger);
    }
  }
}

// home-breadcrumb
.home-breadcrumb {
  margin-bottom: 16px;

  .breadcrumb-tips {
    display: inline-block;
    vertical-align: middle;
    color: var(--color-text-gray);

    > .svg-icon {
      margin-top: -3px;
      margin-right: 5px;
      font-size: 14px;
    }
  }

  .arco-breadcrumb {
    display: inline-block;
    vertical-align: middle;

    .arco-breadcrumb-item {
      line-height: 22px;
      color: var(--color-text-gray);
    }

    .arco-breadcrumb-item-separator {
      margin: 0;
    }
  }
}

// home-view

/* view-footer */
.home-footer {
  position: absolute;
  width: 100%;
  height: 30px;
  bottom: 0;
  left: 0;
  z-index: 99;
  padding: 5px 0;
  line-height: 20px;
  color: var(--color-text-gray-1);
  text-align: center;
  font-size: 13px;
  background-color: var(--color-background);

  a {
    color: var(--color-text-gray-1);
  }

  a:hover {
    color: var(--color-text-gray);
  }
}
