.erp-shell-sidebar-footer-label { display:flex; min-width:0; flex-direction:column; gap:2px; }
.erp-shell-sidebar-footer-label strong { color:#334155; font-size:.74rem; letter-spacing:.02em; }
.erp-shell-sidebar-footer-label small { overflow:hidden; color:#64748b; font-size:.62rem; font-weight:700; letter-spacing:.025em; text-overflow:ellipsis; white-space:nowrap; }
.erp-shell-sidebar-footer-actions { display:flex; align-items:center; }
.erp-shell-menu-button { display:grid; width:40px; min-width:40px; height:40px; padding:9px; flex:0 0 40px; place-content:center; gap:4px; border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:0 4px 12px rgba(15,35,65,.12); cursor:pointer; }
.erp-shell-menu-button:hover { background:var(--surface-soft); }
.erp-shell-menu-button span { display:block; width:20px; height:2px; background:#526174; }
.erp-shell-page-footer { position:fixed; z-index:40; right:0; bottom:0; left:280px; display:flex; min-height:42px; padding:0 28px; align-items:center; justify-content:space-between; color:#53627a; background:var(--surface); border-top:1px solid var(--line); font-size:.72rem; font-weight:750; transition:left .2s ease; }
/* Reuse the Product shell without reserving space for a form sidebar. */
html[data-erp-common-shell] body .erp-shell-workspace {
  margin-left: 0;
  min-height: calc(100dvh - 72px);
  padding-bottom: 42px;
}
html[data-erp-common-shell] body .erp-shell-page-footer {
  left: 0;
  min-height: 50px;
  padding: 0 22px;
  justify-content: flex-start;
  gap: 10px;
}
html[data-erp-common-shell] body .erp-shell-page-footer .erp-company-context {
  margin-left: auto;
}
html[data-erp-common-shell] body .header-inner {
  justify-content: flex-start;
}
html[data-erp-common-shell] body .header-inner > #erpSidebarMenu {
  margin-left: auto;
}




html[data-erp-common-shell] body #erpBranchSwitch {
  box-sizing: border-box;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  place-items: center;
  border: 0;
  border-bottom: 0px;
  border-radius: 7px;
  color: #5c6879;
  background: transparent;
  cursor: pointer;
}
html[data-erp-common-shell] body #settingsButton {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  min-height: 40px;
  max-height: 40px;
  flex: 0 0 40px;
}
html[data-erp-common-shell] body #settingsButton[hidden] { display:none !important; }
html[data-erp-common-shell] body #erpBranchSwitch:hover {
  background: #e7edf5;
}
html[data-erp-common-shell] body #erpBranchSwitch svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-erp-common-shell] body .erp-shell-page-footer .erp-sidebar-logout {
  display: flex;
  width: auto;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #b42318;
  background: #fff5f4;
  border: 1px solid #f1c7c3;
  border-radius: 9px;
  box-shadow: none;
  font-size: 0.7rem;
}
html[data-erp-common-shell] body .erp-shell-page-footer .erp-sidebar-logout:hover,
html[data-erp-common-shell] body .erp-shell-page-footer .erp-sidebar-logout:focus-visible {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
  outline: 3px solid rgba(180, 35, 24, 0.14);
}
html[data-erp-common-shell] body .erp-shell-page-footer .erp-sidebar-logout svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-theme="dark"]
  html[data-erp-common-shell] body
  .erp-shell-page-footer
  .erp-sidebar-logout {
  color: #ff8d86;
  background: #351c24;
  border-color: #71323a;
}

html[data-erp-common-shell] body > .app-header { display:block; width:100%; flex:none; background:var(--surface,#fff); border-bottom:1px solid var(--line,#dde3ec); }
html[data-erp-common-shell] body > .app-header .header-inner { display:flex; width:100%; max-width:none; min-height:72px; padding:0 22px; box-sizing:border-box; align-items:center; gap:16px; }
html[data-erp-common-shell] body .erp-shell-workspace { margin-left:0; }
html[data-erp-common-shell] body .erp-shell-page-footer { font:750 .72rem Inter,Segoe UI,Arial,sans-serif; background:var(--surface,#fff); border-top:1px solid var(--line,#dde3ec); box-sizing:border-box; }
html[data-erp-common-shell] body .erp-shell-page-footer .erp-company-context { display:flex; align-items:center; gap:6px; padding:0; border:0; }
html[data-erp-common-shell] body .erp-shell-page-footer .erp-company-context[hidden] { display:none; }
html[data-erp-common-shell] body .erp-shell-page-footer .erp-company-context span,
html[data-erp-common-shell] body .erp-shell-page-footer .erp-company-context strong,
html[data-erp-common-shell] body .erp-shell-page-footer .erp-company-context small { margin:0; font-size:.72rem; }
html[data-erp-common-shell] body .erp-page-header-controls { display:flex; align-items:center; gap:12px; min-width:0; flex:1; flex-wrap:wrap; }
html[data-erp-common-shell] body > .app-header .settings-control { order:2; }
html[data-erp-common-shell] body > .app-header #erpSidebarMenu { order:3; margin-left:auto; }
html[data-erp-common-shell] body > .app-header .erp-page-header-controls { order:1; }
html[data-erp-common-shell] body:not(.erp-index-page) { padding-bottom:60px; }
html[data-erp-common-shell] body.login-page { display:flex; flex-direction:column; }
html[data-erp-common-shell] body.login-page > main { margin:auto; }
@media(max-width:760px) { html[data-erp-common-shell] body .erp-shell-page-footer { flex-wrap:wrap; } html[data-erp-common-shell] body > .app-header .header-inner { padding-inline:10px; gap:10px; } }
