/* Admin navigation: 8 areas, search, favourites and recently used (nav-admin.js). Plain CSS so no Tailwind rebuild is needed. */

/* Own display rules must not beat Tailwind's .hidden */
.nxn-row.hidden, .nxn-area.hidden, .nxn-more-btn.hidden, .nxn-tabbar.hidden, .nxn-results.hidden, .nxn-area-body.hidden, .nxn-more-list.hidden, .nxn-dot.hidden { display: none; }

/* ---- Search ---- */
.nxn-search-ico { position: absolute; left: 9px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: #9d9d9d; fill: none; stroke: currentColor; stroke-width: 1.8; pointer-events: none; }
.nxn-search-input { width: 100%; height: 34px; padding: 0 10px 0 31px; border-radius: 8px; border: 1px solid #d4d4d4; background: #fafafa; font-size: 13px; color: #252526; outline: none; transition: border-color .1s, box-shadow .1s, background .1s; }
.nxn-search-input::placeholder { color: #9d9d9d; }
.nxn-search-input:focus { background: #fff; border-color: rgb(var(--b-500)); box-shadow: 0 0 0 3px rgb(var(--b-500) / .2); }
.dark .nxn-search-input { background: #1e1e22; border-color: #33333a; color: #e4e4ea; }
.dark .nxn-search-input:focus { background: #1b1b1e; border-color: rgb(var(--b-500)); }
.nxn-search-input::-webkit-search-cancel-button { cursor: pointer; }

.nxn-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: min(70vh, 460px); overflow-y: auto; padding: 4px; border-radius: 10px; border: 1px solid #e5e5e5; background: #fff; box-shadow: 0 12px 32px rgb(0 0 0 / .14); }
.dark .nxn-results { background: #252526; border-color: #3c3c3c; box-shadow: 0 12px 32px rgb(0 0 0 / .5); }
.nxn-res { display: flex; width: 100%; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 6px; text-align: left; cursor: pointer; color: #3c3c3c; }
.dark .nxn-res { color: #cccccc; }
.nxn-res svg { width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; color: #9d9d9d; }
.nxn-res-t { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.nxn-res-p { display: block; font-size: 10.5px; color: #8a8a8a; line-height: 1.3; margin-top: 1px; }
.nxn-res[aria-selected="true"], .nxn-res:hover { background: rgb(var(--b-50)); color: #252526; }
.dark .nxn-res[aria-selected="true"], .dark .nxn-res:hover { background: rgb(255 255 255 / .07); color: #fff; }
.nxn-res[aria-selected="true"] svg { color: rgb(var(--b-600)); }
.nxn-res-empty { padding: 14px 8px; text-align: center; font-size: 12px; color: #9d9d9d; }

/* ---- Section labels (Favourites, Recent) ---- */
.nxn-cap { display: flex; align-items: center; gap: 6px; padding: 0 10px 2px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9d9d9d; }
.dark .nxn-cap { color: #686873; }
.nxn-cap svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.nxn-quick-grp { padding-bottom: 6px; border-bottom: 1px solid #f3f3f3; }
.dark .nxn-quick-grp { border-color: #242428; }
.nxn-cap-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; color: #9d9d9d; cursor: pointer; }
.nxn-cap-btn:hover, .nxn-cap-btn:focus-visible { background: rgb(0 0 0 / .06); color: #252526; }
.dark .nxn-cap-btn:hover, .dark .nxn-cap-btn:focus-visible { background: rgb(255 255 255 / .08); color: #fff; }
.nxn-cap-btn svg { width: 13px; height: 13px; }
.nxn-cap-off { gap: 3px; padding-right: 4px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 10px; white-space: nowrap; }
.nxn-cap-off > span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nxn-cap-off svg { flex-shrink: 0; }
.nxn-cap-link { flex-shrink: 0; font-weight: 600; color: rgb(var(--b-600)); cursor: pointer; border-radius: 4px; }
.nxn-cap-link:hover { text-decoration: underline; }
.dark .nxn-cap-link { color: rgb(var(--b-400)); }
.nxn-quick-hint { display: block; font-size: 10.5px; font-weight: 400; color: #9d9d9d; margin-left: auto; text-transform: none; letter-spacing: 0; }

/* ---- Area header ---- */
.nxn-area-btn { display: flex; width: 100%; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #3c3c3c; cursor: pointer; user-select: none; transition: background .1s, color .1s; }
.nxn-area-btn:hover { background: hsla(0, 0%, 95%, .9); color: #252526; }
.dark .nxn-area-btn { color: #b4b4be; }
.dark .nxn-area-btn:hover { background: rgb(255 255 255 / .05); color: #fff; }
.nxn-area-btn > svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; color: #9d9d9d; }
.nxn-area-btn .nxn-chev { width: 13px; height: 13px; margin-left: auto; transition: transform .12s; }
.nxn-area-btn[aria-expanded="true"] .nxn-chev { transform: rotate(90deg); }
.nxn-area.is-current > .nxn-area-btn { color: #252526; }
.nxn-area.is-current > .nxn-area-btn > svg:first-child { color: rgb(var(--b-600)); }
.dark .nxn-area.is-current > .nxn-area-btn { color: #fff; }
.dark .nxn-area.is-current > .nxn-area-btn > svg:first-child { color: rgb(var(--b-400)); }
.nxn-dot { width: 7px; height: 7px; border-radius: 999px; background: #f43f5e; flex-shrink: 0; }
.nxn-dot.is-amber { background: #f59e0b; }
.nxn-area-body { margin: 1px 0 4px 17px; padding-left: 6px; border-left: 1px solid #e5e5e5; }
.dark .nxn-area-body { border-color: #2c2c32; }

/* ---- Rows: page button plus pin ---- */
.nxn-row { position: relative; display: flex; align-items: center; }
.nxn-row > .nav-item { flex: 1 1 auto; min-width: 0; padding-right: 30px; }
.nxn-pin { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; color: #9d9d9d; opacity: 0; cursor: pointer; transition: opacity .1s, background .1s, color .1s; }
.nxn-pin svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nxn-row:hover .nxn-pin, .nxn-pin:focus-visible, .nxn-pin.is-on { opacity: 1; }
.nxn-pin:hover { background: rgb(0 0 0 / .06); color: #252526; }
.dark .nxn-pin:hover { background: rgb(255 255 255 / .08); color: #fff; }
.nxn-pin.is-on { color: rgb(var(--b-600)); }
.dark .nxn-pin.is-on { color: rgb(var(--b-400)); }
@media (hover: none) { .nxn-pin { opacity: .55; } }

.nxn-row.is-inactive > .nav-item { opacity: .55; }
.nxn-row.is-inactive > .nav-item:hover, .nxn-row.is-inactive > .nav-item.active { opacity: .85; }

/* ---- Weitere Module ---- */
.nxn-more-btn { display: flex; width: 100%; align-items: center; gap: 6px; margin-top: 3px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #8a8a8a; cursor: pointer; }
.nxn-more-btn:hover { background: hsla(0, 0%, 95%, .9); color: #454545; }
.dark .nxn-more-btn { color: #787882; }
.dark .nxn-more-btn:hover { background: rgb(255 255 255 / .05); color: #ccc; }
.nxn-more-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .12s; }
.nxn-more-btn[aria-expanded="true"] svg { transform: rotate(90deg); }

/* ---- Tab row at the top of the content ---- */
.nxn-tabbar { display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid #e5e5e5; }
.dark .nxn-tabbar { border-color: #2b2b2b; }
.nxn-tabbar-area { display: flex; align-items: center; gap: 6px; padding: 0 2px 9px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; white-space: nowrap; flex-shrink: 0; }
.nxn-tabbar-area svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; color: rgb(var(--b-600)); }
.dark .nxn-tabbar-area svg { color: rgb(var(--b-400)); }
.nxn-tabs { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.nxn-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: #575757; border-radius: 6px 6px 0 0; cursor: pointer; transition: color .1s, background .1s; }
.nxn-tab:hover { color: #252526; background: rgb(0 0 0 / .035); }
.dark .nxn-tab { color: #a0a0ab; }
.dark .nxn-tab:hover { color: #fff; background: rgb(255 255 255 / .04); }
.nxn-tab[aria-selected="true"] { color: rgb(var(--b-700)); }
.nxn-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: rgb(var(--b-600)); }
.dark .nxn-tab[aria-selected="true"] { color: #fff; }
.dark .nxn-tab[aria-selected="true"]::after { background: rgb(var(--b-500)); }
.nxn-tab.is-inactive { opacity: .55; font-weight: 500; }
.nxn-tab-sep { align-self: center; flex-shrink: 0; margin: 0 4px 2px 6px; padding-left: 10px; border-left: 1px solid #e5e5e5; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9d9d9d; white-space: nowrap; }
.dark .nxn-tab-sep { border-color: #3c3c3c; color: #686873; }
.nxn-tabbar-pin { flex-shrink: 0; margin-bottom: 5px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: #757575; cursor: pointer; }
.nxn-tabbar-pin:hover { background: rgb(0 0 0 / .05); color: #252526; }
.dark .nxn-tabbar-pin { color: #9d9da8; }
.dark .nxn-tabbar-pin:hover { background: rgb(255 255 255 / .06); color: #fff; }
.nxn-tabbar-pin svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.nxn-tabbar-pin.is-on { color: rgb(var(--b-600)); }
.dark .nxn-tabbar-pin.is-on { color: rgb(var(--b-400)); }
@media (max-width: 639px) {
  .nxn-tabbar-area { display: none; }
  .nxn-tabbar-pin span { display: none; }
}

/* Search jump target */
.nxn-flash { animation: nxn-flash 1.6s ease-out 1; border-radius: 8px; }
@keyframes nxn-flash { 0%, 30% { box-shadow: 0 0 0 3px rgb(var(--b-500) / .45); } 100% { box-shadow: 0 0 0 3px rgb(var(--b-500) / 0); } }

/* Desktop: the sidebar stays in view so the search field is always reachable; the area list scrolls on its own */
@media (min-width: 1024px) {
  #admSidebar { position: sticky; top: 0; height: 100vh; }
}
