/* Shared shell geometry. Load last so page themes use the same compact header. */
:root { --urp-header-height: 44px; }
body .pc-header,
body .pc-header .pc-h-item { min-height: var(--urp-header-height); }
body .pc-header { height: var(--urp-header-height); }
body .pc-header .header-wrapper { padding: 0 12px; }
body .pc-header .pc-head-link { width: 36px; height: 36px; }
body .pc-header .user-avtar { width: 32px; height: 32px; }
body .pc-sidebar .m-header,
body .pc-header .m-header {
  height: var(--urp-header-height);
  padding-top: 6px;
  padding-bottom: 6px;
}
body .pc-sidebar .m-header img { max-height: 28px; width: auto; }
body .pc-sidebar .navbar-content { height: calc(100vh - var(--urp-header-height) - 75px); }
body[data-pc-layout=tab] .pc-sidebar .tab-container :is(.tab-sidemenu, .tab-link) {
  height: calc(100vh - var(--urp-header-height));
}
body .pc-container { top: var(--urp-header-height); }
body .pc-container .pc-content { padding-top: 8px; }
body .pc-container .page-header + .pc-content { padding-top: 8px; }

/* Keep page headings available to assistive technology without reserving a row.
   Headers with actions retain their controls; breadcrumb links are navigation only. */
body .pc-container .page-header .page-header-title,
body .pc-container .page-header:not(:has(button, input, select, textarea, .btn, a:not(.breadcrumb a))) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
}
body .pc-container .page-header .breadcrumb { display: none; }
body .pc-container .page-header:has(button, input, select, textarea, .btn, a:not(.breadcrumb a)) {
  position: static;
  min-height: 0 !important;
  padding: 0 !important;
  margin-bottom: 4px !important;
}
body .pc-container .page-header .row { --bs-gutter-y: 0; }

/* Legacy shell uses the same header height and content offset. */
body .app-header,
body .app-sidebar .main-sidebar-header { height: var(--urp-header-height); }
body .app-sidebar .main-sidebar { height: calc(100vh - var(--urp-header-height)); }
body .app-content { padding-top: calc(var(--urp-header-height) + 8px); }
