/* Grouped navigation and focused section landing pages. Loaded last. */
body .nav-menu-group {
  position: relative !important;
  display: block;
  min-width: max-content;
}

body.nav-shortcuts-open .sidebar {
  z-index: 1800 !important;
}

body .nav-menu-group .nav-menu-controls {
  display: flex;
  align-items: stretch;
  min-height: 38px;
  border-radius: 10px;
}

body .nav-menu-group .nav-parent-link {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  min-height: 38px;
  border-radius: 10px 4px 4px 10px !important;
  padding-right: 5px !important;
  color: var(--ink) !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
}

body .nav-menu-group .nav-menu-toggle {
  display: grid;
  width: 30px;
  min-width: 30px;
  min-height: 38px;
  place-items: center;
  border: 0;
  border-radius: 4px 10px 10px 4px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}

body .nav-menu-group .nav-menu-toggle span {
  transition: transform 140ms ease;
}

body .nav-menu-group .nav-menu-toggle:hover,
body .nav-menu-group .nav-menu-toggle:focus-visible,
body .nav-menu-group .nav-parent-link:hover {
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--accent) 8%, var(--paper)) !important;
}

body .nav-menu-group.is-active .nav-menu-controls {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

body .nav-menu-group.is-active .nav-parent-link,
body .nav-menu-group.is-active .nav-menu-toggle {
  color: #ffffff !important;
  background: transparent !important;
}

body .nav-menu-group[open] .nav-menu-toggle span {
  transform: rotate(180deg);
}

body .sidebar .nav-menu-group > .nav-menu-panel {
  position: absolute !important;
  z-index: 1600 !important;
  top: calc(100% + 7px) !important;
  left: 0 !important;
  display: grid !important;
  width: max-content !important;
  min-width: 190px !important;
  max-width: min(280px, calc(100vw - 24px)) !important;
  gap: 3px !important;
  border: 1px solid var(--line) !important;
  border-radius: 11px !important;
  padding: 6px !important;
  background: var(--paper) !important;
  box-shadow: 0 14px 32px rgba(25, 38, 30, .18) !important;
}

body .sidebar .nav-menu-group:not([open]) > .nav-menu-panel {
  display: none !important;
}

body .sidebar .nav-menu-group .nav-overview-subtab {
  margin-bottom: 3px;
  border-bottom: 1px solid var(--line) !important;
}

body .section-overview-view.view.is-visible {
  display: grid !important;
  gap: 12px;
  width: 100%;
}

body.section-overview-active .topbar {
  margin-bottom: 10px !important;
  padding-block: 10px !important;
}

body.section-overview-active .page-heading h1 {
  font-size: clamp(29px, 3vw, 36px) !important;
}

body.section-overview-active .page-heading .eyebrow {
  margin-bottom: 2px;
}

body .section-overview-tabs {
  position: sticky;
  z-index: 90;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--paper) 95%, var(--body));
  box-shadow: 0 5px 14px rgba(25, 38, 30, .05);
  scrollbar-width: none;
}

body .section-overview-tabs::-webkit-scrollbar { display: none; }

body .section-overview-tab {
  flex: 0 0 auto;
  width: auto !important;
  min-height: 34px !important;
  border: 0 !important;
  border-radius: 7px !important;
  padding: 7px 11px !important;
  color: var(--muted) !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap;
}

body .section-overview-tab.is-active {
  color: var(--ink) !important;
  background: var(--paper) !important;
  box-shadow: 0 1px 4px rgba(25, 38, 30, .12) !important;
}

body .section-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

body .section-overview-grid > .panel {
  min-width: 0;
  min-height: 0 !important;
  margin: 0;
  border-radius: 11px !important;
  padding: 14px !important;
  box-shadow: none !important;
}

body .section-overview-grid .panel-header {
  margin-bottom: 4px;
}

body .section-overview-grid .panel-header h2 {
  margin-top: 1px;
  font-size: 17px;
}

body .section-overview-recent .primary-button {
  border-color: var(--accent-dark) !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
  opacity: 1 !important;
}

body .section-overview-metrics {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

body .section-overview-attention { grid-column: 1; grid-row: 2; }
body .section-overview-recent { grid-column: 2; grid-row: 2; }

body .section-overview-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body .section-overview-metric-grid > div {
  display: grid;
  gap: 2px;
  min-height: 66px;
  align-content: center;
  padding: 9px 11px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--body) 72%, var(--paper));
}

body .section-overview-metric-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1;
}

body .section-overview-metric-grid span {
  color: var(--muted);
  font-size: 10px;
}

body .section-overview-list {
  display: grid;
}

body .section-overview-row {
  min-height: 49px;
  padding-block: 9px !important;
}

body .section-overview-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 0;
  padding: 9px 0 2px;
  color: var(--muted);
  text-align: left;
}

body .section-overview-empty strong {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  font-size: 11px;
}

body .section-overview-empty span { font-size: 11px; }

body .section-overview-grid > .panel.is-overview-empty {
  padding-bottom: 11px !important;
}

@media (max-width: 820px) {
  body .section-overview-grid { grid-template-columns: 1fr; }
  body .section-overview-grid > * { order: initial !important; }
  body .section-overview-attention { grid-column: 1; grid-row: 1; }
  body .section-overview-recent { grid-column: 1; grid-row: 2; }
  body .section-overview-metrics { grid-column: 1; grid-row: 3; }
}

@media (max-width: 760px) {
  body .nav-menu-group {
    width: 100% !important;
    min-width: 0 !important;
  }

  body .nav-menu-group .nav-menu-controls { width: 100%; }
  body .nav-menu-group .nav-parent-link {
    width: 100% !important;
    border-radius: 8px !important;
    padding-inline: 8px !important;
  }

  body .nav-menu-group .nav-menu-toggle,
  body .sidebar .nav-menu-group > .nav-menu-panel {
    display: none !important;
  }

  body.section-overview-active .topbar { padding: 8px 10px !important; }
  body.section-overview-active .page-heading h1 { font-size: 27px !important; }
  body .section-overview-tabs { top: 4px; }
  body .section-overview-grid { gap: 9px; }
  body .section-overview-grid > .panel { padding: 11px !important; }
  body .section-overview-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }
  body .section-overview-metrics .panel-header { margin-bottom: 0; }
  body .section-overview-metrics .panel-header h2 { font-size: 14px; }
  body .section-overview-metrics .eyebrow { display: none; }
  body .section-overview-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .section-overview-metric-grid > div { min-height: 58px; padding: 7px; }
  body .section-overview-metric-grid strong { font-size: 21px; }
}
