:root{
  --aka-red:#7624a8;
  --aka-red2:#54177e;
  --aka-gold:#a677cc;
  --aka-gold2:#e3d0f5;
  --aka-gold3:#f5effb;
  --aka-black:#291b36;
  --aka-ink:#382347;
  --aka-bg:#faf7fd;
  --aka-green:#198754;
  --aka-blue:#0d6efd;
  --aka-shadow:0 10px 28px rgba(115,20,170,.10);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  background:
    radial-gradient(circle at top left, rgba(225,174,255,.95) 0, rgba(225,174,255,0) 28%),
    radial-gradient(circle at top right, rgba(153,46,215,.18) 0, rgba(153,46,215,0) 24%),
    linear-gradient(180deg,#fffaf1 0,#f3dfff 48%,#eed1ff 100%);
  font-family:Tahoma,"Noto Sans Thai",sans-serif;
  color:var(--aka-ink);
  font-size:15px;
}
a{color:#7914b3;text-decoration:none}a:hover{color:#5f0f8d}
.aka-navbar{
  background:linear-gradient(90deg,#662095 0%,#8131b1 46%,#a575ca 100%);
  border-bottom:3px solid #d7a1f7;
  box-shadow:0 6px 20px rgba(119,34,168,.24)
}
.brand-logo{width:42px;height:42px;border-radius:50%;object-fit:cover;border:2px solid #e4b4ff;box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.navbar-brand{font-weight:900;letter-spacing:.4px}
.brand-pos{font-size:.65rem;color:#520e7a;background:linear-gradient(180deg,#eed0ff,#ac4be4);padding:.18rem .42rem;border-radius:999px;box-shadow:inset 0 0 0 1px rgba(92,0,145,.12)}
.navbar .nav-link{border-radius:12px;margin:.1rem .05rem;padding:.55rem .68rem!important;font-weight:700;color:#fff!important}
.navbar .nav-link:hover,.navbar .nav-link.active{background:#ffffff20;color:#fff}
.navbar .nav-link.active{box-shadow:inset 0 -3px 0 #e4b4ff}
.shift-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-left:2px}
.shift-dot.open{background:#38d47c;box-shadow:0 0 8px #38d47c}
.shift-dot.closed{background:#ca8bee;box-shadow:0 0 6px rgba(202,139,238,.65)}
.user-box{display:flex;align-items:center;gap:.55rem;color:#fff}
.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.28)}
.user-meta{display:flex;flex-direction:column;line-height:1.05}.user-meta small{opacity:.82;font-size:.72rem;margin-top:3px}
.app-main{max-width:1920px;margin:0 auto}
.app-alert{border:0;border-left:4px solid currentColor;box-shadow:var(--aka-shadow)}
.card{border:1px solid rgba(157,61,212,.38);border-radius:20px;box-shadow:var(--aka-shadow);overflow:hidden;background:linear-gradient(180deg,#fffefd 0,#fffaf1 100%)}
.card-header{background:linear-gradient(180deg,#f3dfff,#e9c4ff);border-bottom:1px solid #cf99ef;font-weight:800;padding:.9rem 1rem;color:#5a1184}
.card-footer{border-top:1px solid #dcb6f2;background:#fffaf0}
.btn{border-radius:12px;font-weight:700}
.btn-aka{background:linear-gradient(180deg,#9c2ddd,#7612b0);border-color:#6f0fa7;color:#fff;box-shadow:0 6px 14px rgba(118,18,176,.22)}
.btn-aka:hover,.btn-aka:focus{background:linear-gradient(180deg,#7624a8,#650c98);color:#fff;border-color:#570984}
.btn-gold{background:linear-gradient(180deg,#da9bff,#9d3ad6);border-color:#8926c2;color:#3b045b;font-weight:800;box-shadow:0 6px 14px rgba(157,61,212,.25)}
.btn-gold:hover,.btn-gold:focus{background:linear-gradient(180deg,#c879f5,#8d26c9);color:#31004d;border-color:#7411ae}
.btn-soft{background:#f2dcff;border:1px solid #ca89ef;color:#5a078a}
.btn-outline-secondary{border-color:#c189e1;color:#61148e}.btn-outline-secondary:hover{background:#ebc9ff;border-color:#a54ad9;color:#46006f}
.text-gold{color:#7608b5}.bg-aka{background:var(--aka-red)!important}.border-gold{border-color:var(--aka-gold)!important}
.page-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.page-title h1,.page-title h2{font-weight:900;margin:0;color:#61138e}.page-title .sub{color:#75508a;margin-top:.2rem}.page-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.metric{height:100%;padding:1rem 1rem;border-radius:20px;background:linear-gradient(180deg,#fffefb 0,#fff8eb 100%);box-shadow:var(--aka-shadow);border:1px solid #d9b0f0;position:relative;overflow:hidden}
.metric:before{content:"";position:absolute;left:0;top:0;width:100%;height:5px;background:linear-gradient(90deg,#891bc8,#9b31d9,#d9adf3)}
.metric:after{content:"";position:absolute;width:78px;height:78px;border-radius:50%;right:-20px;bottom:-28px;background:rgba(157,61,212,.16)}
.metric .metric-row{display:flex;align-items:center;gap:.8rem}.metric .metric-icon{width:48px;height:48px;min-width:48px;border-radius:14px;display:grid;place-items:center;font-size:1.35rem;background:linear-gradient(145deg,#eac7ff,#c677f3);color:#7a1ab2;box-shadow:inset 0 0 0 1px rgba(148,42,210,.18)}
.metric.gold .metric-icon{background:linear-gradient(145deg,#eac5ff,#a948e1);color:#59028b}
.metric.green .metric-icon{background:#effaf0;color:#198754}.metric.blue .metric-icon{background:#eef4ff;color:#0d6efd}.metric.dark .metric-icon{background:#eed0ff;color:#6a1d97}
.metric .value{font-size:1.55rem;font-weight:900;line-height:1.15;color:#4d156d}.metric .label{color:#765489;font-size:.88rem;margin-bottom:.18rem}.metric .hint{font-size:.75rem;color:#9073a1;margin-top:.28rem}
.quick-card{display:flex;align-items:center;gap:.9rem;text-decoration:none;color:inherit;padding:1rem;border-radius:18px;background:linear-gradient(180deg,#fffefd,#fff7e7);border:1px solid #d2a0ef;transition:.18s;box-shadow:0 6px 16px rgba(157,61,212,.08)}
.quick-card:hover{transform:translateY(-2px);box-shadow:var(--aka-shadow);color:inherit;border-color:#a143d8}
.quick-card .qicon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#8c1ecb,#b257e6);color:#f2dcff;font-size:1.4rem}
.quick-card b{display:block;color:#61138e}.quick-card small{color:#7c5592}
.table{--bs-table-bg:transparent}
.table thead th{background:linear-gradient(180deg,#7624a8,#6f11a6);color:#fff;border-color:#68119b;white-space:nowrap;font-weight:700;padding:.72rem}
.table td{vertical-align:middle;padding:.7rem}.table-hover tbody tr:hover{background:#fff8e2}.table-striped>tbody>tr:nth-of-type(odd)>*{background:#fffdf6}.stock-low{background:#fff0f0!important}.table .money{font-variant-numeric:tabular-nums}.badge{font-weight:700}
.pos-shell{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(380px,.7fr);gap:1rem;align-items:start}.pos-left,.pos-right{min-width:0}.scan-card{position:sticky;top:78px;z-index:10}.pos-search-wrap{position:relative}.pos-search-wrap .scan-icon{position:absolute;left:1rem;top:50%;transform:translateY(-50%);font-size:1.4rem;color:var(--aka-red)}
.pos-search{font-size:1.18rem;padding:.9rem 1rem .9rem 3rem;border:2px solid #ce98ed;background:#fffdf7}.pos-search:focus{border-color:#9833d3;box-shadow:0 0 0 .25rem rgba(153,46,215,.18)}.product-hit{cursor:pointer}.product-hit:hover{background:#f2dcff}
.pos-cart-card{position:sticky;top:78px}.pos-cart{min-height:260px;max-height:48vh;overflow:auto}.pos-total{font-size:2.15rem;font-weight:900;color:var(--aka-red)}.cart-item-name{font-weight:800;color:#57147e}.cart-sub{font-size:.78rem;color:#836396}.qty-stepper{display:inline-flex;align-items:center;border:1px solid #d0aee3;border-radius:10px;overflow:hidden;background:#fff}.qty-stepper button{border:0;background:#f1d9ff;width:30px;height:34px;font-weight:900;color:#5f0f8d}.qty-stepper input{border:0;width:58px;height:34px;text-align:center;outline:0}.cart-actions{display:flex;gap:.3rem;justify-content:flex-end}.empty-cart{padding:3rem 1rem;text-align:center;color:#8b6f9b}.empty-cart i{font-size:2.5rem;color:#ae61da}
.shift-banner{border-radius:16px;padding:.9rem 1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.shift-banner.open{background:linear-gradient(90deg,#f1d9ff,#fffdf2);border:1px solid #c27ee9}.shift-banner.closed{background:linear-gradient(90deg,#fff1ef,#fff8f3);border:1px solid #dab8ed}.shift-banner b{font-size:1.05rem;color:#60118e}
.summary-sheet{background:#fffdf9;border:1px solid #cd9aea;border-radius:18px;box-shadow:var(--aka-shadow);padding:1.2rem}.summary-sheet .sheet-header{display:flex;align-items:center;gap:1rem;border-bottom:2px solid #891bc8;padding-bottom:1rem;margin-bottom:1rem}.summary-sheet .sheet-logo{width:72px;height:72px;border-radius:50%;object-fit:cover}.summary-sheet .sheet-store{font-size:1.3rem;font-weight:900;color:#5e138a}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:2.5rem}.signature-line{border-top:1px solid #752aa1;padding-top:.4rem;text-align:center;color:#5d3c70}
.report-header-print{display:none}.report-chart{height:10px;border-radius:99px;background:#f2ead5;overflow:hidden;min-width:80px}.report-chart>span{display:block;height:100%;background:linear-gradient(90deg,#7624a8,#9b31d9)}
.form-control,.form-select{border-radius:11px;border-color:#d3b8e3;background:#fffefb}.form-control:focus,.form-select:focus{border-color:#9734d1;box-shadow:0 0 0 .2rem rgba(153,46,215,.18)}.form-label{font-weight:700;color:#552770}
.input-group-text{background:#f0d6ff;border-color:#d3b8e3;color:#5f148b}
.alert-info{background:#fff8e2;border-color:#cb8af0;color:#4d0975}.alert-success{background:#f5fffa}.alert-warning{background:#f2dcff}.alert-danger{background:#fff0f1}
.dropdown-menu{border:1px solid #d09fed;border-radius:14px;box-shadow:var(--aka-shadow)}
@media(max-width:1199.98px){.user-box{margin-top:.6rem;padding-top:.6rem;border-top:1px solid #ffffff2f}.pos-shell{grid-template-columns:1fr}.scan-card,.pos-cart-card{position:static}.pos-cart{max-height:none}}
@media(max-width:767.98px){body{font-size:14px}.app-main{padding-left:.7rem!important;padding-right:.7rem!important}.brand-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metric{padding:.8rem}.metric .metric-icon{width:40px;height:40px;min-width:40px;border-radius:12px}.metric .value{font-size:1.2rem}.metric .label{font-size:.78rem}.page-title{align-items:flex-start;flex-direction:column}.page-actions{width:100%}.page-actions .btn{flex:1}.table-responsive{font-size:.88rem}.btn{min-height:40px}.pos-total{font-size:1.7rem}.cart-actions{flex-direction:column}.cart-actions .btn{min-height:32px;padding:.2rem .45rem}.summary-sheet{padding:.8rem}.signature-grid{grid-template-columns:1fr;gap:1.8rem}}
@media print{.d-print-grid{display:grid!important}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.no-print,.navbar,.btn,.alert{display:none!important}body{background:#fff!important;color:#000;font-size:11pt}.app-main{padding:0!important;max-width:none}.card,.metric,.summary-sheet{box-shadow:none!important;border:1px solid #aaa!important;break-inside:avoid}.card-header{background:#e8cff7!important;color:#57127f!important;border-bottom-color:#7e22b4!important}.table thead th{background:#ce91f1!important;color:#4b0f6d!important;border-color:#9741c9!important}.report-header-print{display:flex;align-items:center;gap:12px;border-bottom:2px solid #000;padding-bottom:10px;margin-bottom:12px}.report-header-print img{width:58px;height:58px;border-radius:50%;object-fit:cover}.report-header-print .title{font-size:18pt;font-weight:900}.page-title{margin-bottom:10px}.page-title h2{font-size:16pt}.metric .metric-icon{display:none}.metric .value{font-size:15pt}.row.g-3{--bs-gutter-x:.5rem;--bs-gutter-y:.5rem}.signature-grid{margin-top:30px}.summary-sheet{border:0!important;padding:0}.summary-sheet .sheet-header{border-bottom:2px solid #000}@page{size:A4;margin:12mm}}

.bank-qr-preview{display:flex;gap:1rem;align-items:center;padding:1rem;border:1px solid #c383e8;border-radius:16px;background:linear-gradient(180deg,#fffef8,#f2dcff)}.bank-qr-preview img{width:140px;height:140px;object-fit:contain;background:#fff;border:8px solid #fff;border-radius:14px;box-shadow:0 4px 14px rgba(75,9,113,.12)}.pos-qr-box{display:none;margin-top:1rem;padding:1rem;border:2px solid #af5bdf;border-radius:18px;background:linear-gradient(180deg,#fffdf8,#f0d6ff)}.pos-qr-box.show{display:block}.pos-qr-image{width:min(260px,70vw);aspect-ratio:1/1;object-fit:contain;background:#fff;border:8px solid #fff;border-radius:16px;box-shadow:0 5px 16px rgba(0,0,0,.12)}

.stock-scan-status{border-radius:18px;padding:1rem;background:linear-gradient(180deg,#fffef8,#efd4ff);border:1px solid #b361e3}
#stockScan{font-weight:700;letter-spacing:.2px}
#queueBody input.form-control{min-width:110px}
@media(max-width:767.98px){#queueBody{font-size:.88rem}.pos-search{font-size:1rem}.metric .value{word-break:break-word}}


.product-thumb{width:58px;height:58px;object-fit:cover;border-radius:12px;border:1px solid #cd9aea;background:#fff;display:grid;place-items:center}
.placeholder-thumb{color:#9444c3;background:linear-gradient(180deg,#fffaf0,#eccbff);font-size:1.3rem}
.product-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:.8rem}
.product-gallery-item{border:1px solid #d1a5ea;border-radius:16px;overflow:hidden;background:#fffdf8;box-shadow:0 4px 14px rgba(90,20,130,.08)}
.product-gallery-item.primary{outline:2px solid #a677cc}
.product-gallery-item img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#fff}
.variant-edit-image{width:120px;height:120px;object-fit:cover;border-radius:14px;border:1px solid #be7fe2}
.pos-hit-thumb{width:58px;height:58px;min-width:58px;object-fit:cover;border-radius:12px;border:1px solid #ce9bec;background:#fff;display:grid;place-items:center}
.pos-cart-thumb{width:48px;height:48px;min-width:48px;object-fit:cover;border-radius:10px;border:1px solid #ce9bec;background:#fff;display:grid;place-items:center}
.stock-check-img{width:90px;height:90px;min-width:90px;object-fit:cover;border-radius:16px;border:1px solid #af59e1;background:#fff;display:grid;place-items:center;font-size:2rem;color:#9444c3}
.text-gold{color:#7109ad!important}



.backup-option{border:1px solid #cd9aea;border-radius:18px;padding:1.1rem;background:linear-gradient(180deg,#fffef9,#f3dfff)}
.backup-option-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#7624a8,#ae3eef);color:#fff;font-size:1.5rem;margin-bottom:.8rem;box-shadow:0 8px 20px rgba(119,20,176,.16)}
.backup-check{display:flex;gap:.75rem;align-items:flex-start;padding:.7rem 0;border-bottom:1px dashed #d4afea}
.backup-check:last-child{border-bottom:0}.backup-check>i{font-size:1.2rem;color:#198754;margin-top:.1rem}.backup-check.danger>i{color:#7624a8}.backup-check small{display:block;color:#7c638a;margin-top:.15rem}



.nav-alert-btn{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;color:#fff;text-decoration:none;margin-right:.7rem;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08)}
.nav-alert-btn:hover,.nav-alert-btn.active{color:#fff;background:rgba(206,120,255,.18);border-color:#b156e6}
.nav-alert-badge{position:absolute;top:-5px;right:-6px;min-width:21px;height:21px;padding:0 5px;border-radius:99px;background:#ac32f2;color:#3b0958;font-size:.68rem;font-weight:900;align-items:center;justify-content:center;border:2px solid #7112a8;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.nav-alert-badge.critical{background:#fff;color:#7912b5;animation:akaAlertPulse 1.6s ease-in-out infinite}
@keyframes akaAlertPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.14)}}
.alert-dashboard-card{border:1px solid #b258e6;box-shadow:0 8px 24px rgba(76,15,112,.08)}
.dash-alert-mini{display:flex;align-items:center;gap:.65rem;padding:.7rem .8rem;border:1px solid #d4aeea;border-radius:14px;background:#fffdf7;color:#33203e;height:100%;transition:.15s}
.dash-alert-mini:hover{transform:translateY(-1px);box-shadow:0 5px 16px rgba(83,20,120,.1)}
.dash-alert-mini>i{font-size:1.35rem}
.dash-alert-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;border:1px solid #d4aeea;border-left:4px solid #9f3dd7;border-radius:14px;background:#fff;color:#2b1b35;text-decoration:none;height:100%}
.dash-alert-item:hover{background:#fff9ea}
.dash-alert-item.severity-critical{border-left-color:#7624a8}.dash-alert-item.severity-warning{border-left-color:#9e20e7}.dash-alert-item.severity-info{border-left-color:#2d75b7}
.dash-alert-item-icon{width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center;background:#eed2ff;color:#731ca5;font-size:1.15rem}
.alert-metric-card{display:flex;gap:.8rem;align-items:center;border:1px solid #d0a4ea;border-radius:17px;padding:.9rem;background:#fffdf8;color:#2b1b35;height:100%}
.alert-metric-card:hover{box-shadow:0 5px 16px rgba(83,20,120,.1);transform:translateY(-1px)}
.alert-metric-icon{width:44px;height:44px;min-width:44px;border-radius:14px;display:grid;place-items:center;background:#f1d8ff;font-size:1.35rem}
.alert-list-row{display:flex;gap:.8rem;align-items:center;border-left:4px solid transparent!important}
.alert-list-row.severity-critical{border-left-color:#7624a8!important}.alert-list-row.severity-warning{border-left-color:#9a1be3!important}.alert-list-row.severity-info{border-left-color:#2d75b7!important}
.alert-list-icon{width:42px;height:42px;min-width:42px;border-radius:14px;background:#eed1ff;color:#7318a8;display:grid;place-items:center;font-size:1.25rem}
@media(max-width:1199.98px){.nav-alert-btn{margin:.25rem 0 .6rem 0}.nav-alert-badge{top:-4px;right:-5px}}



.owner-section-title{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:.3rem 0 .65rem;padding:.25rem .15rem}
.owner-section-title>div{display:flex;align-items:center;gap:.55rem;font-size:1.05rem;color:#382347}.owner-section-title>div>i{color:#7624a8;font-size:1.2rem}.owner-section-title>span{font-size:.78rem;color:#7c638a;text-align:right}
.owner-kpi{height:100%;border-radius:20px;padding:1rem 1.05rem;background:linear-gradient(145deg,#fffdf8,#eed0ff);border:1px solid #cd9aea;box-shadow:0 7px 20px rgba(71,20,100,.08);position:relative;overflow:hidden}
.owner-kpi:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-35px;bottom:-45px;background:rgba(138,28,201,.06)}
.owner-kpi.primary{border-top:4px solid #7624a8}.owner-kpi.gold{border-top:4px solid #a677cc}.owner-kpi.success{border-top:4px solid #198754}.owner-kpi.dark{border-top:4px solid #382347}
.owner-kpi-top{display:flex;justify-content:space-between;align-items:center;gap:.5rem;color:#624771;font-size:.82rem;font-weight:700}.owner-kpi-value{font-size:1.75rem;font-weight:900;color:#30193d;margin:.35rem 0;white-space:nowrap}.owner-kpi-foot{font-size:.73rem;color:#7d658b}
.owner-compare{display:inline-flex;align-items:center;gap:.2rem;border-radius:99px;padding:.18rem .48rem;font-size:.7rem;font-weight:800}.owner-compare.up{background:#dff5e8;color:#157347}.owner-compare.down{background:#fde2e4;color:#7e20b4}.owner-compare.neutral{background:#f3eee7;color:#6a5775}
.payment-owner-card{display:flex;align-items:center;gap:.8rem;border:1px solid #d3aaea;border-radius:18px;padding:.95rem;background:#fffdf8;height:100%;box-shadow:0 4px 13px rgba(74,20,105,.05)}.payment-owner-icon{width:48px;height:48px;min-width:48px;border-radius:15px;display:grid;place-items:center;background:#edcfff;font-size:1.35rem}
.owner-trend{height:245px;display:flex;align-items:flex-end;gap:.35rem;padding-top:1.7rem;overflow-x:auto}.owner-trend-col{min-width:42px;flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.owner-trend-value{font-size:.64rem;color:#6a5775;white-space:nowrap;margin-bottom:.25rem;transform:rotate(-35deg);transform-origin:center}.owner-trend-bar-wrap{height:165px;width:70%;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #d4adea;background:linear-gradient(180deg,rgba(255,250,235,.25),rgba(237,207,255,.65));border-radius:6px 6px 0 0}.owner-trend-bar{width:72%;min-height:3px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#a677cc,#7624a8)}.owner-trend-bar.negative{background:linear-gradient(180deg,#a762cf,#6b149e)}.owner-trend-label{font-size:.67rem;color:#6f5a7b;margin-top:.35rem}
.owner-mini-stat{border:1px solid #d4aeea;background:#fffdf8;border-radius:15px;padding:.85rem;height:100%}.owner-mini-stat span{display:block;font-size:.75rem;color:#766082;margin-bottom:.25rem}.owner-mini-stat b{font-size:1.1rem}
@media(max-width:767.98px){.owner-section-title{display:block}.owner-section-title>span{display:block;text-align:left;margin-top:.2rem}.owner-kpi-value{font-size:1.4rem}.owner-trend-col{min-width:38px}.owner-trend-value{display:none}}


/* Ant Fresh POS theme */
body{background:#faf7fd;color:#382347}
.aka-navbar{background:linear-gradient(90deg,#61208b,#873ab1);border-bottom:3px solid #e9d9f6}
.brand-logo{object-fit:contain;background:white;border-color:white;border-radius:12px}
.brand-pos,.btn-gold{background:#eee0f8;color:#64248e;border-color:#d8b8ed}
.card,.modal-content{background:#fff;border-color:#e6d9ef!important}
.card-header{background:#f5effb!important;color:#64248e}
.btn-aka,.btn-danger{background:#7624a8;border-color:#7624a8;color:#fff}
.btn-aka:hover,.btn-danger:hover{background:#54177e;border-color:#54177e;color:#fff}
.text-danger,.text-gold,.pos-total{color:#7624a8!important}
a{color:#7624a8}a:hover{color:#54177e}
.login-page .card{background:#fff!important;border-color:#dfc9ee!important}

/* ANT theme v1.0.1: replace legacy gold surfaces and login inline background */
:root{--aka-shadow:0 10px 28px rgba(91,33,132,.10)}
body.ant-login{background:radial-gradient(ellipse at top,#fff 0%,#f3eafa 45%,#dfc4ef 100%)!important;color:#382347}
.ant-login .card{background:#fff!important;border-color:#dfc9ee!important;box-shadow:0 18px 50px rgba(91,33,132,.15)}
.form-control,.form-select,.input-group-text{background-color:#fff;border-color:#ddcbea;color:#382347}
.form-control:focus,.form-select:focus{border-color:#a36ac6;box-shadow:0 0 0 .25rem rgba(118,36,168,.15)}
.form-label,.page-title h1,.page-title h2,.metric .value{color:#582379}
.page-title .sub,.metric .label,.metric .hint{color:#7d688b}
.card-footer{background:#fff;border-color:#e7d8f0}
.metric,.owner-kpi,.payment-owner-card,.owner-mini-stat,.quick-card{background:#fff;border-color:#e4d4ed;box-shadow:var(--aka-shadow)}
.metric:before{background:linear-gradient(90deg,#7624a8,#b183d0,#ede0f7)}
.metric:after,.owner-kpi:after{background:rgba(118,36,168,.07)}
.metric .metric-icon,.metric.gold .metric-icon,.metric.dark .metric-icon,.payment-owner-icon,.alert-metric-icon,.alert-list-icon{background:#f0e4f8;color:#7624a8;box-shadow:none}
.quick-card:hover{border-color:#b98bd3}
.btn-aka,.btn-aka:focus,.btn-aka:hover{background:#7624a8;border-color:#7624a8;color:#fff;box-shadow:0 6px 14px rgba(118,36,168,.18)}
.btn-aka:hover{background:#5a1b81}
.btn-gold,.btn-gold:hover,.btn-gold:focus,.btn-soft{background:#eee0f8;border-color:#d8b8ed;color:#64248e;box-shadow:none}
.btn-outline-secondary{border-color:#d6bce8;color:#6c3d88}.btn-outline-secondary:hover{background:#f1e6f8;border-color:#b88cd3;color:#582379}
.navbar .nav-link.active{box-shadow:inset 0 -3px 0 #e8cef7}
.owner-trend-bar-wrap{border-color:#e4d4ed;background:linear-gradient(180deg,#fff,#f3eafa)}
.table{--bs-table-bg:#fff;--bs-table-border-color:#e8dcf0}
.table thead th{background:#f5effb;color:#64248e}

/* v1.0.2 — complete purple surfaces and readable navigation */
.aka-navbar{box-shadow:0 4px 14px rgba(91,33,132,.12)}
.alert-metric-card,.alert-metric-card:hover{background:#fff;border-color:#e2d2ed;box-shadow:0 4px 12px rgba(91,33,132,.06)}
.alert-metric-card b,.owner-mini-stat b{color:#382347}
.owner-compare.neutral{background:#f3edf8;color:#776087}
.text-warning{color:#8750ad!important}
.btn-outline-warning{color:#7624a8;border-color:#c39cde}.btn-outline-warning:hover{color:#fff;background:#7624a8;border-color:#7624a8}
.shift-dot.closed{background:#dbc6eb;box-shadow:0 0 6px rgba(219,198,235,.5)}
.navbar .nav-link{white-space:nowrap;display:flex;align-items:center;gap:.4rem;line-height:1.5}
.brand-name{white-space:nowrap}.user-meta b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
@media(min-width:1200px){
 .aka-navbar{padding-top:.65rem;padding-bottom:.5rem}
 .aka-navbar>.container-fluid{position:relative;flex-wrap:wrap!important;gap:.5rem}
 .aka-navbar .navbar-brand{min-height:44px;margin:0;max-width:calc(100% - 320px)}
 .aka-navbar #mainnav{flex-basis:100%;width:100%;min-width:0;padding-top:.5rem;border-top:1px solid rgba(255,255,255,.18)}
 .aka-navbar .navbar-nav{width:100%;flex:1;flex-wrap:nowrap;gap:.2rem;justify-content:space-between;margin:0!important}
 .aka-navbar .nav-item{flex:0 0 auto}
 .aka-navbar .nav-link{font-size:.87rem;padding:.55rem .65rem!important;margin:0;border-radius:10px}
 .aka-navbar .user-box{position:absolute;right:24px;top:1px;max-width:265px}
 .aka-navbar .nav-alert-btn{position:absolute;right:296px;top:1px;width:42px;height:42px;margin:0}
 .aka-navbar .user-meta{max-width:155px}
 .aka-navbar .brand-logo{width:44px;height:44px}
 .aka-navbar .brand-name{font-size:1.1rem}
}
@media(max-width:1199.98px){
 .aka-navbar .navbar-brand{max-width:calc(100% - 66px);min-width:0}
 .aka-navbar .brand-name{font-size:1rem;overflow:hidden;text-overflow:ellipsis}
 .aka-navbar #mainnav{padding-top:.75rem}
 .aka-navbar .navbar-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}
 .aka-navbar .nav-link{padding:.65rem!important;font-size:.9rem}
 .aka-navbar .user-box{margin-top:.75rem;max-width:100%;flex-wrap:wrap}
 .aka-navbar .dropdown-menu{position:static}
}
@media(max-width:380px){.aka-navbar .navbar-nav{grid-template-columns:1fr}.brand-pos{display:none}}

/* v1.0.3 — visual catalogue / original POS checkout */
.ant-catalog{min-width:0}.ant-category-tabs{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.6rem;margin-bottom:.65rem}
.ant-category{flex:0 0 auto;border:1px solid #dfcaee;border-radius:12px;background:#eee2f7;color:#602583;padding:.7rem 1rem;font-weight:700;white-space:nowrap}
.ant-category.active{background:#7624a8;border-color:#7624a8;color:#fff}
.ant-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.ant-product-tile{border:1px solid #e5d7ee;border-radius:16px;background:white;padding:.8rem;display:flex;flex-direction:column;align-items:center;gap:.4rem;text-align:center;color:#562177;min-width:0;transition:box-shadow .15s,transform .15s}
.ant-product-tile:hover:enabled{box-shadow:0 6px 20px rgba(118,36,168,.14);transform:translateY(-2px)}
.ant-product-tile:disabled{opacity:.55;cursor:not-allowed}.ant-product-tile b{overflow-wrap:anywhere;line-height:1.5}
.ant-product-tile img,.ant-product-placeholder{width:100%;height:140px;object-fit:contain;border-radius:10px;background:#faf7fd}
.ant-product-placeholder{display:grid;place-items:center;font-size:3rem;color:#b887d4}.ant-product-price{font-weight:800;color:#7624a8}.ant-product-tile small{color:#806990}
.ant-weight-tip{background:#f4ecfa;border:1px solid #dfc7ed;border-radius:16px;padding:1rem;display:flex;align-items:center;gap:1rem;color:#65268c}.ant-weight-tip>i{font-size:2rem}
body:has(.ant-catalog) .scan-card{position:static}body:has(.ant-catalog) .pos-cart-card{top:130px}
body:has(.ant-catalog) .pos-shell{grid-template-columns:minmax(0,1.35fr) minmax(420px,1fr)}
body:has(.ant-catalog) .pos-cart{min-height:360px;max-height:50vh}
body:has(.ant-catalog) .pos-cart-card>.card-footer{border-radius:0 0 20px 20px}
@media(max-width:1199.98px){body:has(.ant-catalog) .pos-shell{grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr)}body:has(.ant-catalog) .pos-cart-card{position:sticky;top:90px}.ant-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){body:has(.ant-catalog) .pos-shell{grid-template-columns:1fr}body:has(.ant-catalog) .pos-cart-card{position:static}.ant-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.ant-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ant-product-tile img,.ant-product-placeholder{height:110px}.ant-product-tile{padding:.6rem}}

/* v1.0.4 — flexible mockup catalogue */
:root{--ant-nav-height:140px}
.ant-catalog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.75rem 0}
.ant-columns-control{display:flex;align-items:center;gap:.5rem;color:#6b3a8b;font-size:.85rem;font-weight:700}.ant-columns-control select{width:auto;min-width:135px}
body:has(.ant-catalog) .ant-product-grid{grid-template-columns:repeat(var(--ant-columns,3),minmax(0,1fr));gap:12px}
.ant-product-tile{padding:12px;border-radius:14px;min-height:220px;box-shadow:0 2px 5px rgba(91,33,132,.03)}
.ant-product-tile img,.ant-product-placeholder{height:auto;aspect-ratio:4/3;max-height:165px;background:#fff;object-fit:contain}
.ant-product-tile b{font-size:.95rem;min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ant-product-price{font-size:1rem}.ant-product-tile small{font-size:.78rem}
.ant-product-tile:disabled{opacity:.78;background:#faf8fc}.ant-product-tile:focus-visible,.ant-category:focus-visible{outline:3px solid #b888d4;outline-offset:3px}
.ant-category-tabs{gap:8px;scrollbar-width:thin}.ant-category{padding:.6rem .9rem;border-radius:10px}
body:has(.ant-catalog) .pos-shell{grid-template-columns:minmax(0,1.55fr) minmax(380px,1fr);align-items:start;gap:16px}
body:has(.ant-catalog) .pos-cart-card{top:calc(var(--ant-nav-height) + 12px);position:sticky}
body:has(.ant-catalog) .pos-cart{min-height:260px;max-height:calc(100dvh - var(--ant-nav-height) - 300px)}
body:has(.ant-catalog) .pos-cart-card .card-footer{padding:18px!important;background:#fff}
body:has(.ant-catalog) .pos-total{font-size:clamp(2.3rem,3vw,3.5rem);line-height:1.15}
body:has(.ant-catalog) #payBtn{background:#7624a8;border-color:#7624a8;color:#fff;min-height:58px;font-size:1.25rem}
body:has(.ant-catalog) #payBtn:disabled{background:#ede5f3;border-color:#ded0e9;color:#9576a9;box-shadow:none;opacity:1}
body:has(.ant-catalog) .empty-cart{padding:3rem 1rem}
@media(max-width:1000px){body:has(.ant-catalog) .pos-shell{grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr)}}
@media(max-width:850px){body:has(.ant-catalog) .pos-shell{grid-template-columns:1fr}body:has(.ant-catalog) .pos-cart-card{position:static}body:has(.ant-catalog) .pos-cart{max-height:50vh;min-height:180px}}
@media(max-width:540px){.ant-product-tile{padding:9px;min-height:185px}.ant-product-price{font-size:.9rem}.ant-catalog-toolbar{gap:.5rem}.ant-columns-control{width:100%;justify-content:space-between}}
