.tree-entry {
  outline: none;
  display: flex;
  flex-direction: column;
  user-select: none;
  box-sizing: border-box;

  .fp-te-et {
    //flex: 1;
    min-width: 0;
  }

  .entry-main-container {
    position: relative;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 35px;
    min-height: 35px;
    max-height: 35px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--theme-border-color);

    .invalid-cover {
      z-index: 2;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      min-width: 100%;
      min-height: 100%;
      max-width: 100%;
      max-height: 100%;
      cursor: not-allowed;
      background: #b71e1e24;
    }

    .running-task-cover {
      background: rgba(255, 255, 255, 0.3);
      z-index: 1;

      &, .progress, .stop {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        max-width: 100%;
        max-height: 100%;
      }

      .progress, .stop {
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .stop {
        display: none;
      }

      &:hover {
        .stop {
          display: flex;
        }
      }

      .progress {
        .bar {
          transition: all 0.3s;
          position: absolute;
          left: 0;
          top: 0;
          height: 100%;
          min-height: 100%;
          max-height: 100%;
          background-color: rgba(105, 226, 248, 0.25);
        }

        .percentage {
          background: white;
          padding: 2px 50px;
        }
      }
    }

    .entry-main {
      box-sizing: content-box;
      max-height: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 5px 0;
      position: relative;

      &.expanded {
        border-bottom-color: #ccc;
      }

      &.highlight {
        border-color: #e5f3ff;
        background-color: #e5f3ff;
      }

      &:hover:not(:has(.item:hover)):not(:has(button:hover)) {
        border-color: var(--theme-file-processor-entry-background-color-hover);
        background-color: var(--theme-file-processor-entry-background-color-hover);
      }

      &.selected {
        border-color: var(--theme-file-processor-entry-background-color-selected) !important;
        background-color: var(--theme-file-processor-entry-background-color-selected) !important;
      }

      .left, .right {
        display: flex;
        align-items: center;
      }

      .left {
        flex: 1;
        //max-width: 70%;
        overflow: hidden;
        font-size: 14px;
        //line-height: 16px;

        .things-before-name {
          display: flex;
          align-items: center;

          .item {
            margin-right: 5px;
            width: 16px !important;
            height: 16px !important;
            min-width: 16px !important;
            max-width: 16px !important;
            min-height: 16px !important;
            max-height: 16px !important;
            display: flex;
            align-items: center;
            justify-content: center;

            .fold, .unfold {
              width: 16px;
              height: 16px;
              display: flex;
              align-items: center;
              justify-content: center;

              .next-icon {
                font-size: 12px;
                width: 12px;
                color: var(--theme-text-subtle);
              }

              line-height: 14px;
              border-radius: 4px;
              border: 1px solid var(--theme-button-normal-border-color);
              background-color: var(--theme-button-normal-background);
              cursor: pointer;

              &:hover {
                border: 1px solid var(--theme-button-normal-border-color-hover);
                background-color: var(--theme-button-normal-background-hover);
                color: var(--theme-text);
              }
            }
          }
        }

        .things-after-name {
          display: flex;
          align-items: center;

          & > * {
            white-space: nowrap;
            display: flex;
            align-items: center;
            margin-left: 5px;
          }

          .duration {
            color: #0394f5;

            span {
              line-height: 12px;
              font-size: 12px;
            }
          }

          .file-system-info {
            font-size: 12px;
            line-height: 12px;
            color: var(--theme-text-primary);

            & > * {
              display: flex;
              align-items: center;
            }
          }

          .preview {
            color: #0394f5;
            cursor: pointer;

            &:hover {
              color: #0394f5;
            }
          }

          .info {
          }

          .tag {
            font-size: 12px;
            padding: 1px 3px;
            border-radius: 4px;
            border: 1px solid #ccc;
            line-height: 12px;
          }

          .checking-in-libraries {
            color: #777;
          }

          .existence {
            &.exist {
              color: #f5cb22;
              border-color: #f5cb22;
            }

            &.maybe {
              color: #03c1fd;
              border-color: #03c1fd;
            }

            &.new {
              color: #08c29e;
              border-color: #08c29e;
            }
          }

          .is-resource {
            color: #00a1d6;
            border-color: #00a1d6;
          }

          .task-error {
            color: red;
            cursor: pointer;
          }
        }
      }

      .right {
        justify-content: right;
        margin-left: 20px;
        //margin-right: 10px;

        .background-task-indicators {
          display: flex;
          align-items: center;

          & > .indicator {
            display: flex;
            align-items: center;
            cursor: pointer;

            &.success {
              color: green;
            }

            &.error {
              color: red;
            }

            &.running {

            }
          }
        }

        button {
          &:not(:first-child) {
            margin-left: 5px;
          }

          padding-left: 5px;
          padding-right: 5px;
          display: inline-flex;
          align-items: center;

          .iconfont {
            margin-right: 2px;
          }
        }
      }

      //&:not(:last-child) {
      //  border-bottom: none;
      //}
      .indent {

      }
    }
  }

  .entry-children {
    flex: 1;

    &:not(.root) {
      padding-left: 15px;
    }

    overflow: auto;

    //border-top: 1px solid #ccc;
    //box-sizing: border-box;

    & > div {
      //&::-webkit-scrollbar {
      //  width: 8px;
      //  height: 4px;
      //}
      //
      //&::-webkit-scrollbar-track {
      //  border-radius: 10px;
      //  background: rgba(16, 13, 177, 0.1);
      //}
      //
      //&::-webkit-scrollbar-thumb {
      //  border-radius: 10px;
      //  background: rgba(16, 13, 177, 0.2);
      //}
      //
      //&::-webkit-scrollbar-thumb:hover {
      //  background: rgba(16, 13, 177, 0.4);
      //}
      //
      //&::-webkit-scrollbar-thumb:active {
      //  background: rgba(16, 13, 177, .9);
      //}
    }
  }
}
