/* Global accounting entry behavior. Loaded before React so the CRM menu is correct on first render. */
.eden-sidebar-nav a[href="/finance"] > span:last-child {
  font-size: 0 !important;
  line-height: 1 !important;
}

.eden-sidebar-nav a[href="/finance"] > span:last-child::after {
  content: "הנהלת חשבונות" !important;
  display: inline-block !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* When the accounting workspace exists, it is a true full screen application. */
body:has(.eden-accounting-workspace) {
  overflow: hidden !important;
  background: #eef4f6 !important;
}

body:has(.eden-accounting-workspace) .eden-sidebar,
body:has(.eden-accounting-workspace) .eden-topbar,
body:has(.eden-accounting-workspace) .eden-sidebar-overlay {
  display: none !important;
}

body:has(.eden-accounting-workspace) .eden-app-shell,
body:has(.eden-accounting-workspace) .eden-main,
body:has(.eden-accounting-workspace) .eden-content {
  width: 100vw !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(.eden-accounting-workspace) .eden-app-shell {
  display: block !important;
}

body:has(.eden-accounting-workspace) .eden-accounting-workspace {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
}

