/* SmartPOS premium UI system — presentation only. Imported LAST.
   Tenant-specific --sp-primary/--sp-accent values still come from the API. */
:root{--sp-premium-purple:#7c3aed;--sp-ink:#151f42;--sp-muted:#7180a0;--sp-canvas:#f7f9fe;--sp-border:#e6ebf4;--sp-radius:17px;--sp-sidebar-width:252px;--sp-shadow:0 6px 27px rgba(21,30,64,.035)}
html,body,#app{background:var(--sp-canvas);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;color:var(--sp-ink)}
.sp-premium-root{font-size:13.5px;line-height:1.5;background:radial-gradient(ellipse 70% 320px at 78% 2%,#eff2ff 0%,transparent 80%),#f8faff;color:var(--sp-ink);min-height:100vh}
.sp-premium-root h1,.sp-premium-root h2,.sp-premium-root h3,.sp-premium-root h4{color:#131d40;letter-spacing:-.035em;font-weight:760}
.sp-premium-root h1{font-size:clamp(26px,2.5vw,36px)}
.sp-premium-root h2{font-size:18px}
.sp-premium-root p{color:#6c7b98}
.sp-sidebar{box-shadow:none!important;border-right:1px solid #e8ecf5!important}
.sp-sidebar-brand{height:72px;padding:13px 21px;border-bottom:1px solid #eef0f6}
.sp-brand-fallback{background:linear-gradient(140deg,var(--sp-primary),color-mix(in srgb,var(--sp-primary) 76%,#ad7fff));box-shadow:0 5px 15px color-mix(in srgb,var(--sp-primary) 14%,transparent);width:43px;height:43px;border-radius:12px}
.sp-brand-copy strong{font-size:14px!important;color:#141e3d}.sp-brand-copy small{font-size:11px!important;color:#8993ad}
.sp-sidebar-scroll{padding:16px 12px}
.sp-navigation .sp-nav-overline{font-size:10px;color:#8391b0;letter-spacing:.13em;margin:16px 12px 10px;font-weight:800}
.sp-navigation .sp-nav-items{gap:4px}
.sp-navigation .sp-sidebar-link{color:#334366!important;font-size:13px;font-weight:550;min-height:43px;border-radius:10px;padding:11px 13px;gap:12px;position:relative}
.sp-navigation .sp-sidebar-link .sp-bs-icon{color:#52658f;width:18px;height:18px}
.sp-navigation .sp-sidebar-link.active,.sp-navigation .sp-sidebar-link.active:hover{color:var(--sp-primary)!important;background:color-mix(in srgb,var(--sp-primary) 9%,#fff)!important;font-weight:750}
.sp-navigation .sp-sidebar-link.active::before{content:"";width:3px;position:absolute;left:0;top:8px;bottom:8px;background:var(--sp-primary);border-radius:0 5px 5px 0}
.sp-navigation .sp-sidebar-link.active .sp-bs-icon{color:var(--sp-primary)}
.sp-navigation .sp-sidebar-link:hover:not(.active){background:#f5f6fd;color:var(--sp-primary)!important}
.sp-nav-group{margin-top:12px}.sp-nav-group summary{font-size:10px;letter-spacing:.105em;color:#7b8ca9;margin:16px 13px 5px}
.sp-nav-bottom{background:#fff;padding:12px;border-top:1px solid #eef0f5}
.sp-nav-user{background:#f9faff;border:1px solid #edf0f7;border-radius:13px;padding:12px;margin-bottom:6px}
.sp-logout{min-height:40px;justify-content:flex-start;padding-left:13px}
.sp-workspace{background:transparent}.sp-topbar{height:72px;gap:20px;box-shadow:none;border-color:#edf0f7;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);padding:0 clamp(18px,2.4vw,36px)}
.sp-workspace-name strong{font-size:13px;font-weight:750}.sp-workspace-name small{font-size:10px}
.sp-topbar-start{min-width:215px}.sp-topbar-search{display:flex;align-items:center;position:relative;max-width:495px;min-width:130px;flex:1 1 495px;border:1px solid #eef1f8;border-radius:11px;background:#f5f7fc;color:#7c89a6;padding:0 13px;height:42px;gap:9px}
.sp-topbar-search:focus-within{border-color:color-mix(in srgb,var(--sp-primary) 55%,#fff);background:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--sp-primary) 10%,transparent)}
.sp-topbar-search input{flex:1;min-width:0;background:transparent!important;border:0!important;outline:0!important;font-size:12.5px;color:#263655;height:38px;box-shadow:none!important}
.sp-topbar-search input::placeholder{color:#8a96ad}
.sp-topbar-search input::-webkit-search-cancel-button{cursor:pointer}
.sp-topbar-search kbd{background:#fff;border:1px solid #e3e8f2;border-radius:5px;font-weight:550;color:#929db3;font-family:inherit;font-size:10px;padding:3px 6px;white-space:nowrap}
.sp-quick-results{position:absolute;top:calc(100% + 9px);left:0;right:0;min-width:220px;background:#fff;border:1px solid #e4eaf5;border-radius:12px;z-index:1400;box-shadow:0 18px 48px #1c244522;overflow:hidden;padding:6px;max-height:320px;overflow-y:auto}
.sp-quick-results a{display:flex;justify-content:space-between;align-items:center;padding:10px 11px;border-radius:8px;color:#28395a;text-decoration:none;font-size:12px}
.sp-quick-results a:hover{background:#f5f1fd;color:var(--sp-primary)}.sp-quick-results span{padding:12px;display:block;color:#8390a4}
.sp-topbar-actions{flex:0 0 auto}.sp-premium-user{padding-left:14px}.sp-premium-user .sp-avatar-circle{background:#f3eaf7!important;color:var(--sp-primary);border-radius:13px}
.sp-page-content{max-width:1880px;padding:clamp(20px,2vw,34px) clamp(18px,2.2vw,37px) 46px}
.sp-plan-message{background:linear-gradient(100deg,#edfbff,#eff8ff)!important;border-color:#b7ebfa!important;color:#19455e;font-size:12px;margin-bottom:23px;padding:13px 17px!important}
.sp-premium-root .btn{border-radius:10px;font-size:12px;font-weight:720;min-height:39px;padding:8px 15px;transition:transform .15s ease,background .15s ease,border-color .15s ease}
.sp-premium-root .btn:hover{transform:translateY(-1px)}
.sp-premium-root .btn-primary,.sp-premium-root .sp-button-primary{background:linear-gradient(125deg,var(--sp-primary),color-mix(in srgb,var(--sp-primary) 85%,#9b6ef0))!important;border:1px solid var(--sp-primary)!important;color:#fff!important;box-shadow:0 4px 12px color-mix(in srgb,var(--sp-primary) 14%,transparent)}
.sp-premium-root .btn-outline-primary{border:1px solid color-mix(in srgb,var(--sp-primary) 60%,#fff);color:var(--sp-primary)!important;background:#fff!important}
.sp-premium-root .btn-outline-primary:hover{background:color-mix(in srgb,var(--sp-primary) 8%,white)!important}
.sp-premium-root .sp-button-secondary{border-radius:10px}
.sp-premium-root .sp-surface,.sp-premium-root .sp-panel,.sp-premium-root .p2-panel,.sp-premium-root .sp-dashboard-section,.sp-premium-root .sp-premium-card,.sp-premium-root .sp-plan-card,.sp-premium-root .sp-pos-search-panel,.sp-premium-root .sp-pos-cart-panel{border:1px solid #e7ebf4!important;background:#fff!important;border-radius:17px!important;box-shadow:var(--sp-shadow)!important}
.sp-premium-root .sp-panel,.sp-premium-root .p2-panel{padding:clamp(18px,2vw,27px)!important}
.sp-premium-root .sp-dashboard-welcome,.sp-premium-root .p2-head,.sp-premium-root .sp-page-heading,.sp-premium-root .sp-pos-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px!important}
.sp-premium-root .sp-dashboard-welcome h1,.sp-premium-root .p2-head h1,.sp-premium-root .sp-page-heading h1,.sp-premium-root .sp-pos-header h1{font-size:clamp(26px,2.5vw,36px)!important;line-height:1.13;margin:6px 0 8px}
.sp-premium-root .sp-dashboard-welcome p,.sp-premium-root .p2-head p,.sp-premium-root .sp-page-heading p,.sp-premium-root .sp-pos-header p{font-size:13px;max-width:850px;margin:0;color:#7786a1}
.sp-premium-root .sp-eyebrow,.sp-premium-root .p2-head small{color:var(--sp-primary)!important;font-size:10px!important;font-weight:850;letter-spacing:.14em}
.sp-premium-root .sp-role-dashboard,.sp-premium-root .p2-screen,.sp-premium-root .sp-page,.sp-premium-root .products-container,.sp-premium-root .sales-container{max-width:none!important}
.sp-premium-root .sp-dashboard-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:14px;margin-bottom:19px}
.sp-premium-root .sp-dashboard-metric{position:relative;background:#fff;border:1px solid #e7edf7;border-radius:16px;box-shadow:var(--sp-shadow);padding:20px 18px 19px 76px;min-height:125px;display:flex;flex-direction:column;justify-content:center;gap:6px;overflow:hidden}
.sp-premium-root .sp-dashboard-metric::before{position:absolute;left:17px;top:22px;content:'◈';height:42px;width:42px;display:grid;place-items:center;background:color-mix(in srgb,var(--sp-primary) 10%,#fff);color:var(--sp-primary);font-size:23px;border-radius:13px}
.sp-premium-root .sp-dashboard-metric:nth-child(2)::before{content:'▣';background:#e9f1ff;color:#3773ec}
.sp-premium-root .sp-dashboard-metric:nth-child(3)::before{content:'◇';background:#f1eaff;color:#8b5cf6}
.sp-premium-root .sp-dashboard-metric:nth-child(4)::before{content:'!';background:#ffecf0;color:#e33c64;font-weight:800}
.sp-premium-root .sp-dashboard-metric:nth-child(5)::before{content:'▤';background:#e9fbf2;color:#10a46b}
.sp-premium-root .sp-dashboard-metric-label{font-size:11px;color:#657595;font-weight:650}
.sp-premium-root .sp-dashboard-metric strong{font-size:clamp(20px,1.9vw,26px);color:#121d3d;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.sp-premium-root .sp-dashboard-metric small{font-size:11px;color:#8997b2}
.sp-premium-root .sp-dashboard-main-grid{gap:15px}
.sp-premium-root .sp-dashboard-section{padding:23px!important}
.sp-premium-root .sp-dashboard-section-head h2{font-size:17px!important}
.sp-premium-root .sp-dashboard-section-head{padding-bottom:15px;margin-bottom:10px}
.sp-premium-root .sp-dashboard-task-list{gap:10px}.sp-premium-root .sp-dashboard-task{border-radius:12px;border:1px solid #edf0f7;background:#fff;transition:background .2s,transform .2s}.sp-premium-root .sp-dashboard-task:hover{background:#f8f4ff;transform:translateX(2px)}
.sp-premium-root .sp-dashboard-task-icon{background:#f4edff;color:var(--sp-primary);border-radius:11px}
.sp-premium-root .sp-dashboard-insights{background:linear-gradient(155deg,#fff 55%,#fcf9ff)!important}
.sp-premium-root .sp-stock-alert-banner{border-radius:12px;background:#fff7f2;border-color:#f3daca}
.sp-premium-root .sp-plan-card{display:flex;flex-direction:column;gap:8px;padding:25px!important;transition:transform .2s,box-shadow .2s;min-height:100%}
.sp-premium-root .sp-plan-card:hover{transform:translateY(-3px);box-shadow:0 15px 38px #20264c10!important}
.sp-premium-root .sp-plan-card>small:first-child{font-size:10px;color:var(--sp-primary)!important;letter-spacing:.11em;font-weight:800}
.sp-premium-root .sp-plan-card h3{font-size:18px;margin:4px 0 10px;min-height:48px}
.sp-premium-root .sp-plan-card h4{font-size:13px!important}.sp-premium-root .sp-plan-card ul{padding-left:0;list-style:none}
.sp-premium-root .sp-plan-card li{padding:5px 0 5px 23px;position:relative;color:#4e5d7c;font-size:12px}
.sp-premium-root .sp-plan-card li::before{content:'✓';position:absolute;left:1px;top:6px;background:#e6f9ef;color:#128a5b;border-radius:50%;width:15px;height:15px;line-height:15px;text-align:center;font-weight:850;font-size:10px}
.sp-premium-root .sp-plan-card ul.text-secondary li::before{content:'–';background:#eef0f5;color:#8490a5}
.sp-premium-root .sp-plan-prices{background:#fafbfe;border:1px solid #eef1f8;border-radius:12px;padding:10px 15px}.sp-premium-root .sp-plan-prices strong{color:#151e3c;font-size:14px}
.sp-premium-root .sp-plan-card .badge{align-self:flex-start}
.sp-premium-root .p2-table,.sp-premium-root .sp-bootstrap-app table,.sp-premium-root table{border-collapse:separate;border-spacing:0;width:100%}
.sp-premium-root .p2-table th,.sp-premium-root table th{background:#f7f9fc!important;color:#7886a3!important;text-transform:uppercase;letter-spacing:.055em;font-size:10px;padding:14px}
.sp-premium-root .p2-table td,.sp-premium-root table td{border-bottom:1px solid #eef1f6!important;font-size:12px;color:#364563;padding:13px}
.sp-premium-root .table-responsive,.sp-premium-root .p2-scroll{border:1px solid #e9edf5;border-radius:12px;overflow-x:auto}
.sp-premium-root .table tr:hover td,.sp-premium-root .p2-table tr:hover td{background:#fbfaff}
.sp-premium-root .badge,.sp-premium-root .sp-plan-status{border-radius:999px!important;padding:7px 11px;font-size:10px;font-weight:750}
.sp-premium-root input.form-control,.sp-premium-root select.form-select,.sp-premium-root textarea.form-control{min-height:43px;border:1px solid #dfe5f0!important;border-radius:10px!important;background:#fff;color:#233152;font-size:12.5px}
.sp-premium-root .form-label,.sp-premium-root .sp-label{font-weight:700;color:#344264;font-size:11px;margin-bottom:7px}
.sp-premium-root .form-control:focus,.sp-premium-root .form-select:focus{border-color:var(--sp-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--sp-primary) 12%,transparent)!important}
.sp-premium-root .modal-content,.sp-premium-root .sp-form-modal .modal-content,.sp-premium-root .sp-plan-modal-panel{border-radius:18px!important;overflow:hidden;border:1px solid #e2e6f0;background:#fff;box-shadow:0 30px 100px #18233b39}
.sp-premium-root .sp-form-modal .modal-header,.sp-premium-root .modal-header,.sp-premium-root .sp-plan-modal-header{padding:24px 28px 16px;border-bottom:1px solid #edf0f5}
.sp-premium-root .sp-form-modal .modal-footer,.sp-premium-root .modal-footer,.sp-premium-root .sp-plan-modal-actions{padding:18px 24px;border-top:1px solid #eef0f5}
.sp-premium-root .sp-form-modal .modal-body{padding:24px 28px!important}
.sp-premium-root .sp-toast{border-radius:14px;box-shadow:0 14px 45px #1a254727}
.sp-premium-root .sp-pos-page{max-width:none!important}.sp-premium-root .sp-pos-layout{grid-template-columns:minmax(320px,.92fr) minmax(420px,1.08fr)!important;gap:18px!important}
.sp-premium-root .sp-pos-search-panel,.sp-premium-root .sp-pos-cart-panel{border-radius:17px!important}
.sp-premium-root .sp-pos-step{border-radius:13px;background:#f3eaff;color:var(--sp-primary)}
.sp-premium-root .sp-pos-panel-heading{border-color:#eef0f6}.sp-premium-root .sp-pos-panel-heading h2{font-size:18px}
.sp-premium-root .sp-pos-complete{border-radius:13px;box-shadow:0 6px 19px color-mix(in srgb,var(--sp-primary) 20%,transparent)}
.sp-premium-root .sp-pos-cart-item{border-color:#eef0f5}.sp-premium-root .sp-pos-qty-btn{border-radius:7px}
.sp-premium-root .sp-success{background:#edfbf3;border-color:#bdebd1;color:#16603e}
.sp-premium-root .sp-form-error{background:#fff1f3;border:1px solid #f3b9c3;border-radius:10px;padding:12px;color:#9a283e}
.sp-premium-root .sp-color-settings input[type=color],.sp-premium-root input[type=color]{width:45px;height:35px;padding:2px;border:1px solid #e2e5f0;border-radius:7px;background:#fff;cursor:pointer}
.sp-premium-root .sp-brand-preview,.sp-premium-root .sp-theme-preview{border-radius:12px;border:1px solid #eaedf7}
/* Platform branding and identity editor (functional API endpoints). */
.sp-identity-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.85fr);gap:18px;align-items:start}
.sp-premium-card{padding:25px}.sp-premium-section-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.sp-premium-section-head h2{font-size:18px;margin:0 0 3px}.sp-premium-section-head p{font-size:11.5px;margin:0;line-height:1.45}
.sp-premium-heading-icon{height:42px;width:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#f4ebfe;color:var(--sp-primary)}
.sp-premium-divider{height:1px;background:#edf0f7;margin:26px 0}
.sp-premium-upload{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px;border:1px dashed #cad4e7;border-radius:12px;background:#fcfcff}
.sp-premium-upload>div:last-child{flex:1;min-width:195px}.sp-premium-upload strong{display:block;color:#1e2950}.sp-premium-upload p{font-size:11.5px;margin:3px 0 10px}
.sp-premium-upload input{width:100%;font-size:11px;color:#53627b}.sp-premium-logo-preview{height:94px;width:145px;border-radius:12px;background:#fff;border:1px solid #e5eaf2;display:grid;place-items:center;padding:12px}
.sp-premium-logo-preview img{max-height:76px;max-width:128px;object-fit:contain}
.sp-premium-color-list{display:grid;gap:12px}.sp-premium-color-list label{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 13px;border:1px solid #e6eaf3;border-radius:10px;font-size:12px;font-weight:650;color:#324264}
.sp-premium-color-list label span{display:flex;gap:12px;align-items:center}.sp-premium-color-list code{background:#f8f9fc;padding:7px 9px;border-radius:5px;color:#52627b}
.sp-premium-form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.sp-preview-column{position:sticky;top:93px}.sp-preview-login{border-radius:15px;background:linear-gradient(135deg,var(--preview-primary,#805477),color-mix(in srgb,var(--preview-accent,#9D67EB) 70%,#b7a4fb));padding:25px 15px;margin:6px 0 16px;display:grid;place-items:center;min-height:330px}
.sp-preview-login-box{background:#fff;border-radius:14px;box-shadow:0 12px 34px #26224d21;display:flex;flex-direction:column;align-items:center;width:min(100%,280px);gap:10px;padding:25px 24px;color:#20284f;text-align:center}
.sp-preview-login-box img{width:55px;height:55px;object-fit:contain}.sp-preview-login-box strong{font-size:15px}.sp-preview-login-box small{color:#8490a7;font-size:10px}
.sp-preview-faux-input{width:100%;border:1px solid #e3e7ef;color:#9cabc0;text-align:left;padding:9px 11px;border-radius:7px;font-size:10px}.sp-preview-faux-button{background:var(--preview-primary);color:white;width:100%;padding:10px;border-radius:7px;font-size:11px;font-weight:700}
.sp-preview-sidebar{border:1px solid #e8ecf5;border-radius:12px;padding:13px;display:flex;align-items:center;gap:12px;margin-bottom:15px}.sp-preview-sidebar img{width:40px;height:40px;object-fit:contain}.sp-preview-sidebar div{display:flex;flex-direction:column;flex:1}.sp-preview-sidebar strong{color:#192447}.sp-preview-sidebar small{color:#8290a9;font-size:10px}.sp-preview-sidebar span{color:#607090}
.sp-premium-preview-help{display:flex;align-items:flex-start;gap:10px;color:#7885a0;font-size:11px;margin-top:12px;background:#f8f9fe;border-radius:10px;padding:12px}.sp-premium-preview-help .sp-bs-icon{color:var(--preview-primary)}
/* Login screen uses platform branding rather than a fixed obsolete logo. */
.sp-login-screen{background:radial-gradient(ellipse at 75% 20%,#f2edff,transparent 68%),#fafbff}
.sp-login-card{border-radius:21px!important;box-shadow:0 24px 70px #2022441b!important}
.sp-login-intro{background:linear-gradient(145deg,#562a83,#8c47ba)!important}
@media(min-width:1500px){.sp-topbar-search{max-width:550px}}
@media(max-width:1220px){.sp-topbar-search{max-width:300px}.sp-topbar-start{min-width:190px}.sp-identity-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.8fr)}}
@media(max-width:1080px){.sp-topbar-search{display:none}.sp-premium-root .sp-pos-layout{grid-template-columns:1fr!important}.sp-preview-column{position:static}}
@media(max-width:900px){.sp-identity-grid{grid-template-columns:1fr}.sp-topbar-start{min-width:0}.sp-premium-root .sp-dashboard-metric{padding:18px 14px 18px 68px}.sp-premium-root .sp-dashboard-welcome,.sp-premium-root .p2-head,.sp-premium-root .sp-page-heading{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:575px){.sp-premium-root .sp-page-content{padding:16px 12px 36px}.sp-premium-root h1{font-size:25px!important}.sp-premium-root .sp-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sp-premium-root .sp-dashboard-metric{padding:62px 12px 14px;min-height:145px}.sp-premium-root .sp-dashboard-metric::before{top:13px;left:12px}.sp-premium-root .sp-dashboard-metric strong{font-size:20px;overflow-wrap:anywhere}.sp-premium-root .sp-topbar{height:62px;padding:0 12px}.sp-premium-root .sp-header-user{padding-left:4px}.sp-premium-root .sp-workspace-name strong{font-size:12px}.sp-premium-root .sp-dashboard-section,.sp-premium-root .p2-panel,.sp-premium-card{padding:17px!important}.sp-premium-root .sp-brand-copy strong{max-width:140px}.sp-premium-form-footer{flex-wrap:wrap}.sp-premium-form-footer .btn{flex:1}.sp-preview-login{padding:20px 10px}}
@media print{.sp-premium-root{background:#fff!important}.sp-topbar-search,.sp-identity-page,.sp-quick-results{display:none!important}.sp-premium-root .sp-surface,.sp-premium-root .sp-panel{box-shadow:none!important}}
@media(prefers-reduced-motion:reduce){.sp-premium-root *{transition:none!important;animation:none!important}}
.sp-premium-root .sp-plan-distribution{display:grid;gap:9px;margin:6px 0 22px}
.sp-premium-root .sp-plan-distribution>div{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #edf0f5;border-radius:10px;background:#fdfdff}
.sp-premium-root .sp-plan-distribution strong{font-size:12px;flex:1}.sp-premium-root .sp-plan-distribution>div>span:last-child{font-size:13px;font-weight:800;background:#f0eafe;color:var(--sp-primary);border-radius:999px;padding:3px 11px}
.sp-premium-root .sp-tier-bullet{height:9px;width:9px;border-radius:50%;background:#8244d5}.sp-premium-root .sp-plan-distribution>div:nth-child(2) .sp-tier-bullet{background:#b78aed}.sp-premium-root .sp-plan-distribution>div:nth-child(3) .sp-tier-bullet{background:#5697f5}
/* Subscription comparison — readable pricing, real data, active billing toggle. */
.sp-subscription-top-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.8fr);gap:17px;align-items:stretch}
.sp-premium-current-plan{background:linear-gradient(145deg,#fff,#fbfaff)!important;position:relative}.sp-premium-current-plan::before{content:'♛';position:absolute;right:84px;top:18px;font-size:38px;color:color-mix(in srgb,var(--sp-primary) 17%,transparent);pointer-events:none}
.sp-premium-support-card{background:linear-gradient(165deg,#fff,#fbf9ff)!important}.sp-premium-support-card p{overflow-wrap:anywhere}
.sp-premium-plan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.sp-premium-plan-toolbar>span{font-size:12px;color:#8793a8}
.sp-premium-billing-toggle{background:#f5f5fa;border:1px solid #e5e9f1;padding:4px;border-radius:10px;display:flex;gap:4px}
.sp-premium-billing-toggle button{border:0;border-radius:7px;background:transparent;color:#596985;font-weight:650;padding:8px 15px;font-size:11px}
.sp-premium-billing-toggle button.is-selected{background:var(--sp-primary);color:white;box-shadow:0 3px 10px #25124315}
.sp-premium-tier{padding:24px!important;gap:12px!important}.sp-premium-tier-top{display:flex;align-items:flex-start;gap:12px;min-height:70px}.sp-premium-tier-icon{font-size:23px;flex:0 0 43px;width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#f5edff;color:var(--sp-primary)}
.sp-premium-tier:nth-child(2) .sp-premium-tier-icon{background:#eff4ff;color:#357dce}.sp-premium-tier-top h3{min-height:0!important;font-size:16px!important;line-height:1.35;margin:4px 0!important}.sp-premium-tier-top small{font-size:10px;color:#7785a0}
.sp-premium-current-tag{align-self:flex-start;display:inline-flex;background:#e8f9ee;color:#158553;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:750}
.sp-premium-tier-price{display:flex;flex-direction:column;gap:5px;min-height:75px;padding:14px 0;border-top:1px solid #eff1f6;border-bottom:1px solid #eff1f6}
.sp-premium-price-line{display:flex;align-items:baseline;gap:7px}.sp-premium-tier-price strong{font-size:22px;line-height:1.15;color:#141d40;letter-spacing:-.035em}.sp-premium-tier-price small{font-size:11px;color:#7c8ba4}
.sp-premium-tier-features{flex:1}.sp-premium-tier-features h4{font-size:12px;font-weight:780!important;margin:0 0 8px}.sp-premium-request{margin-top:auto;width:100%}
.sp-premium-selected-plan{text-align:center;padding:10px;color:#198659;background:#ebfbf3;border-radius:9px;font-size:11px;font-weight:700}
.sp-premium-tier-footnote{margin:0!important;padding-top:9px;border-top:1px solid #eef1f6;color:#8791a8!important;font-size:10.5px}
@media(max-width:1050px){.sp-subscription-top-grid{grid-template-columns:1fr}}
@media(max-width:600px){.sp-premium-plan-toolbar{align-items:flex-start;flex-direction:column}.sp-premium-billing-toggle{align-self:stretch}.sp-premium-billing-toggle button{flex:1}}
/* POS product catalog: real products only; no fake images or fabricated quantities. */
.sp-premium-root .sp-pos-product-browser{border-top:1px solid #edf0f6;padding:20px}
.sp-premium-root .sp-pos-browser-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.sp-premium-root .sp-pos-browser-heading h3{font-size:16px;margin:0 0 2px}.sp-premium-root .sp-pos-browser-heading p{font-size:11px;margin:0}
.sp-premium-root .sp-pos-browser-filters{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}.sp-premium-root .sp-pos-browser-filters>.form-control{background:#f8faff!important}
.sp-premium-root .sp-pos-category-list{display:flex;gap:7px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.sp-premium-root .sp-pos-category-list button{flex:0 0 auto;border:1px solid #e5eaf5;border-radius:999px;background:#fafbff;color:#62708a;padding:7px 11px;font-size:11px;font-weight:700;min-height:32px}
.sp-premium-root .sp-pos-category-list button.is-active{background:#f4eafb;border-color:color-mix(in srgb,var(--sp-primary) 55%,white);color:var(--sp-primary)}
.sp-premium-root .sp-pos-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(127px,1fr));gap:10px}
.sp-premium-root .sp-pos-product-card{border:1px solid #e8edf7;border-radius:13px;padding:12px;background:#fff;min-height:175px;display:flex;flex-direction:column;gap:5px;transition:border-color .15s,transform .15s}
.sp-premium-root .sp-pos-product-card:hover{border-color:color-mix(in srgb,var(--sp-primary) 36%,#fff);transform:translateY(-2px)}
.sp-premium-root .sp-pos-product-symbol{width:48px;height:48px;align-self:center;margin:3px 0 6px;display:grid;place-items:center;border-radius:13px;background:#f2f0fc;color:var(--sp-primary);font-weight:800;font-size:25px}
.sp-premium-root .sp-pos-product-card strong{color:#243051;font-size:11.5px;line-height:1.2;overflow-wrap:anywhere}
.sp-premium-root .sp-pos-product-card small{color:#9aa5b6;font-size:10px;overflow-wrap:anywhere}
.sp-premium-root .sp-pos-product-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto}
.sp-premium-root .sp-pos-product-price{font-size:12px;color:#172247;font-weight:850}
.sp-premium-root .sp-pos-product-bottom button{height:31px;width:31px;flex:0 0 31px;border:0;border-radius:8px;background:#f3eaff;color:var(--sp-primary);font-size:20px;line-height:1}
.sp-premium-root .sp-pos-product-bottom button:disabled{color:#9eacbe;background:#f4f5f8;cursor:not-allowed}
.sp-premium-root .sp-pos-product-stock{align-self:flex-start;color:#11895b;background:#e9faef;border-radius:999px;padding:3px 7px;font-size:9px;font-weight:730}
.sp-premium-root .sp-pos-product-stock.is-low{color:#b47500;background:#fff2d9}.sp-premium-root .sp-pos-product-stock.is-out{color:#d64557;background:#ffecef}
.sp-premium-root .sp-pos-browser-empty{padding:20px;text-align:center;color:#8490a5;font-size:12px}
@media(max-width:720px){.sp-premium-root .sp-pos-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Catalog and receipt KPI components use real response values. */
.sp-premium-inventory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 18px}
.sp-premium-sales-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.sp-premium-inventory-stats article{display:flex;align-items:center;gap:14px;border:1px solid #e6ebf4;background:#fff;border-radius:14px;box-shadow:var(--sp-shadow);padding:15px;min-width:0}
.sp-premium-inventory-stats article>div{min-width:0;display:flex;flex-direction:column;gap:4px}.sp-premium-inventory-stats small{font-size:11px;color:#7886a2}.sp-premium-inventory-stats strong{font-size:21px;color:#172342;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sp-premium-mini-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;width:44px;border-radius:13px;background:#efe9ff;color:var(--sp-primary);font-size:21px;font-weight:800}
.sp-premium-mini-icon.is-warning{background:#fff2e9;color:#e59223}.sp-premium-mini-icon.is-danger{background:#ffedf1;color:#e04b64}.sp-premium-mini-icon.is-blue{background:#eaf2ff;color:#367df0}.sp-premium-mini-icon.is-green{background:#e9f9ef;color:#0d9f69}
.sp-premium-filter-tabs{display:flex;align-items:center;gap:14px;overflow-x:auto;padding:4px 1px 0;margin-bottom:14px;border-bottom:1px solid #e5eaf3}
.sp-premium-filter-tabs button{white-space:nowrap;position:relative;border:0;background:transparent;color:#7180a0;padding:11px 12px 14px;font-size:12px;font-weight:650}
.sp-premium-filter-tabs button.is-selected{color:var(--sp-primary);font-weight:790}.sp-premium-filter-tabs button.is-selected::after{content:"";height:3px;position:absolute;bottom:0;left:3px;right:3px;background:var(--sp-primary);border-radius:4px 4px 0 0}
.sp-premium-root .products-container .search-paper,.sp-premium-root .products-container .table-paper,.sp-premium-root .sales-container .search-paper,.sp-premium-root .sales-container .table-paper{border-radius:16px!important;border:1px solid #e8ebf4!important;box-shadow:var(--sp-shadow)!important;background:#fff!important}
@media(max-width:830px){.sp-premium-inventory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.sp-premium-inventory-stats article{gap:9px;padding:12px}.sp-premium-mini-icon{width:33px;height:33px;flex-basis:33px;font-size:18px}.sp-premium-inventory-stats strong{font-size:17px}}

/* Inventory approvals — responsive, no horizontal-scroll approval tables. */
.sp-premium-root .sp-approval-screen{min-width:0}
.sp-premium-root .sp-approval-columns{align-items:start;gap:18px}
.sp-premium-root .sp-approval-columns > .p2-panel{min-width:0}
.sp-premium-root .sp-approval-title-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.sp-premium-root .sp-approval-title-line h2{margin:0}
.sp-premium-root .sp-approval-count{background:#f4effa;color:var(--sp-primary);border-radius:999px;padding:5px 10px;font-size:11px;font-weight:750}
.sp-premium-root .sp-approval-hint{color:#7e8aa3;font-size:12px;line-height:1.5;margin:0 0 15px}
.sp-premium-root .sp-approval-items{display:grid;gap:11px;max-height:650px;overflow:auto;overflow-x:hidden;padding-right:3px}
.sp-premium-root .sp-approval-item{min-width:0;border:1px solid #e7eaf3;border-radius:13px;background:#fff;padding:15px}
.sp-premium-root .sp-approval-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sp-premium-root .sp-approval-item-top strong{font-size:14px;color:#192644;overflow-wrap:anywhere}
.sp-premium-root .sp-approval-status{font-size:11px;font-weight:750;border-radius:999px;padding:4px 9px;background:#f0f4fb;color:#56627e}
.sp-premium-root .sp-approval-status.is-pending{background:#fff6e4;color:#9a650c}
.sp-premium-root .sp-approval-facts{display:flex;gap:8px 20px;flex-wrap:wrap;margin:9px 0;font-size:11px;color:#7a86a1}
.sp-premium-root .sp-approval-facts strong{color:#243352}
.sp-premium-root .sp-approval-item p{font-size:12px;margin:8px 0;overflow-wrap:anywhere}
.sp-premium-root .sp-approval-item .sp-approval-restriction{margin:9px 0 0;color:#915c1d;background:#fff9ed;border-radius:8px;padding:9px 10px;font-size:11px}
.sp-premium-root .sp-approval-review{margin-top:9px;min-height:37px}
.sp-premium-root .sp-approval-review-panel{margin-top:18px}
.sp-premium-root .sp-approval-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:13px}
@media(max-width:720px){
 .sp-premium-root .sp-approval-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .sp-premium-root .sp-approval-actions .p2-button{flex:1 1 130px}
 .sp-premium-root .sp-approval-screen .p2-head{align-items:flex-start!important}
 .sp-premium-root .sp-approval-item{padding:13px}
}
