/* AuthKit account/admin shell (templates/layout/account.php, admin.php).
 * Built entirely on the same --authkit-* CSS vars as authkit-login.css —
 * set inline per-request from LogisticsLogic.Auth.branding config, never hardcoded here.
 * Host applications can override the vars via LogisticsLogic.Auth.branding.stylesheet. */

.authkit-shell-layout {
  min-height: 100%;
  margin: 0;
  background: var(--authkit-page, #f3f4f6);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.authkit-shell-layout *,
.authkit-shell-layout *::before,
.authkit-shell-layout *::after { box-sizing: border-box; }

.authkit-shell-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .75rem 1rem;
}

.authkit-shell-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 64rem;
  margin: 0 auto;
}

.authkit-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.authkit-shell-logo { display: block; max-width: 7rem; max-height: 1.75rem; object-fit: contain; }

.authkit-shell-bar-actions {
  display: flex;
  align-items: center;
  gap: .5rem 1rem;
  flex-wrap: wrap;
}

.authkit-shell-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #475467;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.authkit-shell-link:hover { color: var(--authkit-primary, #2563eb); }
.authkit-shell-signout:hover { color: var(--authkit-danger, #b91c1c); }

.authkit-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  max-width: 64rem;
  margin: .6rem auto 0;
}

.authkit-shell-nav-link {
  padding: .4rem .1rem;
  color: #475467;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.authkit-shell-nav-link:hover { color: var(--authkit-primary, #2563eb); }
.authkit-shell-nav-link.is-active {
  color: var(--authkit-primary, #2563eb);
  border-bottom-color: var(--authkit-primary, #2563eb);
}

.authkit-shell-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Mobile-first: collapse the bar into a stacked layout at 390px-class
 * widths instead of letting actions/nav overflow into horizontal scroll. */
@media (max-width: 575.98px) {
  .authkit-shell-bar-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .authkit-shell-bar-actions { width: 100%; justify-content: space-between; }
  .authkit-shell-nav { gap: .35rem .85rem; }
  .authkit-shell-content { padding: 1rem .85rem 2rem; }
}
