/* SmartPOS 2.0 — Consolidated professional checkout, role dashboards and startup */
.sp-startup-screen{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:radial-gradient(circle at 50% 40%,#fff 0,#f7f8fb 65%,#edf0f4 100%);font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243249;text-align:center;padding:24px}
.sp-startup-mark{height:92px;width:92px;border-radius:24px;background:#fff;border:1px solid #e7e7ed;box-shadow:0 12px 36px rgba(28,37,60,.09);display:grid;place-items:center}
.sp-startup-mark img{width:55px;height:55px;object-fit:contain}.sp-startup-screen h1{font-size:21px;letter-spacing:-.03em;margin:8px 0 0;font-weight:750}.sp-startup-screen p{color:#68758b;margin:0;font-size:13px}.sp-startup-screen small{color:#8893a5;font-size:11px}
.sp-startup-progress{height:5px;background:#e9e9ef;width:220px;max-width:80vw;overflow:hidden;border-radius:20px;margin:12px 0 4px}.sp-startup-progress span{display:block;width:40%;height:100%;border-radius:20px;background:#805477;animation:sp-loading 1.3s ease-in-out infinite alternate}@keyframes sp-loading{from{transform:translateX(0)}to{transform:translateX(150%)}}@media(prefers-reduced-motion:reduce){.sp-startup-progress span{animation:none;width:100%}}
.sp-pos-page{max-width:1520px;margin:0 auto;min-width:0}.sp-pos-header,.sp-dashboard-welcome{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.sp-pos-header h1,.sp-dashboard-welcome h1{font-size:clamp(25px,2.25vw,32px);font-weight:800;letter-spacing:-.04em;color:#1c2a3e;margin:2px 0 7px}.sp-pos-header p,.sp-dashboard-welcome p{color:#66758c;margin:0;font-size:13px;line-height:1.6}.sp-pos-header-right{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.sp-pos-stat{font-size:12px;font-weight:700;color:#516177;padding:9px 13px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;display:flex;gap:6px;align-items:center}.sp-pos-stat-accent{color:var(--sp-primary);border-color:color-mix(in srgb,var(--sp-primary) 22%,white);background:color-mix(in srgb,var(--sp-primary) 4%,white)}
.sp-pos-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.35fr);gap:18px;align-items:start}.sp-pos-search-panel,.sp-pos-cart-panel,.sp-pos-receipt-success{background:#fff;border:1px solid #e4e8f0;border-radius:18px;box-shadow:0 4px 18px rgba(22,35,61,.035);overflow:visible;min-width:0}.sp-pos-cart-panel{position:sticky;top:92px;max-height:calc(100vh - 112px);display:flex;flex-direction:column;overflow:hidden}.sp-pos-panel-heading{display:flex;align-items:center;gap:13px;padding:21px 23px;border-bottom:1px solid #edf0f5}.sp-pos-panel-heading h2{font-weight:800;font-size:17px;letter-spacing:-.02em;margin:0 0 3px;color:#1e2c40}.sp-pos-panel-heading p{margin:0;color:#718096;font-size:12px}.sp-pos-step{height:35px;width:35px;display:grid;place-items:center;background:color-mix(in srgb,var(--sp-primary) 10%,white);border-radius:11px;font-size:12px;font-weight:800;color:var(--sp-primary)}.sp-pos-search-content{padding:24px}.sp-pos-add-selected{width:100%;margin:13px 0 4px;padding:11px;font-weight:700}.sp-pos-search-result{display:grid;grid-template-columns:1fr auto;gap:2px 10px;text-align:left;font-size:12px}.sp-pos-search-result strong{grid-column:1;color:#1e2c40}.sp-pos-search-result>span:not(.sp-pos-result-price){grid-column:1;color:#64748b}.sp-pos-result-price{grid-row:1/span 2;grid-column:2;align-self:center;color:#187554;font-weight:800}.sp-pos-scan-divider{display:flex;align-items:center;gap:12px;text-align:center;color:#8490a0;font-size:10px;font-weight:800;letter-spacing:.08em;margin:24px 0}.sp-pos-scan-divider::before,.sp-pos-scan-divider::after{content:"";height:1px;background:#e3e7ee;flex:1}.sp-pos-barcode-group .input-group-text{background:#f7f8fa;border-color:#d8dce6;border-radius:10px 0 0 10px}.sp-pos-barcode-group input{min-height:48px;border-color:#d8dce6}.sp-pos-barcode-group .btn{border-radius:0 10px 10px 0;padding:0 18px}.sp-pos-hint{font-size:11px;color:#7e8a9b;margin:11px 0 0;line-height:1.6}.sp-pos-workflow-tips{border-top:1px solid #edf0f5;padding:16px 21px;background:#fcfcfd;display:flex;gap:13px;flex-wrap:wrap;font-size:11px;color:#60728b;justify-content:space-between}.sp-pos-workflow-tips>div{display:flex;align-items:center;gap:6px}.sp-pos-workflow-tips .sp-bs-icon{color:#18855e;width:15px;height:15px}
.sp-pos-empty-cart{min-height:175px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:28px;gap:8px;color:#68768b}.sp-pos-empty-cart h3{font-size:16px;font-weight:750;color:#26354b;margin:7px 0 0}.sp-pos-empty-cart p{font-size:12px;margin:0}.sp-pos-empty-mark{width:56px;height:56px;border:1px solid #e7e9f0;background:#f8fafc;border-radius:17px;display:grid;place-items:center;color:#75859a}.sp-pos-cart-items{overflow-y:auto;min-height:0;max-height:38vh;padding:5px 21px}.sp-pos-cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto 26px;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edf0f5}.sp-pos-item-identity{min-width:0}.sp-pos-item-identity strong{display:block;font-size:13px;color:#1f2d42;overflow-wrap:anywhere}.sp-pos-item-identity small{display:block;font-size:11px;color:#8491a1;margin-top:5px}.sp-pos-item-controls{display:flex;align-items:center;border:1px solid #dce2ea;border-radius:9px;overflow:hidden;gap:8px}.sp-pos-item-controls>span{font-weight:800;min-width:16px;text-align:center}.sp-pos-qty-btn{border:0;background:#f7f8fa;color:#39465b;height:33px;width:30px;font-size:20px;line-height:1}.sp-pos-qty-btn:hover{background:#eaeef4}.sp-pos-qty-btn:disabled{opacity:.35}.sp-pos-line-total{white-space:nowrap;font-size:12px;color:#243248}.sp-pos-remove{border:0;background:transparent;color:#b25260;padding:4px}.sp-pos-remove .sp-bs-icon{width:15px;height:15px}
.sp-pos-checkout{border-top:1px solid #e9edf2;padding:21px 24px;background:#fbfcfd;overflow-y:auto}.sp-pos-checkout-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sp-pos-checkout .form-label{font-size:12px;color:#49576b;margin-bottom:6px}.sp-pos-totals{border-top:1px solid #e3e8ef;border-bottom:1px solid #e3e8ef;margin:17px 0;padding:12px 0;display:flex;flex-direction:column;gap:10px}.sp-pos-totals>div{display:flex;justify-content:space-between;font-size:12px;color:#6d798a}.sp-pos-totals strong{color:#1e2b40}.sp-pos-totals .sp-pos-grand-total{align-items:center;color:#1d2e45;font-weight:800;font-size:15px;padding-top:10px;border-top:1px dashed #dfe5ed}.sp-pos-grand-total strong{font-size:21px;color:var(--sp-primary)}.sp-pos-cash-panel{background:#fff;border:1px solid #e2e7ee;border-radius:12px;padding:13px;margin-bottom:13px}.sp-pos-change{display:flex;justify-content:space-between;align-items:center;margin-top:11px;font-size:12px;color:#69778a}.sp-pos-change strong{color:#187554;font-size:15px}.sp-pos-advanced{font-size:12px;color:#4c5a6f}.sp-pos-advanced .form-check-input{cursor:pointer}.sp-pos-split-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:13px 0}.sp-pos-second-amount{align-self:center;font-size:12px}.sp-pos-complete{width:100%;min-height:51px!important;font-weight:800!important;margin-top:17px!important;font-size:14px}.sp-pos-footnote{text-align:center;font-size:10px;color:#8a96a7;margin:12px 0 0}.sp-pos-message{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px}.sp-pos-receipt-success{margin:21px 0 0;padding:23px}.sp-pos-success-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.sp-pos-success-top h2{font-size:18px;font-weight:800;margin:3px 0}.sp-pos-success-top p{font-size:12px;color:#718096}.sp-pos-receipt-success .receipt-preview{max-width:350px;margin:15px auto}.sp-pos-print-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.sp-role-dashboard{max-width:1520px;margin:0 auto}.sp-dashboard-actions{display:flex;gap:10px;flex-wrap:wrap}.sp-dashboard-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:14px;margin:22px 0}.sp-dashboard-metric{border:1px solid #e5eaf0;background:#fff;border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 15px rgba(22,35,61,.035);min-width:0}.sp-dashboard-metric-label{font-size:12px;font-weight:750;color:#697891}.sp-dashboard-metric strong{font-size:clamp(22px,2vw,28px);letter-spacing:-.04em;font-weight:800;color:#1e2d45;overflow-wrap:anywhere}.sp-dashboard-metric small{font-size:11px;color:#8b96a8;line-height:1.5}.sp-dashboard-metric-warning strong{color:#c45a38}.sp-dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:17px}.sp-dashboard-section{background:#fff;border:1px solid #e5eaf0;border-radius:17px;padding:23px;min-width:0;box-shadow:0 4px 15px rgba(22,35,61,.035)}.sp-dashboard-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px solid #edf0f5;padding-bottom:18px;margin-bottom:6px}.sp-dashboard-section-head h2{font-weight:800;font-size:17px;letter-spacing:-.02em;margin:5px 0 0}.sp-dashboard-small-tag{font-size:11px;font-weight:700;color:var(--sp-primary);padding:6px 9px;border-radius:8px;background:color-mix(in srgb,var(--sp-primary) 8%,white)}.sp-dashboard-task-list{display:flex;flex-direction:column}.sp-dashboard-task{display:flex;align-items:center;gap:15px;text-decoration:none!important;color:#2c394e!important;padding:16px 4px;border-bottom:1px solid #f0f2f5}.sp-dashboard-task:last-child{border-bottom:0}.sp-dashboard-task:hover{background:#fafbfc}.sp-dashboard-task-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--sp-primary) 8%,white);color:var(--sp-primary);flex:0 0 auto}.sp-dashboard-task>span:nth-child(2){flex:1}.sp-dashboard-task strong,.sp-dashboard-task small{display:block}.sp-dashboard-task strong{font-size:13px}.sp-dashboard-task small{font-size:11px;color:#8894a5;margin-top:5px}.sp-dashboard-insights>p{font-size:12px;line-height:1.8;color:#69778d}.sp-dashboard-alert-metric{display:flex;align-items:baseline;gap:12px;margin-top:17px}.sp-dashboard-alert-metric strong{font-size:41px;letter-spacing:-.06em;color:#24324a}.sp-dashboard-alert-metric span{font-size:12px;color:#8291a1}.sp-dashboard-help{display:flex;gap:10px;align-items:center;border-top:1px solid #ebeff5;margin-top:24px;padding-top:17px;font-size:11px;color:#7c899c}.sp-dashboard-skeleton{min-height:180px;display:flex;justify-content:center;align-items:center;gap:15px;background:#fff;border:1px solid #e4e8ee;border-radius:14px;color:#718096}
@media(max-width:1200px){.sp-pos-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}.sp-pos-cart-panel{max-height:none;position:static}.sp-dashboard-main-grid{grid-template-columns:1fr}}@media(max-width:850px){.sp-pos-layout{grid-template-columns:1fr}.sp-pos-cart-panel{max-height:none}.sp-pos-header,.sp-dashboard-welcome{flex-wrap:wrap}.sp-pos-cart-items{max-height:42vh}}@media(max-width:480px){.sp-pos-page .sp-pos-panel-heading{padding:16px}.sp-pos-search-content,.sp-pos-checkout{padding:17px}.sp-pos-checkout-fields{grid-template-columns:1fr}.sp-pos-cart-item{grid-template-columns:1fr auto;gap:8px}.sp-pos-line-total{grid-column:1}.sp-pos-remove{grid-column:2}.sp-pos-header-right{width:100%}.sp-pos-stat{flex:1}.sp-dashboard-section{padding:16px}.sp-dashboard-metrics{grid-template-columns:1fr 1fr;gap:8px}.sp-dashboard-metric{padding:13px}.sp-dashboard-metric strong{font-size:19px}}
@media print{.sp-pos-page,.sp-role-dashboard{display:none!important}}
.sp-platform-onboarding{padding-left:22px;margin:22px 0;color:#526177;font-size:12px;line-height:1.65}.sp-platform-onboarding li{margin-bottom:13px;padding-left:3px}
