/* Ortak sayfalama — site, panel, admin (tek stil) */
.pk-pagination {
  width: 100%;
  margin-top: 1.25rem;
}

.card-footer > .pk-pagination,
.p-3.border-top > .pk-pagination {
  margin-top: 0;
}

.pk-pager {
  width: 100%;
}

.pk-pager__card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--pk-border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.pk-pager__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.pk-pager__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pk-primary-dark, #005a62);
  background: var(--pk-primary-soft, #ecf8f7);
  border: 1px solid rgba(0, 109, 119, 0.12);
  border-radius: 999px;
}

.pk-pager__badge i {
  font-size: 0.9375rem;
  opacity: 0.9;
}

.pk-pager__range,
.pk-pager__page-of {
  font-size: 0.8125rem;
  color: var(--pk-muted, #64748b);
}

.pk-pager__page-of {
  font-weight: 600;
  color: var(--pk-text, #1e2d3d);
}

.pk-pager__nav {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--pk-border, #e2e8f0);
  border-radius: 10px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pk-pager__arrow {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 2rem;
  padding: 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pk-primary, #006d77);
  text-decoration: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  cursor: pointer;
}

.pk-pager__arrow:hover:not(.is-disabled) {
  background: var(--pk-primary-soft, #ecf8f7);
  color: var(--pk-primary-dark, #005a62);
}

.pk-pager__arrow.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #94a3b8;
}

.pk-pager__arrow i {
  font-size: 1rem;
  line-height: 1;
}

.pk-pager__nums {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 0 0.15rem;
  margin: 0 0.1rem;
}

.pk-pager__num,
.pk-pager__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 7px;
  text-decoration: none;
  box-sizing: border-box;
}

.pk-pager__num {
  color: var(--pk-muted, #64748b);
  background: transparent;
  transition: background 0.12s ease, color 0.12s ease;
}

.pk-pager__num:hover {
  background: var(--pk-primary-soft, #ecf8f7);
  color: var(--pk-primary, #006d77);
}

.pk-pager__num.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--pk-primary, #006d77) 0%, var(--pk-primary-dark, #005a62) 100%);
  box-shadow: 0 2px 8px rgba(0, 109, 119, 0.25);
}

.pk-pager__dots {
  color: #94a3b8;
  min-width: 1.35rem;
  letter-spacing: 0.05em;
}

@media (max-width: 639.98px) {
  .pk-pager__card {
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
  }

  .pk-pager__meta {
    justify-content: center;
    text-align: center;
  }

  .pk-pager__nav {
    width: 100%;
    justify-content: center;
  }

  .pk-pager__arrow-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pk-pager__arrow {
    min-width: 2.25rem;
    padding: 0 0.45rem;
  }
}
