/* NoorVista 3.0.159 — align header logo/actions with the topbar columns */
@media (min-width: 981px) {
  body:not([data-panel-role]) .topbar.nv-static-topbar-shell .nv-static-topbar,
  body:not([data-panel-role]) .topbar.nv-static-topbar-shell .topbar-inner,
  body:not([data-panel-role]) header.navbar .nav-inner,
  body:not([data-panel-role]) .navbar .container.nav-inner {
    width: min(calc(100% - 32px), 1440px) !important;
    max-width: 1440px !important;
    margin-inline: auto !important;
  }

  body:not([data-panel-role]) header.navbar .nav-inner,
  body:not([data-panel-role]) .navbar .container.nav-inner {
    display: grid !important;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(205px, 225px) !important;
    align-items: center !important;
    column-gap: clamp(12px, 1.4vw, 24px) !important;
    padding-inline: 0 !important;
  }

  body:not([data-panel-role]) header.navbar .brand {
    grid-column: 1 !important;
    justify-self: start !important;
    width: min(var(--nv-brand-logo-width, 280px), 300px) !important;
    max-width: 300px !important;
    overflow: visible !important;
  }

  body:not([data-panel-role]) header.navbar .brand .brand-logo,
  body:not([data-panel-role]) header.navbar .brand .brand-logo-image {
    width: min(var(--nv-brand-logo-width, 280px), 300px) !important;
    max-width: 300px !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  body:not([data-panel-role]) header.navbar .brand img {
    width: 100% !important;
    max-width: 300px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  body:not([data-panel-role]) header.navbar nav {
    grid-column: 2 !important;
    justify-self: stretch !important;
    min-width: 0 !important;
  }

  body:not([data-panel-role]) header.navbar .menu {
    justify-content: center !important;
  }

  body:not([data-panel-role]) header.navbar .nav-actions {
    grid-column: 3 !important;
    justify-self: stretch !important;
    justify-content: flex-end !important;
    direction: rtl !important;
    width: 100% !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  body:not([data-panel-role]) header.navbar .nav-inner,
  body:not([data-panel-role]) .navbar .container.nav-inner {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(175px, 195px) !important;
    column-gap: 10px !important;
  }

  body:not([data-panel-role]) header.navbar .brand,
  body:not([data-panel-role]) header.navbar .brand .brand-logo,
  body:not([data-panel-role]) header.navbar .brand .brand-logo-image {
    width: min(var(--nv-brand-logo-width, 210px), 220px) !important;
    max-width: 220px !important;
  }
}
