/* Only the book list: preserve other tables and the original analytics page. */
.book-content-grid .vxe-toolbar {
  align-items: flex-start;
  padding: 12px 0 16px;
}

.book-content-grid .vxe-toolbar > .vxe-buttons--wrapper {
  flex: 1 1 0;
  min-width: 0;
  align-items: flex-start;
  padding: 0;
}

.book-content-grid .vxe-toolbar .vxe-button--item-wrapper {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 16px;
  padding: 0;
}

.book-content-grid .vxe-button--item-wrapper > .font-bold {
  align-self: flex-start;
  justify-content: flex-start;
  line-height: 24px;
  white-space: nowrap;
}

.book-content-grid .book-toolbar-actions {
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.book-content-grid .book-toolbar-actions > .el-button {
  margin: 0;
}

.book-content-grid .book-selection-toolbar {
  box-sizing: border-box;
  min-width: 0;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--el-border-color-light, #e4e7ed);
  border-radius: 8px;
  background: var(--el-fill-color-light, #f5f7fa);
}

.book-content-grid .book-selection-title {
  flex: 0 0 auto;
}

.book-content-grid .book-selection-hint,
.book-content-grid .book-selection-count {
  min-width: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.book-content-grid .book-toolbar-actions > .el-tag {
  max-width: 100%;
  height: auto;
  line-height: 1.5;
  white-space: normal;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--el-text-color-secondary, #909399);
}

.book-content-grid .book-toolbar-actions > .el-tag .el-tag__content {
  white-space: normal;
}

.book-content-grid .vxe-toolbar > .vxe-tools--operate {
  align-self: flex-start;
  padding-block: 0;
  margin-top: 0;
}

@media (max-width: 767px) {
  .book-content-grid .book-selection-hint,
  .book-content-grid .book-selection-count {
    flex-basis: 100%;
  }

  .book-content-grid .book-toolbar-actions > .el-tag {
    flex-basis: 100%;
  }
}

.book-content-grid .book-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: 100%;
  padding: 4px 0;
  white-space: normal;
}

.book-content-grid .book-row-actions > .el-button {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.book-content-grid .vxe-header--column {
  border-inline-end: 1px solid var(--el-border-color, #dcdfe6);
}

.book-content-grid .vxe-header--row .vxe-header--column > .vxe-cell--col-resizable {
  z-index: 4;
  width: 14px;
  right: -7px;
  cursor: col-resize;
}

.book-content-grid .vxe-header--row .vxe-header--column:last-child > .vxe-cell--col-resizable {
  right: 0;
}

.book-content-grid .vxe-table--fixed-right-wrapper .vxe-header--row .vxe-header--column > .vxe-cell--col-resizable {
  left: -7px;
  right: auto;
}

.book-content-grid .vxe-header--row .vxe-header--column > .vxe-cell--col-resizable::before {
  content: '';
  display: block;
  position: absolute;
  top: 20%;
  left: 50%;
  width: 2px;
  height: 60%;
  background: var(--el-border-color-darker, #cdd0d6);
}

.book-content-grid .vxe-header--row .vxe-header--column > .vxe-cell--col-resizable:hover::before {
  background: var(--el-color-primary, #409eff);
}
