@import '../../style/themes/index';
@import '../../style/mixins/index';

@pageheader-prefix-cls: ~'@{ant-prefix}-iep-page-header';

.@{pageheader-prefix-cls} {
  .reset-component;
  user-select: none;
  border-radius: @border-radius-base;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  width: 100%;
  padding: 16px 22px;
  box-sizing: border-box;
  &-station {
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-left {
      display: flex;
      flex-direction: column;
      width: 15%;
      &-title {
        font-weight: bold;
        font-size: 20px;
        text-align: left;
        color: #333;
        white-space: nowrap;
      }
      &-address {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 4px;
        .iep-icon {
          width: 18px;
          height: 18px;
          svg {
            width: 18px;
            height: 18px;
          }
        }
        &-text {
          font-weight: 400;
          font-size: 14px;
          color: #333;
          flex: 1;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          word-break: break-all;
        }
      }
    }
    &-middle {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex: 1;
      padding: 0 4%;
      &-item {
        display: flex;
        flex-direction: column;
        span {
          &:first-child {
            font-weight: 400;
            font-size: 14px;
            letter-spacing: 0.01em;
            text-align: left;
            color: #9dabc6;
          }
          &:last-child {
            font-weight: bold;
            font-size: 16px;
          }
        }
      }
    }
    &-right {
      width: 14%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      padding-left: 20px;
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 80%;
        background: #e5e5e5;
        transform: translateY(-50%);
      }
      &-info {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0 10px;
        img {
          width: 36px;
          object-fit: cover;
          user-select: none;
        }
        &-text {
          display: flex;
          flex-direction: column;
          span {
            line-height: 1;
            &:first-child {
              font-weight: 400;
              font-size: 14px;
              text-align: left;
              color: #333;
            }
            &:last-child {
              font-weight: bold;
              font-size: 16px;
              text-align: left;
              color: #333;
              margin-top: 6px;
            }
          }
        }
      }
      &-status {
        span {
          position: relative;
          font-weight: 900;
          font-size: 16px;
          color: #03c98c;
          padding-left: 10px;
          &::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #03c98c;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
          }
        }
        .off {
          color: #9dabc6;
          &::before {
            background: #9dabc6;
          }
        }
      }
    }
  }
  &-car {
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-left {
      display: flex;
      flex-direction: column;
      width: 25%;
      &-title {
        .car-1 {
          border-radius: @border-radius-base;
          background: linear-gradient(129.67deg, #299bff 0%, #0468e8 100%);
          padding: 2px;
          display: inline-flex;
          justify-content: center;
          align-items: center;
        }
        .car-2 {
          border-radius: @border-radius-base;
          background: transparent;
          padding: 6px 10px;
          border: 2px solid #fff;
          font-weight: 900;
          font-size: 20px;
          color: #fff;
          display: inline-flex;
          justify-content: center;
          align-items: center;
        }
      }
      &-info {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 6px;
        gap: 0 20px;
        &-item {
          display: flex;
          justify-content: center;
          align-items: center;
          color: #333333;
        }
        .iep-icon {
          width: 18px;
          height: 18px;
          margin-right: 4px;
          svg {
            width: 18px;
            height: 18px;
          }
        }
        &-text {
          font-weight: 400;
          font-size: 14px;
          color: #333;
          flex: 1;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          word-break: break-all;
        }
      }
    }
    &-middle {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex: 1;
      padding: 0 4%;
      img {
        width: 36px;
        object-fit: cover;
      }
      &-text {
        display: flex;
        flex-direction: column;
        margin-left: 4px;
        span {
          line-height: 1;
          &:first-child {
            font-weight: 400;
            font-size: 14px;
            color: #333;
          }
          &:last-child {
            font-weight: bold;
            font-size: 18px;
            color: #333;
            margin-top: 3px;
          }
        }
      }
    }
    &-right {
      width: 14%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      padding-left: 20px;
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 80%;
        background: #e5e5e5;
        transform: translateY(-50%);
      }
      &-info {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0 10px;
        img {
          width: 36px;
          object-fit: cover;
          user-select: none;
        }
        &-text {
          display: flex;
          flex-direction: column;
          span {
            line-height: 1;
            &:first-child {
              font-weight: 400;
              font-size: 14px;
              text-align: left;
              color: #333;
            }
            &:last-child {
              font-weight: bold;
              font-size: 16px;
              text-align: left;
              color: #333;
              margin-top: 6px;
            }
          }
        }
      }
      &-status {
        span {
          position: relative;
          font-weight: 900;
          font-size: 16px;
          color: #03c98c;
          padding-left: 10px;
          &::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #03c98c;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
          }
        }
        .off {
          color: #9dabc6;
          &::before {
            background: #9dabc6;
          }
        }
      }
    }
  }
  &-mp {
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-left {
      display: flex;
      flex-direction: column;
      width: 20%;
      &-title {
        font-weight: bold;
        font-size: 20px;
        text-align: left;
        color: #333;
      }
      &-address {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 4px;
        .iep-icon {
          width: 18px;
          height: 18px;
          svg {
            width: 18px;
            height: 18px;
          }
        }
        &-sub {
          font-weight: 400;
          font-size: 14px;
          text-align: left;
          color: #ff7e00;
        }
        &-text {
          font-weight: 400;
          font-size: 14px;
          color: #333;
          flex: 1;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          word-break: break-all;
        }
      }
    }
    &-middle {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex: 1;
      padding: 0 4%;
      gap: 0 20px;
      &-item {
        display: flex;
        justify-content: center;
        align-items: center;
        img {
          width: 32px;
          object-fit: cover;
        }
        span {
          font-weight: bold;
          font-size: 16px;
          color: #333;
        }
      }
    }
    &-right {
      width: 10%;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      position: relative;
      padding-left: 20px;
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 80%;
        background: #e5e5e5;
        transform: translateY(-50%);
      }
      &-info {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0 10px;
        img {
          width: 36px;
          object-fit: cover;
          user-select: none;
        }
        &-text {
          display: flex;
          flex-direction: column;
          span {
            line-height: 1;
            &:first-child {
              font-weight: 400;
              font-size: 14px;
              text-align: left;
              color: #333;
            }
            &:last-child {
              font-weight: bold;
              font-size: 16px;
              text-align: left;
              color: #333;
              margin-top: 6px;
            }
          }
        }
      }
      &-status {
        span {
          position: relative;
          font-weight: 900;
          font-size: 16px;
          color: #03c98c;
          padding-left: 10px;
          &::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #03c98c;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
          }
        }
        .off {
          color: #9dabc6;
          &::before {
            background: #9dabc6;
          }
        }
      }
    }
  }
  &-event {
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-left {
      display: flex;
      flex-direction: column;
      &-top {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        img {
          width: 32px;
          object-fit: cover;
        }
        span {
          font-weight: bold;
          font-size: 20px;
          text-align: left;
          color: #333;
        }
      }
      &-bottom {
        font-weight: 400;
        font-size: 14px;
        text-align: left;
        color: #333;
      }
    }
    &-middle {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex: 1;
      padding: 0 4%;
      gap: 0 20px;
    }
    &-right {
      width: 14%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
  }
  &-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 16px;
    &-left {
      display: flex;
      flex-direction: column;
      &-top {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        &-title {
          span {
            font-weight: bold;
            font-size: 20px;
            text-align: left;
            color: #333;
            white-space: nowrap;
          }
        }
      }
      &-bottom {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-top: 4px;
        gap: 0 12px;
        &-item {
          display: flex;
          justify-content: flex-start;
          align-items: center;
          .iep-icon {
            width: 18px;
            height: 18px;
            svg {
              width: 18px;
              height: 18px;
            }
          }
          span {
            font-weight: 400;
            font-size: 14px;
            color: #333;
            margin-left: 6px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            word-break: break-all;
          }
        }
      }
    }
    &-center {
      flex: 1;
    }
    &-right {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      position: relative;
      padding-left: 20px;
      gap: 0 16px;
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 1px;
        height: 80%;
        background: #e5e5e5;
        transform: translateY(-50%);
      }
      img {
        width: 40px;
        object-fit: cover;
        user-select: none;
        margin-right: 6px;
      }
      &-item {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        &-text {
          display: flex;
          flex-direction: column;
          span {
            line-height: 1;
            &:first-child {
              font-weight: 400;
              font-size: 14px;
              text-align: left;
              color: #333;
            }
            &:last-child {
              font-weight: bold;
              font-size: 16px;
              text-align: left;
              color: #333;
              margin-top: 6px;
            }
          }
        }
        &-status {
          margin-left: 30px;
          span {
            position: relative;
            font-weight: 900;
            font-size: 16px;
            color: #03c98c;
            padding-left: 10px;
            &::before {
              content: '';
              width: 6px;
              height: 6px;
              border-radius: 50%;
              background: #03c98c;
              position: absolute;
              left: 0;
              top: 50%;
              transform: translateY(-50%);
            }
          }
          .off {
            color: #9dabc6;
            &::before {
              background: #9dabc6;
            }
          }
        }
      }
    }
  }
}
