/* KhoViet POS 1.7.26.5.12 QA – print selection and offline controls on POS toolbar. */
body.pos-fullscreen .pos-v173 .pos-toolbar{gap:8px!important;overflow:visible!important}
body.pos-fullscreen .pos-v173 .kvpos-quick-print{
 display:flex;align-items:center;gap:6px;color:#fff;font-size:12px;font-weight:700;
 flex-shrink:0;white-space:nowrap;margin:0;
}
body.pos-fullscreen .pos-v173 .kvpos-quick-print select{
 appearance:auto;background:#fff;color:#18416b;border:1px solid #cfe4ff;
 border-radius:8px;height:35px;min-height:35px;padding:3px 6px;
 font-family:inherit;font-size:12px;font-weight:600;max-width:125px;cursor:pointer;
}
body.pos-fullscreen .pos-v173 .kvpos-quick-print select:focus-visible,
body.pos-fullscreen .pos-v173 .kv-offline-toolbar button:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* Move both offline controls out of the checkout pane: no extra vertical scroll. */
body.pos-fullscreen .pos-v173 .kv-offline-queue.kv-offline-toolbar{
 position:relative;display:flex;flex:0 0 auto;align-items:center;flex-wrap:nowrap;
 gap:5px;margin:0;padding:0;border:0;border-radius:0;background:transparent;
}
body.pos-fullscreen .pos-v173 .kv-offline-toolbar button{
 display:inline-flex!important;align-items:center;justify-content:center;gap:3px;
 min-height:35px;height:35px;padding:5px 9px!important;border:1px solid #cae3fd!important;
 background:#fff!important;color:#096ac8!important;border-radius:8px!important;
 font-size:12px!important;font-weight:650;line-height:1!important;white-space:nowrap;
 box-shadow:none!important;cursor:pointer;
}
/* Override old POS polish rules that mistakenly hide any toolbar button named "save". */
body.pos-fullscreen .pos-v173 .pos-toolbar .kv-offline-toolbar #kv-offline-save{display:inline-flex!important}
body.pos-fullscreen .pos-v173 .kv-offline-toolbar button:hover{background:#e9f5ff!important}
body.pos-fullscreen .pos-v173 .kv-offline-toolbar button:disabled{opacity:.55;cursor:wait}
body.pos-fullscreen .pos-v173 .kv-offline-toolbar #kv-offline-status{
 position:absolute;top:calc(100% + 8px);right:0;width:max-content;
 max-width:min(380px,90vw);padding:9px 12px;margin:0;
 background:#fff;color:#314e68;border-radius:8px;
 border:1px solid #d8e7f4;box-shadow:0 10px 28px #172b4860;
 font-size:12px;line-height:1.4;z-index:180;
 opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s;
}
body.pos-fullscreen .pos-v173 .kv-offline-toolbar:hover #kv-offline-status,
body.pos-fullscreen .pos-v173 .kv-offline-toolbar:focus-within #kv-offline-status{
 opacity:1;visibility:visible;
}
/* Keep toolbar layout available for smaller laptops without shrinking buttons to zero. */
@media (max-width:1420px){
 body.pos-fullscreen .pos-v173 .pos-search-wrap{width:min(34vw,380px)!important;min-width:170px}
 body.pos-fullscreen .pos-v173 .kvpos-quick-print>span{display:none}
 body.pos-fullscreen .pos-v173 .kvpos-quick-print select{max-width:116px}
}
@media (min-width:811px) and (max-width:1120px){
 body.pos-fullscreen .pos-v173 .pos-search-wrap{width:27vw!important;min-width:145px}
 body.pos-fullscreen .pos-v173 .kv-offline-toolbar button{padding:5px 6px!important;font-size:11px!important}
 body.pos-fullscreen .pos-v173 .kv-offline-toolbar #kv-offline-save span{display:none}
}
@media (max-width:810px){
 body.pos-fullscreen .pos-v173 .pos-toolbar{
   height:auto!important;min-height:62px!important;flex-wrap:wrap!important;
   padding:7px 10px!important;gap:7px!important;
 }
 body.pos-fullscreen .pos-v173 .pos-search-wrap{flex:1 1 100%!important;width:100%!important;min-width:0}
 body.pos-fullscreen .pos-v173 .kvpos-quick-print select{height:32px;min-height:32px}
 body.pos-fullscreen .pos-v173 .kv-offline-toolbar button{height:32px;min-height:32px;font-size:11px!important;padding:4px 6px!important}
 body.pos-fullscreen .pos-v173 .pos-sales-grid{height:auto!important;overflow:visible!important}
 body.pos-fullscreen .pos-v173 .pos-checkout.pos-v173-checkout{height:auto!important;max-height:none!important}
}
@media(max-width:480px){
 body.pos-fullscreen .pos-v173 .kv-offline-toolbar{order:6;flex:1 1 auto;justify-content:flex-end}
 body.pos-fullscreen .pos-v173 .kv-offline-toolbar #kv-offline-save span{display:none}
}
