.grid-pagination-container {
  position: relative;
  bottom: 0;
  width: 100%;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 20px;
  z-index: 1000;
}

.grid-pagination-container-latest {
  position: sticky;
  bottom: 40px;
  width: 100%;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 5px;
  overflow: auto;
  box-shadow: none;
}
.grid-pagination-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  align-items: center;
}

/* Items per page section */
.grid-items-section {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.grid-items-section .page-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 5px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.grid-items-section .page-dropdown-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.grid-items-section .page-dropdown-icon {
  transition: transform 0.2s;
  width: 14px;
  height: 14px;
}

.grid-items-section .page-dropdown-icon.open {
  transform: rotate(180deg);
}

.grid-items-section .page-dropdown {
  position: relative;
}

.pagination-dropdown-menu {
  /* position: absolute; */
  display: block;
  /* bottom: 100%; */
  /* left: 0; */
  padding: 0.2rem;
  /* margin-bottom: 4px; */
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  /* min-width: 100%; */
  z-index: 100;
}

.pagination-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.375rem 0.5rem;
  margin-bottom: 0.2rem;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  border-radius: 4px;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  font-weight: 500;
}

.pagination-dropdown-item:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.pagination-dropdown-item.active {
  background-color: #e5e7eb;
  color: #111827;
  font-weight: 600;
}

.grid-items-section .items-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Navigation section */
.grid-nav-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #374151;
}

.grid-nav-section .nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  color: #6b7280;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.grid-nav-section .nav-btn:hover {
  background: #535f6b96;
  color: rgb(241, 241, 243);
}

.grid-nav-section .nav-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

.grid-nav-section .nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.grid-pages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
}

.grid-pages .page-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.grid-nav-section .nav-btn svg {
  height: 1.375rem;
  width: 1.375rem;
}

.grid-pages .page-btn:hover {
  background: #f9fafb;
  border-color: #d2d2d3b0;
}

.grid-pages .page-btn.active {
  background: #0300ae;
  color: #ffffff;
  border-color: #0300ae;
}
.grid-pages .page-btn.active:hover {
  background: #0300aed4;
  border-color: #0300aed4;
}

.grid-pages .ellipsis {
  padding: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.grid-info-section {
  display: flex;
  font-weight: 500;
  justify-content: flex-start;
  font-size: 0.875rem;
  color: #374151;
}

.grid-info-section .grid-info-section-label {
  font-weight: 600;
  color: #111827;
}
