/* Admin frame (owner-approved Oct 2026): name card, section tab row, ☰ count and the phone bar. app/layout.php admin_open() */

/* name card: name (opens your sign-in) · chat alerts · sign out */
.admin-body a.who-t { text-decoration: none; border-radius: 8px; }
.admin-body a.who-t:hover b { color: var(--brand-accent); }

/* the tab row of a menu item with parts (Inbox, Tradelines, Website, Settings) */
.adm-section { margin: -4px 0 18px; }
.adm-section .ui-tabs { margin-bottom: 0; }

/* ☰ button: count of everything waiting */
.admin-body .side-btn { position: relative; }
.side-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: var(--on-gold);
  font: 700 11px/19px var(--head); text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); }

/* phone bar: Today · Orders · Inbox · ID checks · Menu */
.phone-bar { display: none; }
@media (max-width: 900px) {
  .phone-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(58px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--brand-line); background: color-mix(in srgb, var(--brand-bg-2) 94%, transparent); backdrop-filter: blur(10px); }
  .pb-it { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
    border: 0; background: none; color: var(--brand-dim); font: 600 11px/1.2 var(--sans); text-decoration: none; cursor: pointer; padding: 6px 2px 4px; }
  .pb-it span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pb-it.on { color: var(--brand-accent); }
  .pb-it.on::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 2px; border-radius: 2px; background: var(--grad); }
  .pb-n { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--grad); color: var(--on-gold);
    font: 700 10px/17px var(--head); text-align: center; }
  .pb-n[hidden] { display: none; }
  /* room for the bar under the page, and keep chat pop-ups and messages above it */
  .admin-body .main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .admin-body .al-toasts, .admin-body .al-chat { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}
