.pos-keypad{width:min(370px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;margin:auto 20px auto auto;padding:20px;border:1px solid #666ca2;border-radius:22px;background:#151e35;color:#f4f5ff;box-shadow:0 20px 80px #0008}.pos-keypad::backdrop{background:#050b1b66}.keypad-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.keypad-heading h2{font-size:19px;margin:0;overflow-wrap:anywhere;color:inherit}.keypad-heading button{min-width:44px}.keypad-hint{font-size:12px;color:#bdc8e6;line-height:1.6}.keypad-value{display:block;text-align:right;font-size:clamp(24px,6vw,34px);font-variant-numeric:tabular-nums;padding:12px;background:#0b1326;border-radius:10px;overflow-wrap:anywhere}.keypad-error{min-height:20px;color:#ffb7bd;font-size:13px;margin:8px 0}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pos-keypad button{min-height:52px;border:1px solid #58668a;border-radius:12px;background:#263451;color:#fff;font-size:20px;cursor:pointer;touch-action:manipulation}.keypad-grid [data-key=clear]{font-size:15px}.keypad-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:8px;margin-top:10px}.keypad-actions button,.pos-keypad .keypad-cancel{font-size:15px}.keypad-actions [data-key=apply]{background:#6858db}.pos-keypad .keypad-cancel{width:100%;margin-top:8px;background:transparent}.pos-keypad button:focus-visible{outline:3px solid #a9cdff;outline-offset:2px}.pos-light .pos-keypad{background:#f7f9ff;color:#17254b;border-color:#a7b7df}.pos-light .keypad-hint{color:#506084}.pos-light .keypad-value{background:#e6ecfa}.pos-light .pos-keypad button{background:#fff;color:#17254b;border-color:#adbad7}.pos-light .keypad-actions [data-key=apply]{background:#6052cf;color:#fff}.pos-light .keypad-error{color:#ae1735}@media(max-width:600px){.pos-keypad{margin:auto;padding:16px}}@media(max-height:600px){.pos-keypad{padding:10px}.pos-keypad button{min-height:42px}.keypad-hint{margin:5px 0}.keypad-value{padding:5px}.keypad-error{margin:3px 0}.keypad-grid{gap:5px}}@media print{.pos-keypad{display:none!important}}
/* Keep number keys neutral, separate from the primary apply action. */
body.pos-theme .pos-keypad button{background:#263451!important;color:#fff!important;border:1px solid #58668a!important;box-shadow:none!important}
body.pos-theme.pos-light .pos-keypad button{background:#fff!important;color:#17254b!important;border-color:#adbad7!important}
body.pos-theme .pos-keypad button[data-key=apply]{background:#6052cf!important;color:#fff!important}
body.pos-theme .pos-keypad [data-key=cancel]{background:transparent!important;color:inherit!important}
.pos-keypad .keypad-direct{box-sizing:border-box;width:100%;min-height:44px;margin-top:8px;padding:10px 12px;border:1px solid #8c9ac2;border-radius:10px;background:#0b1326;color:#fff;font-size:16px;text-align:right}
.pos-keypad .keypad-direct::placeholder{color:#b9c7e4;font-size:13px}
.pos-light .pos-keypad .keypad-direct{background:#fff;color:#17254b}
.pos-light .pos-keypad .keypad-direct::placeholder{color:#506084}
 .keypad-bill-context{padding:12px;border:1px solid #a595ed88;border-radius:10px;background:linear-gradient(110deg,#4976cf33,#a15ce433);font-weight:700;font-size:18px}
