/*
  Accounting uses the kit secondary sidebar (fragments/ui/secondary-sidebar) but keeps its own
  header (templates/fragments/layout/header.html, class "header", not the kit's cicosy-wms-header).
  The kit only offsets cicosy-wms-header beside the sidebar rail, so mirror those rules for #header.
*/
@media (min-width: 761px) {
  body[data-cicosy-secondary-sidebar="true"] #header.header {
    left: var(--cicosy-secondary-sidebar-collapsed-width);
    right: 0;
    width: auto;
  }

  body[data-cicosy-secondary-sidebar="true"].cicosy-secondary-sidebar-is-ready #header.header {
    transition: left var(--cicosy-sidebar-motion-duration) var(--cicosy-sidebar-motion-ease);
  }

  body[data-cicosy-secondary-sidebar="true"].cicosy-secondary-sidebar-is-expanded #header.header {
    left: var(--cicosy-secondary-sidebar-width);
  }

  /* The sidebar brand now shows the app name; the header logo would duplicate it. */
  body[data-cicosy-secondary-sidebar="true"] #header.header .logo {
    display: none !important;
  }
}
