/* WOODMASTER V39.2.2 — Public shell + auth synchronization hotfix */
html,body{max-width:100%;overflow-x:clip}
body.lang-ar [data-en]{display:none!important}
body.lang-en [data-ar]{display:none!important}
body.lang-ar{direction:rtl}
body.lang-en{direction:ltr}

/* Remove legacy preview/version chrome that survived older bundles. */
.v6-badge,.wm-test-badge{display:none!important}
#wm-staging-badge{right:auto!important;left:14px!important;bottom:14px!important;padding:6px 9px!important;font-size:9px!important;opacity:.86!important;pointer-events:none!important;z-index:4000!important}

/* Stable public header. */
#nav{z-index:5000!important}
#nav .nav{max-width:100%;min-width:0;gap:20px!important}
#nav .wm-public-links{display:flex;align-items:center;gap:20px!important;min-width:0}
#nav .wm-public-links>a,#nav .wm-company-trigger{font-size:12px!important;line-height:1.2!important;white-space:nowrap!important}
#nav .wm-public-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;margin-inline-start:0!important}
#nav .wm-lang-compact{width:auto!important;height:40px!important;min-width:44px!important;max-width:58px!important;padding:0 10px!important;background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.20)!important;border-radius:9px!important}
#nav .wm-notify-icon{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;padding:0!important;border-radius:9px!important}

/* New explicit account/login control. */
#wmHeaderAccountBtn{height:40px;max-width:190px;display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(199,162,80,.46);background:rgba(199,162,80,.07);color:#ead28d;border-radius:9px;padding:0 11px;font:800 10px/1.1 inherit;cursor:pointer;white-space:nowrap}
#wmHeaderAccountBtn:hover{background:rgba(199,162,80,.13)}
#wmHeaderAccountBtn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
#wmHeaderAccountBtn .wm-head-account-name{overflow:hidden;text-overflow:ellipsis;max-width:145px}

/* Company menu: no text overlap, predictable geometry. */
.wm-company-menu{position:relative!important}
.wm-company-dropdown{top:36px!important;inset-inline-end:-18px!important;width:320px!important;max-width:calc(100vw - 28px)!important;padding:8px!important;background:#11110f!important;border:1px solid rgba(199,162,80,.34)!important;border-radius:14px!important;box-shadow:0 22px 55px rgba(0,0,0,.58)!important;z-index:6000!important;overflow:hidden!important}
.wm-company-dropdown-head{padding:12px!important}
.wm-company-dropdown>button{min-height:58px!important;width:100%!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:11px!important;text-align:start!important;padding:9px 10px!important;color:#f3eee7!important;background:transparent!important;border:0!important;border-radius:9px!important}
.wm-company-dropdown>button>span:last-child{min-width:0!important;overflow:hidden!important}
.wm-company-dropdown button b{font-size:11px!important;line-height:1.35!important;color:#f3eee7!important}
.wm-company-dropdown button small{font-size:9px!important;line-height:1.35!important;color:#9b9387!important;margin-top:3px!important}
.wm-drop-icon{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border:1px solid rgba(199,162,80,.30)!important;border-radius:8px!important;color:#dabe75!important}
.wm-drop-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Clear logout inside Company System menu. */
#wmMenuLogoutBtn{border-top:1px solid rgba(255,255,255,.07)!important;margin-top:4px!important;color:#f0cfc9!important}
#wmMenuLogoutBtn b{color:#f0cfc9!important}

/* The legacy floating session bar caused the giant overlapping logout pill. */
.wm-session-bar{display:none!important}

/* Auth modal must always be above the header/menu. */
.wm-auth-modal{z-index:10000!important}
.wm-auth-modal.open{display:flex!important}

/* Quote controls retained from V39.2.1. */
#quote{scroll-margin-top:100px}
#quote .v7-config{width:100%;max-width:100%;overflow:hidden}
#quote .v7-form,#quote .v7-step{max-width:100%;min-width:0}
#quote .v7-progress{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;padding:18px 20px!important;overflow:visible!important}
#quote .v7-progress>i{display:none!important}
#quote .v7-prog{min-width:0!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:10px 8px!important;white-space:normal!important;text-align:center!important}
#quote .v7-prog b{flex:0 0 auto!important}
#quote .v7-prog span{min-width:0!important;line-height:1.25!important}
#quote .v7-services{width:100%!important;max-width:100%!important}
#quote .v7-service{pointer-events:auto!important;cursor:pointer!important;z-index:1}
#quote .v7-service>*{pointer-events:none}
#quote .v7-nav{position:relative;z-index:5}
#v7Back,#v7Next,#v7Submit{pointer-events:auto!important;cursor:pointer!important;position:relative;z-index:6}

@media(max-width:1180px){#nav .wm-public-links{display:none!important}#nav .wm-public-actions{margin-inline-start:auto!important}}
@media(max-width:760px){#wmHeaderAccountBtn{max-width:44px;width:44px;padding:0;justify-content:center}#wmHeaderAccountBtn .wm-head-account-name{display:none}.wm-company-dropdown{display:none!important}#quote .v7-progress{display:flex!important;overflow-x:auto!important;justify-content:flex-start!important;padding:12px!important;gap:6px!important}#quote .v7-prog{flex:0 0 52px!important;padding:8px 5px!important}#quote .v7-prog span{display:none!important}}
