.page-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.resellers-head { flex-wrap: wrap; gap: 12px; }
.toolbar { display: grid; grid-template-columns: 220px auto; align-items: center; gap: 8px; }
.search-sm { height: var(--btn-h); font-size: 13px; background: var(--bg-canvas); }
.btn-cta { width: auto; min-width: 116px; padding-inline: 14px; }
.table-section { display: grid; gap: 12px; }

.list-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 13px;
}

.data-table thead th {
  height: 40px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
  text-align: start;
}

.data-table tbody tr {
  height: var(--row-h);
  background: var(--bg-canvas);
  transition: background-color var(--dur-fast) var(--ease-pro);
}

.data-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border-card); }
.data-table tbody tr:hover { background: var(--bg-surface); }
.data-table tbody tr:hover .btn-ghost { background: var(--bg-canvas); }
.data-table tbody tr:hover .btn-ghost:hover { background: var(--bg-hover); }

.data-table tbody td {
  padding: 8px 16px;
  vertical-align: middle;
  white-space: nowrap;
  text-align: start;
  color: var(--text-primary);
}

.data-table thead th:last-child,
.data-table tbody td:last-child { text-align: end; width: 1%; }

.cell-strong { font-weight: 600; }
.data-table .btn-fixed-sm { min-width: var(--btn-sm-w); width: auto; padding-inline: 14px; }

.audit-head,
.audit-row {
  --audit-cols: minmax(150px, 1.15fr) minmax(160px, 1.45fr) minmax(140px, 1fr) 132px;
  display: grid;
  grid-template-columns: var(--audit-cols);
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-radius: 0;
}

.audit-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  padding-block: 8px;
}

.audit-action,
.audit-target,
.audit-actor { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-target { font-size: 13px; color: var(--text-secondary); }
.audit-col-end { text-align: end; justify-self: end; }

@media (max-width: 768px) {
  .search-sm { height: var(--btn-h-mobile); }
  .list-box .flat-list-row { padding: 12px 14px; }
  .data-table .btn-fixed-sm { height: 36px; }
  .audit-head { display: none; }
  .audit-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; }
  .audit-action { grid-column: 1; grid-row: 1; }
  .audit-col-end { grid-column: 2; grid-row: 1; }
  .audit-target { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
  .audit-actor { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 640px) {
  .resellers-head { flex-direction: column; align-items: stretch; }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
}
