body.single-app-menu .topbar {
  min-height: 62px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #1b2b49;
  color: #fff;
  border-bottom: 0;
}
.topbar > nav{margin-left:auto}
.topbar > nav a[href="/setup"]{display:none!important}
.topbar:has(.app-identity){min-height:62px;padding-top:0;padding-bottom:0}
.ff-top{height:62px!important;min-height:62px}
.ff-top .ff-brand img{width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;object-fit:contain}
body.single-app-menu .topbar .brand {
  flex: 0 0 auto;
}
/* Every product identity uses the same geometry, even on pages without a submenu. */
.topbar .app-identity{display:flex!important;align-items:center;gap:9px;padding:0!important;background:transparent!important;color:#fff;text-decoration:none;min-width:185px;line-height:1}
.topbar .app-identity img{display:block!important;flex:0 0 40px;width:40px!important;height:40px!important;min-width:40px;max-width:40px!important;min-height:40px;max-height:40px!important;object-fit:contain}
.topbar .app-identity span{display:grid;min-width:0;line-height:1.05}
.topbar .app-identity strong{font-size:15px;color:#fff;white-space:nowrap}
.topbar .app-identity small{margin-top:3px;font-size:8px;letter-spacing:.14em;color:#9fded8;white-space:nowrap}
body.single-app-menu .topbar .brand:not(.app-identity) img {
  display: block;
  max-height: 50px;
  width: auto;
}
body.single-app-menu .topbar > nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
body.single-app-menu .topbar > nav > [data-products-link],
body.single-app-menu .topbar > nav > a[href="/logout"]{flex:0 0 auto}
body.single-app-menu .topbar > nav > [data-products-link]{margin-left:auto}
body.single-app-menu .topbar > nav > a[href="/setup"],
body.single-app-menu .topbar > nav > a[href="/controlflow/"]{display:none!important}
body.single-app-menu .app-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  max-width: calc(100vw - 500px);
}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto;width:100%;box-sizing:border-box}
.platform-footer{position:sticky;z-index:80;bottom:0;display:flex;justify-content:center;align-items:center;gap:9px;min-height:29px;padding:3px 14px;box-sizing:border-box;background:#fff;border-top:1px solid #d8e2ea;color:#68778d;font-size:10px}
.platform-footer .footer-app{font-weight:800;color:#142542}
.platform-footer .footer-app:after{content:" ·";color:#9aa8b7}
body.single-app-menu .app-menu a,
body.single-app-menu .app-menu button,
body.single-app-menu .topbar > nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  color: #fff;
  border: 0;
  background: transparent;
}
body.single-app-menu .app-menu a:hover,
body.single-app-menu .app-menu button:hover,
body.single-app-menu .app-menu a.on,
body.single-app-menu .app-menu a.active,
body.single-app-menu .app-menu button.active {
  background: #ffffff18;
  color: #fff;
}
body.single-app-menu .topbar .facility-control label,
body.single-app-menu .topbar .save-state {
  color: #d8e2ef;
}
body.single-app-menu .topbar .facility-control select {
  height: 36px;
  background: #fff;
  color: #142542;
}
body.single-app-menu .topbar .top-actions .button {
  color: #fff;
  border-color: #ffffff35;
}
body.single-app-menu .topbar .top-actions .icon-button {
  color: #142542;
}
body.single-app-menu .app-menu button {
  display: grid;
  text-align: left;
  line-height: 1.1;
}
body.single-app-menu .app-menu button b {
  font-size: 9px;
  font-weight: 500;
  opacity: 0.75;
}
.org-dock {
  position: fixed !important;
  z-index: 10000;
  inset: auto auto 14px 14px !important;
  display: block !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.org-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  min-height: 42px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: #142542;
  color: #fff;
  box-shadow: 0 8px 26px #14254242;
}
.org-bubble span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #18a99f;
  font-size: 9px;
  font-weight: 900;
}
.org-bubble b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.org-dock > section {
  position: absolute;
  left: 0;
  bottom: 50px;
  width: 300px;
  max-height: 430px;
  padding: 10px;
  border: 1px solid #d5e0e8;
  border-radius: 12px;
  background: #fff;
  color: #142542;
  box-shadow: 0 18px 50px #14254235;
}
.org-dock > section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.org-dock > section header button {
  border: 0;
  background: transparent;
  font-size: 20px;
}
.org-dock input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  margin-bottom: 7px;
  padding: 6px 9px;
  border: 1px solid #bdccd8;
  border-radius: 7px;
}
.org-list {
  display: grid;
  max-height: 320px;
  overflow: auto;
}
.org-list button {
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #142542;
  text-align: left;
}
.org-list button:hover,
.org-list button.current {
  background: #e9f8f6;
  color: #066b64;
}
.org-list button.current:after {
  float: right;
  content: "Current";
  font-size: 10px;
  font-weight: 800;
}
body.single-app-menu .crm-app-head {
  border-radius: 12px;
  margin-top: 14px;
}
body.single-app-menu .crm-app-head + section,
body.single-app-menu .crm-app-head + nav {
  margin-top: 0;
}
body.bedflow-secondary-nav .tabs{top:62px;padding-left:max(18px,calc((100vw - 1540px)/2));padding-right:max(18px,calc((100vw - 1540px)/2))}
body.bedflow-secondary-nav .tab{min-width:145px;padding-top:10px;padding-bottom:9px}
body.bedflow-secondary-nav .tab span{font-size:12px}
body.bedflow-secondary-nav .tab b{font-size:9px}
@media (max-width: 800px) {
  body.single-app-menu .topbar {
    align-items: flex-start;
    padding: 7px 10px;
  }
  body.single-app-menu .topbar .brand:not(.app-identity) img {
    max-height: 42px;
  }
  body.single-app-menu .topbar > nav {
    overflow: hidden;
  }
  body.single-app-menu .app-menu {
    max-width: calc(100vw - 220px);
  }
  .topbar .app-identity{min-width:44px}
  .topbar .app-identity span{display:none}
  body.single-app-menu .app-menu a,
  body.single-app-menu .app-menu button,
  body.single-app-menu .topbar > nav > a {
    padding: 0 7px;
    font-size: 12px;
  }
}
