/* Shared navigation. Page and schedule scrolling stay in the document flow. */
:root {
  --unk-header-h: 144px;
  --unk-side-w: 238px;
  --unk-mobile-sidebar-h: 0px;
  --unk-breadcrumb-h: 44px;
}
#unkos-global-nav,
#unkos-module-sidebar,
.unkos-app-shell,
.unkos-shell-main,
.unkos-shell-breadcrumb {
  box-sizing: border-box;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
#unkos-global-nav *,
#unkos-module-sidebar *,
.unkos-app-shell * { box-sizing: border-box; }

#unkos-global-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: auto;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #fff;
  color: #173452;
  border-bottom: 1px solid #dce4ec;
  box-shadow: 0 1px 6px #0823410d;
}
.unkos-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 56px;
  padding: 7px 22px;
}
#unkos-global-nav .unkos-brand {
  display: flex;
  align-items: center;
  flex: 0 0 150px;
  width: 150px;
  padding: 0;
  text-decoration: none;
}
.unkos-brand img {
  display: block;
  width: 100%;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}
.unkos-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-width: 0;
}
#unkos-global-nav .global-help,
#unkos-global-nav .unkos-profile {
  display: inline-block;
  min-width: 0;
  padding: 8px 0;
  color: #244763;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
#unkos-global-nav .global-help:hover,
#unkos-global-nav .unkos-profile:hover { color: #005da9; text-decoration: underline; }
#unkos-global-nav [data-utility][aria-current="page"] { color: #005da9; text-decoration: underline; }
.unkos-session-action { align-self: center; flex: none; margin: 0 !important; padding: 0 !important; }
.unkos-session-action button {
  border: 1px solid #cfdae6;
  background: #fff;
  color: #244763;
  border-radius: 6px;
  padding: 8px 10px;
  font: 600 12px "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
#unkos-global-nav .unkos-tasks-drawer { top: var(--unk-header-h); }
#unkos-global-nav .unkos-primary-nav {
  display: block;
  position: static;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0 18px;
  background: transparent;
  border: 0;
  overflow: visible;
}
.module-launcher { margin: 0; }
.module-launcher > summary { display: none; }
.module-launcher-panel {
  position: static;
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #fff;
  overflow: visible;
}
.unkos-module-row { display: flex; gap: 4px; align-items: stretch; }
.unkos-module-row + .unkos-module-row { border-top: 1px solid #edf1f5; }
#unkos-global-nav .module-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 42px;
  padding: 8px 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #244763;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
#unkos-global-nav .module-choice:hover { color: #005da9; background: #f1f7fc; }
#unkos-global-nav .module-choice.active {
  color: #005da9;
  background: #eaf4fb;
  border-bottom-color: #005da9;
  font-weight: 750;
}
#unkos-global-nav a:focus-visible,
#unkos-global-nav button:focus-visible,
#unkos-global-nav summary:focus-visible,
#unkos-module-sidebar a:focus-visible,
#unkos-module-sidebar summary:focus-visible,
.unkos-shell-breadcrumb a:focus-visible {
  outline: 3px solid #287ab7;
  outline-offset: 2px;
  border-radius: 4px;
}

.unkos-app-shell {
  display: grid;
  grid-template-columns: var(--unk-side-w) minmax(0, 1fr);
  min-height: calc(100dvh - var(--unk-header-h));
  align-items: start;
  background: #f4f7fa;
}
.unkos-app-shell[data-utility-page="account"] { grid-template-columns: minmax(0, 1fr); }
#unkos-module-sidebar {
  position: sticky;
  top: var(--unk-header-h);
  height: calc(100dvh - var(--unk-header-h));
  min-width: 0;
  padding: 0 12px 18px;
  align-self: start;
  background: #f9fbfd;
  color: #173452;
  border-right: 1px solid #dce4ec;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 120;
}
.module-feature-menu { margin: 0; min-height: 0; }
.module-feature-menu > summary { display: none; }
.unkos-sidebar-head { padding: 19px 9px 13px; margin-bottom: 7px; border-bottom: 1px solid #e5ebf1; }
.unkos-sidebar-title { display: block; color: #173452; font-size: 18px; font-weight: 750; line-height: 1.25; }
.unkos-sidebar-kicker {
  display: block;
  margin: 0 0 5px;
  color: #61748a;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}
#unkos-module-sidebar .unkos-side-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: static;
  height: auto;
  gap: 2px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}
.unkos-side-link {
  display: block;
  min-width: 0;
  min-height: 37px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #3d566f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
}
.unkos-side-link:hover { background: #fff; color: #075fa8; border-color: #e3eaf1; }
.unkos-side-link.active { background: #eaf4fb; color: #075fa8; border-color: #d4e7f5; font-weight: 750; }
.unkos-feature-label { display: inline; }
.development-status-code {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #596d80;
  font-size: .9em;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
}
.unkos-side-link .unkos-access-note { display: inline; font-size: 11px; font-weight: 400; color: #63748b; }
.unkos-nav-group { margin: 0; padding: 0; }
.unkos-nav-group + .unkos-nav-group { margin-top: 10px; }
.unkos-nav-group-title {
  margin: 0;
  padding: 8px 9px 4px;
  color: #64758a;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}
.unkos-record-context { margin: 0 2px 10px; padding: 10px 7px 12px; border-bottom: 1px solid #e5ebf1; }
.unkos-context-name { display: block; color: #173452; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.unkos-context-number { display: block; margin-top: 3px; color: #61748a; font-size: 12px; line-height: 1.4; }
.unkos-back-link { display: inline-block; margin-top: 8px; color: #075fa8; font-size: 12px; text-decoration: none; }
.unkos-back-link:hover { text-decoration: underline; }
.navigation-status-legend { margin: 17px 7px 0; padding-top: 11px; border-top: 1px solid #e0e7ee; font-size: 11px; line-height: 1.7; color: #61748a; }
.navigation-status-legend > summary { margin: 0; padding: 2px 0; color: #51677d; font-size: 11px; font-weight: 500; cursor: pointer; }
.navigation-status-legend p { margin: 7px 0 0; }
.unkos-catalog-link { display: inline-block; margin: 15px 9px 0; color: #51677d; font-size: 11px; line-height: 1.5; text-decoration: none; }
.unkos-catalog-link:hover { color: #075fa8; text-decoration: underline; }
.unkos-shell-main { min-width: 0; min-height: calc(100dvh - var(--unk-header-h)); background: #f4f7fa; }
.unkos-shell-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  position: static;
  height: auto;
  min-height: 44px;
  gap: 5px 8px;
  margin: 0;
  padding: 10px 22px;
  border: 0;
  border-bottom: 1px solid #e2e8ef;
  background: #fff;
  color: #61748a;
  font-size: 12px;
  line-height: 1.5;
}
.unkos-shell-breadcrumb a { color: #4b6985; text-decoration: none; font-weight: 600; }
.unkos-shell-breadcrumb a:hover { color: #075fa8; text-decoration: underline; }
.unkos-shell-breadcrumb strong { color: #2f4a65; font-weight: 650; }
.unkos-shell-breadcrumb .sep { color: #8493a4; }
.unkos-breadcrumb-context { overflow-wrap: anywhere; }
.unkos-breadcrumb-feature { min-width: 0; }
.unkos-shell-content { min-width: 0; position: relative; }
.unkos-shell-content [id] { scroll-margin-top: calc(var(--unk-header-h) + 14px); }
.unkos-map-shell .unkos-shell-content { background: #fff; overflow: hidden; }
.unkos-map-shell .unkos-frame-wrap {
  height: max(260px, calc(100dvh - var(--unk-header-h) - var(--unk-breadcrumb-h) - var(--unk-mobile-sidebar-h))) !important;
}

/* Full status names remain available on feature and administration pages. */
.development-status { display: inline-block; flex: none; padding: 4px 6px; border-radius: 4px; background: #e9edf2; color: #435267; font: 600 10px/1.3 "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.status-1 { background: #fff1d5; color: #795000; }
.status-2 { background: #e5f2ff; color: #00558d; }
.status-3 { background: #e2f5e9; color: #20603a; }
.development-page { max-width: 1500px; margin: auto; padding: 24px; font: 14px/1.6 "Segoe UI", system-ui, sans-serif; color: #173452; }
.development-page h1 { margin: 0 0 8px; font-size: 28px; }
.development-page h2 { font-size: 20px; }
.development-page a { color: #075fa8; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.feature-cards article, .development-module { padding: 16px; border: 1px solid #d8e2ec; border-radius: 8px; background: #fff; }
.development-module { margin-top: 18px; }
.development-module h2 { margin-top: 0; }
.development-counts { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.development-count { padding: 10px; border: 1px solid #d8e2ec; border-radius: 7px; background: #fff; }
.development-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: 24px; padding: 16px 0; border-top: 1px solid #d8e2ec; }
.development-feature h3 { margin: 0; font-size: 16px; }
.development-feature p { margin: 5px 0; }
.development-feature label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 650; }
.development-feature select, .development-feature textarea, .development-page input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #bacbd9;
  border-radius: 5px;
  background: #fff;
  color: #173452;
  font: inherit;
}
.development-feature textarea { min-height: 75px; resize: vertical; }
.development-feature button { padding: 9px 15px; border: 0; border-radius: 5px; background: #005da9; color: #fff; font: 600 13px "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.development-feature button:disabled { opacity: .6; }
.development-page [hidden] { display: none !important; }
#development-message { position: sticky; top: var(--unk-header-h); z-index: 5; background: #eef6ff; padding: 8px; }
#development-message:empty { display: none; }

@media (max-width: 1040px) {
  :root { --unk-side-w: 224px; }
  .unkos-utility-bar { padding-right: 16px; padding-left: 16px; }
  #unkos-global-nav .unkos-primary-nav { padding: 0 10px; }
  #unkos-global-nav .module-choice { padding-right: 5px; padding-left: 5px; font-size: 12px; }
}
@media (max-width: 820px) {
  :root { --unk-header-h: 132px; }
  .unkos-utility-bar { padding: 8px 12px 5px; gap: 4px 12px; }
  #unkos-global-nav .unkos-brand { width: 110px; flex-basis: 110px; }
  .unkos-brand img { max-height: 34px; }
  .unkos-utilities { gap: 4px 12px; margin-left: auto; }
  #unkos-global-nav .global-help, #unkos-global-nav .unkos-profile { min-height: 44px; padding: 12px 0; font-size: 12px; }
  #unkos-global-nav #unkos-tasks-toggle { min-height: 44px; padding: 9px 8px; font-size: 12px; }
  .unkos-session-action button { min-height: 44px; font-size: 12px; }
  #unkos-global-nav .unkos-primary-nav { padding: 0 12px 5px; }
  .module-launcher > summary {
    display: list-item;
    min-height: 44px;
    margin: 0;
    padding: 11px 8px;
    border: 1px solid #cbdbe8;
    border-radius: 6px;
    color: #244763;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    cursor: pointer;
    list-style-position: inside;
  }
  .module-launcher[open] > summary { background: #eaf4fb; }
  .module-launcher-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: absolute;
    top: 100%;
    left: 8px;
    right: 8px;
    max-height: calc(100dvh - var(--unk-header-h) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #cbdbe8;
    border-radius: 8px;
    box-shadow: 0 12px 30px #123a5c30;
    gap: 3px;
  }
  .module-launcher:not([open]) > .module-launcher-panel { display: none; }
  .unkos-module-row { display: contents; }
  #unkos-global-nav .module-choice { justify-content: flex-start; min-height: 44px; padding: 10px; border-radius: 4px; font-size: 13px; text-align: left; }
  #unkos-global-nav .module-choice.active { border-bottom-color: transparent; box-shadow: inset 3px 0 #005da9; }
  .unkos-app-shell { display: block; }
  #unkos-module-sidebar { position: relative; top: auto; height: auto; padding: 6px 12px; border-right: 0; border-bottom: 1px solid #dce4ec; overflow: visible; }
  .module-feature-menu > summary {
    display: list-item;
    min-height: 44px;
    margin: 0;
    padding: 10px 4px;
    color: #173452;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    list-style-position: inside;
    cursor: pointer;
  }
  .module-feature-menu > summary > span { float: right; font-size: 12px; font-weight: 400; }
  .module-feature-menu[open] > summary { border-bottom: 1px solid #d8e2ec; margin-bottom: 6px; }
  .module-feature-menu:not([open]) > :not(summary) { display: none; }
  .module-feature-menu .unkos-sidebar-head { display: none; }
  .unkos-side-link { min-height: 44px; padding: 11px 9px; font-size: 13px; }
  .unkos-back-link { min-height: 44px; padding: 12px 0; margin: 0; }
  .navigation-status-legend { margin-top: 10px; padding-bottom: 8px; }
  .navigation-status-legend > summary { min-height: 44px; padding: 12px 0; }
  .unkos-shell-breadcrumb { padding-right: 14px; padding-left: 14px; }
  .development-page { padding: 18px 14px; }
  .development-feature { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 480px) {
  .unkos-utility-bar { align-items: flex-start; }
  .unkos-utilities { flex: 1 1 100%; justify-content: space-between; gap: 3px 10px; }
  #unkos-global-nav .global-help, #unkos-global-nav .unkos-profile { font-size: 11px; }
  #unkos-global-nav #unkos-tasks-toggle { padding: 8px 6px; font-size: 11px; }
  .unkos-session-action button { padding: 8px 7px; font-size: 11px; }
}
