.params-input {
  width: 100%;
  display: block;
  border: 1px solid #E0E0E6;
  border-radius: 2px;
  background: #fff;
  height: 40px;
  padding: 0 30px 0 10px;
  font-size: 14px;
  &::placeholder {
    color: #999;
  }
  &:focus {
    outline: none;
    border: 1px solid #2D8CF0;
    box-shadow: 0 0 5px #2D8CF0;
  }
  &:hover {
    border: 1px solid #2D8CF0;
  }
  color: #333;
}

span.params-input {
  cursor: pointer;
  line-height: 38px;
  &-place {
    color: #999;
  }
  &:active {
    box-shadow: 0 0 5px #2D8CF0;
  }
}

.country-box {
  &-input {
    position: relative;
    i {
      position: absolute;
      right: 10px;
      top: 7px;
      font-size: 20px;
      cursor: pointer;
    }
  }
}

.country-code {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  width: 965px;
  z-index: 99;
  display: none;
  position: absolute;
  right: 0;
  &.on {
    display: block;
  }
  &_search {
    display: flex;
    align-content: center;
    padding: 10px 30px;
    border-bottom: 1px solid #EFEFF5;
    input {
      width: 224px;
      height: 34px;
      border: 1px solid #E0E0E6;
      border-radius: 4px;
      padding: 0 10px;
      font-size: 14px;
      color: #333;
      background: transparent;
      margin-right: 10px;
      &::placeholder {
        color: #999;
      }
      &:focus {
        outline: none;
      }
    }
    span {
      cursor: pointer;
      width: 56px;
      background: #2D8CF0;
      border-radius: 4px;
      text-align: center;
      line-height: 34px;
      font-size: 14px;
      color: #fff;
      &:hover {
        background: #3C9BFF;
      }
    }
  }
  &_body {
    padding: 10px;
  }
  &_tag {
    border-bottom: 1px solid #EFEFF5;
    display: flex;
    &-item {
      margin-right: 30px;
      font-size: 14px;
      color: #333;
      padding: 10px 0;
      position: relative;
      cursor: pointer;
      &:before {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        bottom: -1px;
        height: 2px;
        z-index: 2;
      }
      &.on {
        color: #2D8CF0;
        &:before {
          background: #2D8CF0;
        }
      }
      &:last-child {
        margin-right: 0;
      }
    }
  }
  &_list {
    display: flex;
    flex-wrap: wrap;
    &-item {
      display: flex;
      align-items: center;
      margin: 10px 8px 0 0;
      border: 1px solid #DDDDDD;
      padding: 7px 0 7px 10px;
      width: 126px;
      cursor: pointer;
      &:hover {
        border-color: #0a9ada;
      }
      img {
        margin-right: 5px;
      }
      span {
        font-size: 14px;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        flex: 1;
        min-width: 1px;
      }
    }
  }
}

.customs-box {
  padding: 20px 24px;
  &_title {
    margin-bottom: 40px;
    text-align: center;
    .p1 {
      font-family: serif;
      font-size: 44px;
      margin-bottom: 10px;
      color: #333;
      span {
        color: #2d8cf0;
      }
    }
    .p2 {
      font-size: 15px;
      color: #999;
    }
  }
  &_form {
    display: flex;
    flex-wrap: wrap;
    margin: -26px -15px 0 -15px;
    &-item {
      width: calc(25% - 30px);
      margin: 26px 15px 0 15px;
      display: flex;
      align-items: center;
      &-img {
        margin-right: 12px;
      }
      &-text {
        flex: 1;
        min-width: 1px;
        position: relative;
        .p1 {
          font-size: 16px;
          color: #2d8cf0;
          margin-bottom: 5px;
        }
      }
    }

    &-btns {
      margin-top: 40px;
      display: flex;
      justify-content: center;
      span {
        width: 94px;
        height: 40px;
        border-radius: 4px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 0 7px;
      }
      .s1 {
        color: #fff;
        background: #2D8CF0;
        &:hover {
          background: #3C9BFF;
        }
      }
      .s2 {
        border: 1px solid #E0E0E6;
        &:hover {
          border-color: #2D8CF0;
          color: #2D8CF0;
        }
      }
    }
  }
  &_tw {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    &-item {
      display: flex;
      align-items: center;
      width: 23%;
      background: #eff1f5;
      border-radius: 50px;
      padding: 12px 28px;
      font-size: 22px;
      font-weight: 700;
      &-img {
        margin-right: 10px;
        padding: 10px;
        background: #fff;
        border-radius: 50%;
      }
    }
  }
}

.error {
  .params-input,
  .el-input__inner {
    border-color: #D03050;
    &:focus {
      box-shadow: 0 0 5px #D03050 ;
      border-color: #D03050;
    }
  }
  .customs-box_form-item-text {
    position: relative;
  }
  .customs-box_form-item-error {
    position: absolute;
    color: #D03050;
    margin-top: 5px;
  }
}

.customs-data {
  .el-tabs__item {
    font-size: 18px;
    font-weight: bold;
  }
  .el-tab-pane {
    min-height: 100px;
  }
}

.buyers {
  &-pagination {
    display: flex;
    justify-content: flex-end;
  }
  &-table {
    &_tr {
      padding: 20px 0;
    }
  }
  &-list {
    display: flex;
    align-items: center;
    &_item {
      width: calc(1 / 8 * 100%);
      &:first-child {
        width: calc(1 / 3 * 100%);
      }
      &:nth-of-type(2),
      &:last-child {
        width: calc(1 / 12 * 100%);
      }
      &-title {
        font-size: 18px;
        color: rgb(51, 54, 57);
      }
      &-country {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: rgb(51, 54, 57);
        img {
          margin-right: 5px;
        }
      }
      &-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        p {
          margin: 0;
        }
        .p1 {
          background: rgb(249, 218, 101);
          color: rgb(51, 54, 57);
          font-size: 12px;
          padding: 7px 12px;
          line-height: 1;
          margin-bottom: 4p;
          border-radius: 5px;
        }
        .p2 {
          font-size: 14px;
          color:  rgb(51, 54, 57);
        }
      }
    }
    &_show {
      font-size: 14px;
      color: rgb(107, 114, 128);
      margin-top: 12px;
    }
  }
}

.buyers-detail {
  &_title {
    margin-bottom: 20px;
    display: flex;
    font-size: 20px;
    color: rgb(51, 54, 57);
    font-weight: bold;
    &:before {
      content: "";
      width: 6px;
      height: 24px;
      background: rgb(45, 140, 240);
      border-radius: 10px;
      margin-right: 10px;
    }
    span {
      cursor: pointer;
      margin-right: 20px;
      &.on {
        color: #2D8CF0;
      }
    }
  }
  .el-drawer__header {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #EFEFF5;
  }
  &_draw {
    padding: 16px 24px;
  }
  &_info {
    border-radius: 4px;
    border: 1px solid #EFEFF5;
    margin-bottom: 12px;
    &-header {
      padding: 20px 24px;
      font-size: 18px;
      color: rgb(51, 54, 57);
      border-bottom: 1px solid #EFEFF5;
    }
    &-body {
      padding: 20px 24px;
    }
    &-top {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      &-logo {
        width: 58px;
        height: 58px;
        background: #1874DB;
        border-radius: 4px;
        display: flex;
        align-items: center;
        font-size: 26px;
        color: #fff;
        justify-content: center;
        margin-right: 20px;
      }
      &-title {
        flex: 1;
        min-width: 1px;
        color: rgb(51, 54, 57);
        .p1 {
          font-size: 20px;
        }
        .p2 {
          display: flex;
          align-items: center;
          span {
            font-size: 14px;
          }
          img {
            margin-right: 5px;
          }
        }
      }
    }
    &-list {
      display: flex;
      background: #F3F4F6;
      padding: 20px 32px;
      justify-content: space-between;
      margin-bottom: 20px;
      &-item {
        font-size: 16px;
        color: rgb(51, 54, 57);
      }
    }
    &-show {
      font-size: 16px;
      .p1 {
        color: rgb(31, 34, 37);
      }
      .p2 {
        color: rgb(107, 114, 128);
      }
    }
  }
  &_freight {
    border-radius: 4px;
    border: 1px solid #EFEFF5;
    padding: 20px 24px;
    margin-bottom: 20px;
    &-title {
      border-bottom: 1px solid #EFEFF5;
      span {
        font-size: 18px;
        color: rgb(45, 140, 240);
        padding: 10px 0;
        font-weight: bold;
        display: inline-block;
        border-bottom: 2px solid rgb(45, 140, 240);
      }
    }
    &-list {
      display: flex;
      justify-content: space-evenly;
      padding: 20px 0;
    }
    &-item {
      display: flex;
      align-items: center;
      &-img {
        margin-right: 15px;
      }
      &-text {
        .p1 {
          font-size: 16px;
          color: rgb(153, 153, 153);
          span {
            color: rgb(248, 113, 113);
          }
        }
        .p2 {
          font-size: 28px;
          color: rgb(51, 54, 57);
          font-weight: bold;
        }
      }
    }
  }
  &_cgfx {
    margin-bottom: 20px;
  }
}

.echarts-line-bar {
  &_btns {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  }
}

.customs-loading {
  min-height: 120px;
  .el-loading-spinner {
    top: 5px;
    margin-top: 0;
  }
}

.gysfx-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  &_left {
    width: 50%;
    .p1 {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  &_right {
    width: 45%;
  }
}

.detail-country {
  &_box {
    display: flex;
  }
  &_title {
    font-size: 14px;
    color: rgb(51, 54, 57);
    width: 85px;
    padding-top: 3px;
    font-weight: bold;
  }
  &_list {
    flex: 1;
    min-width: 1px;
    &-item {
      display: flex;
      &-title {
        width: 85px;
        span {
          display: inline-block;
          color: rgb(51, 54, 57);
          font-size: 14px;
          cursor: pointer;
          padding: 3px 7px;
          &:hover {
            background: #ECEDED;
            border-radius: 2px;
          }
          &.on {
            background: #2D8CF0;
            color: #fff;
            &:hover {
              background: #3C9BFF;
            }
          }
        }
      }
      &-con {
        display: flex;
        flex-wrap: wrap;
        flex: 1;
        min-width: 1px;
        .el-button {
          margin-left: auto;
        }
        &-it {
          width: calc(100% / 7);
          margin-bottom: 10px;
        }
        p {
          display: inline-flex;
          align-items: center;
          font-size: 14px;
          color: rgb(51, 54, 57);
          cursor: pointer;
          padding: 3px 7px;
          margin: 0;
          img {
            margin-right: 5px;
          }
          &:hover {
            background: #ECEDED;
            border-radius: 2px;
          }
          &.on {
            background: #2D8CF0;
            color: #fff;
            &:hover {
              background: #3C9BFF;
            }
          }
        }
      }
    }
  }
}

.detail-list {
  .el-tabs {
    margin-top: 20px;
  }
  .el-tabs__item {
    font-size: 16px;
    font-weight: normal;
  }
  .el-drawer__header {
    font-size: 18px;
    color: #333;
    margin-bottom: 0;
    border-bottom: 1px solid #EFEFF5;
  }
  &_draw {
    padding: 20px 24px;
    &-item {
      margin-bottom: 20px;
      &-title {
        padding: 8px 20px;
        font-size: 16px;
        line-height: 1.6;
        background: #57626F;
        color: #fff;
        border-radius: 5px 5px 0 0;
      }
      table {
        border-radius: 4px;
        border: 1px solid #EFEFF5;
        margin: 0;
        tr {
          display: flex;
          th,td {
            padding: 12px 16px;
            font-size: 14px;
          }
          th {
            font-weight: normal;
            background: #FAFAFC;
            width: 260px;
            border-right: 1px solid #EFEFF5;
          }
          td {
            flex: 1;
          }
        }
        tr + tr {
          border-top: 1px solid #EFEFF5;
        }
      }
    }
  }
  &_table {
    overflow: auto;
  }
  &_pagination {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end
  }
}

.customs-records {
  &_top {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    p {
      font-size: 14px;
      font-weight: bold;
      &:nth-of-type(1) {
        color: #ff0000;
      }
      &:nth-of-type(2) {
        color: #ff9f43;
      }
      &:nth-of-type(3) {
        color: #333;
      }
    }
  }
  &_page {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }
}

.customs-box_history {
  margin-top: 15px;
  &-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    span {
      cursor: pointer;
      margin: 0 5px;
      font-size: 12px;
      color: rgb(51, 54, 57);
      background: #F4F5F5;
      border-radius: 5px;
      padding: 3px 5px;
      &:hover {
        background: #ECEDED;
      }
    }
  }
}