/* Dedicated Medical Equipment 2027 dashboard view.
   Activated only for /medical-equipment-dashboard or the equivalent direct
   dashboard URL. The normal LRH Hub layout is unaffected. */

html.lrh-direct-dashboard:not(.lrh-direct-dashboard-ready):not(.lrh-login-locked) #root {
  opacity: 0;
  pointer-events: none;
}

html.lrh-direct-dashboard:not(.lrh-direct-dashboard-ready):not(.lrh-login-locked) body::after {
  content: 'Loading Medical Equipment 2027 Dashboard…';
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f7fb;
  color: #24415e;
  font: 600 15px/1.4 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

html.lrh-direct-dashboard-ready body::after {
  display: none !important;
}

html.lrh-direct-dashboard-ready,
html.lrh-direct-dashboard-ready body,
html.lrh-direct-dashboard-ready #root {
  min-height: 100%;
  height: auto;
  overflow-y: auto;
  overflow-x: clip;
}

html.lrh-direct-dashboard-ready .app-shell {
  display: block !important;
  min-height: 100vh;
}

html.lrh-direct-dashboard-ready .sidebar {
  display: none !important;
}

html.lrh-direct-dashboard-ready .main-area {
  width: 100% !important;
  min-width: 0 !important;
}

html.lrh-direct-dashboard-ready .topbar {
  min-height: 58px;
  height: auto;
  padding: 8px 18px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
}

html.lrh-direct-dashboard-ready .topbar::before {
  content: 'LRH · Medical Equipment 2027 Dashboard';
  font-size: 15px;
  font-weight: 800;
  color: #17324d;
  letter-spacing: -.01em;
}

html.lrh-direct-dashboard-ready .topbar .mobile-menu,
html.lrh-direct-dashboard-ready .topbar .global-search {
  display: none !important;
}

html.lrh-direct-dashboard-ready .topbar .user-area {
  margin-left: auto !important;
}

html.lrh-direct-dashboard-ready .content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 22px;
}

/* The dedicated URL is a planning dashboard, not the permanent asset-register
   module. Keep the planning controls and suppress asset-management actions. */
html.lrh-direct-dashboard-ready .equipment-tabs button:nth-child(2) {
  display: none !important;
}

html.lrh-direct-dashboard-ready .equipment-tabs {
  width: max-content;
  max-width: 100%;
}

@media (max-width: 620px) {
  html.lrh-direct-dashboard-ready .topbar {
    min-height: 54px;
    padding: 7px 10px;
  }

  html.lrh-direct-dashboard-ready .topbar::before {
    content: 'Medical Equipment 2027';
    font-size: 14px;
  }

  html.lrh-direct-dashboard-ready .topbar .user-area > div {
    display: none;
  }

  html.lrh-direct-dashboard-ready .content {
    padding-top: 12px;
  }
}

@media print {
  html.lrh-direct-dashboard-ready .topbar {
    display: none !important;
  }
}
