/* Horizontal top-nav: keep the whole bar on a single ROW; let item labels wrap to at most
   two text lines inside their own cell (never a 3rd line, which would grow the bar tall enough
   to cover the page title/buttons). Below ~1300px, swap the two longest labels for short forms
   so 8 items still fit one row without over-wrapping. The page-content padding is kept in sync
   with the bar's actual height by a small script in _Layout.cshtml. Below 1024px the theme's
   own hamburger takes over. */
@media (min-width: 1025px) {
    /* One row: items never reflow to a second bar line, and don't shrink below their
       natural (2-line-wrapped) width — that shrink is what forced 3-4 line labels. */
    [data-layout="horizontal"] #navbar-nav { flex-wrap: nowrap; }
    [data-layout="horizontal"] #navbar-nav > li { flex: 0 0 auto; }
    [data-layout="horizontal"] #navbar-nav .nav-link {
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* Responsive labels: full text by default, short text in the tighter band. Shortening the two
   widest labels (Preventive Maintenance, Parts & Sets) drops the menu from ~1170px to ~1030px. */
.nav-label-short { display: none; }
@media (max-width: 1299.98px) {
    [data-layout="horizontal"] .nav-label-full { display: none; }
    [data-layout="horizontal"] .nav-label-short { display: inline; }
}

/* Even with short labels the 8 items stop fitting one row at ~1145px (the theme caps the menu
   container at 90% of viewport). Switch to the theme's hamburger just below that, so the bar is
   never clipped or forced to over-wrap. Net: full labels >=1300, short labels one-row 1145-1300,
   hamburger below 1145 (vs. the theme's default 1024, which wrapped/covered content). */
@media (max-width: 1144.98px) {
    [data-layout="horizontal"] .navbar-menu { display: none; }
    [data-layout="horizontal"] .topnav-hamburger { visibility: visible; }
    [data-layout="horizontal"] body.menu .navbar-menu { display: block; }
}

/*# sourceMappingURL=custom.min.css.map */
