/* Quotewright admin — account approval page.
   Builds on styles.css + dashboard.css tokens (Seam Studio: white/ink/Inter/lime). */

.ad-lede { margin: 8px 0 0; color: var(--soft); font-size: 14px; line-height: 1.6; max-width: 62ch; }
.ad-lede b { color: var(--ink); font-weight: 600; }

/* toolbar: counts + new-tenant */
.ad-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 14px; }
.ad-counts { display: flex; gap: 8px; flex-wrap: wrap; margin-right: auto; }
.ad-count { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); background: #fff; border: 1px solid var(--hair); border-radius: 100px; padding: 5px 12px; }
.ad-count b { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ad-count.ad-pending { border-color: var(--lime-border); background: var(--lime-dim); color: #4e6a10; }
.ad-count.ad-pending b { color: #3f560d; }

/* inline new-tenant creator */
.ad-newtenant { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow-md); }
.ad-newtenant-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ad-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.ad-field input { width: 100%; padding: 11px 13px; border: 1px solid var(--hair); border-radius: 11px; font: inherit; font-family: var(--font); background: var(--row); color: var(--ink); }
.ad-field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19,19,19,.07); }
.ad-hint { margin: 6px 0 0; font-size: 12px; color: var(--grey); line-height: 1.5; }
.ad-hint code { font-family: var(--mono); font-size: 11.5px; background: var(--row); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--hair); }
.ad-newtenant-acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.ad-newtenant .qc-error { text-align: right; }

/* accounts table */
.ad-tablewrap { margin-top: 2px; }
.ad-table { width: 100%; border-collapse: collapse; }
.ad-table thead th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); font-weight: 600; padding: 14px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.ad-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover { background: var(--row); }

.ad-acct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ad-email { font-weight: 600; font-size: 14px; color: var(--ink); word-break: break-word; }
.ad-created { font-family: var(--mono); font-size: 11px; color: var(--grey); }

.ad-table .qc-select { min-width: 150px; max-width: 220px; }
.ad-table .ad-role .qc-select, .ad-table select.ad-role { min-width: 108px; }

/* status pills */
.ad-pill { text-transform: capitalize; }
.ad-pill-active { background: var(--lime); color: #111; }
.ad-pill-pending { background: var(--lime-dim); color: #4e6a10; border: 1px solid var(--lime-border); }
.ad-pill-suspended { background: #f3ecec; color: #8a4b45; }

.ad-col-act { text-align: right; white-space: nowrap; }
.ad-acts { display: inline-flex; gap: 8px; justify-content: flex-end; }
.ad-acts .ad-save:disabled { opacity: .45; cursor: default; transform: none; }
.ad-activate { background: var(--lime) !important; color: #111 !important; border-color: var(--lime) !important; }
.ad-activate:hover { filter: brightness(1.04); }

/* empty / setup state */
.ad-empty-inner { max-width: 460px; margin: 0 auto; }
.ad-empty-inner h3 { font-family: var(--font); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.ad-empty-inner p { font-size: 14px; line-height: 1.6; color: var(--soft); margin: 0; }
.ad-empty-inner code { font-family: var(--mono); font-size: 12.5px; background: var(--row); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--hair); }

@media (max-width: 720px) {
  .ad-newtenant-fields { grid-template-columns: 1fr; }
  .ad-table thead { display: none; }
  .ad-table { min-width: 0; }
  .ad-table, .ad-table tbody, .ad-table tr, .ad-table td { display: block; width: 100%; }
  .ad-tablewrap { overflow: visible; }
  .ad-table .qc-select { min-width: 0; }
  .ad-table tbody tr { border: 1px solid var(--hair); border-radius: var(--r-md); margin-bottom: 12px; padding: 6px 4px; background: #fff; }
  .ad-table tbody tr:hover { background: #fff; }
  .ad-table tbody td { border-bottom: 0; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ad-table tbody td::before { content: attr(data-label); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
  .ad-table .qc-select { max-width: none; flex: 1; }
  .ad-col-act { text-align: left; }
  .ad-acts { width: 100%; justify-content: stretch; }
  .ad-acts .btn { flex: 1; }
}
