.toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 12px;
}

.toolbar-primary,
.toolbar-query {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-primary {
  flex: 0 0 auto;
}

.toolbar-query {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}

.filters {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.toolbar-query .btn {
  flex: 0 0 auto;
}

.toolbar .filters input {
  width: 180px;
}

.toolbar .filters select {
  width: 112px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.table-actions {
  white-space: normal;
}

.table-actions .btn {
  margin-right: 6px;
  margin-bottom: 6px;
}

th {
  background: #f5f9fd;
  color: #475569;
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.pager-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  justify-content: center;
}

.pager-total,
.pager-page {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475569;
}

.pager-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.pager-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.pager-btn {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
}

.pager-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.pager-btn-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.pager-btn-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.pager-number,
.pager-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
}

.pager-number {
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
}

.pager-number.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.pager-gap {
  color: var(--muted);
}

@media (max-width: 680px) {
  .pager-summary {
    flex-wrap: wrap;
  }

  .pager-actions {
    flex-wrap: wrap;
  }
}
