/* EZAccounting 0.3.8.0 — single server-rendered application shell.
 * Structure: section > [global header] + [navigation] + [main module content].
 * Do not require WordPress body classes, Elementor markup, or JS positioning.
 * Previous v0360 / v0361 / v0370 shell layout styles are NOT enqueued.
 */
.ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 {
  --ezacc-shell-header-height: 76px;
  --ezacc-shell-sidebar-width: 248px;
  /* v0.3.11.2: shared application-content design tokens. The global header
     and sidebar retain their existing independent visual rules. */
  --ezacc-ui-primary: #087f69;
  --ezacc-ui-primary-hover: #066956;
  --ezacc-ui-ink: #17263c;
  --ezacc-ui-muted: #64748b;
  --ezacc-ui-line: #dce6ed;
  --ezacc-ui-surface: #ffffff;
  --ezacc-ui-canvas: #f6f8fb;
  --ezacc-ui-soft: #f4f8fa;
  --ezacc-ui-focus: #087f69;
  --ezacc-ui-radius: 14px;
  --ezacc-ui-shadow: 0 2px 12px rgba(14,34,54,.045);

  --ezacc-wp-admin-offset: 0px;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  position: relative !important;
}
body.admin-bar .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 { --ezacc-wp-admin-offset: 32px; }
@media (max-width:782px) {
  body.admin-bar .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 { --ezacc-wp-admin-offset: 46px; }
}
.ezacc-shell-v0380 > .ezacc-workspace-user-data,
.ezacc-shell-v0380 > [hidden] { display: none !important; }

@media (min-width:1024px) {
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 {
    display: grid !important;
    grid-template-columns: var(--ezacc-shell-sidebar-width) minmax(0, 1fr) !important;
    grid-template-rows: var(--ezacc-shell-header-height) minmax(0, auto) !important;
    grid-template-areas: "header header" "sidebar main" !important;
    gap: 0 !important;
    justify-items: stretch !important;
    align-items: start !important;
    align-content: start !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-global-header-v0360 {
    grid-area: header !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    display: flex !important;
    position: sticky !important;
    top: var(--ezacc-wp-admin-offset) !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: var(--ezacc-shell-header-height) !important;
    min-height: var(--ezacc-shell-header-height) !important;
    margin: 0 !important;
    padding: 10px 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background: #065f46 !important;
    color: #fff !important;
    z-index: 1001 !important;
    overflow: visible !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.08) !important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > nav.ezacc-nav {
    grid-area: sidebar !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 0 !important;
    display: flex !important;
    align-self: start !important;
    position: sticky !important;
    top: calc(var(--ezacc-shell-header-height) + var(--ezacc-wp-admin-offset)) !important;
    width: var(--ezacc-shell-sidebar-width) !important;
    max-width: var(--ezacc-shell-sidebar-width) !important;
    min-width: 0 !important;
    height: calc(100dvh - var(--ezacc-shell-header-height) - var(--ezacc-wp-admin-offset)) !important;
    max-height: calc(100dvh - var(--ezacc-shell-header-height) - var(--ezacc-wp-admin-offset)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 12px 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    z-index: 30 !important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-shell-main-v0380 {
    grid-area: main !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    order: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    border: 0 !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
  }
  .ezacc-shell-v0380 > .ezacc-shell-main-v0380 > .ezacc-business-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100px !important;
    margin: 0 0 16px !important;
    padding: 18px 24px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .ezacc-shell-v0380 > .ezacc-shell-main-v0380 > :not(.ezacc-business-header):not(style):not(script) {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 24px !important;
    margin-right: 24px !important;
    box-sizing: border-box !important;
  }
  .ezacc-shell-v0380 > .ezacc-031-bottom,
  .ezacc-shell-v0380 > .ezacc-native-bottom { display: none !important; }
}
/* Permanent accessible desktop company workspace disclosure. */
.ezacc-shell-v0380 > .ezacc-global-header-v0360 .ezacc-header-company-v0360 {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.ezacc-shell-v0380 .ezacc-header-company-v0360 > summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 9px !important;
  border-radius: 8px !important;
  max-width: 100% !important;
  list-style: none !important;
  color: #fff !important;
  font-weight: 650 !important;
  cursor: pointer !important;
}
.ezacc-shell-v0380 .ezacc-header-company-v0360 > summary::-webkit-details-marker { display: none; }
.ezacc-shell-v0380 .ezacc-header-company-v0360 > summary:hover,
.ezacc-shell-v0380 .ezacc-header-company-v0360 > summary:focus-visible { background: #047857 !important; }
.ezacc-shell-v0380 .ezacc-header-company-icon-v0360 {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  background: rgba(255,255,255,.14) !important;
  border-radius: 7px !important;
  color: #fff !important;
  font-size: 12px !important;
  overflow: hidden !important;
}
.ezacc-shell-v0380 .ezacc-header-company-icon-v0360 img { width: 28px !important; height: 28px !important; object-fit: contain !important; }
.ezacc-shell-v0380 .ezacc-header-company-name-v0360 {
  color: #fff !important;
  max-width: min(340px, 43vw) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}
.ezacc-shell-v0380 .ezacc-header-company-v0360[open] { z-index: 1010 !important; }
.ezacc-shell-v0380 .ezacc-header-panel-v0360 {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: min(380px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(75vh, 620px) !important;
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #d7e5de !important;
  border-radius: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  z-index: 1100 !important;
  background: #fff !important;
  color: #17253b !important;
  box-shadow: 0 12px 32px rgba(6,27,22,.25) !important;
  box-sizing: border-box !important;
}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 * { box-sizing: border-box !important; }
.ezacc-shell-v0380 .ezacc-header-panel-v0360 .ezacc-shell-control-v0380 {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 10px 0 !important;
  padding: 14px !important;
  transform: none !important;
}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 form.ezacc-company-switcher {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 .ezacc-company-switcher strong { font-size: 16px !important; margin: 0 !important; }
.ezacc-shell-v0380 .ezacc-header-panel-v0360 form :is(input,select,button) { max-width: 100% !important; min-width: 0 !important; }
.ezacc-shell-v0380 .ezacc-header-preferences-v0360 { flex: 0 0 auto !important; color: #fff !important; }
.ezacc-shell-v0380 .ezacc-header-preferences-v0360 .ezacc-lang { margin: 0 !important; padding: 0 !important; background: none !important; }
.ezacc-shell-v0380 .ezacc-header-preferences-v0360 .ezacc-lang form {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}
.ezacc-shell-v0380 .ezacc-header-preferences-v0360 .ezacc-lang label { color: #fff !important; font-size: 12px !important; }
.ezacc-shell-v0380 .ezacc-header-preferences-v0360 .ezacc-lang select {
  width: 130px !important;
  min-height: 36px !important;
  height: 36px !important;
  color: #064e3b !important;
  background: #fff !important;
  font-size: 12px !important;
}
.ezacc-shell-v0380 .ezacc-header-preferences-v0360 .ezacc-lang button { display: none !important; }

/* Mobile: no app top header, only the retained bottom navigation and its More sheet. */
@media (max-width:1023px) {
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 {
    display: block !important;
    width: 100% !important;
    min-height: 100dvh !important;
    background: #f8fafc !important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-global-header-v0360,
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > nav.ezacc-nav,
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-native-bottom,
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 .ezacc-business-header {
    display: none !important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-shell-main-v0380 {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px 14px calc(94px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }
  .ezacc-shell-v0380 > .ezacc-shell-main-v0380 > :not(style):not(script) {
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-031-bottom {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .ezacc-shell-v0380 .ezacc-031-more-menu .ezacc-mobile-workspace-v0380 {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid #dce6f2 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
  }
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 > strong { display: block; font-size: 13px; margin: 0 0 5px; }
  .ezacc-shell-v0380 .ezacc-mobile-company-current-v0380 { margin: 0 0 10px; font-size: 12px; color: #334155; }
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 form,
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 .ezacc-lang form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 .ezacc-shell-control-v0380 {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 8px 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 :is(input,select,button) { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 .ezacc-lang { display: block !important; margin: 10px 0 0 !important; }
  .ezacc-shell-v0380 .ezacc-mobile-workspace-v0380 .ezacc-lang form > label { color: #334155 !important; }
}

/* Company controls use dedicated shell classes so old dashboard card margin rules cannot apply. */
.ezacc-shell-v0380 .ezacc-shell-control-v0380 {
  box-sizing: border-box !important;
  border: 1px solid #dce6e2 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 > :is(.ezacc-company-switcher,.ezacc-create-company,.ezacc-shell-control-v0380) {
  margin: 10px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 > .ezacc-create-company {
  padding: 12px !important;
}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 > .ezacc-create-company > summary {cursor:pointer !important;}
.ezacc-shell-v0380 .ezacc-header-panel-v0360 input,
.ezacc-shell-v0380 .ezacc-header-panel-v0360 select,
.ezacc-shell-v0380 .ezacc-header-panel-v0360 button { width: 100% !important; }

/* 0.3.11.2: shared keyboard-visible focus within application content only. */
.ezacc-shell-v0380 .ezacc-shell-main-v0380 :is(a, button, summary):focus-visible {
  outline: 2px solid var(--ezacc-ui-focus,#087f69);
  outline-offset: 2px;
}
@media(prefers-reduced-motion:reduce){
  .ezacc-shell-v0380 .ezacc-shell-main-v0380 :is(a, button, summary){transition:none!important;transform:none!important}
}
