/* V127 — screenshot-led layout refinement. Existing live sections/forms remain in place. */
:root{--v127-cream:#fff8e9;--v127-plum:#4b064f;--v127-plum2:#6e126c;--v127-gold:#e8b83e;--v127-line:#e8d6ae;--v127-ink:#26162b}
body.portal-admin,body.portal-seller,body.portal-customer{background:#fff8e9!important;color:var(--v127-ink)!important}
#adminSection .mz-dashboard-shell,#sellerSection .mz-dashboard-shell,#customerDashboard .mz-dashboard-shell{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;grid-template-columns:242px minmax(0,1fr)!important;min-height:100vh!important}
.mz-dashboard-content{background:#fff8e9!important;min-width:0!important}
.mz-dashboard-topbar{min-height:82px!important;display:flex!important;align-items:center!important;gap:16px!important;padding:10px 22px!important;background:linear-gradient(90deg,#fff9ed,#fffdf8)!important;border-bottom:1px solid #eadbbd!important;box-shadow:0 3px 12px #3210330c!important}
.mz-dashboard-topbar h1{font-size:clamp(20px,2vw,29px)!important;color:#421043!important;font-weight:900!important;margin:0!important}
.mz-dashboard-topbar p{margin:3px 0 0!important;color:#756273!important;font-size:12px!important}
.mz-dashboard-eyebrow{font-size:10px!important;letter-spacing:1.4px!important;color:#a27524!important;font-weight:900!important}
.mz-dashboard-sidebar{padding:14px 10px!important;background:linear-gradient(180deg,#4a064f,#2c002e)!important;color:#fff!important}
.mz-sidebar-brand{padding:10px 8px 18px!important;border-bottom:1px solid #ffffff30!important;margin-bottom:10px!important}
.mz-sidebar-logo{width:42px!important;height:42px!important;border-radius:12px 12px 8px 8px!important;background:linear-gradient(145deg,#ffe38b,#d89c24)!important;color:#4b064f!important;font-size:23px!important;font-weight:1000!important}
.mz-sidebar-brand b{font-size:16px!important;color:#fff!important}.mz-sidebar-brand small{color:#f7e9c9!important}
.mz-side-link{min-height:46px!important;padding:9px 10px!important;margin:3px 0!important;border-radius:9px!important;color:#fff8e9!important;font-size:14px!important;font-weight:800!important;border:1px solid transparent!important}
.mz-side-link.is-active{background:linear-gradient(100deg,#f5d66f,#dca82d)!important;color:#321333!important;box-shadow:0 4px 12px #17001955!important}
.mz-side-icon{font-size:19px!important;width:29px!important}
.mz-dashboard-body{padding:16px!important;display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:13px!important;align-content:start!important;background:#fff8e9!important}
.mz-dashboard-body>.mz-overview{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important;margin:0!important}
.mz-overview-card{min-height:108px!important;padding:14px 13px!important;border:1px solid #e6d3a8!important;border-radius:15px!important;background:linear-gradient(145deg,#fffdf8,#fff4dc)!important;box-shadow:0 3px 8px #3b193011!important;text-decoration:none!important}
.mz-overview-card .mz-kpi-label{font-size:13px!important;color:#342638!important;font-weight:850!important}
.mz-overview-card .mz-kpi-value{font-size:clamp(20px,2vw,27px)!important;color:#4b064f!important;font-weight:950!important}
.mz-overview-card .mz-kpi-note{font-size:11px!important;color:#16813b!important}
.mz-overview-card .mz-kpi-icon{left:12px!important;right:auto!important;top:12px!important;width:38px!important;height:38px!important;border-radius:11px!important;background:#f4e3b7!important;color:#4b064f!important}
.mz-dashboard-body>.panel,.mz-dashboard-body>div.panel{min-width:0!important;margin:0!important;padding:17px!important;border:1px solid #e8d7b6!important;border-radius:15px!important;background:linear-gradient(145deg,#fffdf8,#fff8e9)!important;box-shadow:0 3px 10px #381d2410!important;color:#25172a!important}
.mz-dashboard-body h2,.mz-dashboard-body h3{color:#4b064f!important;font-weight:900!important}
.mz-dashboard-body table{width:100%!important;border-collapse:separate!important;border-spacing:0!important;border:1px solid #e9dcc2!important;border-radius:11px!important;overflow:hidden!important;background:#fffdf9!important}
.mz-dashboard-body th{background:#f5e9ce!important;color:#27172b!important;font-weight:900!important;white-space:nowrap!important;padding:11px!important}
.mz-dashboard-body td{padding:10px!important;border-bottom:1px solid #eee6d9!important}
/* ADMIN: reference dashboard — intro, six KPIs, finance/quick actions, live tables and system status. */
body.portal-admin #adminSection .mz-dashboard-sidebar{background:linear-gradient(180deg,#4b064f,#29002c)!important}
body.portal-admin #adminSection .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(6,minmax(0,1fr))!important}
body.portal-admin #adminSection .mz-overview-card{min-height:112px!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminSellerFinancePanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminOrdersPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminSellerPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminProductsPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminKycPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminReturnsPanel,body.portal-admin #adminSection .mz-dashboard-body>#adminRefundsPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminSafetyReportsPanel,body.portal-admin #adminSection .mz-dashboard-body>#adminAuditPanel,body.portal-admin #adminSection .mz-dashboard-body>#adminTrustPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>#adminPaymentAccountsPanel,body.portal-admin #adminSection .mz-dashboard-body>#adminSupportStaffPanel{grid-column:span 6!important}
body.portal-admin #adminSection .mz-dashboard-body>.panel:first-of-type{background:linear-gradient(100deg,#fff0c6,#fffaf0)!important}
/* SELLER: pale cream sidebar, store identity banner, four KPIs, then real operational panels. */
body.portal-seller #sellerSection .mz-dashboard-sidebar{background:linear-gradient(180deg,#fff9e9,#f4e8cb)!important;border-right:1px solid #e5d5b2!important;color:#28182b!important}
body.portal-seller #sellerSection .mz-sidebar-brand{background:linear-gradient(110deg,#073e30,#0b6047)!important;border-radius:12px!important;padding:13px!important}
body.portal-seller #sellerSection .mz-sidebar-brand b,body.portal-seller #sellerSection .mz-sidebar-brand small{color:#fff!important}
body.portal-seller #sellerSection .mz-side-link{color:#24182a!important}
body.portal-seller #sellerSection .mz-side-link.is-active{background:linear-gradient(100deg,#f4d66f,#d8a92e)!important;color:#2d1830!important}
body.portal-seller #sellerSection .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.portal-seller #sellerSection .mz-overview-card{background:linear-gradient(145deg,#fff,#f5faef)!important;border-color:#d8e4cb!important}
body.portal-seller #sellerSection .mz-overview-card .mz-kpi-value{color:#07513c!important}
body.portal-seller #sellerSection .mz-overview-card .mz-kpi-icon{background:#e0f0d8!important;color:#07513c!important}
body.portal-seller #sellerSection .mz-dashboard-body>#sellerProfilePanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerKycPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerApprovalPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerProductPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerOrdersPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerReturnsPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerRefundsPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerMyProductsPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerPayoutPanel,body.portal-seller #sellerSection .mz-dashboard-body>#sellerAiStudioPanel{grid-column:span 6!important}
body.portal-seller #sellerSection .mz-dashboard-body>#sellerProfilePanel{grid-column:1/-1!important}
body.portal-seller #sellerSection .mz-dashboard-body>.row{grid-column:1/-1!important}
body.portal-seller #sellerSection .workflow-steps{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
body.portal-seller #sellerSection .workflow-step{background:#fffaf0!important;border:1px solid #e4d4b3!important;border-radius:11px!important;padding:10px!important}
body.portal-seller #sellerSection .seller-hub-nav a{background:#fff!important;border:1px solid #e3d2ad!important;border-radius:9px!important;color:#4b064f!important;font-weight:850!important}
body.portal-seller #sellerSection .mz-dashboard-body button:not(.danger){border-radius:10px!important}
/* CUSTOMER: cream sidebar with plum account identity and compact account/order workspace. */
body.portal-customer #customerDashboard .mz-dashboard-sidebar{background:#fffaf0!important;border-right:1px solid #e7d8b8!important}
body.portal-customer #customerDashboard .mz-sidebar-brand{background:linear-gradient(120deg,#4b064f,#76136e)!important;border-radius:12px!important;color:#fff!important}
body.portal-customer #customerDashboard .mz-sidebar-brand b,body.portal-customer #customerDashboard .mz-sidebar-brand small{color:#fff!important}
body.portal-customer #customerDashboard .mz-side-link{color:#2c1b30!important}
body.portal-customer #customerDashboard .mz-side-link.is-active{background:linear-gradient(100deg,#f4d46b,#dba82c)!important;color:#2e1830!important}
body.portal-customer #customerDashboard .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.portal-customer #customerDashboard .mz-dashboard-body>#customerProfileForm,body.portal-customer #customerDashboard .mz-dashboard-body>.shop-actions,body.portal-customer #customerDashboard .mz-dashboard-body>#customerRefundAccountPanel,body.portal-customer #customerDashboard .mz-dashboard-body>#customerSafetyPanel{grid-column:1/-1!important}
body.portal-customer #customerDashboard .mz-dashboard-body>.panel{grid-column:span 6!important}
body.portal-customer #customerDashboard .mz-dashboard-body>.shop-heading{grid-column:1/-1!important;background:linear-gradient(100deg,#fff0c9,#fffaf0)!important;border:1px solid #e5d0a0!important;border-radius:15px!important;padding:20px!important}
/* Storefront exact brand palette and section proportions. */
body.storefront{background:#fff8e9!important;color:#26152b!important}
body.storefront .mz-header,body.storefront .mz-topline{background:#fffaf0!important;color:#2a172e!important}
body.storefront .mz-brand,body.storefront .mz-brand strong{color:#4b064f!important}
body.storefront .mz-categories{background:linear-gradient(90deg,#f7df91,#fff0c5)!important;color:#2a172e!important}
body.storefront .shop-hero{min-height:300px!important;border:5px solid #e3b53a!important;border-radius:26px!important;background:radial-gradient(circle at 75% 48%,#a65319 0,#68115e 38%,#26002e 82%)!important;box-shadow:0 8px 24px #4b064f24!important}
body.storefront .shop-hero h2{color:#fff9ed!important;font-size:clamp(30px,4vw,50px)!important}
body.storefront .shop-hero h2 em{color:#ffdc67!important}
body.storefront .shop-hero p,body.storefront .shop-hero .hero-benefits span{color:#fff1c8!important}
body.storefront .shop-hero button{background:linear-gradient(110deg,#f5d56d,#dca62b)!important;color:#2a142e!important;border:1px solid #ffe6a1!important;border-radius:999px!important;font-weight:900!important}
body.storefront .category-tile{background:linear-gradient(145deg,#fff,#fff2d3)!important;border:1px solid #e7d3a6!important;border-radius:15px!important}
body.storefront .deal-card,body.storefront .mz-promo-card{background:linear-gradient(135deg,#4b064f,#26002e)!important;color:#fff4d4!important;border:2px solid #dfb43c!important;border-radius:17px!important}
body.storefront .mz-promo-delivery{background:linear-gradient(135deg,#98500d,#efbd48)!important}
body.storefront .product-card{background:#fffdf8!important;border:1px solid #e6d3a8!important;border-radius:14px!important}
body.storefront .product-card button{background:linear-gradient(110deg,#4b064f,#78156e)!important}
body.storefront .service-strip{background:#39033f!important;color:#fff2c7!important;border:2px solid #dfb43c!important;border-radius:14px!important}
@media(max-width:1100px){body.portal-admin #adminSection .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){#adminSection .mz-dashboard-shell,#sellerSection .mz-dashboard-shell,#customerDashboard .mz-dashboard-shell{grid-template-columns:1fr!important}.mz-dashboard-sidebar{padding:9px!important}.mz-sidebar-nav{display:flex!important;overflow-x:auto!important;gap:5px!important}.mz-side-link{flex:0 0 auto!important;white-space:nowrap!important}.mz-dashboard-body{padding:9px!important;grid-template-columns:1fr!important}.mz-dashboard-body>.panel,.mz-dashboard-body>div.panel{grid-column:1/-1!important}.mz-dashboard-body>.mz-overview,body.portal-admin #adminSection .mz-dashboard-body>.mz-overview,body.portal-seller #sellerSection .mz-dashboard-body>.mz-overview,body.portal-customer #customerDashboard .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}.workflow-steps{grid-template-columns:1fr 1fr!important}.mz-dashboard-topbar{padding:10px 12px!important}.mz-dashboard-topbar h1{font-size:19px!important}}


/* V130 HOTFIX: correct dashboard child placement. The prior 12-track grid left
   unassigned children in a single narrow track. Use a real two-column workspace. */
#adminSection .mz-dashboard-body,
#sellerSection .mz-dashboard-body,
#customerDashboard .mz-dashboard-body{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  align-content:start!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#adminSection .mz-dashboard-body>* ,
#sellerSection .mz-dashboard-body>* ,
#customerDashboard .mz-dashboard-body>*{
  grid-column:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#adminSection .mz-dashboard-body>.mz-overview,
#sellerSection .mz-dashboard-body>.mz-overview,
#customerDashboard .mz-dashboard-body>.mz-overview,
#adminSection .mz-dashboard-body>.row,
#sellerSection .mz-dashboard-body>.row,
#customerDashboard .mz-dashboard-body>.shop-heading,
#customerDashboard .mz-dashboard-body>.shop-actions,
#customerDashboard .mz-dashboard-body>#customerProfileForm,
#customerDashboard .mz-dashboard-body>#customerContinueShopping,
#customerDashboard .mz-dashboard-body>button{
  grid-column:1/-1!important;
}
#adminSection .mz-dashboard-body>.mz-overview,
#sellerSection .mz-dashboard-body>.mz-overview,
#customerDashboard .mz-dashboard-body>.mz-overview{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
#adminSection .mz-dashboard-body>.panel,
#sellerSection .mz-dashboard-body>.panel,
#customerDashboard .mz-dashboard-body>.panel{
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
}
#customerDashboard .mz-dashboard-body>#customerRefundAccountPanel,
#customerDashboard .mz-dashboard-body>#customerSafetyPanel,
#sellerSection .mz-dashboard-body>#sellerProfilePanel,
#sellerSection .mz-dashboard-body>#sellerKycPanel,
#sellerSection .mz-dashboard-body>#sellerApprovalPanel,
#adminSection .mz-dashboard-body>#adminSellerFinancePanel,
#adminSection .mz-dashboard-body>#adminSupportStaffPanel,
#adminSection .mz-dashboard-body>#adminPaymentAccountsPanel{
  grid-column:1/-1!important;
}
#adminSection .mz-dashboard-body table,
#sellerSection .mz-dashboard-body table,
#customerDashboard .mz-dashboard-body table{width:100%!important;max-width:100%!important}
@media(max-width:900px){
 #adminSection .mz-dashboard-body,
 #sellerSection .mz-dashboard-body,
 #customerDashboard .mz-dashboard-body{grid-template-columns:minmax(0,1fr)!important}
 #adminSection .mz-dashboard-body>.mz-overview,
 #sellerSection .mz-dashboard-body>.mz-overview,
 #customerDashboard .mz-dashboard-body>.mz-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #adminSection .mz-dashboard-body>* ,#sellerSection .mz-dashboard-body>* ,#customerDashboard .mz-dashboard-body>*{grid-column:1/-1!important}
}
