/* SAMAMI ERP v76: One navigation owner = accessible ERP sidebar.
   Page-level route directories moved to the rail; operational filters,
   breadcrumbs, data cards and CRUD actions stay in the page. */
.samami-enterprise-shell .sam-sales-family-nav nav[data-component="world-section-nav"],
.samami-enterprise-shell nav.sam-world-section-nav[aria-label="بخش‌های مالی"] {
  display: none !important;
}
.samami-enterprise-shell .sam-sales-family-nav:has(nav[data-component="world-section-nav"]) {
  margin-block: 0 !important;
}
/* A selected sidebar subroute is visually distinct and never clipped. */
.samami-enterprise-shell .samami-rail-sub-branch {
  min-width: 0;
  max-width: 100%;
}
.samami-enterprise-shell .samami-rail-branch-items {
  min-width: 0;
  max-width: 100%;
  padding-inline-start: 5px;
}
.samami-enterprise-shell .samami-rail-sub-link {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding-block: 9px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.samami-enterprise-shell .samami-rail-sub-link.is-active {
  font-weight: 800;
  border-inline-start: 3px solid #3c9dff;
  background: rgba(69,145,212,.21);
}
.samami-enterprise-shell .samami-rail-branch-toggle {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.5;
}
/* New purchase is the remaining operational command, not a section tab. */
.samami-enterprise-shell .sam-purchase-create-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin-block: 0 10px;
  min-height: 42px;
}
@media(max-width:720px){
  .samami-enterprise-shell .sam-purchase-create-action {
    width: 100%;
  }
}
