/* v51: compact automatic sidebar + standalone customer management */
@media(min-width:769px){
 body:has(.v50-sidebar) .app-shell{grid-template-columns:72px minmax(0,1fr)!important;transition:grid-template-columns .2s ease}
 body:has(.v50-sidebar:hover) .app-shell,body:has(.v50-sidebar:focus-within) .app-shell{grid-template-columns:240px minmax(0,1fr)!important}
 body:has(.v50-sidebar) .app-shell>.v50-sidebar{width:72px!important;max-width:72px!important;padding:22px 9px!important;transition:width .2s ease,max-width .2s ease;overflow:hidden}
 body:has(.v50-sidebar) .app-shell>.v50-sidebar:hover,body:has(.v50-sidebar) .app-shell>.v50-sidebar:focus-within{width:240px!important;max-width:240px!important}
 .v50-sidebar .v50-brand{padding:6px 7px 25px!important;white-space:nowrap!important}
 .v50-sidebar .v50-nav .nav-link{padding:10px 12px!important;gap:15px!important}
 .v50-sidebar:not(:hover):not(:focus-within) .v50-brand>span:nth-child(2),.v50-sidebar:not(:hover):not(:focus-within) .nav-label,.v50-sidebar:not(:hover):not(:focus-within) .v50-merchant>span:nth-child(2),.v50-sidebar:not(:hover):not(:focus-within) .v50-logout{opacity:0!important;pointer-events:none!important}
 .v50-sidebar .v50-merchant{padding-left:3px}
}
:root{--v50-purple:#007b4c}
.v50-sidebar .v50-nav .nav-link.active{background:linear-gradient(110deg,#00a665,#007a4b)!important}.v50-brand-emblem{background:linear-gradient(145deg,#00b875,#00764a)!important}.v50-merchant-avatar{background:#008a55!important}.v50-kicker,.v50-hero h1 span{color:#007f51!important}.v50-primary-btn{background:#008d59!important}.v50-primary-btn:hover{background:#006f46!important}.v50-hero{background:linear-gradient(100deg,#f2faf6,#e7f3ed)!important}.v50-violet{background:#e0f6ea!important;color:#008656!important}.v50-alert-purple{background:#eaf8f0!important;color:#04754a!important}
.v51-customers{padding:20px 12px;max-width:1300px;margin:auto}.v51-c-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.v51-c-head small{color:#00865a;font-weight:750;letter-spacing:1px}.v51-c-head h1{font-size:32px;margin:6px 0}.v51-c-head p{color:#667587;margin:0}.v51-primary{background:#008b58!important;color:white!important;padding:11px 18px;border:0;border-radius:11px;font-weight:700;cursor:pointer}.v51-toolbar{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:14px}.v51-toolbar label{flex:1;max-width:550px;font-size:13px;color:#566477}.v51-toolbar input{display:block;width:100%;padding:13px 14px;margin-top:7px;border:1px solid #dce5e0;border-radius:10px;background:white}.v51-table-wrap{overflow-x:auto;border:1px solid #e1e7e6;border-radius:16px;background:white}.v51-table{width:100%;border-collapse:collapse;text-align:left}.v51-table td,.v51-table th{padding:16px;border-bottom:1px solid #f0f2f4}.v51-table th{font-size:12px;color:#6a7581;background:#f8faf9}.v51-table button,.v51-pager button{border:1px solid #dce6e1;background:#fff;color:#166644;border-radius:8px;padding:7px 10px;margin:2px;cursor:pointer}.v51-table .v51-name{border:0;font-weight:700;color:#16283b;text-align:left}.v51-table .v51-delete{color:#b23b35}.v51-pager{display:flex;align-items:center;justify-content:end;gap:12px;margin-top:14px}.v51-dialog{border:0;border-radius:18px;box-shadow:0 16px 60px #10223344;width:min(520px,95vw);padding:25px}.v51-dialog::backdrop{background:#0f21387a}.v51-dialog header,.v51-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.v51-dialog header button,.v51-dialog footer button:not(.v51-primary){background:#f2f5f4;border:0;border-radius:8px;padding:10px}.v51-fields{display:grid;gap:13px;margin:17px 0}.v51-fields label{font-weight:600;font-size:13px}.v51-fields input,.v51-fields textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #dce3df;border-radius:9px;box-sizing:border-box}.v51-fields input:disabled{background:#f4f4f4}.v51-dialog #c-error{color:#b32c2c}
@media(max-width:768px){.v51-c-head{align-items:flex-start;flex-direction:column}.v51-toolbar{align-items:stretch;flex-direction:column}.v51-table td,.v51-table th{padding:11px}}

/* v51 dashboard layout based on approved preview */
.v51-hero-row{display:grid;grid-template-columns:minmax(0,2.7fr) minmax(260px,1fr);gap:14px;margin-bottom:15px}
.v51-hero-row .v50-hero{margin-bottom:0;min-height:255px}
.v51-hero-row .v50-hero-copy{padding:77px 27px 20px;width:72%}
.v51-hero-row .v50-hero h1{font-size:clamp(24px,2.1vw,35px);margin:6px 0}
.v51-hero-row .v50-hero p{margin-bottom:14px;font-size:13px}
.v51-store-badge{position:absolute;top:12px;left:20px;z-index:4;display:flex;gap:9px;align-items:center;background:#fffffff0;padding:8px 12px;border-radius:13px;box-shadow:0 3px 18px #1b34261a}
.v51-store-badge b,.v51-store-badge small{display:block}.v51-store-badge b{font-size:13px}.v51-store-badge small{font-size:10px;color:#627285}
.v51-store-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;background:#e8f3ed;color:#00784c}.v51-store-icon img{width:35px;height:35px;object-fit:contain}
.v51-notifications{background:#fff;border:1px solid #e1e8e8;border-radius:19px;padding:16px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.v51-notify-head{display:flex;justify-content:space-between;align-items:center;gap:5px}.v51-notify-head h2{font-size:17px;white-space:nowrap;margin:0}.v51-notify-head>span{font-size:10px;color:#618477}
.v51-notifications>a,.v51-notifications>div:not(.v51-notify-head){display:flex;align-items:center;gap:9px;border-top:1px solid #edf1f0;padding:11px 0;color:#163046;font-size:12px}
.v51-notifications>a>span:nth-child(2),.v51-notifications>div>span:nth-child(2){flex:1}.v51-notifications b,.v51-notifications small{display:block}.v51-notifications small{font-size:10px;color:#788591;line-height:1.4;margin-top:3px}
.v51-n-icon{background:#ddf6e9;color:#008c58;border-radius:9px;width:31px;height:31px;display:grid;place-items:center;flex-shrink:0;font-size:17px}
.v50-metrics{margin-bottom:16px!important}.v50-metric{min-height:79px!important;padding:12px!important}.v50-metric strong{font-size:21px!important}.v50-action{min-height:155px!important}.v50-action-grid{margin-bottom:15px!important}.v50-home{padding-top:12px!important}.v50-section-head{margin-bottom:9px!important}.v50-panel{padding:13px!important}.v50-panel h2{margin-bottom:7px!important}.v50-sale{min-height:36px!important}
@media(max-width:1150px){.v51-hero-row{grid-template-columns:1fr}.v51-notifications{display:none}}
@media(max-width:768px){.v51-hero-row .v50-hero-copy{padding:78px 18px 17px;width:100%}.v51-store-badge{left:13px}}

/* v0.52: consistent, recognizable sidebar pictograms */
.v50-nav .nav-icon svg{width:23px;height:23px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.v50-nav .nav-icon{display:flex;justify-content:center;align-items:center;flex:0 0 26px}
.v52-modification{font-weight:700;color:#ae6d17!important}
