/* Accounts: one compact ledger, secondary facts in an on-demand inspector. */
.sidebar nav button{display:flex;align-items:center;gap:12px;min-height:44px}
.sidebar nav .nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;color:inherit}
.sidebar nav .nav-icon svg{display:block;width:20px;height:20px;stroke-width:1.7}
/* Keep every key field in the ledger; narrow screens scroll inside the table. */
.admin-accounts .admin-support-heading h1{margin-bottom:14px}
.admin-accounts .admin-support-filters{margin-bottom:12px}
.admin-accounts .accounts-table-scroll{max-height:max(240px,calc(100dvh - 245px));overflow:auto;overscroll-behavior:contain;border-top:1px solid #dce3de;scrollbar-width:thin}
.admin-support .admin-support-table.admin-accounts-table{width:100%;min-width:820px;table-layout:fixed;font-size:12px;line-height:18px}
.admin-support .admin-accounts-table th,.admin-support .admin-accounts-table td{box-sizing:border-box;padding:2px 10px;height:34px;vertical-align:middle;white-space:nowrap}
.admin-support .admin-accounts-table th{position:sticky;top:0;z-index:1;background:#f6f8f6;color:#596b60;font-size:11px;font-weight:600}
.admin-support .admin-accounts-table .admin-account-id{width:52px;color:#7c8981;font-variant-numeric:tabular-nums}
.admin-support .admin-accounts-table .account-plan{width:125px}
.admin-support .admin-accounts-table .account-validity{width:115px;font-variant-numeric:tabular-nums;color:#526459}
.admin-support .admin-accounts-table .account-activity{width:172px;font-variant-numeric:tabular-nums;color:#526459}
.admin-support .admin-accounts-table .account-mobile{width:110px}
.admin-support .admin-accounts-table .account-actions{width:40px;padding:2px 6px;text-align:right}
.admin-support .admin-accounts-table .admin-account-link{display:block;max-width:100%;padding:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:inherit;font-weight:500;color:#244b36;line-height:24px}
.admin-support .admin-accounts-table .account-mobile .admin-account-link{font-weight:400;font-variant-numeric:tabular-nums}
.admin-support .admin-accounts-table .account-plan-label{font-size:12px;color:#718078}
.admin-support .admin-accounts-table .account-plan-label.has-access{color:#27714c;font-weight:500}
.admin-support .admin-accounts-table tbody tr{transition:background-color .12s ease}
.admin-support .admin-accounts-table tbody tr:nth-child(even){background:#fafcfb}
.admin-support .admin-accounts-table tbody tr:hover,.admin-support .admin-accounts-table tbody tr:focus-within{background:#eef5f0}
.admin-support .admin-accounts-table button:focus-visible,.admin-account-details button:focus-visible{outline:2px solid #35825b;outline-offset:3px}
.admin-account-details{box-sizing:border-box;width:min(480px,100vw);height:100dvh;max-height:100dvh;max-width:100vw;inset:0;margin:0 0 0 auto;padding:24px;background:#fff;color:#20392b;border:0;border-left:1px solid #dce5df;border-radius:0;overflow:auto;animation:account-inspector-in .16s ease-out}
.admin-account-details::backdrop{background:rgb(13 30 21 / .3)}
.admin-account-details>header{position:static;height:auto;min-height:0;width:auto;margin:0;border:0;box-shadow:none;background:transparent;display:flex;align-items:flex-start;gap:12px;padding-bottom:20px}
.admin-account-details>header>div{display:block;flex:1;min-width:0}
.account-detail-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;color:#7b8980}
.admin-account-details h2{font-size:20px;line-height:1.35;margin:8px 0 0;overflow-wrap:anywhere;letter-spacing:-.4px}
.admin-account-details header p{font-size:13px;color:#718078;margin:6px 0 0}
.admin-account-details section{border-top:1px solid #e4eae6;padding:20px 0}
.admin-account-details h3{font-size:12px;font-weight:700;margin:0 0 16px}
.admin-account-details dl{display:grid;gap:14px;margin:0}
.admin-account-details dl>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:16px;font-size:12px;line-height:1.5}
.admin-account-details dt{color:#748279}
.admin-account-details dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.account-detail-hint{font-size:11px;line-height:1.5;color:#7b8980;margin:16px 0 0}
.account-detail-link{display:inline-flex;align-items:center;gap:8px;margin-top:16px;border:0;padding:0;background:none;color:#286340;font:inherit;font-size:12px;font-weight:600}
.admin-account-details footer{display:grid;gap:8px;padding-top:20px;border-top:1px solid #e4eae6}
.admin-account-details footer button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #d8e2db;border-radius:8px;background:#fff;color:#284d37;font:inherit;font-size:12px;font-weight:600}
.admin-account-details footer .primary{background:#244f38;color:#fff;border-color:#244f38}
@keyframes account-inspector-in{from{transform:translateX(16px);opacity:.5}to{transform:none;opacity:1}}
@media(max-width:600px){
 .admin-support .admin-accounts-table th,.admin-support .admin-accounts-table td{height:44px}
 .admin-support .admin-accounts-table .account-actions{width:52px;padding:0 4px}
 .admin-support .admin-accounts-table .account-actions button{width:44px;height:44px}
 .admin-account-details{padding:20px}
 .admin-account-details dl>div{grid-template-columns:120px minmax(0,1fr);gap:12px}
}
@media(prefers-reduced-motion:reduce){.admin-account-details{animation:none}.admin-support .admin-accounts-table tbody tr{transition:none}}

.admin-support .admin-accounts-table .account-actions button:focus-visible{outline-offset:-3px}

.admin-support .admin-accounts-table .account-sort{display:flex;align-items:center;gap:5px;width:100%;min-height:28px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;text-align:left;white-space:nowrap;cursor:pointer}
.admin-support .admin-accounts-table .account-sort-arrow{font-size:12px;font-weight:400;color:#8a988f;flex:none}
.admin-support .admin-accounts-table th[aria-sort=ascending],.admin-support .admin-accounts-table th[aria-sort=descending]{color:#244f38}
.admin-support .admin-accounts-table th[aria-sort=ascending] .account-sort-arrow,.admin-support .admin-accounts-table th[aria-sort=descending] .account-sort-arrow{color:#244f38;font-weight:700}
@media(max-width:600px){.admin-support .admin-accounts-table .account-sort{min-height:40px}}
