/* Deploy-server admin — APP-SPECIFIC styles only. Everything the kit owns
   (brand tokens, panel width, confirm toast, children widget, linked-filter
   box, form-page cards, status pills, login card) is in css/kit.css, synced
   from the gateway by awaresmith-infra/kit-sync.sh — never edit that copy.
   This file: the header bar and the mn-* nav pattern shared with the
   gateway's module bar (_ModuleBarPartial.cshtml — keep in sync). */

/* ---- legacy page affordances (Phase-1 pages still server-rendered) ------- */
.status.Accepted { background: #ffe0b2; }

/* ---- header ---------------------------------------------------------------- */
.as-header { background: #263238; }
.as-header .navbar-brand { font-weight: 700; color: #fff; }
.as-header a { color: #fff; text-decoration: none; }

/* ---- mn-* nav: native <details> menus, unlimited nesting, no menu library.
   Copied from the gateway's _ModuleBarPartial so both consoles share one
   visual language. Change there first, then re-sync here. ------------------- */
.module-nav summary { cursor: pointer; list-style: none; user-select: none; }
.module-nav summary::-webkit-details-marker { display: none; }
.module-nav details { position: relative; }
.mn-master > summary { white-space: nowrap; padding: .35rem .7rem; border-radius: .375rem; }
.mn-master > summary:hover { background: rgba(0,0,0,.06); }
.mn-master[open] > summary { background: rgba(0,0,0,.08); }
.mn-panel {
    position: absolute; z-index: 1050; min-width: 15rem;
    background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
    border-radius: .5rem; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    padding: .35rem; margin-top: .25rem;
}
.mn-minor > .mn-panel, .mn-module > .mn-panel { top: 0; left: 100%; margin: 0 0 0 .2rem; }
.mn-minor > summary, .mn-module > summary, .mn-leaf {
    display: block; padding: .3rem .6rem; border-radius: .3rem;
    color: var(--bs-body-color); text-decoration: none; white-space: nowrap;
}
.mn-minor > summary { font-weight: 600; }
.mn-minor > summary::after, .mn-module > summary::after { content: " ›"; float: right; opacity: .5; }
.mn-minor > summary:hover, .mn-module > summary:hover, .mn-leaf:hover { background: rgba(0,0,0,.06); }
.mn-soon { opacity: .5; pointer-events: none; }
@media (max-width: 991.98px) {
    .module-nav .mn-panel { position: static; box-shadow: none; min-width: 0; margin-left: .75rem; }
    .mn-minor > .mn-panel, .mn-module > .mn-panel { left: auto; }
}

.as-header .btn { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.5); }
