

/* -- TABLE -- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 13.8px;
  color: var(--ink-2);
  max-width: 220px;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--surface-2);
}

td.nowrap {
  white-space: nowrap;
}

pre {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.paid {
  background: var(--green-soft);
  color: var(--green);
}

.badge.unpaid {
  background: var(--red-soft);
  color: var(--red);
}

.badge.under_verification {
  background: #fff3bf;
  color: #8a5a00;
}

.badge.neutral {
  background: var(--brand-soft);
  color: var(--brand);
}

.badge.tier {
  background: var(--amber-soft);
  color: var(--amber);
}

.danger-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--red);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.danger-link:hover {
  background: var(--red-soft);
  border-color: rgba(211, 72, 72, .35);
}

/* -- ADMIN FILTER BAR -- */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 13px;
  align-items: end;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.filter-bar label {
  font-size: 12px;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 12px;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.result-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.result-summary .dot-paid,
.result-summary .dot-unpaid,
.result-summary .dot-verification {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.result-summary .dot-paid::before,
.result-summary .dot-unpaid::before,
.result-summary .dot-verification::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.result-summary .dot-paid::before {
  background: var(--green);
}

.result-summary .dot-unpaid::before {
  background: var(--red);
}

.result-summary .dot-verification::before {
  background: #d6a300;
}

/* unpaid rows highlighted red */
tr.row-unpaid td {
  background: rgba(232, 56, 79, 0.06);
}

tr.row-unpaid:hover td {
  background: rgba(232, 56, 79, 0.12);
}

tr.row-unpaid td:first-child {
  box-shadow: inset 3px 0 0 var(--red);
}

tr.row-paid td:first-child {
  box-shadow: inset 3px 0 0 var(--green);
}

tr.row-under_verification td {
  background: #fff9d9;
}

tr.row-under_verification td:first-child {
  box-shadow: inset 3px 0 0 #d6a300;
}

.status-form {
  display: grid;
  gap: 7px;
  min-width: 128px;
}

.status-form select {
  padding: 7px 10px;
  font-size: 13px;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}

.link-out:hover {
  text-decoration: underline;
}