.erp-store-page{--store-line:#dfe8f5;--store-muted:#71829d;--store-ink:#102a4c}.store-asset-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.store-header-status{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.store-health{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid #dce6f4;border-radius:999px;background:#fff;color:#55708f;font-size:13px;font-weight:700;box-shadow:0 8px 22px rgba(31,64,110,.06)}.store-health.success{color:#087a51;background:#edfbf5;border-color:#c8f0df}.store-health.danger{color:#b76a17;background:#fff7e9;border-color:#f4ddba}.store-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin:22px 0 16px}.store-kpi-grid .stat{min-height:108px}.store-kpi-grid .stat-icon{background:#edf4ff;color:#246df0}.store-kpi-grid .stat-icon.success{background:#e8faf2;color:#059669}.store-kpi-grid .stat-icon.warning{background:#fff4df;color:#d97706}.store-kpi-grid .stat-icon.violet{background:#f1edff;color:#6d4aff}.store-kpi-grid .stat small{display:block;margin-top:4px;color:#8a9ab2}.store-asset-panel{padding:0;overflow:hidden;border:1px solid #dce6f3;box-shadow:0 16px 42px rgba(37,70,116,.08)}.store-asset-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 24px 15px}.store-asset-toolbar h2{margin:0 0 4px;font-size:20px}.store-asset-toolbar p{margin:0;color:var(--store-muted)}.store-asset-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.store-asset-actions button{white-space:nowrap}.store-filter-bar{display:grid;grid-template-columns:minmax(240px,1.5fr) repeat(4,minmax(145px,.7fr));gap:10px;padding:0 24px 18px}.store-filter-bar input,.store-filter-bar select{height:42px;border:1px solid #d8e3f1;border-radius:10px;background:#fbfdff;color:#183454;padding:0 12px}.store-asset-table-head,.store-asset-row{display:grid;grid-template-columns:minmax(245px,1.25fr) minmax(190px,.9fr) minmax(165px,.72fr) minmax(235px,1.05fr) minmax(170px,.8fr) 118px;gap:16px;align-items:center}.store-asset-table-head{min-height:43px;padding:0 24px;background:#f6f9fd;border-top:1px solid var(--store-line);border-bottom:1px solid var(--store-line);color:#71829c;font-size:12px;font-weight:800}.store-asset-table-head label{display:flex;align-items:center;gap:12px}.store-asset-row{min-height:94px;padding:13px 24px;border-bottom:1px solid #e7edf6;transition:background .16s ease,box-shadow .16s ease}.store-asset-row:hover{background:#f8fbff;box-shadow:inset 3px 0 #3f7cff}.store-asset-main{display:flex;align-items:center;gap:12px;min-width:0}.store-asset-main input{width:16px;height:16px}.store-platform-logo{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#111d35,#28518c);color:#fff;font-size:12px;font-weight:900;box-shadow:0 7px 16px rgba(32,72,132,.18)}.store-asset-main div,.store-sync-cell,.store-owner-cell,.store-risk-cell{display:flex;flex-direction:column;gap:4px;min-width:0}.store-asset-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#142d4f;font-size:14px}.store-asset-main small,.store-asset-main em,.store-sync-cell small,.store-owner-cell small,.store-risk-cell small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8796ad;font-size:11px;font-style:normal}.store-asset-main em{color:#6b7f9c}.store-sync-cell>span{width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:750}.auth-ok,.sync-healthy{background:#e9faf3;color:#078359}.sync-delayed{background:#fff4e2;color:#c46e0b}.sync-empty{background:#f0f3f8;color:#718198}.store-owner-cell .edit-owner{width:max-content;max-width:100%;padding:5px 9px;border:1px solid #d7e2f1;border-radius:8px;background:#f8fbff;color:#17385f;font-weight:700;text-align:left}.store-owner-cell .edit-owner.unassigned{border-style:dashed;color:#9a6a1a;background:#fffaf0}.store-business-cell{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.store-business-cell span{padding:8px 7px;border-left:1px solid #e3eaf4}.store-business-cell span:first-child{border-left:0}.store-business-cell b,.store-business-cell small{display:block}.store-business-cell b{color:#12345d;font-size:15px}.store-business-cell small{margin-top:3px;color:#8494aa;font-size:10px}.store-risk-cell>span{width:max-content;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.store-risk-cell .has-risk{background:#fff0eb;color:#cb5036}.store-risk-cell .no-risk{background:#effaf5;color:#1b8a63}.store-asset-actions .view-store-detail{background:#edf4ff;border-color:#c7d9fa;color:#1f62d4;font-weight:750}.store-more{width:34px;padding:7px 0}.store-empty{display:grid;place-items:center;gap:7px;min-height:220px;color:#8190a6}.store-empty b{font-size:30px}.store-drawer-backdrop{position:fixed;inset:0;z-index:350;background:rgba(9,25,49,.32);backdrop-filter:blur(2px)}.store-detail-drawer{position:fixed;z-index:360;top:0;right:0;bottom:0;width:min(530px,92vw);display:flex;flex-direction:column;background:#f7f9fd;box-shadow:-22px 0 60px rgba(7,26,54,.2);animation:storeDrawerIn .2s ease}.store-detail-drawer[hidden],.store-drawer-backdrop[hidden]{display:none!important}@keyframes storeDrawerIn{from{transform:translateX(30px);opacity:.4}to{transform:none;opacity:1}}.store-detail-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;padding:26px 28px 21px;background:linear-gradient(135deg,#102b52,#1a4f87);color:#fff}.store-detail-drawer>header small{color:#9bc7ff;font-weight:800;letter-spacing:.12em}.store-detail-drawer>header h2{margin:7px 0 3px;color:#fff;font-size:24px}.store-detail-drawer>header p{margin:0;color:#c8daf0}.store-detail-drawer>header button{width:35px;height:35px;border:1px solid rgba(255,255,255,.25);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font-size:23px}.store-drawer-body{flex:1;overflow:auto;padding:20px 24px}.drawer-health{display:grid;grid-template-columns:1fr;gap:9px}.drawer-health>div{display:grid;grid-template-columns:105px 1fr;align-items:center;padding:14px 15px;border:1px solid #dfe7f3;border-radius:12px;background:#fff}.drawer-health small{color:#71819a}.drawer-health strong{font-size:13px}.drawer-health span{grid-column:2;color:#8b99ac;font-size:11px;margin-top:3px}.drawer-health .good{color:#078359}.drawer-health .warn{color:#c46e0b}.drawer-health .muted{color:#7f8da1}.drawer-section{margin-top:15px;padding:18px;border:1px solid #dfe7f2;border-radius:14px;background:#fff}.drawer-section h3{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;color:#173557;font-size:15px}.drawer-section h3 small{color:#8a9ab0;font-weight:500}.drawer-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.drawer-metrics span{padding:10px 7px;border-radius:10px;background:#f4f8fd;text-align:center}.drawer-metrics b,.drawer-metrics small{display:block}.drawer-metrics b{font-size:17px;color:#15375f}.drawer-metrics small{margin-top:4px;color:#8595aa;font-size:10px}.drawer-identity dl{display:grid;grid-template-columns:95px 1fr;gap:11px;margin:0}.drawer-identity dt{color:#8291a6}.drawer-identity dd{margin:0;color:#183858;font-weight:700}.drawer-note{margin:0;color:#60738f;line-height:1.65}.store-detail-drawer>footer{display:flex;gap:9px;padding:16px 24px 22px;border-top:1px solid #dce5f1;background:#fff}.store-detail-drawer>footer button{flex:1}.store-detail-drawer>footer .primary{flex:1.5}.store-detail-drawer>footer button:disabled{cursor:not-allowed;opacity:.5}.erp-compact .store-asset-row{min-height:74px;padding-top:8px;padding-bottom:8px}
@media(max-width:1450px){.store-kpi-grid{grid-template-columns:repeat(3,1fr)}.store-asset-table-head,.store-asset-row{grid-template-columns:minmax(230px,1.15fr) minmax(175px,.8fr) 150px minmax(210px,1fr) 108px}.store-risk-cell,.store-asset-table-head>span:nth-last-child(2){display:none}}
@media(max-width:1050px){.store-filter-bar{grid-template-columns:repeat(2,1fr)}.store-filter-bar input{grid-column:1/-1}.store-asset-table-head,.store-asset-row{grid-template-columns:minmax(225px,1.15fr) minmax(180px,.9fr) minmax(210px,1fr) 100px}.store-owner-cell,.store-asset-table-head>span:nth-child(3){display:none}.store-kpi-grid{grid-template-columns:repeat(2,1fr)}}

/* Store-center KPI cards use their own semantic markup. */
.erp-store-page .store-health-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:22px 0 18px}
.erp-store-page .store-health-stats>article{position:relative;display:flex;align-items:center;gap:14px;min-width:0;min-height:104px;padding:18px;border:1px solid #dce6f3;border-radius:16px;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 12px 30px rgba(31,65,111,.07);overflow:hidden}
.erp-store-page .store-health-stats>article::after{content:"";position:absolute;right:-28px;bottom:-38px;width:100px;height:100px;border:1px solid rgba(45,111,221,.08);border-radius:50%;box-shadow:0 0 0 18px rgba(45,111,221,.025)}
.erp-store-page .store-health-stats .metric-icon{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;font-size:15px;font-weight:900}
.erp-store-page .store-health-stats .metric-icon.amber{background:#fff2dd;color:#c66b08}
.erp-store-page .store-health-stats .metric-icon.violet{background:#f0ebff;color:#7048d9}
.erp-store-page .store-health-stats article>div{position:relative;z-index:1;min-width:0}
.erp-store-page .store-health-stats small,.erp-store-page .store-health-stats strong,.erp-store-page .store-health-stats p{display:block}
.erp-store-page .store-health-stats small{color:#7d8da4;font-size:11px}
.erp-store-page .store-health-stats strong{margin-top:3px;color:#112e52;font-size:25px;line-height:1.1}
.erp-store-page .store-health-stats p{margin:6px 0 0;color:#8b99ac;font-size:11px;white-space:nowrap}
.erp-store-page .store-asset-panel{border-radius:18px}
.erp-store-page .store-asset-toolbar{padding-top:20px}
.erp-store-page .store-filter-bar{background:#fff}
.erp-store-page .privacy-tip{margin:0;padding:13px 24px;border-top:1px solid #e6edf6;background:#f8fbff;color:#7b8da6;font-size:11px}
@media(max-width:1450px){.erp-store-page .store-health-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.erp-store-page .store-health-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.store-edit-mask{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:24px;background:rgba(7,23,46,.52);backdrop-filter:blur(5px)}
.store-edit-mask[hidden]{display:none!important}
.store-edit-dialog{width:min(480px,calc(100vw - 32px));overflow:hidden;border:1px solid rgba(210,224,242,.95);border-radius:18px;background:#fff;box-shadow:0 30px 90px rgba(8,31,66,.3);animation:storeDialogIn .18s ease}
@keyframes storeDialogIn{from{transform:translateY(8px) scale(.985);opacity:.4}to{transform:none;opacity:1}}
.store-edit-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 18px;border-bottom:1px solid #e6edf6;background:linear-gradient(145deg,#f9fbff,#f2f7fd)}
.store-edit-dialog>header>div{display:flex;align-items:center;gap:12px}.store-edit-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#286ff0,#6558e8);color:#fff;font-weight:900;box-shadow:0 8px 18px rgba(50,91,214,.22)}
.store-edit-dialog header small{color:#6882a7;font-size:10px;font-weight:800;letter-spacing:.12em}.store-edit-dialog header h2{margin:4px 0 0;color:#102d52;font-size:20px}.store-edit-dialog header button{width:34px;height:34px;padding:0;border:1px solid #dbe5f2;border-radius:9px;background:#fff;color:#6f8099;font-size:21px}
.store-edit-context{display:grid;grid-template-columns:82px 1fr;gap:4px 10px;margin:20px 24px 16px;padding:13px 14px;border:1px solid #dfe8f4;border-radius:11px;background:#f7faff}.store-edit-context small{color:#8291a6}.store-edit-context strong{color:#18395f}.store-edit-context span{grid-column:2;color:#8190a5;font-size:11px}
.store-edit-dialog>label{display:flex;flex-direction:column;gap:8px;margin:0 24px;color:#273f60;font-size:13px;font-weight:750}.store-edit-dialog select,.store-edit-dialog textarea{width:100%;border:1px solid #cfdced;border-radius:10px;background:#fff;color:#173557;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}.store-edit-dialog select{height:44px;padding:0 12px}.store-edit-dialog textarea{padding:11px 12px;resize:vertical;line-height:1.55}.store-edit-dialog select:focus,.store-edit-dialog textarea:focus{border-color:#3980f4;box-shadow:0 0 0 3px rgba(57,128,244,.12)}.store-edit-dialog label>small{display:flex;justify-content:flex-end;color:#8a98aa;font-size:11px;font-weight:500}.store-edit-error{min-height:18px;margin:10px 24px 0;color:#c84343;font-size:12px}.store-edit-dialog>footer{display:flex;justify-content:flex-end;gap:9px;padding:17px 24px 22px;border-top:1px solid #e7edf6}.store-edit-dialog>footer button{min-width:96px}.store-edit-dialog>footer .primary{box-shadow:0 8px 20px rgba(38,108,231,.18)}
