/* Admin bar (admins only; see includes/admin-nav.php). Plain CSS: Tailwind build is purged. */
.adm-bar { background: #fff; border-bottom: 1px solid #e5e7eb; font-family: Inter, system-ui, sans-serif; }
.adm-menu { display: flex; align-items: center; gap: .25rem; padding: .5rem 0 .25rem; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.adm-menu::-webkit-scrollbar { display: none; }
.adm-menu-group { flex: 0 0 auto; }
.adm-menu-link, .adm-menu-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .375rem; height: 34px; padding: 0 .75rem;
    border: 0; border-radius: 9999px; background: transparent; font: 500 .8125rem/1 Inter, system-ui, sans-serif; color: #374151;
    text-decoration: none; white-space: nowrap; cursor: pointer; }
.adm-menu-btn svg { width: 12px; height: 12px; opacity: .6; transition: transform .15s; }
.adm-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.adm-menu-link:hover, .adm-menu-btn:hover, .adm-menu-btn[aria-expanded="true"] { background: #f3f4f6; }
.adm-menu-link.is-active, .adm-menu-btn.is-active { background: #1e40af; color: #fff; }
.adm-menu-btn.is-active svg { opacity: .85; }
.adm-menu-logout { margin-left: auto; color: #6b7280; }
.adm-menu-link:focus-visible, .adm-menu-btn:focus-visible, .adm-menu-panel a:focus-visible, .adm-context a:focus-visible { outline: 2px solid #1e40af; outline-offset: 2px; }
.adm-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9999px; background: #dc2626; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1; }
.adm-menu-panel { position: fixed; z-index: 60; min-width: 220px; max-width: calc(100vw - 16px); padding: .375rem;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 10px 30px rgba(11,20,55,.14); }
.adm-menu-panel[hidden] { display: none; }
.adm-menu-panel a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 38px; padding: 0 .75rem;
    border-radius: 7px; font-size: .875rem; color: #111827; text-decoration: none; white-space: nowrap; }
.adm-menu-panel a:hover { background: #f3f4f6; }
.adm-menu-panel a[aria-current="page"] { background: #eff6ff; color: #1e40af; font-weight: 600; }

.adm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: .25rem 0 .625rem;
    font-size: .8125rem; line-height: 1.25rem; color: #6b7280; }
.adm-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.adm-crumbs li + li::before { content: "\203A"; margin: 0 .375rem 0 .125rem; color: #9ca3af; }
.adm-crumbs a { color: #1e40af; text-decoration: none; }
.adm-crumbs a:hover { text-decoration: underline; }
.adm-crumbs [aria-current="page"] span { color: #111827; font-weight: 600; }
.adm-context { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .875rem; padding: .25rem 0 .625rem; font-size: .8125rem; color: #6b7280; }
.adm-context a { color: #1e40af; font-weight: 600; text-decoration: none; }
.adm-context a:hover { text-decoration: underline; }
@media (max-width: 767px) {
    .adm-menu-link, .adm-menu-btn { height: 38px; padding: 0 .875rem; } /* tap height */
    .adm-menu-logout { margin-left: 0; }
}

html.dark .adm-bar { background: #111827; border-color: #374151; }
html.dark .adm-menu-link, html.dark .adm-menu-btn { color: #d1d5db; }
html.dark .adm-menu-link:hover, html.dark .adm-menu-btn:hover, html.dark .adm-menu-btn[aria-expanded="true"] { background: #1f2937; }
html.dark .adm-menu-link.is-active, html.dark .adm-menu-btn.is-active { background: #1e40af; color: #fff; }
html.dark .adm-menu-panel { background: #1f2937; border-color: #374151; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
html.dark .adm-menu-panel a { color: #f3f4f6; }
html.dark .adm-menu-panel a:hover { background: #374151; }
html.dark .adm-menu-panel a[aria-current="page"] { background: rgba(147,197,253,.12); color: #93c5fd; }
html.dark .adm-crumbs [aria-current="page"] span { color: #f9fafb; }
html.dark .adm-crumbs a, html.dark .adm-context a { color: #93c5fd; }
html.dark .adm-context { color: #9ca3af; }
