/* === SORTABLE TABLE (ref: Students sort demo) === */
.admin-table th.es-sort-th,
.es-sortable th.es-sort-th,
.es-ops-table th.es-sort-th,
.es-pd-table th.es-sort-th,
.ca-table th.es-sort-th {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
  color: rgba(148, 163, 184, 0.65);
}

.admin-table th.es-sort-th:hover,
.admin-table th.es-sort-th.active,
.es-sortable th.es-sort-th:hover,
.es-sortable th.es-sort-th.active,
.es-ops-table th.es-sort-th:hover,
.es-ops-table th.es-sort-th.active,
.es-pd-table th.es-sort-th:hover,
.es-pd-table th.es-sort-th.active,
.ca-table th.es-sort-th:hover,
.ca-table th.es-sort-th.active {
  color: #e2e8f0;
}

.admin-table th.es-sort-th .es-sort-ico,
.es-sortable th.es-sort-th .es-sort-ico,
.es-ops-table th.es-sort-th .es-sort-ico,
.es-pd-table th.es-sort-th .es-sort-ico,
.ca-table th.es-sort-th .es-sort-ico {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  vertical-align: middle;
}

.admin-table th.es-sort-th:hover .es-sort-ico,
.admin-table th.es-sort-th.active .es-sort-ico,
.es-sortable th.es-sort-th:hover .es-sort-ico,
.es-sortable th.es-sort-th.active .es-sort-ico,
.es-ops-table th.es-sort-th:hover .es-sort-ico,
.es-ops-table th.es-sort-th.active .es-sort-ico,
.es-pd-table th.es-sort-th:hover .es-sort-ico,
.es-pd-table th.es-sort-th.active .es-sort-ico,
.ca-table th.es-sort-th:hover .es-sort-ico,
.ca-table th.es-sort-th.active .es-sort-ico {
  opacity: 0.9;
}

.admin-table th.es-sort-th.active,
.es-sortable th.es-sort-th.active,
.es-ops-table th.es-sort-th.active,
.es-pd-table th.es-sort-th.active,
.ca-table th.es-sort-th.active {
  background: rgba(139, 92, 246, 0.12);
}

/* zebra like reference */
.admin-table tbody tr:nth-child(odd) td,
.es-sortable tbody tr:nth-child(odd) td {
  background: rgba(97, 102, 120, 0.06);
}

.admin-table tbody tr:hover td,
.es-sortable tbody tr:hover td {
  background: rgba(139, 92, 246, 0.08) !important;
}

/* card wrap optional */
.es-sort-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.es-sort-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff;
}

.es-sort-card-head h3,
.es-sort-card-head .es-sort-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.es-sort-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  background: rgba(30, 10, 60, 0.55);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.es-sort-card-body {
  padding: 0.35rem 0.5rem 0.75rem;
}
