:host ::ng-deep p-accordion-header {
  --p-accordion-header-padding: 0.6rem 1rem;
}

:host ::ng-deep .p-togglebutton {
  --p-togglebutton-content-padding: 0.25rem 0.35rem;
}

:host ::ng-deep .cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper {
  width: calc(var(--sidebar-width, 225px) - 35px) !important;
  min-width: unset;
}

.book-filter-container {
  height: calc(100dvh - 6.1rem);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--card-background);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--p-content-border-color);
}

.filter-header {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--p-content-border-color);
}

.filter-title {
  font-weight: 600;
}

.filter-mode-select {
  font-size: 0.75rem;
}

:host ::ng-deep .filter-mode-select .p-togglebutton-label {
  font-size: 0.75rem;
}

.filter-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
  overscroll-behavior: contain;
}

.filter-type-label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}

.filter-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  max-width: 175px;
}

.active-filter-count {
  font-size: 0.875rem;
  color: var(--primary-color);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 0;
}

.filter-list {
  padding-right: 0.25rem;
}

.filter-row {
  cursor: pointer;
  transition: colors 200ms ease-in-out;
  height: 26px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 97%;

  &.active {
    color: var(--primary-color);
  }

  &.active-not {
    color: var(--p-red-400);
    text-decoration: line-through;
  }
}

.filter-value-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.filter-value-badge {
  flex-shrink: 0;
}

.truncation-notice {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.footer-notice {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-top: 0.5rem;
}
