/* v0.3.9.0: reference-inspired visual system on top of stable v0.3.8.0 grid.
 * No DOM movement, no fake accounting records, no unsupported language/currency setting.
 */
@media (min-width:1024px) {
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-reference-header-v0390 {
    --ezacc-039-ink:#17253b;
    height:72px!important;min-height:72px!important;
    padding:8px 24px!important;gap:14px!important;
    background:#ffffff!important;color:var(--ezacc-039-ink)!important;
    border-bottom:1px solid #e1e7ee!important;
    box-shadow:0 2px 12px rgba(18,32,50,.05)!important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 {--ezacc-shell-header-height:72px;--ezacc-shell-sidebar-width:248px;}
  .ezacc-shell-v0380 > .ezacc-shell-main-v0380 > .ezacc-business-header {
    background:#f5f7fb!important;border-bottom:0!important;
    min-height:124px!important;padding:30px 28px 15px!important;margin-bottom:8px!important;
  }
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-shell-main-v0380 {background:#f5f7fb!important;}
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > nav.ezacc-nav {background:#142238!important;}
}
.ezacc-shell-v0380 .ezacc-reference-header-v0390 {box-sizing:border-box!important;font-family:Inter,system-ui,sans-serif!important;}
.ezacc-reference-header-v0390 * {box-sizing:border-box!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company,
.ezacc-reference-header-v0390 .ezacc-modern-language {position:relative!important;min-width:0!important;margin:0!important;border:0!important;padding:0!important;flex:0 1 auto!important;background:none!important;}
.ezacc-reference-header-v0390 :is(.ezacc-modern-company-trigger,.ezacc-modern-chip) {
  display:inline-flex!important;align-items:center!important;gap:10px!important;
  min-height:44px!important;border:1px solid #d9e2ec!important;
  background:#fff!important;color:#17253b!important;
  padding:7px 12px!important;border-radius:10px!important;
  box-shadow:none!important;line-height:1.3!important;
}
.ezacc-reference-header-v0390 .ezacc-modern-company-trigger {
  width:min(300px,30vw)!important;min-width:205px!important;max-width:300px!important;
  cursor:pointer!important;list-style:none!important;user-select:none!important;
}
.ezacc-reference-header-v0390 :is(.ezacc-modern-company-trigger,.ezacc-modern-language-trigger)::-webkit-details-marker {display:none!important;}
.ezacc-reference-header-v0390 .ezacc-modern-avatar {display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:9px!important;background:#087e68!important;color:#fff!important;font-size:12px!important;font-weight:750!important;letter-spacing:.025em!important;overflow:hidden!important;}
.ezacc-reference-header-v0390 .ezacc-modern-avatar img {width:100%!important;height:100%!important;object-fit:contain!important;}
.ezacc-reference-header-v0390 .ezacc-modern-current-text {display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0!important;flex:1!important;text-align:left!important;}
.ezacc-reference-header-v0390 .ezacc-modern-current-text strong {color:#17253b!important;font-size:13px!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;max-width:100%!important;}
.ezacc-reference-header-v0390 .ezacc-modern-current-text small {color:#64748b!important;font-size:11px!important;white-space:nowrap!important;}
.ezacc-reference-header-v0390 .ezacc-modern-chevron {color:#64748b!important;font-size:18px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-tools {display:flex!important;gap:10px!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;margin-left:auto!important;}
.ezacc-reference-header-v0390 .ezacc-modern-chip {white-space:nowrap!important;min-height:42px!important;font-size:12px!important;font-weight:600!important;padding:9px 12px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-currency>span {color:#0c866c!important;}
.ezacc-reference-header-v0390 .ezacc-modern-datetime {color:#475569!important;font-size:11px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-add-company {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap!important;background:#087f68!important;color:#fff!important;border:0!important;border-radius:9px!important;min-height:42px!important;padding:10px 16px!important;font-weight:700!important;font-size:12px!important;box-shadow:none!important;cursor:pointer!important;}
.ezacc-reference-header-v0390 :is(.ezacc-modern-company-trigger,.ezacc-modern-language-trigger,.ezacc-modern-add-company,.ezacc-modern-company-option,.ezacc-modern-language-option):focus-visible {outline:2px solid #089b80!important;outline-offset:2px!important;}
.ezacc-reference-header-v0390 :is(.ezacc-modern-add-company,.ezacc-modern-company-option,.ezacc-modern-language-option):hover {filter:brightness(.97)!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company[open] {z-index:1400!important;}
.ezacc-reference-header-v0390 .ezacc-modern-language[open] {z-index:1400!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-panel,
.ezacc-reference-header-v0390 .ezacc-modern-language-panel {
  display:block!important;position:absolute!important;top:calc(100% + 10px)!important;left:0!important;
  width:min(354px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
  max-height:calc(100vh - 110px)!important;overflow:auto!important;
  padding:10px!important;background:#fff!important;color:#17253b!important;
  border:1px solid #d9e2eb!important;border-radius:14px!important;
  box-shadow:0 18px 46px rgba(28,43,62,.18)!important;
  z-index:1400!important;margin:0!important;transform:none!important;
}
.ezacc-reference-header-v0390 .ezacc-modern-language-panel {left:auto!important;right:0!important;width:224px!important;padding:9px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-search {margin:0 0 14px!important;width:100%!important;}
.ezacc-reference-header-v0390 .ezacc-modern-search input {display:block!important;width:100%!important;max-width:100%!important;min-height:41px!important;margin:0!important;padding:8px 11px!important;border:1px solid #dbe2ea!important;border-radius:9px!important;box-shadow:none!important;background:#f9fafc!important;color:#17253b!important;font-size:13px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-section-label {font-size:11px!important;line-height:1.4!important;font-weight:600!important;color:#64748b!important;margin:5px 10px 8px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-list {max-height:260px!important;overflow-y:auto!important;}
.ezacc-reference-header-v0390 .ezacc-modern-switch-form {display:flex!important;flex-direction:column!important;gap:3px!important;padding:0!important;margin:0!important;max-width:100%!important;width:100%!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-option {display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:57px!important;border:none!important;border-radius:9px!important;padding:7px 9px!important;margin:0!important;background:transparent!important;color:#17253b!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-option.is-current {background:#e4f3ef!important;cursor:default!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-text {display:flex!important;flex-direction:column!important;min-width:0!important;flex:1!important;line-height:1.4!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-text strong {font-size:12px!important;font-weight:650!important;color:#17253b!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-text small {font-size:11px!important;color:#64748b!important;}
.ezacc-reference-header-v0390 .ezacc-modern-selected {color:#087f68!important;font-weight:800!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions {border-top:1px solid #e4e8ee!important;padding:9px 3px 1px!important;margin-top:9px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions > .ezacc-create-company {margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions > .ezacc-create-company > summary {list-style:none!important;display:block!important;color:#087f68!important;padding:9px!important;font-size:12px!important;cursor:pointer!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions > .ezacc-create-company > summary::-webkit-details-marker {display:none!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions .ezacc-create-company[open] {border:1px solid #dbe6e0!important;border-radius:10px!important;padding:8px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions .ezacc-create-company form {display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:10px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-company-actions .ezacc-create-company button[type=submit] {background:#087f68!important;}
.ezacc-reference-header-v0390 .ezacc-modern-manage-company {display:block!important;padding:9px!important;color:#334155!important;text-decoration:none!important;font-weight:550!important;font-size:12px!important;}
.ezacc-reference-header-v0390 .ezacc-modern-language-panel form {display:block!important;width:100%!important;margin:0!important;padding:0!important;}
.ezacc-reference-header-v0390 .ezacc-modern-language-option {display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-height:42px!important;max-width:100%!important;padding:9px 11px!important;margin:0!important;border:0!important;border-radius:8px!important;text-align:left!important;font-size:12px!important;font-weight:550!important;color:#17253b!important;background:transparent!important;cursor:pointer!important;}
.ezacc-reference-header-v0390 .ezacc-modern-language-option.is-current {background:#e4f3ef!important;}
.ezacc-reference-header-v0390 .ezacc-modern-language-option span {color:#087f68!important;}
.ezacc-reference-header-v0390 .ezacc-modern-no-results {font-size:12px!important;color:#64748b!important;padding:8px!important;margin:0!important;}
.ezacc-reference-header-v0390 .ezacc-modern-no-results[hidden] {display:none!important;}
@media (min-width:1024px) and (max-width:1280px) {
  .ezacc-reference-header-v0390 .ezacc-modern-datetime {display:none!important;}
  .ezacc-reference-header-v0390 .ezacc-modern-company-trigger {width:270px!important;}
}
/* Reference accents on existing modules, without replacing accounting forms or data. */
@media (min-width:1024px) {
  .ezacc-shell-v0380 > .ezacc-shell-main-v0380 > .ezacc-card {border-color:#e2e7ef!important;border-radius:13px!important;box-shadow:0 4px 18px rgba(27,44,68,.035)!important;}
  .ezacc-shell-v0380 .ezacc-page-heading h2 {color:#182538!important;font-weight:750!important;letter-spacing:-.025em!important;}
  .ezacc-shell-v0380 nav.ezacc-nav .ezacc-nav-groups a[aria-current="page"] {background:#0c7d67!important;color:#fff!important;}
}
/* Mobile remains bottom-nav-only: new global header must never surface there. */
@media (max-width:1023px) {
  body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-reference-header-v0390 {display:none!important;}
}
/* Defeat older generic button rules and honor actual filtering visibility. */
body .ezacc.ezacc-pro.ezacc-wave-shell.ezacc-shell-v0380 > .ezacc-reference-header-v0390 .ezacc-modern-add-company {
  background:#087f68!important;color:#fff!important;border-color:#087f68!important;
}
.ezacc-reference-header-v0390 .ezacc-modern-company-option[hidden] {display:none!important;}
