/* Shared app shell affordances for standalone workspaces and Census nav. */

/* FIX (2026-07-20): the nav is a shrinkable flex child of each page header.
   With flex-wrap:wrap it shredded its own links into 3-4 rows when the header
   got tight (worse at wide widths, where more controls sit beside it) — the
   "tabs on multiple rows" bug. Keep it ONE line and let it scroll instead,
   mirroring the Admissions .aw-section-switcher fix below. min-width:0 lets the
   flex item shrink below its content so overflow-x can engage. */
.app-nav {
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.app-nav__link {
    white-space: nowrap;
}

/* Admissions carries the full app nav plus shift controls. Keep that chrome
   compact on ordinary hospital laptops instead of allowing a 3-4 row header. */
.aw-header .aw-section-switcher {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

@media (max-width: 1500px) {
    .aw-header {
        flex-wrap: wrap;
        column-gap: 14px;
        row-gap: 6px;
        padding: 8px 16px;
    }
    .aw-header-brand { order: 1; }
    .aw-header > .sn-mode-chip { order: 1; }
    .aw-header-controls { order: 2; gap: 12px; }
    .aw-header .aw-section-switcher {
        order: 3;
        flex: 1 0 100%;
        margin-left: 0;
        gap: 22px;
        padding: 0 2px 2px;
    }
}

@media (max-width: 900px) {
    .aw-header > .sn-mode-chip,
    .aw-header .aw-date-filter .aw-field-label {
        display: none;
    }
    .aw-header-controls { gap: 8px; }
    .aw-header .aw-new-btn { padding-inline: 12px; }
}

.sn-mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid rgba(0, 255, 208, 0.24);
    border-radius: 4px;
    background: rgba(0, 255, 208, 0.045);
    color: var(--term-accent, var(--pn-accent, #00ffd0));
    font-family: var(--term-font-mono, var(--pn-font-mono, "JetBrains Mono", monospace));
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sn-mode-chip__label {
    font-weight: 700;
}

.sn-mode-chip__detail {
    color: var(--term-fg-muted, var(--pn-fg-muted, rgba(180, 190, 210, 0.72)));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
}

.sol-note-input-section .sn-mode-chip {
    margin-bottom: 8px;
}

@media (max-width: 760px) {
    .sn-mode-chip__detail {
        display: none;
    }
}
