/* KAST Admin pages on the approved app shell (kast#51 7030206297 item 3): Accounts and Usage.
   The frame is the Team page's (pharmacy/shell/styles.css + team.css). This file only
   - maps the content tokens of accounts.css and usage.css onto the shell's tokens, so the content keeps its rules
     and takes the shell's colours and fonts (no colour is defined here);
   - draws the intro line, the account toolbar and the page-info toggle in the shell;
   - keeps one page with no scrolling from 1024 x 560 (kast#51 6897794482 item 2): the open tab's panel scrolls inside
     itself and its heading stays in view. Below that size the page scrolls normally.
   Presentation only: no data, role or Card rule here. */
body.admin-page {
  --paper: var(--surface-2); --sheet: var(--surface); --ink: var(--text); --muted: var(--text-muted); --soft: var(--text-dim);
  --line: var(--border); --accent: var(--orange); --accent-deep: var(--orange-deep); --tint: var(--surface-tint);
  --sans: var(--font-sans); --mono: var(--font-mono);
}
.admin-page .account-toggle { text-decoration: none; }
.admin-page .top { min-height: 0; padding: 24px 0 16px; }
.admin-intro { margin: 0 0 8px; max-width: 80ch; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.admin-page .page-info { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }
.admin-page .page-info summary { cursor: pointer; width: max-content; max-width: 100%; min-height: 32px; display: flex; align-items: center; font: 500 12px/1.4 var(--font-mono); color: var(--text-muted); }
.admin-page .page-info p { margin: 4px 0 0; max-width: 110ch; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--border-soft); font: 400 12px/1.4 var(--font-mono); color: var(--text-muted); }
.admin-toolbar #account { min-width: 0; overflow-wrap: anywhere; }
.admin-page #notice { margin: 0 0 8px; font: 400 12px/1.5 var(--font-mono); color: var(--orange-deep); overflow-wrap: anywhere; }
.admin-page #notice:empty { display: none; }
/* The panels: white cards of the shell. accounts.css draws their content. */
.admin-page .admin-section { margin: 8px 0 0; padding: 20px 22px; border-top: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card), var(--ring); }
.admin-page .admin-section[hidden] { display: none; }
.admin-page .admin-card { background: var(--surface-2); border-color: var(--border-soft); border-radius: var(--r-tile); }
.admin-page .usage-table-wrap { background: var(--surface); }
/* The shell draws every input as a 48 px pill; a role tick stays a tick. */
.admin-page input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0; box-shadow: none; border-radius: 4px; }
.admin-page .admin-card-actions button, .admin-page .admin-form button { min-height: 40px; padding: 0 18px; font-size: 14px; }

@media (max-width: 820px) {
  .admin-page .top { padding: 16px 0 10px; }
  .admin-page .admin-section { padding: 16px 14px; }
  .admin-page .page-info summary, .admin-page .admin-legend summary { min-height: 44px; }
  .admin-page .tab { min-height: 44px; }
}

@media (min-width: 1024px) and (min-height: 560px) {
  .admin-page .shell > .care-main { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 16px; }
  .admin-page .care-main > * { flex: none; }
  .admin-page .top { padding: 12px 0 10px; }
  .admin-page .top h1 { font-size: 34px; }
  .admin-page .admin-panels:not([hidden]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .admin-page .admin-panels > .admin-section:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-top: 0; }
  .admin-page .admin-panels .admin-section-head { position: sticky; top: 0; z-index: 2; margin: 0 0 12px; padding: 16px 0 10px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
  .admin-page .usage-charts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .admin-page .top h1 { font-size: 30px; }
  .admin-intro { font-size: 14px; margin-bottom: 4px; }
  .admin-page .page-info { margin-bottom: 4px; }
  .admin-toolbar { padding: 6px 0; }
}
