/* KIKAPU BAR staff workspace refinements */
.kq-keyboard-setting{max-width:740px;padding:clamp(18px,3vw,36px);margin:20px 0;background:#fffefa;border:1px solid #e3dfd4;border-radius:16px;box-shadow:0 12px 30px #1020300c;font-family:'DM Sans',Arial,sans-serif}.kq-keyboard-setting h2{font:clamp(24px,3vw,34px) Marcellus,Georgia,serif;color:#15243b;margin:8px 0}.kq-keyboard-setting span{font-size:11px;letter-spacing:.15em;color:#a58442}.kq-keyboard-setting p{color:#536176;line-height:1.65}.kq-keyboard-toggle{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid #d9dfe9;background:#f8fafc;border-radius:12px;font-size:16px;color:#172438;cursor:pointer}.kq-keyboard-toggle input{width:22px;height:22px;accent-color:#243b59}.kq-keyboard-setting button{min-height:45px;padding:10px 22px;border-radius:10px}
.kq-role-matrix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 18px}.kq-role-matrix>div{padding:12px 14px;border:1px solid #e0e5ec;border-radius:12px;background:#f9fafb;display:flex;flex-direction:column;gap:3px}.kq-role-matrix b{color:#13243c}.kq-role-matrix span{color:#64748b;font-size:12px;line-height:1.45}#kq-permission-restriction{margin:10px 0 0;padding:12px;background:#fff8e7;border-radius:8px;color:#705116}
/* SweetAlert-style fallback only if the SweetAlert2 CDN cannot be reached. */
#kq-alert-fallback{position:fixed;inset:0;z-index:2147483646;background:rgba(9,18,32,.62);backdrop-filter:blur(6px);display:grid;place-items:center;padding:20px}#kq-alert-fallback .kq-alert-box{width:min(425px,100%);background:#fffefa;text-align:center;border-radius:18px;padding:30px 23px;box-shadow:0 24px 90px #0003;font-family:'DM Sans',Arial,sans-serif}#kq-alert-fallback .kq-alert-icon{width:62px;height:62px;display:grid;place-items:center;margin:0 auto 15px;border-radius:50%;border:3px solid #e3b969;font-size:35px;color:#a77e34}#kq-alert-fallback h2{font:26px Marcellus,Georgia,serif;margin:0 0 12px}#kq-alert-fallback p{font-size:14px;line-height:1.55;white-space:pre-line;color:#566277}#kq-alert-fallback button{border:0;background:#13213b;color:#fff;border-radius:10px;padding:12px 34px;margin-top:10px;font-weight:800}
#kq-paid-receipt{display:none;position:fixed;inset:0;z-index:19000;background:rgba(10,19,33,.65);backdrop-filter:blur(7px);align-items:center;justify-content:center;padding:clamp(8px,2vw,22px)}#kq-paid-receipt.is-open{display:flex}#kq-paid-receipt .kq-paid-receipt-panel{width:min(660px,100%);height:min(94dvh,910px);display:flex;flex-direction:column;overflow:hidden;border-radius:18px;background:#f3f5f8;box-shadow:0 25px 90px #07152270}#kq-paid-receipt .kq-paid-receipt-head{padding:20px 22px;background:#101a2c;color:#fff;display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}#kq-paid-receipt .kq-paid-receipt-head small{color:#f2d58a;font-size:10px;letter-spacing:.16em;font-weight:800}#kq-paid-receipt .kq-paid-receipt-head h2{font:clamp(22px,3vw,29px) Marcellus,Georgia,serif;margin:4px 0 6px;color:#fff}#kq-paid-receipt .kq-paid-receipt-head span{display:block;color:#b8c5d6;font-size:12px;line-height:1.4;max-width:300px}#kq-paid-receipt .kq-paid-receipt-actions{display:flex;gap:8px;flex-wrap:wrap}#kq-paid-receipt .kq-paid-receipt-actions button{border:1px solid #d4ad66;border-radius:10px;padding:11px 15px;background:#f3d38a;color:#111e31;font:700 13px 'DM Sans',Arial,sans-serif;min-height:43px;cursor:pointer}#kq-paid-receipt .kq-paid-receipt-actions button:last-child{background:transparent;color:#fff;border-color:#51617b}#kq-paid-receipt .kq-paid-receipt-preview{overflow:auto;flex:1;padding:18px;display:flex;justify-content:center}#kq-paid-receipt iframe{display:block;flex:none;border:1px solid #d6dae3;background:#fff;border-radius:4px;box-shadow:0 9px 26px #0f1a2220;width:min(380px,100%);height:100%;min-height:450px}
#kq-global-keyboard{display:none;position:fixed;inset:0;z-index:2147482000;background:rgba(9,17,30,.61);backdrop-filter:blur(7px);padding:clamp(7px,2vw,16px);align-items:flex-end;justify-content:center}#kq-global-keyboard.is-open{display:flex}#kq-global-keyboard .kq-keyboard-window{background:#121d30;color:#fff;border-radius:20px;width:min(850px,100%);padding:12px;max-height:90dvh;overflow:auto;box-shadow:0 25px 100px #0005}#kq-global-keyboard header{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:8px 8px 16px}#kq-global-keyboard header small{font-size:10px;letter-spacing:.1em;color:#ddbb76;font-weight:700}#kq-global-keyboard header strong{display:block;font:clamp(14px,2vw,18px) 'DM Sans',Arial,sans-serif;margin:4px 0}#kq-global-keyboard header output{display:block;min-height:40px;max-width:650px;background:#fff;color:#13213b;border-radius:9px;padding:10px 12px;font:17px 'DM Sans',Arial,sans-serif;word-wrap:break-word;white-space:pre-wrap}#kq-global-keyboard header button{border:1px solid #475674;border-radius:10px;background:#273950;color:#fff;font-size:26px;width:45px;height:45px;align-self:flex-start}#kq-global-keyboard .kq-gk-row{display:flex;justify-content:center;gap:6px;margin:6px 0}#kq-global-keyboard .kq-gk-row button{flex:1 1 0;min-width:0;max-width:82px;min-height:clamp(42px,6vw,55px);border:1px solid #465570;border-radius:10px;background:#2b394f;color:#fff;font-size:clamp(12px,2vw,18px);font-weight:700;touch-action:manipulation}#kq-global-keyboard .kq-gk-row button:active{background:#3d5071}#kq-global-keyboard .kq-gk-space{flex:2;max-width:260px}#kq-global-keyboard .kq-gk-done{background:#ebc87d;color:#14233a}#kq-global-keyboard .kq-gk-clear,#kq-global-keyboard .kq-gk-backspace{background:#455672}.kq-focused-field{outline:3px solid #cf9e4a!important;outline-offset:3px!important}
#kq-sales-keyboard-spotlight{padding:10px 12px;margin-bottom:11px;background:#fff;border-radius:12px;min-height:66px}#kq-sales-keyboard-spotlight small{display:block;color:#a17a32;font-size:10px;font-weight:800;letter-spacing:.13em}#kq-sales-keyboard-spotlight strong{display:block;color:#17253a;font-size:13px}#kq-sales-keyboard-spotlight output{display:block;color:#121d30;min-height:22px;font-size:17px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.kq-role-matrix{grid-template-columns:1fr}#kq-paid-receipt .kq-paid-receipt-panel{height:97dvh;border-radius:12px}#kq-paid-receipt .kq-paid-receipt-head{padding:12px;gap:12px}#kq-paid-receipt .kq-paid-receipt-actions{width:100%}#kq-paid-receipt .kq-paid-receipt-actions button{flex:1 1 0}#kq-paid-receipt .kq-paid-receipt-preview{padding:9px}#kq-global-keyboard .kq-gk-row{gap:3px}#kq-global-keyboard .kq-gk-row button{padding:0 1px;font-size:12px}#kq-global-keyboard .kq-keyboard-window{padding:8px}#kq-global-keyboard header output{max-width:calc(100vw - 92px)}}

/* Hide the retired AI help launcher on all KIKAPU screens. */
#kq-ai-assistant{display:none!important}
/* Alerts must display above POS sheets, menus and touch keyboard. */
.swal2-container{z-index:2147483500!important}.swal2-popup{border-radius:18px!important;font-family:'DM Sans',Arial,sans-serif!important}.swal2-title{font-family:Marcellus,Georgia,serif!important}

/* v3: top-layer touch keyboard for native modal dialogs (waiter order). */
html body dialog#kq-global-keyboard{inset:auto 0 0!important;top:auto!important;bottom:0!important;margin:0 auto!important;width:min(880px,100vw)!important;max-width:100vw!important;max-height:min(78dvh,600px)!important;height:auto!important;padding:0!important;border:0!important;border-radius:20px 20px 0 0!important;background:#121d30!important;color:#fff!important;overflow:visible!important;box-shadow:0 -20px 80px rgba(2,8,19,.38)!important;z-index:2147482000!important;position:fixed!important;display:none!important}
html body dialog#kq-global-keyboard[open]{display:block!important}
html body dialog#kq-global-keyboard::backdrop{background:rgba(9,17,30,.56);backdrop-filter:blur(5px)}
html body dialog#kq-global-keyboard .kq-keyboard-window{width:100%;max-width:none;max-height:min(78dvh,600px);overflow-y:auto;box-shadow:none;padding:clamp(12px,2vw,22px);border-radius:20px 20px 0 0}
html body dialog#kq-global-keyboard header{align-items:center;gap:16px}
html body dialog#kq-global-keyboard header>div{flex:1;min-width:0}
html body dialog#kq-global-keyboard #kq-kbd-value{display:block!important;width:100%;min-height:47px;max-width:100%;background:white!important;color:#142238!important;border:2px solid #d2aa60!important;border-radius:10px!important;font-size:clamp(16px,2vw,22px)!important;font-family:'DM Sans',Arial,sans-serif!important;padding:9px 14px!important;margin:8px 0 0!important;box-sizing:border-box!important;outline:none!important;box-shadow:none!important}
html body dialog#kq-global-keyboard footer{text-align:center;color:#a9b7ca;font-size:12px;margin-top:10px;letter-spacing:.02em}
@media(max-width:650px){html body dialog#kq-global-keyboard{max-height:63dvh!important}html body dialog#kq-global-keyboard .kq-keyboard-window{max-height:63dvh;padding:9px 9px 12px}html body dialog#kq-global-keyboard header{padding-bottom:7px}html body dialog#kq-global-keyboard .kq-gk-row{gap:4px;margin:4px 0}html body dialog#kq-global-keyboard .kq-gk-row button{min-height:43px;font-size:clamp(12px,3vw,17px);border-radius:8px}}
