@import '~antd/es/style/themes/default.less';

@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }

  :global(.ant-dropdown-menu-item) {
    min-width: 160px;
  }
}

.editPasswordP {
  display: flex;
  flex-flow: row nowrap;

  label {
    width: 70px;
    text-align: right;
  }

  input {
    width: 200px;
    margin-left: 15px;
  }

  align-items: center;
}

.right {
  display: flex;
  float: right;
  height: 48px;
  margin-left: auto;
  overflow: hidden;

  .action {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
      background: @pro-header-hover-bg;
    }

    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }

  .search {
    padding: 0 12px;

    &:hover {
      background: transparent;
    }
  }

  .account {
    .avatar {
      margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgba(255, 255, 255, 0.85);
    }
  }
}

.dark {
  .action {
    &:hover {
      background: #252a3d;
    }

    &:global(.opened) {
      background: #252a3d;
    }
  }
}

.dialog {
  line-height: normal;
  position: fixed;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, .5);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  // display: none;
}

.companyAccount {
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  margin-bottom: 80px;
  box-shadow: 0 4px 20px 0 rgba(0, 60, 179, 0.12);
  margin-bottom: 10px;
  width: 500px;
  padding: 48px 36px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  &>.close {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 10px;
    cursor: pointer;
  }

  &>h3 {
    margin: 0;
    font-size: 20px;
  }

  &>.chooseTableBlock {
    margin-top: 20px;
    border-top: 1px solid rgba(181, 181, 181, .4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
    max-height: 250px;
    overflow-y: auto;
    padding: 0 10px;

    .acTableLineContent {
      padding: 16px 14px;
      display: flex;
      align-items: center;
      font-size: 14px;
      cursor: pointer;
      color: #68779c;
      justify-content: space-between;
      border: 2px solid transparent;
      position: relative;
      border-radius: 4px;

      .actname {
        width: 250px;
        color: #0b1531;
        font-size: 16px;
      }

      .right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 22px;

        .actcha {
          color: #68779c;
          margin-right: 10px;
        }
      }

      .iconRight {
        color: #1890ff;
        font-size: 20px;
      }

      &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: rgba(181, 181, 181, .4);
        height: 1px;
        width: 100%;
      }
    }

    .acTableLine {
      &:hover {
        border: 2px solid #296aef;
        z-index: 5;
        transition: all .2s;
        box-shadow: 0 0 12px rgba(0, 60, 179, 0.12);

        .right .actcha {
          color: #0b1531;
        }

        .iconRight {
          color: #296aef;
        }
      }
    }

    .acNone {
      .actname {
        color: #99a0ad;
      }

      .iconRight {
        color: #aeb6c5;
      }
    }
  }
}

@media only screen and (max-width: @screen-md) {
  :global(.ant-divider-vertical) {
    vertical-align: unset;
  }

  .name {
    display: none;
  }

  .right {
    position: absolute;
    top: 0;
    right: 12px;

    .account {
      .avatar {
        margin-right: 0;
      }
    }

    .search {
      display: none;
    }
  }
}
