/* PrimeSign admin console. Builds on /shared/base.css. */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
#create-form { max-width: 560px; }
.admin-grid > * { min-width: 0; }
.firms-table td.act { text-align: right; white-space: nowrap; }
.firms-table .owners { display: grid; gap: 2px; font-size: 13px; overflow-wrap: anywhere; min-width: 140px; }
.firms-table td:first-child { min-width: 180px; }
.counts { font-variant-numeric: tabular-nums; white-space: nowrap; }
.counts small { display: block; color: var(--muted); font-size: 12px; }
.audit-table td { font-size: 13px; }
.audit-table code { font-size: 12px; background: var(--paper); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.summary-strip .stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; min-width: 130px; }
.summary-strip .stat strong { display: block; font-size: 22px; color: var(--navy); }
.summary-strip .stat span { font-size: 12px; color: var(--muted); }
.load-more { margin-top: 14px; }
.forbidden { max-width: 560px; margin: 40px auto; }

@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .firms-table thead, .audit-table thead { display: none; }
  .firms-table, .firms-table tbody, .audit-table, .audit-table tbody { display: block; }
  .firms-table tr, .audit-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 16px; border-bottom: 1px solid #eef2f8; }
  .firms-table td, .audit-table td { display: block; padding: 0; border: 0; }
  .firms-table td:first-child, .audit-table td:first-child { grid-column: 1 / -1; }
  .firms-table td.act { grid-column: 1 / -1; text-align: left; white-space: normal; }
  .firms-table td.act .btn-group { justify-content: flex-start; }
}
