.lml-pagination {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 35, 65, .12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 35, 65, .07);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 24px auto 0;
  padding: 12px 14px;
  width: 100%;
}

.lml-pagination-status {
  color: #52637a;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}

.lml-pagination-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.lml-pagination-ellipsis {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 28px;
}

.lml-pagination a,
.lml-pagination .lml-pagination-direction {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  color: #17385e;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px 12px;
  text-decoration: none;
}

.lml-pagination a:hover {
  background: #eef5ff;
  border-color: #6f98c7;
}

.lml-pagination a.active,
.lml-pagination a[aria-current="page"] {
  background: #1263b5;
  border-color: #1263b5;
  box-shadow: 0 6px 14px rgba(18, 99, 181, .22);
  color: #fff;
}

.lml-pagination .is-disabled {
  background: #f4f6f8;
  border-color: #e0e5eb;
  color: #9aa5b2;
  cursor: not-allowed;
}

/* Keep legacy admin pagers readable while pages migrate to the shared component. */
.lml-admin-ui .pagination,
.lml-admin-ui .knowledge-pagination,
.lml-admin-ui .pagination-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin: 24px 0 0;
}

.lml-admin-ui .pagination > a,
.lml-admin-ui .knowledge-pagination > a,
.lml-admin-ui .pagination-bar > a,
.lml-admin-ui .pagination-bar > span {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  color: #17385e;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px 12px;
  text-decoration: none;
}

.lml-admin-ui .pagination > a.active,
.lml-admin-ui .knowledge-pagination > a.active {
  background: #1263b5;
  border-color: #1263b5;
  box-shadow: 0 6px 14px rgba(18, 99, 181, .22);
  color: #fff;
}

@media (max-width: 680px) {
  .lml-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .lml-pagination-status {
    text-align: center;
  }

  .lml-pagination-controls {
    width: 100%;
  }

  .lml-pagination .lml-pagination-direction {
    flex: 1 1 auto;
  }
}
