:host {
  width: 99%;
  margin-right: auto;

  &.touched a {
    background-color: var(--theme-hack-bg-color, #f6f8f9);

    .read {
      background-color: var(--theme-hack-bg-color, #f6f8f9);
    }
  }
}

.event-overlay-item {
  cursor: pointer;

  position: relative;

  display: block;

  width: 100%;
  margin-bottom: 10px;

  background: var(--app-bg-color-l1);
  border-radius: 2px;

  &__container {
    overflow: hidden;
    display: flex;
    padding: 6px 10px 6px 15px;
  }

  &__col-1 {
    margin-top: 5px;
    margin-right: 8px;
  }

  &__col-2 {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .text {
    overflow: hidden;

    margin-top: 1px;

    font-size: 11px;
    font-weight: 400;
    color: #60747c;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header {
    overflow: hidden;
    display: flex;
    align-items: center;

    &__container {
      display: flex;
      align-items: center;
      justify-content: space-between;

      width: 100%;
      margin-bottom: 4px;
      padding-top: 5px;
      padding-right: 5px;
      padding-bottom: 0;
    }

    &__name {
      padding-right: 5px;
      font-size: 14px;
      font-weight: 500;
      color: var(--color-gray-222);
    }

    &__wrapper-action {
      display: flex;
      flex-direction: column;
      align-items: center;
      align-self: flex-start;
    }

    &__col-1 {
      position: relative;
      display: flex;
      align-items: center;
      align-self: flex-start;
    }

    &__col-2 {
      align-self: flex-start;
    }

    &__status-name {
      font-size: 12px;
    }

    &__modified {
      padding-right: 20px;
      font-size: 12px;
    }

    &__toggle-read {
      width: 7px;
      height: 7px;
      margin-right: 3px;

      background: #3f82d8;
      border-radius: 20px;

      &::before {
        content: '';

        position: absolute;
        top: 0;
        right: 0;

        width: 22px;
        height: 22px;
        margin-right: -3px;
      }

      &:hover {
        outline: 1px solid var(--color-gray-ddd);
        outline-offset: 6px;
      }
    }
  }

  .body {
    margin-bottom: 15px;
    font-size: 12px;

    &__text {
      font-size: 14px;
      font-weight: 400;
      color: var(--color-gray-222);
      white-space: pre-line;
    }

    &__description {
      display: flex;
      align-items: center;
    }

    &__icon {
      display: inline-flex;
      margin-top: 1px;
      margin-right: 3px;
    }

    &__icon {
      display: inline-flex;
      align-self: flex-start;
      margin-right: 3px;

      &-document {
        margin-top: 3px;
      }

      &-task {
        margin-top: 2px;
      }
    }
  }

  .read {
    visibility: hidden;
    background: var(--color-gray-fff);
    border: none;
    outline: 1px solid var(--color-gray-ddd);
    outline-offset: 6px;

    &:hover {
      outline-offset: 6px;
    }
  }

  &:hover {
    .header__toggle-read {
      visibility: visible;
    }
  }
}
