/* Account & Admin — feature styles (acct-) layered on mds.css (issues #23-#26).
   The tab chassis reuses the core .mds-tabs/.mds-tab primitive verbatim (mds.css) and the
   per-row action buttons reuse the core .mds-icon-btn primitive. */

.acct-panel { display: grid; gap: var(--mds-space-4); margin-top: var(--mds-space-4); }
.acct-panel--hidden { display: none; }

/* Management panel (issue #24) */
.acct-mgmt__company { margin: 0; font-weight: 600; color: var(--mds-title); }
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--mds-space-3); }
.acct-stat { display: flex; flex-direction: column; align-items: center;
    padding: var(--mds-space-4); gap: var(--mds-space-1); }
.acct-stat__value { font-size: 28px; font-weight: 700; color: var(--mds-title); }
.acct-stat__label { font-size: var(--mds-text-sm); color: var(--mds-muted); }

.acct-mgmt__filter { display: flex; gap: var(--mds-space-3); align-items: center; flex-wrap: wrap; }
.acct-mgmt__search { flex: 1; min-width: 200px; border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius); padding: var(--mds-space-2) var(--mds-space-3);
    font: inherit; font-size: var(--mds-text-sm); }
.acct-mgmt__search:focus { outline: none; border-color: var(--mds-accent); }
.acct-mgmt__banner a { color: var(--mds-accent-ink); }

/* Entity accordion: the card head stays the mds card head; the toggle row sits below it. */
.acct-entity__toggle { display: flex; width: 100%; align-items: center; gap: var(--mds-space-3);
    background: none; border: 0; font: inherit; cursor: pointer;
    padding: var(--mds-space-2) 0; color: var(--mds-muted); }
.acct-entity__meta { font-size: var(--mds-text-sm); }
.acct-entity__chevron { margin-left: auto; font-size: var(--mds-text-xs); }

.acct-users__row--inactive td { color: var(--mds-muted); }
.acct-users__actions { text-align: right; width: 56px; }
.acct-users__devices td { background: var(--mds-tint); }
.acct-badge--active { background: var(--mds-tint); color: var(--mds-accent-ink); }
.acct-badge--inactive { background: var(--mds-line); color: var(--mds-muted); }

/* Per-user action menu — the mds-acct__menu idea, anchored to the row. */
.acct-menu { position: relative; display: inline-block; }
.acct-menu__list { display: none; position: absolute; right: 0; top: calc(100% + 4px);
    min-width: 190px; background: var(--mds-surface); border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius-lg); box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    padding: var(--mds-space-1) 0; z-index: var(--mds-z-menu); text-align: left; }
.acct-menu.is-open .acct-menu__list { display: block; }
.acct-menu__item { display: block; width: 100%; text-align: left; background: none; border: 0;
    font-family: inherit; font-size: var(--mds-text-sm); color: var(--mds-text); cursor: pointer;
    padding: var(--mds-space-2) var(--mds-space-3); white-space: nowrap; }
.acct-menu__item:hover { background: var(--mds-raised); color: var(--mds-text); }

/* Invitations (issue #26) */
.acct-mgmt__actionbar { display: flex; gap: var(--mds-space-2); align-items: center;
    margin-top: var(--mds-space-2); }
.acct-invite { display: flex; gap: var(--mds-space-2); align-items: center;
    padding: var(--mds-space-2) 0; }
.acct-invite .acct-mgmt__search { max-width: 340px; }

/* Public-API client self-service */
.acct-api__switch p { display: flex; gap: var(--mds-space-3); align-items: center; }
.acct-api__create { display: flex; gap: var(--mds-space-2); align-items: center;
    margin-top: var(--mds-space-3); }
.acct-api__create .acct-mgmt__search { max-width: 340px; }

/* Superadmin panel (issue #25) */
.acct-search { display: flex; align-items: center; gap: var(--mds-space-3); }
.acct-search__hint { color: var(--mds-muted); font-size: var(--mds-text-sm); flex: none; }

/* My Devices table */
.acct-devices__type { width: 32px; color: var(--mds-muted); }
.acct-devices__actions { text-align: right; width: 72px; }
.acct-devices__input { border: 1px solid var(--mds-accent); border-radius: var(--mds-radius);
    padding: var(--mds-space-1) var(--mds-space-2); font: inherit; font-size: var(--mds-text-sm); }
.acct-devices__save { margin: 0 var(--mds-space-1); }
.acct-devices__danger { border-color: var(--mds-danger); color: var(--mds-danger); }
.acct-devices td .mds-icon-btn { margin-left: var(--mds-space-2); }
