.cs-table .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cs-table table {
  width: 100%;
  border-collapse: collapse;
}

.cs-table th,
.cs-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.cs-table th {
  cursor: pointer;
}

.cs-table th.asc::after { content: " ▲"; }
.cs-table th.desc::after { content: " ▼"; }

.btn-primary {
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

tr[data-href] {
  cursor: pointer;
}

tr[data-href]:hover {
  background: #f5f7fa;
}

.cube-advanced-filters {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.cube-advanced-filters__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.cube-advanced-filters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.cube-advanced-filters__field {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #111827;
}

.cube-advanced-filters__field input {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
}

.cube-advanced-filters__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cube-filter-reset {
  padding: 8px 14px;
  background: #eef2f7;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
}

.cube-pagination a {
  margin: 0 5px;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  color: #dc2626;
  border: 1px solid #dc2626;
  background: #fff;
  transition: all 0.2s;
}

.cube-pagination a:hover {
  background: #f3f4f6;
}

.cube-pagination a.active {
  background: #dc2626 !important;
  color: #fff !important;
  cursor: default;
  border-color: #dc2626 !important;
}

.cube-pagination a.active:hover {
  background: #b91c1c !important;
}

/* Override any theme CSS that might target data-page="1" */
.cube-pagination a[data-page="1"]:not(.active) {
  background: #fff !important;
  color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.nested-entry-view-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.nested-entry-view-table th,
.nested-entry-view-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  vertical-align: top;
}

.nested-entry-view-table thead th {
  background: #f3f4f6;
  font-weight: 600;
}

.nested-entry-view-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.cube-file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cube-file-name {
  font-weight: 600;
  color: #111827;
}
  
