ul { 
  padding: 5px;
  margin: 0px;
}

.collection-table-wrapper table li {
  margin-left: 10px !important;
}

.collection-table-wrapper table ul li {
  margin-left: 10px !important;
}

.collection-controls {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.filter-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-controls label {
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.95rem;
}

.filter-input:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-color: #0066cc;
}

.clear-filter {
  padding: 0.5rem 1rem;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.clear-filter:hover {
  background-color: #5a6268;
}

.clear-filter:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.sort-info {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
  min-height: 1.2rem;
}

.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.5rem !important;
}

.sortable:hover {
  background-color: #e9ecef !important;
}

.sortable:focus {
  outline: 2px solid #0066cc;
  outline-offset: -2px;
}

.sort-indicator {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
}

.sort-indicator::before {
  content: '⇅';
  color: #6c757d;
}

th[aria-sort="ascending"] .sort-indicator::before {
  content: '↑';
  color: #0066cc;
}

th[aria-sort="descending"] .sort-indicator::before {
  content: '↓';
  color: #0066cc;
}

tr.filtered-out {
  display: none;
}

small.not-displayed {
  display:none;
}

.collection-table-wrapper {
  display: block !important;
  width: 100% !important;
  max-width: 90vw !important;
  max-height: 80vh !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;

  overscroll-behavior-x: contain !important;
  overscroll-behavior-y: contain !important;
  scrollbar-gutter: stable both-edges !important;

  -webkit-overflow-scrolling: touch !important;
}

.collection-table-wrapper:focus,
.collection-table-wrapper:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

html.kbd-nav .collection-table-wrapper:focus {
  outline: 2px solid rgba(0, 0, 0, 0.22) !important;
  outline-offset: 2px !important;
  border-radius: 6px !important;
}

.collection-table-wrapper.is-dragging {
  cursor: grabbing !important;
  user-select: none !important;
}

.collection-table-wrapper table {
  font-size: 16px !important;
  width: 100% !important;
  min-width: 850px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.collection-table-wrapper th {
  position: sticky !important;
  top: 0 !important;
  background: #f5f5f5 !important;
  white-space: nowrap !important;
  padding: 8px !important;
  z-index: 5 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.collection-table-wrapper td {
  white-space: nowrap !important;
  padding: 8px !important;
  vertical-align: top !important;
}

.collection-table-wrapper td:last-child {
  white-space: normal !important;
}

.collection-table-wrapper th:nth-child(1),
.collection-table-wrapper td:nth-child(1) {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.collection-table-wrapper th:nth-child(2),
.collection-table-wrapper td:nth-child(2) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.collection-table-wrapper th:nth-child(3),
.collection-table-wrapper td:nth-child(3) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.collection-table-wrapper th:nth-child(4),
.collection-table-wrapper td:nth-child(4) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.collection-table-wrapper th:nth-child(5),
.collection-table-wrapper td:nth-child(5) {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

@media screen and (max-width: 839px) {
  .collection-table-wrapper {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    margin: 1em 0 !important;
  }
}

@media screen and (min-width: 840px) {
  .collection-table-wrapper {
    max-width: 70vw !important;
    width: auto !important;
  }
}

.collection-table-wrapper::-webkit-scrollbar:vertical {
  width: 2px;
  background: transparent;
}
