@import '../../../../assets/variable.less';
@import '~@zgfe/business-lib/es/assets/styles/chunks.less';

.module-user-detail-session-event-item {
  height: auto;
  background-color: #fff;
  border-bottom: 1px solid @Gray7;
  .event {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 @padding-md;
    background-color: #fff;
    cursor: pointer;
    &-name {
      .__default-overflow();
    }
    &-left {
      display: flex;
      align-items: center;
      width: 100%;
      .event-date {
        margin-right: 8px;
      }
      .event-color {
        width: 10px;
        height: 10px;
        margin-right: 8px;
        border-style: solid;
        border-width: 2px;
        border-radius: 50%;
      }
    }
    &-right {
      margin-left: @margin-xs;
      .plat-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        color: #fff;
      }
    }
  }
  &.selected {
    .event {
      background-color: @themeColorOpacity6;
    }
  }
  &.session-start-item {
    &:not(:first-child) {
      border-top: 4px solid #dadada;
    }
  }
  .session-item-event-attrs {
    display: flex;
    flex-wrap: wrap;
    max-height: 320px;
    overflow-y: auto;
    background-color: #fafafa;
    box-shadow: inset 0 3px 2px -2px #ccc, inset 0 -3px 2px -2px #ccc;
    .attr {
      width: 50%;
      padding: 0 20px;
      line-height: 32px;
      &:nth-child(2n) {
        border-left: 1px dashed #dadada;
      }
      &:nth-child(n + 2) {
        border-top: 1px dashed #dadada;
      }
      .attr-name {
        font-weight: bold;
      }
      .attr-value {
        min-width: 0;
        word-break: break-all;
      }
    }
  }
}
