:root{--accent: #4f7cff;--accent-light: #78a1ff;--accent-dim: rgba(79, 124, 255, .12);--accent-glow: rgba(79, 124, 255, .35);--bg: #0b0d12;--bg-elevated: #12151c;--panel: #181c26;--panel-hover: #202633;--tile: #232836;--tile-hover: #2c3140;--text: #f0f2f5;--text-secondary: #a8b0c0;--muted: #6b7488;--border: #252b3a;--border-light: #2f3548;--green: #2ecc71;--green-dim: rgba(46, 204, 113, .12);--red: #ff5c5c;--red-dim: rgba(255, 92, 92, .12);--yellow: #ffb020;--yellow-dim: rgba(255, 176, 32, .12);--radius: 14px;--radius-sm: 10px;--radius-lg: 18px;--shadow: 0 4px 24px rgba(0, 0, 0, .45);--shadow-lg: 0 10px 40px rgba(0, 0, 0, .55);--transition: .18s cubic-bezier(.4, 0, .2, 1);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,sans-serif;-webkit-tap-highlight-color:transparent}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-user-select:none;user-select:none}button{font:inherit;cursor:pointer}a{color:var(--accent-light);text-decoration:none}a:hover{color:var(--accent)}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 20px;border:1px solid var(--border-light);border-radius:var(--radius-sm);background:var(--tile);color:var(--text);font-size:15px;font-weight:600;cursor:pointer;transition:all var(--transition);white-space:nowrap;min-height:48px}button:hover,.btn:hover{background:var(--tile-hover);border-color:var(--muted);transform:translateY(-1px)}button:active,.btn:active{transform:translateY(0)}button:disabled,.btn:disabled{opacity:.5;cursor:not-allowed}button.primary,.btn-primary{background:var(--accent);border:none;color:#fff;box-shadow:0 4px 18px var(--accent-glow)}button.primary:hover,.btn-primary:hover{background:var(--accent-light);box-shadow:0 6px 24px var(--accent-glow)}button.danger,.btn-danger{background:var(--red-dim);border-color:#ff5c5c4d;color:var(--red)}button.ghost,.btn-ghost{background:transparent;border-color:transparent;color:var(--text-secondary)}button.ghost:hover,.btn-ghost:hover{background:var(--panel-hover)}button.icon,.btn-icon{width:44px;height:44px;padding:0;border-radius:var(--radius-sm)}input,select,textarea{width:100%;padding:14px 16px;border:1px solid var(--border-light);border-radius:var(--radius-sm);background:var(--bg-elevated);color:var(--text);font-family:inherit;font-size:15px;transition:all var(--transition);outline:none;min-height:48px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}input::placeholder,select::placeholder{color:var(--muted)}input:disabled,select:disabled{opacity:.5;cursor:not-allowed;background:var(--panel)}label{display:block;font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:44px;min-width:44px;height:24px;min-height:24px;padding:0;border-radius:12px;background:var(--border-light);border:1px solid var(--border-light);position:relative;cursor:pointer;transition:background .2s,border-color .2s}input[type=checkbox]:before{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px #00000040}input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}input[type=checkbox]:checked:before{transform:translate(20px)}input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;cursor:pointer;text-transform:none;color:var(--text);font-size:14px}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.card-elevated{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px;box-shadow:var(--shadow-lg)}.page{min-height:100%;padding:20px}.page-center{min-height:100%;display:flex;align-items:center;justify-content:center;padding:20px}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.page-header h1,.page-header h2{margin:0;font-size:22px;font-weight:700}.list-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}.list-row:last-child{border-bottom:none}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 8px;border-radius:11px;font-size:12px;font-weight:700;background:var(--accent);color:#fff}.badge-red{background:var(--red)}.badge-green{background:var(--green)}.table-grid{display:grid;gap:8px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-light);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--muted)}.pos-root{display:flex;flex-direction:column;height:100%;overflow:hidden}.pos-topbar{height:7vmin;min-height:48px;background:linear-gradient(90deg,#ff6b00,#ffb347);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 2vmin;box-shadow:0 2px 12px #00000040;flex-shrink:0}.pos-topbar-left,.pos-topbar-right{display:flex;align-items:center;gap:2vmin}.pos-hamburger{background:#00000026;border:none;border-radius:var(--radius-sm);color:#fff;width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;min-height:auto}.pos-hamburger:hover{background:#00000040}.pos-app-icon{height:5vmin;min-height:32px;border-radius:var(--radius-sm)}.pos-app-name{font-size:clamp(16px,3vmin,28px);font-weight:800;letter-spacing:-.5px;text-shadow:0 1px 2px rgba(0,0,0,.2)}.pos-employee-name{font-size:clamp(13px,2vmin,18px);font-weight:600;max-width:30vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-body{display:flex;flex:1;overflow:hidden}.pos-main{flex:1;overflow:auto;display:flex;flex-direction:column}.pos-control{display:flex;gap:8px;padding:8px;flex-shrink:0;background:var(--bg-elevated);border-top:1px solid var(--border)}.pos-control-btn{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:none;border-radius:var(--radius);color:#fff;font-size:clamp(11px,1.4vmin,14px);font-weight:600;line-height:1.1;padding:6px 4px;min-height:auto;transition:transform .1s,filter .15s}.pos-control-btn:hover{filter:brightness(1.08)}.pos-control-btn:active{transform:scale(.97)}.pos-control-label{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center;max-width:100%}.pos-control-badge{position:absolute;top:4px;right:4px;min-width:40px;height:40px;padding:0 8px;border-radius:20px;background:#fff;color:#000;font-size:18px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px #00000040}.pos-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000a6;z-index:1000;display:flex}.pos-drawer{width:min(320px,80vw);height:100%;background:var(--panel);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;animation:slideIn .18s ease-out}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}.pos-drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--border)}.pos-drawer-title{font-size:20px;font-weight:700}.pos-icon-btn{background:transparent;border:none;color:var(--text-secondary);width:40px;height:40px;padding:0;min-height:auto}.pos-icon-btn:hover{color:var(--text);background:var(--panel-hover)}.pos-drawer-nav{padding:12px;display:flex;flex-direction:column;gap:8px}.pos-drawer-version{margin-top:auto;padding:12px 16px 16px;font-size:12px;color:var(--muted);text-align:center}.pos-drawer-item{display:flex;align-items:center;gap:14px;width:100%;padding:14px;border-radius:var(--radius-sm);background:transparent;border:1px solid transparent;color:var(--text);font-size:16px;font-weight:600;justify-content:flex-start;min-height:auto}.pos-drawer-item.active,.pos-drawer-item:hover{background:var(--accent-dim);border-color:var(--accent);color:var(--accent-light)}.pos-dashboard{display:flex;flex-direction:row;flex:1;min-height:0;width:100%}.pos-account{width:50%;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border);background:var(--panel)}.pos-products{position:relative;flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.pos-account-notebar{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--bg-elevated);border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:clamp(13px,1.8vmin,16px);font-weight:500;border:none;border-radius:0;justify-content:flex-start;min-height:auto}.pos-account-note-btn{flex:1;display:flex;align-items:center;gap:8px;min-width:0;padding:0;background:transparent;border:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.pos-account-note-btn:hover{color:var(--text)}.pos-account-note-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-account-menu-wrapper{position:relative}.pos-account-menu-trigger{width:28px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;background:transparent;border:none;border-radius:50%;color:inherit;cursor:pointer}.pos-account-menu-trigger:hover{background:#00000014;color:var(--text)}.pos-account-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:190px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:0 8px 24px #0003;display:flex;flex-direction:column;z-index:100}.pos-account-menu button{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:12px 14px;background:transparent;border:none;border-bottom:1px solid var(--border-light);color:var(--text);font-size:14px;font-weight:500;text-align:left;cursor:pointer;border-radius:0;min-height:auto}.pos-account-menu button:last-child{border-bottom:none}.pos-account-menu button:hover{background:var(--panel-hover)}.pos-account-menu button.danger{color:var(--red)}.pos-account-items{flex:1;overflow:auto;padding:12px 16px}.pos-account-empty{height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:16px}.pos-account-row{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid var(--border);gap:12px}.pos-account-info{flex:1;min-width:0}.pos-account-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-account-price{color:var(--muted);font-size:13px}.pos-account-qty{display:flex;align-items:center;gap:8px}.pos-account-qty span{min-width:28px;text-align:center;font-weight:700}.pos-account-footer{padding:16px;border-top:1px solid var(--border);background:var(--bg-elevated)}.pos-account-total{display:flex;justify-content:space-between;font-size:20px;margin-bottom:12px}.pos-account-park,.pos-account-pay{width:100%;margin-bottom:10px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:700;border:none;border-radius:var(--radius);padding:16px}.pos-account-park{background:var(--tile);color:var(--text)}.pos-account-park:hover{background:var(--tile-hover)}.pos-account-park:disabled{opacity:.5;cursor:not-allowed}.pos-account-pay{background:var(--accent);color:#fff;box-shadow:0 4px 18px var(--accent-glow)}.pos-account-pay:hover{background:var(--accent-light)}.pos-account-pay:disabled{opacity:.5;cursor:not-allowed}.pos-product-tabs{display:flex;gap:8px;padding:12px 16px;overflow-x:auto;background:var(--bg-elevated);border-bottom:1px solid var(--border)}.pos-product-tabs button{min-height:40px;padding:10px 16px}.pos-product-grid{flex:1;overflow:auto;display:grid;--tile-width: clamp(76px, 10.8vw, 116px);grid-template-columns:repeat(auto-fill,minmax(var(--tile-width),1fr));grid-auto-rows:calc(var(--tile-width) * var(--tile-height-factor, 1));grid-row-gap:10px;grid-column-gap:10px;row-gap:clamp(8px,1vw,12px);column-gap:clamp(8px,1vw,12px);padding:12px;align-content:start;align-items:start}.pos-product-tile,.pos-product-tab,.pos-order-product{color:#fff;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000}.pos-product-tile{display:flex;flex-direction:column;justify-content:space-between;height:100%;align-self:stretch;min-width:0;min-height:0;padding:6px;border:1px solid transparent;border-radius:var(--radius-sm);text-align:left;transition:transform .1s;background-size:cover;background-position:center;overflow:hidden}.pos-product-tile:hover{transform:scale(.98)}.pos-product-name{font-size:clamp(12px,1.4vw,15px);font-weight:700;line-height:1.2;white-space:normal;word-wrap:break-word;overflow-wrap:break-word;max-height:70%;overflow:hidden}.pos-product-price{display:flex;flex-direction:column;align-items:center;font-size:clamp(10px,1.1vw,13px);opacity:.95;margin-top:4px;line-height:1.25}.pos-product-enter-price{font-size:clamp(9px,1vw,11px);opacity:.8}.pos-product-searchbar{height:9vmin;min-height:56px;display:flex;align-items:center;justify-content:center;gap:12px;background:var(--bg-elevated);border-top:1px solid var(--border);color:var(--text-secondary);font-size:16px;font-weight:600;border-radius:0;border:none}.pos-product-searchbar:hover{background:var(--panel-hover);color:var(--text)}.pos-product-actions{display:flex;gap:10px;height:9vmin;min-height:56px;padding:0 12px;align-items:center;justify-content:center;background:var(--bg-elevated);border-top:1px solid var(--border)}.pos-product-actions button{flex:1;height:calc(100% - 14px);min-height:40px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:17px;font-weight:700;border:none;border-radius:var(--radius)}.pos-product-park{background:var(--tile);color:var(--text)}.pos-product-park:hover{background:var(--tile-hover)}.pos-product-park:disabled{opacity:.5;cursor:not-allowed}.pos-product-pay{background:var(--accent);color:#fff;box-shadow:0 4px 18px var(--accent-glow)}.pos-product-pay:hover{background:var(--accent-light)}.pos-product-pay:disabled{opacity:.5;cursor:not-allowed}.pos-search-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--bg);display:flex;flex-direction:column;z-index:50}.pos-search-header{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--bg-elevated);border-bottom:1px solid var(--border)}.pos-search-header input{flex:1;background:var(--bg)}.pos-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.pos-modal{width:100%;max-width:420px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow-lg)}.pos-modal h3{margin-top:0;margin-bottom:16px}.pos-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.pos-variant-list{display:flex;flex-direction:column;gap:10px}@media (orientation: portrait){.pos-body{flex-direction:column}.pos-control{order:2;height:15vh;min-height:90px}.pos-main{order:1;flex-direction:column}}@media (orientation: landscape){.pos-body{flex-direction:row}.pos-control{order:0;width:15vw;min-width:110px;flex-direction:column;height:auto;border-top:none;border-right:1px solid var(--border)}.pos-main{order:1}.pos-control-btn{width:100%}.pos-account{width:35%}}.spin{animation:spin 1.5s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.open-accounts-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.open-accounts-empty{grid-column:1 / -1;text-align:center;color:var(--muted);margin-top:40px}.open-account-card{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;position:relative;min-width:300px;padding:14px;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);text-align:left;overflow:hidden}.open-account-card:hover{background:var(--panel-hover)}.open-account-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;width:100%;min-width:0;margin-bottom:4px}.open-account-title{flex:1;min-width:0;font-size:16px;font-weight:700;line-height:1.25;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.open-account-total{flex-shrink:0;min-width:0;font-size:18px;font-weight:800;text-align:right;color:var(--accent-light)}.open-account-body{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--muted);font-size:13px}.open-account-meta,.open-account-last-change{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.open-account-table-badge{position:absolute;bottom:36px;right:14px;display:flex;align-items:center;gap:4px;padding:4px 8px;background:var(--accent);color:var(--bg);border-radius:var(--radius-sm);font-size:13px;font-weight:700}.stock-overview{display:flex;flex-direction:column;height:100%;width:100%;padding:20px;box-sizing:border-box}.stock-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.stock-header h2{margin:0}.stock-filter{display:flex;align-items:center;gap:10px;margin-bottom:16px}.stock-filter label{color:var(--text-secondary);font-weight:600}.stock-filter select{flex:1;max-width:320px;padding:10px 14px;background:var(--bg);color:var(--text);border:1px solid var(--border-light);border-radius:var(--radius-sm);font-size:15px}.stock-scroll{flex:1;overflow:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-elevated)}.stock-table{width:100%;border-collapse:collapse;font-size:15px}.stock-table thead{position:sticky;top:0;background:var(--panel);z-index:1}.stock-table th,.stock-table td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--border)}.stock-table th{font-weight:700;color:var(--text-secondary);text-transform:uppercase;font-size:13px;letter-spacing:.4px}.stock-table td{color:var(--text)}.stock-table .col-product{width:100%;min-width:120px}.stock-table .col-qty{width:1%;min-width:100px;white-space:nowrap;text-align:right}.stock-code{color:var(--muted);font-size:12px;margin-top:2px}.stock-empty{height:100%;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:16px;text-align:center;padding:20px}.park-table-btn{padding:6px;min-height:0}
