[hidden]{display:none!important}
#history-message:empty{display:none}.debtor-identity{display:flex;align-items:center;gap:10px;padding:12px 0;margin:4px 0 18px;border-bottom:1px solid var(--border-color);font-size:12px!important}.debtor-identity strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debtor-identity span{flex-shrink:0;white-space:nowrap;color:var(--text-secondary)}.debtor-purchase{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--border-color)}.debtor-purchase .debt-row{border:0;padding:4px 0 10px}.debtor-purchase small{color:var(--text-secondary);font-size:11px}.debt-item{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:5px 0;line-height:1.5}.debt-item span{min-width:0}.debt-item strong{flex-shrink:0}
.commerce-hint{font-size:12px;line-height:1.5;color:var(--text-secondary);margin:8px 0 14px}
.phone-history-page{text-align:center}.phone-history-page .section-title::after{left:auto;transform:none;margin-left:auto;margin-right:auto}.phone-history-page #history-form>.btn-gold{margin-top:20px}.phone-history-page .ve-phone input{text-align:center}.phone-history-page .history-order ul{list-style-position:inside;padding-left:0}.phone-history-page .history-order header,.phone-history-page .debt-row{justify-content:center;gap:12px;flex-wrap:wrap}
.commerce-card a,.customer-toolbar a{text-decoration:none}.pos-tile[hidden],.pos-tile-count[hidden]{display:none}
.pos-paybar button:disabled{opacity:.45;cursor:default}
.receivables-inline{display:flex;align-items:baseline;gap:6px;white-space:nowrap;margin-bottom:12px;font-size:16px}.receivables-inline strong{color:var(--primary-gold)}
.pos-product{min-width:0;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-surface);overflow:hidden}.pos-product.is-selected{border-color:var(--primary-gold)}.pos-product .pos-tile{display:block;width:100%;border:0;border-radius:0}
.pos-grid-controls{display:flex;align-items:center;justify-content:space-between;gap:3px;padding:4px;border-top:1px solid var(--border-color)}.pos-grid-controls button{width:34px;min-height:36px;padding:0;border:1px solid #d4af3740;border-radius:8px;background:#242014;color:var(--primary-gold);font-size:21px;touch-action:manipulation;cursor:pointer}.pos-grid-controls button:disabled{opacity:.3;cursor:default}.pos-grid-controls span{font-size:12px;font-weight:700;min-width:16px;text-align:center}
#admin-history-more{width:100%;margin-top:12px}.admin-history-status{font-size:12px;color:var(--text-secondary);text-align:center;margin-top:12px}
.commerce-error,.commerce-success{padding:12px;border-radius:12px;font-size:13px;margin-bottom:16px;line-height:1.5;border:1px solid var(--error)}
.commerce-success{border-color:var(--success)}
.ve-phone{display:flex;align-items:center;gap:7px;min-width:0}.ve-phone>span{font-size:14px;color:var(--primary-gold);flex-shrink:0}.ve-phone select{width:88px;flex-shrink:0;padding-left:10px}.ve-phone input{min-width:0;flex:1;font-size:16px}
.delivery-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;border:1px solid var(--border-color);border-radius:15px;background:var(--bg-surface);margin-bottom:18px}
.delivery-switch label{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;font-size:13px;border-radius:10px;cursor:pointer}
.delivery-switch input{position:absolute;opacity:0;width:1px;height:1px}.delivery-switch label:has(input:checked){background:var(--primary-gold-light);color:var(--primary-gold);box-shadow:inset 0 0 0 1px #d4af3770}.delivery-switch label:focus-within{outline:2px solid var(--primary-gold)}
.pos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:100px}
.pos-tile{position:relative;min-width:0;border:1px solid var(--border-color);border-radius:12px;overflow:hidden;background:var(--bg-surface);color:var(--text-primary);text-align:center;padding:0;cursor:pointer;-webkit-appearance:none;appearance:none;transition:transform .18s,border-color .18s}
.pos-tile:active{transform:scale(.96)}.pos-tile.is-selected{border-color:var(--primary-gold)}.pos-tile img,.pos-tile .pos-placeholder{display:block;width:100%;aspect-ratio:1.14;object-fit:cover;background:#202020}.pos-placeholder{display:grid!important;place-items:center;color:var(--primary-gold);font-size:30px}
.pos-tile-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:30px;font-size:11px;line-height:13px;padding:4px 5px 0}.pos-tile-price{display:block;color:var(--primary-gold);font-size:11px;padding:4px 2px 7px}.pos-tile-count{position:absolute;right:5px;top:5px;border-radius:15px;background:var(--primary-gold);color:#151515;font-size:12px;font-weight:700;min-width:24px;padding:4px}
.pos-paybar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom,0px));width:min(100%,480px);padding:12px 16px;background:#1b1912;border-top:1px solid #d4af3755;z-index:150;display:flex;align-items:center;gap:12px}.pos-paybar>div{flex:1;font-size:12px}.pos-paybar strong{display:block;font-size:20px;color:var(--primary-gold);margin-top:3px}.pos-paybar .btn-gold{width:auto;min-height:44px}
.mobile-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,480px);max-width:480px;max-height:88vh;max-height:88dvh;overflow:auto;background:#151515;color:var(--text-primary);border:1px solid #d4af3755;border-radius:24px 24px 0 0;padding:20px 18px calc(24px + env(safe-area-inset-bottom,0px));box-sizing:border-box;overscroll-behavior:contain}.mobile-sheet::backdrop{background:#000b}.mobile-sheet[open]{animation:sheet-rise .25s ease-out}.sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.sheet-heading h2{font-family:var(--font-title);font-size:25px}.sheet-close{background:transparent;color:var(--text-primary);border:1px solid var(--border-color);border-radius:50%;width:40px;height:40px;font-size:25px;flex-shrink:0}.sheet-total{display:flex;justify-content:space-between;padding:15px 0;color:var(--primary-gold);font-weight:700;border-top:1px solid var(--border-color)}
.pos-line{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--border-color);font-size:12px}.pos-line>span{flex:1}.pos-line button{width:32px;height:32px;border:1px solid var(--border-color);border-radius:9px;background:#222;color:var(--text-primary);font-size:18px}.pos-line strong{min-width:20px;text-align:center}
.customer-suggestions{display:grid;gap:5px;margin-bottom:12px}.customer-suggestions button{background:#222;border:1px solid var(--border-color);border-radius:10px;color:var(--text-primary);padding:10px;text-align:left;font-size:13px}.customer-suggestions small{display:block;color:var(--primary-gold);margin-top:4px}
.debt-amount{font-size:27px;color:var(--primary-gold);font-weight:700;margin:8px 0}.debt-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;font-size:13px;border-bottom:1px solid var(--border-color)}.debt-row small{display:block;color:var(--text-secondary);margin-top:4px}.debt-actions{display:flex;gap:8px;margin-top:14px}.debt-actions>*{flex:1}.commerce-card{background:var(--bg-surface);border:1px solid var(--border-color);border-radius:16px;padding:16px;margin-bottom:14px}.commerce-card h3{font-size:16px;margin-bottom:8px}.commerce-card p{font-size:13px;line-height:1.5}.commerce-card .btn-outline,.commerce-card .btn-gold{font-size:12px;min-height:44px}
.history-order{margin:12px 0}.history-order header{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:13px}.history-order time{font-size:11px;color:var(--text-secondary)}.history-order ul{padding-left:18px;font-size:12px;line-height:1.7;margin-bottom:10px}.history-pending{color:var(--primary-gold);font-weight:600}.customer-toolbar{display:flex;gap:8px;margin-bottom:16px}.customer-toolbar a{flex:1;text-align:center}.admin-nav-five .nav-item{font-size:9px;min-width:0}.admin-nav-five .nav-item i{font-size:18px}
@keyframes sheet-rise{from{transform:translateY(35px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.mobile-sheet[open]{animation:none}}

.delivery-switch label.is-active{background:var(--primary-gold-light);color:var(--primary-gold);box-shadow:inset 0 0 0 1px #d4af3770}
