/* V164: single authoritative dashboard layout, overrides legacy V127/V130 conflicting grids. */
html body.portal-customer #customerDashboard:not(.hide),html body.portal-seller #sellerSection:not(.hide),html body.portal-admin #adminSection:not(.hide){display:block!important;width:calc(100% - 24px)!important;max-width:1600px!important;margin:12px auto!important;padding:0!important;min-width:0!important;float:none!important}
html body.portal-customer #customerDashboard>.mz-dashboard-shell,html body.portal-seller #sellerSection>.mz-dashboard-shell,html body.portal-admin #adminSection>.mz-dashboard-shell{display:grid!important;grid-template-columns:245px minmax(0,1fr)!important;gap:0!important;width:100%!important;max-width:100%!important;min-width:0!important}
html body.portal-customer #customerDashboard .mz-dashboard-content,html body.portal-seller #sellerSection .mz-dashboard-content,html body.portal-admin #adminSection .mz-dashboard-content{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
html body.portal-customer #customerDashboard .mz-dashboard-body,html body.portal-seller #sellerSection .mz-dashboard-body,html body.portal-admin #adminSection .mz-dashboard-body{display:block!important;grid-template-columns:none!important;gap:0!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:20px!important;overflow:visible!important;box-sizing:border-box!important}
html body.portal-customer #customerDashboard .mz-dashboard-body>*,html body.portal-seller #sellerSection .mz-dashboard-body>*,html body.portal-admin #adminSection .mz-dashboard-body>*{display:block;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;box-sizing:border-box!important;margin-bottom:18px!important}
html body.portal-customer #customerDashboard .mz-dashboard-body>.mz-overview,html body.portal-seller #sellerSection .mz-dashboard-body>.mz-overview,html body.portal-admin #adminSection .mz-dashboard-body>.mz-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
html body.portal-customer #customerDashboard .mz-v138-register,html body.portal-seller #sellerSection .mz-v138-register,html body.portal-admin #adminSection .mz-v138-register,html body.portal-customer #customerDashboard .mz-v139-workspace,html body.portal-seller #sellerSection .mz-v139-workspace,html body.portal-admin #adminSection .mz-v139-workspace{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;box-sizing:border-box!important}
html body.portal-customer #customerDashboard .mz-v138-toolbar,html body.portal-seller #sellerSection .mz-v138-toolbar,html body.portal-admin #adminSection .mz-v138-toolbar{display:flex!important;flex-wrap:wrap!important}
html body.portal-customer #customerDashboard .mz-v139-feature-grid,html body.portal-seller #sellerSection .mz-v139-feature-grid,html body.portal-admin #adminSection .mz-v139-feature-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
html body.portal-customer #customerDashboard .mz-v139-feature,html body.portal-seller #sellerSection .mz-v139-feature,html body.portal-admin #adminSection .mz-v139-feature{display:flex!important;flex-direction:column!important;min-width:0!important}
html body.portal-customer #customerDashboard .mz-dashboard-sidebar{background:linear-gradient(180deg,#52115d,#310c3d)!important;color:#fff!important}
html body.portal-seller #sellerSection .mz-dashboard-sidebar{background:linear-gradient(180deg,#07563f,#063b2d)!important;color:#fff!important}
html body.portal-admin #adminSection .mz-dashboard-sidebar{background:linear-gradient(180deg,#182d56,#0e1b38)!important;color:#fff!important}
html body.portal-customer #customerDashboard .mz-side-link,html body.portal-seller #sellerSection .mz-side-link,html body.portal-admin #adminSection .mz-side-link{color:#fff9e9!important;background:transparent!important}
html body.portal-customer #customerDashboard .mz-side-link.is-active,html body.portal-seller #sellerSection .mz-side-link.is-active,html body.portal-admin #adminSection .mz-side-link.is-active{background:linear-gradient(100deg,#f6d77b,#d7a943)!important;color:#2c2232!important}
html body.portal-customer #customerDashboard .mz-dashboard-content{background:#fff8fc!important}
html body.portal-seller #sellerSection .mz-dashboard-content{background:#f5fbf6!important}
html body.portal-admin #adminSection .mz-dashboard-content{background:#f4f6fc!important}
html body.portal-customer #customerDashboard .mz-dashboard-body{background:#fff8fc!important}
html body.portal-seller #sellerSection .mz-dashboard-body{background:#f5fbf6!important}
html body.portal-admin #adminSection .mz-dashboard-body{background:#f4f6fc!important}
html body.portal-seller #sellerSection .mz-dashboard-body h2,html body.portal-seller #sellerSection .mz-dashboard-body h3{color:#07563f!important}
html body.portal-admin #adminSection .mz-dashboard-body h2,html body.portal-admin #adminSection .mz-dashboard-body h3{color:#182d56!important}
html body.portal-customer #customerDashboard .mz-dashboard-body h2,html body.portal-customer #customerDashboard .mz-dashboard-body h3{color:#52115d!important}
html body.portal-seller #sellerSection .mz-v139-workspace,html body.portal-seller #sellerSection .mz-v138-register{border-top:4px solid #16835e!important}
html body.portal-admin #adminSection .mz-v139-workspace,html body.portal-admin #adminSection .mz-v138-register{border-top:4px solid #d0ac53!important}
html body.portal-customer #customerDashboard .mz-v139-workspace,html body.portal-customer #customerDashboard .mz-v138-register{border-top:4px solid #7b3386!important}
@media(max-width:950px){html body.portal-customer #customerDashboard>.mz-dashboard-shell,html body.portal-seller #sellerSection>.mz-dashboard-shell,html body.portal-admin #adminSection>.mz-dashboard-shell{grid-template-columns:195px minmax(0,1fr)!important}html body.portal-customer #customerDashboard .mz-v139-feature-grid,html body.portal-seller #sellerSection .mz-v139-feature-grid,html body.portal-admin #adminSection .mz-v139-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){html body.portal-customer #customerDashboard>.mz-dashboard-shell,html body.portal-seller #sellerSection>.mz-dashboard-shell,html body.portal-admin #adminSection>.mz-dashboard-shell{grid-template-columns:minmax(0,1fr)!important}html body.portal-customer #customerDashboard .mz-dashboard-sidebar,html body.portal-seller #sellerSection .mz-dashboard-sidebar,html body.portal-admin #adminSection .mz-dashboard-sidebar{width:100%!important}html body.portal-customer #customerDashboard .mz-dashboard-body,html body.portal-seller #sellerSection .mz-dashboard-body,html body.portal-admin #adminSection .mz-dashboard-body{padding:12px!important}html body.portal-customer #customerDashboard .mz-dashboard-body>.mz-overview,html body.portal-seller #sellerSection .mz-dashboard-body>.mz-overview,html body.portal-admin #adminSection .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
