/* Final POS layout. Spacing is shared across all modules and breaks down by task. */
:root{--sidebar:228px;--header-height:66px;--pos-surface:rgba(255,255,255,.92);--pos-ink:#1d3038;--pos-muted:#607178}
body{background:radial-gradient(ellipse at 95% 0,rgba(var(--shop-rgb),.075),transparent 48%),#f4f7f7;color:var(--pos-ink)}
body,input,select,textarea,button{font-family:Kanit,sans-serif}button,input,select,textarea{font-size:14px}
aside{width:var(--sidebar);background:rgba(255,255,255,.88);border-right:1px solid #e0e8e7;box-shadow:2px 0 20px #193a3205;padding:20px 14px;display:flex;flex-direction:column}
aside .brand{padding:0 6px 19px;margin:0;align-items:center}aside nav{overflow-y:auto;min-height:0;flex:1;padding-right:3px}aside nav .navlabel{font-size:11px;letter-spacing:.03em;color:#78888b;padding:15px 12px 6px;margin:0}aside nav button{width:100%;min-height:41px;padding:10px 12px;margin:2px 0;border-radius:11px;box-shadow:none;font-size:13px;font-weight:400;color:#43565e;border:1px solid transparent;gap:10px;text-align:left}aside nav button.active{background:rgba(var(--shop-rgb),.09);color:var(--shop-accent);border-color:rgba(var(--shop-rgb),.13);font-weight:500;box-shadow:none}aside nav button:hover{background:#eef4f2}aside .bottom{position:static;padding:12px 5px 0;background:transparent}.connection-card{padding:11px 12px;border-radius:12px;border-color:#e1e9e7;background:#f6f9f8}.connection-card strong{font-size:11px}.connection-card small{font-size:10px}.sidebar-extra{border-top:1px solid #e5ebe9;margin-top:10px;padding-top:7px}.sidebar-extra summary{padding:9px 12px;font-size:12px;color:#52666a;cursor:pointer}
.workspace{margin-left:var(--sidebar)}.workspace>.topbar{height:var(--header-height);min-height:var(--header-height);padding:12px 26px;background:#ffffffde;border-bottom:1px solid #e3eae8;box-shadow:none;backdrop-filter:blur(18px);gap:18px}.topbar #breadcrumb{font-size:12px;color:#53686f;min-width:125px}.topbar-right{gap:12px}.topbar #who{font-size:12px}.topbar .header-clock{font-size:10px}.topbar #status{font-size:10px}.topbar .user-avatar{display:none}.topbar #logout{min-height:36px;padding:7px 11px;font-size:11px}
#globalSearch{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f5f8f7;border:1px solid #e0e8e6;border-radius:11px;box-shadow:none;min-height:39px;max-width:340px;flex:1;color:#71817f;font-size:12px;padding:8px 13px;margin:auto}#globalSearch kbd{background:white;border:1px solid #e1e8e5;padding:1px 5px;border-radius:4px;font:10px Kanit,sans-serif;color:#73847f}
main{padding:25px 26px 30px;max-width:1900px;margin:0 auto}h2{font-size:25px;font-weight:500;letter-spacing:-.025em;line-height:1.4}h3{font-size:17px;font-weight:500;line-height:1.5}.heading{margin-bottom:20px;gap:14px}.heading small{font-size:12px;color:#64757a}.panel{background:var(--pos-surface);padding:22px;border:1px solid #e2eae7;border-radius:17px;box-shadow:0 7px 22px #203f3310,inset 0 1px #fff}.panel h3{margin-top:0}
input,select,textarea{border-color:#cedbd5;border-radius:10px;background:#fcfefd;color:#243a40;min-height:42px;padding:10px 12px;line-height:1.45;box-shadow:none}input:focus,textarea:focus,select:focus{outline:2px solid rgba(var(--shop-rgb),.23);outline-offset:1px;border-color:var(--shop-accent)}label{font-size:12px;color:#425960}button{min-height:40px;padding:10px 16px;border-radius:10px;font-weight:500;box-shadow:0 3px 9px rgba(var(--shop-rgb),.12)}button.soft{background:#fff;color:#405b60;border-color:#d5e0dc;box-shadow:0 2px 5px #183b2b04}button.soft:hover{background:#f0f6f3}button.small{padding:7px 11px;font-size:12px;min-height:34px}button.danger{background:#b44050;border-color:#b44050;color:#fff}button:focus-visible,a:focus-visible{outline:3px solid rgba(var(--shop-rgb),.4);outline-offset:3px}
.dashboard-subtitle{display:flex;gap:10px;align-items:center;color:#6a7c80;font-size:12px}.dashboard-live{display:inline-flex;gap:6px;align-items:center}.dashboard-live:before{content:'';width:6px;height:6px;background:#299166;border-radius:50%}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.dashboard-kpi{background:#fff;border:1px solid #e0e9e5;border-radius:15px;padding:20px;box-shadow:0 5px 18px #193a2a07}.dashboard-kpi small{font-size:12px;color:#596f74;display:block}.dashboard-kpi b{font-size:28px;display:block;line-height:1.5;letter-spacing:-.02em;color:#223b3f;font-weight:500}.dashboard-kpi span{font-size:10px;color:#81908f}.dashboard-kpi.kpi-primary{background:var(--shop-accent);border-color:var(--shop-accent)}.kpi-primary small,.kpi-primary b,.kpi-primary span{color:white}.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:20px}.dashboard-panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.dashboard-panel-head h3{margin:0}.dashboard-panel-head small{font-size:11px;color:#6c7e81;display:block}.dashboard-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}.dashboard-actions button{background:white;color:#385955;border:1px solid #d9e5de;box-shadow:0 3px 10px #1a4a3405;padding:14px 10px;min-height:61px;text-align:left}.dashboard-actions b{display:block;font-size:13px;font-weight:500}.dashboard-actions small{display:block;font-size:10px;color:#748780;font-weight:400;margin-top:3px}.dashboard-stock-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #edf1ef}.dashboard-stock-row:last-child{border:0}.dashboard-stock-row strong{font-size:13px;flex:1;font-weight:400}.dashboard-stock-row b{font-size:12px;font-weight:500}.dashboard-stock-mark{width:7px;height:7px;border-radius:50%;flex:0 0 7px;background:#aaa}.dashboard-stock-mark.ready{background:#25956e}.dashboard-stock-mark.out{background:#cc6b76}.dashboard-notice{margin-top:20px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-radius:13px;background:#eff5f2;border:1px solid #dde9e2;font-size:12px;color:#45645d}.pos-empty{padding:35px 16px;text-align:center}.pos-empty>span{font-size:16px;color:#43675c}.pos-empty p{font-size:12px;color:#758980;max-width:390px;margin:9px auto 16px;line-height:1.9}.text-button{padding:0!important;min-height:25px!important;border:0!important;background:none!important;color:var(--shop-accent)!important;box-shadow:none!important}.dashboard-layout table small{display:block;font-size:10px;color:#738681;margin-top:4px}
#page-sale .sale-hero{display:none}#page-sale .trade-switch{margin-bottom:17px;background:#edf3f0b8;border:1px solid #dfe8e1;border-radius:14px;box-shadow:none;padding:5px;gap:5px;top:calc(var(--header-height) + 8px)}.trade-switch button{min-height:43px;border:0;color:#647971;font-size:13px;border-radius:9px;box-shadow:none;background:transparent}.trade-switch button.active{background:white;color:var(--shop-accent);box-shadow:0 2px 8px #1d4b3512;border:1px solid #e3ebe5}.trade-switch .nav-icon{width:17px;height:17px}.pos-layout{grid-template-columns:minmax(0,1fr) 365px;gap:20px;align-items:stretch}.catalog .panel{padding:20px}.catalog-top{margin-bottom:12px}.catalog-top h3{font-size:16px}.catalog-top>span{font-size:11px;color:#71877d}.catalog-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;margin-bottom:16px}.catalog-filters label{font-size:11px}.catalog-filters select{font-size:12px}.top-search{margin:0}.product-grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:13px}.product-tile{border-radius:13px;box-shadow:0 3px 9px #203e2d06;border:1px solid #e0e8e2;background:white}.product-tile.selected{border-color:var(--shop-accent);box-shadow:0 0 0 1px var(--shop-accent),0 6px 15px rgba(var(--shop-rgb),.1)}.tile-cover{height:85px;background:linear-gradient(135deg,#f4f9f6,#e8f1ed)}.tile-cover .server-logo,.tile-cover .server-logo-fallback{width:49px;height:49px;border-radius:12px;font-size:18px}.tile-body{padding:7px 13px 13px}.tile-title{font-size:14px;margin:0 0 9px}.tile-stock{margin-bottom:9px}.tile-stock b{font-size:23px;color:var(--shop-accent)}.tile-stock small,.tile-sales{font-size:10px}.tile-tag{font-size:9px;top:7px;left:7px}.tile-ready,.tile-soldout{font-size:9px;top:7px;right:7px}.tile-check{width:19px;height:19px;right:10px;bottom:64px;font-size:11px}.product-tile.sold-out{background:#fff8f8;border-color:#efdcdd}.product-tile.sold-out .tile-stock b{color:#b76a73}.checkout{padding:20px}.checkout-title{padding-bottom:12px;margin-bottom:10px;border-bottom:1px solid #e4ece6}.checkout-title h3{font-size:17px}.checkout-title button{font-size:11px;min-height:32px;padding:6px 10px}#entryForm label{font-size:11px}#entryForm input,#entryForm select{margin:5px 0 12px;min-height:40px;font-size:13px;padding:9px 11px}#entryForm .row{gap:12px}.pos-discount{border:1px solid #e0e8e3;border-radius:10px;margin:0 0 12px;padding:9px 12px;background:#fafcfa}.pos-discount summary{font-size:12px;color:#58716a;cursor:pointer}.pos-discount[open] summary{margin-bottom:12px}.calc-preview{font-size:11px;line-height:1.8;padding:10px 12px;margin:8px 0;background:#edf5f0;color:#406252;border-color:#d9e7de;border-radius:10px}#available{font-size:11px;margin:7px 0}.no-slip-field{padding:9px 11px;border-radius:10px;margin:10px 0}.no-slip-choice{font-size:12px!important}.no-slip-field .hint{font-size:10px!important;line-height:1.65;margin:5px 0 0}#entryForm #noSlip{min-height:17px;height:17px;width:17px;margin:0}#save{min-height:43px;font-size:13px;margin-top:2px}.checkout-helper{display:none}#openSlipAfterSale{font-size:12px;min-height:38px;margin:9px 0 0}
.scroll{border-radius:10px}table{font-size:12px}th{font-size:11px;letter-spacing:0;font-weight:400;background:#f2f6f4;color:#688076;padding:11px 12px;white-space:nowrap}td{padding:13px 12px;border-color:#e9efeb;font-size:12px;color:#3b5551}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.pos-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0 0;font-size:12px;color:#6a7e76}.pos-pager>div{display:flex;align-items:center;gap:12px}.pos-pager button{min-height:34px;font-size:11px}.pos-pager[hidden]{display:none!important}.scroll table small{font-size:10px}#page-history>.panel,#page-logs>.panel{margin-top:15px!important}#stockTable,#historyTable,#activityTable,#logsTable{max-height:61vh;overflow:auto}th{position:sticky;top:0;z-index:1}.filter-bar{gap:10px}.filter-bar input,.filter-bar select{min-height:40px;margin:0;font-size:12px}.category-tabs{margin-bottom:15px;gap:7px}.category-tabs button{min-height:35px;font-size:12px;padding:8px 12px}.cards{gap:14px;margin:18px 0}.card{padding:17px;border-radius:13px}.card b{font-size:26px}.card small{font-size:11px}
#page-settings{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:20px}#page-settings>.heading{grid-column:1/-1;margin:0}.shop-profile{grid-row:span 2;margin:0}#page-settings .pin-settings{margin:0;max-width:none}#page-settings>.panel{max-width:none!important}#page-settings .shop-profile .row{grid-template-columns:1fr}.shop-profile h3{font-size:17px}#page-settings .pin-settings .row{grid-template-columns:1fr 1fr}#page-settings .panel p{font-size:12px;line-height:1.85}
.global-results{display:grid;gap:6px;max-height:55vh;overflow:auto}.global-results button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:11px 13px;box-shadow:none}.global-results strong{font-size:13px;font-weight:400}.global-results small{font-size:10px;color:#829189}#modal .dialoghead h3{font-size:19px}.slip-hero{padding:20px 22px!important;border-radius:17px!important;margin-bottom:18px}.slip-hero h2{font-size:25px!important}.slip-hero p{font-size:12px!important}.slip-hero-mark{width:43px!important;height:43px!important}.slip-upload-zone{padding:14px!important;gap:5px!important}.slip-upload-icon{width:34px!important;height:34px!important}.slip-template-controls label,.slip-section label{font-size:12px!important}.slip-section{padding:19px!important}.slip-section h3{font-size:16px!important}.slip-settings-column{gap:15px}.slip-preview{box-shadow:none!important}.slip-previews{gap:13px}.slip-review-heading h3{font-size:17px!important}.slip-hero-heading{gap:14px!important}.board-layout{grid-template-columns:minmax(0,1fr) 320px}.score-card b{font-size:32px}.stock-post-layout,.webhook-layout{gap:20px}.stock-post-preview{margin-bottom:18px}.post-room-layout{gap:18px}.post-preview{font-size:13px}.post-library{border-radius:15px}
@media(min-width:1180px) and (min-height:700px){html[data-current-page=sale] main{padding-top:19px;padding-bottom:19px}#page-sale{height:calc(100dvh - var(--header-height) - 38px);display:flex;flex-direction:column}#page-sale .trade-switch{position:static;flex-shrink:0}#page-sale .pos-layout{min-height:0;flex:1}#page-sale .catalog{min-height:0}#page-sale .catalog>.panel,#page-sale .checkout{height:100%;max-height:100%;overflow:auto;box-sizing:border-box}#page-sale .catalog>.panel{display:flex;flex-direction:column}#quickStock{min-height:0;flex:1;overflow:auto}#quickStockPager{flex-shrink:0}#save{position:sticky;bottom:0;z-index:2;box-shadow:0 0 0 7px white,0 -8px 15px white}}
@media(max-width:1180px){aside{display:none}.workspace{margin-left:0}#menuToggle{display:block!important}.workspace>.topbar{padding:12px 20px}main{padding:22px 20px}.pos-layout{grid-template-columns:minmax(0,1fr) 355px}.topbar .header-clock{display:none}.topbar #status{max-width:120px}.dashboard-layout{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}#globalSearch{max-width:290px}}
@media(max-width:900px){.topbar #status{display:none}.dashboard-layout{grid-template-columns:1fr}.dashboard-kpi{padding:15px}.dashboard-kpi b{font-size:25px}.pos-layout{grid-template-columns:minmax(0,1fr) 330px;gap:15px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog .panel,.checkout{padding:17px}#page-settings{grid-template-columns:1fr}.shop-profile{grid-row:auto}.shop-profile .row{grid-template-columns:1fr 1fr!important}.slip-container,.board-layout{grid-template-columns:1fr}.slip-settings-column{display:grid;grid-template-columns:1fr 1fr}.topbar #who{display:none}.guide-grid{gap:15px}}
@media(max-width:720px){:root{--header-height:61px}.workspace>.topbar{padding:10px 13px;gap:9px}#globalSearch{flex:0 0 40px;width:40px;min-height:39px;font-size:0;padding:8px;justify-content:center}#globalSearch:before{content:'⌕';font-size:22px}#globalSearch kbd{display:none}.topbar #breadcrumb{min-width:0;font-size:11px;flex:1}.topbar #logout{font-size:10px;min-height:36px;padding:7px 9px}#menuToggle{min-height:38px!important;padding:8px 10px!important;font-size:11px!important}main{padding:18px 13px 24px}.heading{margin-bottom:16px}h2{font-size:23px}.panel{padding:18px;border-radius:14px}.dashboard-metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px}.dashboard-kpi{padding:15px}.dashboard-kpi b{font-size:25px}.dashboard-kpi small{font-size:11px}.dashboard-actions{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}.dashboard-actions button{min-height:60px;padding:12px}.dashboard-layout{gap:15px}.dashboard-panel-head h3{font-size:16px}.dashboard-notice{align-items:start;flex-wrap:wrap}.pos-layout{grid-template-columns:1fr;gap:15px}.catalog-filters{margin-bottom:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile-cover{height:79px}.trade-switch button{min-height:48px;flex-direction:column;gap:3px;font-size:11px}.trade-switch{top:calc(var(--header-height) + 5px)!important}.trade-switch .nav-icon{width:15px;height:15px}.pos-pager{font-size:10px;gap:6px}.pos-pager>div{gap:7px}.pos-pager button{padding:7px 9px;font-size:10px}.pos-pager small{font-size:10px}#stockTable,#historyTable,#activityTable,#logsTable{max-height:none;overflow:visible}.scroll td{padding:9px 10px;font-size:12px}.scroll td:before{font-size:10px;color:#70887d}.scroll tr{border-color:#e0e8e2;background:white;border-radius:11px;margin-bottom:10px}.scroll table small{font-size:10px}.shop-profile .row,#page-settings .pin-settings .row{grid-template-columns:1fr!important}.shop-settings-actions button{flex:1 1 160px}.slip-settings-column{grid-template-columns:1fr}.guide-hero{padding:20px}.guide-hero h2{font-size:22px}.guide-step{gap:12px}.guide-step p{font-size:12px}.guide-step h3{font-size:15px}.guide-grid{gap:13px}.first-setup .row{grid-template-columns:1fr}.first-setup{margin:15px 13px;padding:22px}.first-setup h1{font-size:25px}.filter-bar>label{flex-basis:calc(50% - 10px)}.filter-bar>input,.filter-bar>select{width:100%!important}.dashboard-live{display:none}.dashboard-subtitle{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.command-toast{padding:12px 13px;border-radius:13px;box-shadow:0 8px 25px #20352c1c}.toast-message{font-size:12px;line-height:1.75}.toast-symbol{width:22px;height:22px;flex-basis:22px}.command-toast button{min-height:26px;min-width:26px}
@media(max-width:720px){#notifications{top:auto;bottom:max(15px,env(safe-area-inset-bottom));right:13px;width:calc(100vw - 26px)}}

aside{padding:16px 12px}aside .brand{padding-bottom:15px}aside nav .navlabel{padding:10px 12px 5px;font-size:10px}aside nav button{min-height:35px;padding:8px 12px;margin:1px 0;font-size:12px}aside nav .sidebar-extra{display:block;min-height:35px;margin-top:7px;padding-top:4px}aside nav .sidebar-extra summary{display:list-item;min-height:33px;padding:7px 12px;font-size:11px}.connection-card{padding:9px 10px}.tile-cover{height:64px}.tile-body{padding:6px 12px 11px}.tile-title{margin-bottom:7px}.tile-stock{margin-bottom:7px}.tile-cover .server-logo,.tile-cover .server-logo-fallback{width:43px;height:43px;font-size:15px}.tile-ready,.tile-soldout,.tile-tag{font-size:8px}.checkout{scroll-margin-top:130px}.catalog{scroll-margin-top:130px}#checkoutCatalog{display:none}#openSlipAfterSale{display:none!important}
@media(max-width:720px){#checkoutCatalog{display:block}.checkout-title{flex-wrap:wrap}.checkout-title h3{flex:1}.tile-cover{height:66px}.tile-body{padding-bottom:12px}}
