.wrap {
  padding: 12px;
  height: 100%;
  // width: fit-content;
  // width: 1100px;
  min-width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid #eef0f3;
  overflow: hidden;
}

.tabsWrap {
  flex: 1;
  min-width: fit-content;
  overflow: hidden;
}

.actionBtn {
  background: #0000000f;
  font-weight: 500;
}

.headerRow {
  // min-width: fit-content;
  // overflow-x: auto;
  // overflow-y: hidden;
}

.tabButtons {
  // min-width: fit-content;

  :global {
    .@{antPrefix}-tabs-nav {
      display: inline-flex;
      // min-width: fit-content;
      flex-wrap: nowrap;
      margin: 0;
    }

    .@{antPrefix}-tabs-nav-wrap {
      flex: 0 0 auto;
      // min-width: fit-content;
    }

    .@{antPrefix}-tabs-nav-list {
      flex-wrap: nowrap;
    }

    .@{antPrefix}-tabs-extra-content {
      flex: 0 0 auto;
      min-width: fit-content;
    }

    .@{antPrefix}-tabs-content-holder {
      display: none;
    }
  }
}

.searchRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: fit-content;
}

.searchInput {
  display: flex;
  flex: 0 0 220px;
  min-width: 220px;
}

.listContainer {
  padding: 0;
  height: 100%;
  min-width: fit-content;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.filePathHeader {
  padding: 8px 12px;
  border-bottom: 1px solid #eef0f3;
}

.backButton {
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;

  &:hover {
    background: rgba(24, 144, 255, 0.1);
  }
}

.fileList {
  padding: 8px;
}

.fileItem {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  position: relative;

  &:hover {
    background-color: #f5f5f5;
  }

  &:hover .downloadBtn {
    opacity: 1;
  }
}

.folderItem {
  font-weight: 500;
}

.fileIcon {
  font-size: 18px;
  margin-right: 8px;
}

.fileName {
  font-size: 14px;
  color: #333;
  flex: 1;
}

.downloadBtn {
  opacity: 0;
  background: none;
  border: none;
  color: #1890ff;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  transition: opacity 0.2s;

  &:hover {
    color: #40a9ff;
  }
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #999;
}

.loadingContainer {
  min-height: 200px;
}

.emptyContainer {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
