﻿/* reusable admin tables */

.admin-table-wrap {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.admin-table th {
  background: #f8f3ea;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--text2);
}

.admin-table tr:hover td {
  background: #fffcf7;
}

.admin-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border2);
  background: #fff;
}

.admin-pill.blocked,
.admin-pill.rejected,
.admin-pill.limited {
  color: #8f0f18;
  border-color: rgba(143, 15, 24, 0.35);
  background: #fff1f2;
}

.admin-pill.active,
.admin-pill.approved {
  color: #19663e;
  border-color: rgba(25, 102, 62, 0.35);
  background: #eefaf2;
}

.admin-action-btn {
  border: 1px solid var(--border2);
  background: #fff;
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12px;
  cursor: pointer;
}

.admin-action-btn:hover {
  background: var(--bg3);
}

.spm-table-wrap {
  background:var(--spm-paper); border:1px solid var(--spm-line); border-radius:24px;
  box-shadow:var(--spm-shadow); overflow:hidden;
}
.spm-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}
.spm-table thead tr { background:#111; border-bottom:0; }
.spm-table th {
  color:rgba(255,255,255,.62); font-size:11px; font-weight:900; text-transform:uppercase;
  letter-spacing:.08em; padding:14px 16px;
}
.spm-table td { padding:15px 16px; border-bottom:1px solid var(--spm-line); }
.spm-table tbody tr:hover { background:rgba(184,15,24,.035); }
.spm-check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid var(--spm-line2);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  position: relative;
}
.spm-table .spm-col-check .spm-check,
.spm-table td .spm-check {
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  max-height: 17px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  vertical-align: middle !important;
  flex: 0 0 17px !important;
}

.spm-check:checked {
  background: var(--spm-red);
  border-color: var(--spm-red);
}

.spm-check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease;
}

.spm-check:checked::after {
  transform: rotate(-45deg) scale(1);
}
