/* Touch-friendly pharmacy checkout, scoped to the sales screen. */
.ph-pos-screen{outline:none}
.ph-pos-heading h1{font-size:27px!important}
.ph-pos-screen kbd{font:600 10px "Segoe UI",sans-serif;background:#fff8;color:inherit;border:1px solid #bfd4dc80;border-radius:5px;padding:3px 5px;white-space:nowrap}
.ph-pos-screen .ph-held-toggle{background:#e7f5f4;border:1px solid #bddfda;color:#146a68;display:flex;gap:8px;align-items:center}
.ph-held-toggle>span{display:grid;place-items:center;min-width:24px;height:24px;background:#fff;border-radius:7px;font-weight:800}
.ph-pos-workspace{display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,1.08fr) minmax(235px,.78fr);gap:16px;align-items:start}
.ph-pos-screen .panel{padding:19px;margin-bottom:0;border-radius:15px}
.ph-pos-screen .ph-panel-heading{gap:8px;margin-bottom:17px}
.ph-pos-screen .ph-panel-heading h2{font-size:17px}
.ph-pos-screen .ph-panel-kicker{font-size:10px;letter-spacing:1px}
.ph-pos-branch-label{font-size:12px;color:#607b89;font-weight:650}
.ph-pos-branch-select{margin:6px 0 13px;font-size:13px;min-height:42px}
.ph-pos-search-large{background:#f8fbfc;border-color:#d7e6eb;padding:4px;min-height:46px}
.ph-pos-search-large>.ph-icon{margin-inline-start:7px}
.ph-pos-search-large input{font-size:12px;padding:7px 2px}
.ph-pos-search-large .btn{font-size:12px;padding:9px 12px;min-height:36px}
.ph-pos-screen .ph-pos-search-tip{font-size:10px;line-height:1.7;margin:10px 0 15px}
.ph-pos-product-list{display:grid;gap:10px;max-height:650px;overflow:auto;scrollbar-width:thin}
.ph-pos-product{display:flex;gap:9px;align-items:flex-start;border:1px solid #e7edf1;border-radius:12px;padding:13px 10px;transition:border-color .15s,box-shadow .15s;background:#fff}
.ph-pos-product:hover{border-color:#9cd9d0;box-shadow:0 3px 12px #123a5508}
.ph-pos-product .ph-med-avatar{width:33px;height:33px;border-radius:10px}
.ph-pos-product .ph-med-avatar .ph-icon{width:18px;height:18px}
.ph-pos-product-info{min-width:0;flex:1}
.ph-pos-product-info>strong{display:block;font-size:13px;line-height:1.65;color:#21465c;overflow-wrap:anywhere}
.ph-pos-product-info>small{display:block;font-size:10px;color:#7d94a2;margin:3px 0}
.ph-pos-product-code{font-size:9px;color:#8b9faa;display:block;margin-bottom:7px;overflow-wrap:anywhere}
.ph-pos-product-action{display:flex;align-items:end;flex-direction:column;gap:14px;flex:none}
.ph-pos-product-action>strong{font-size:16px;color:#00877d;white-space:nowrap}
.ph-pos-product-action small{font-size:9px;font-weight:500}
.ph-pos-product-action .btn{display:flex;align-items:center;gap:3px;font-size:11px;padding:6px 9px;min-height:33px}
.ph-pos-unit-count{font-size:10px;color:#6d8d9a;background:#f0f6f8;padding:7px 9px;border-radius:7px;white-space:nowrap}
.ph-pos-basket-labels{display:flex;justify-content:space-between;color:#8aa0ad;font-size:10px;padding:0 5px 10px;border-bottom:1px solid #e7edf1}
.ph-pos-basket-items{min-height:235px;max-height:460px;overflow:auto;margin:11px -4px 18px;padding:0 4px;scrollbar-width:thin}
.ph-pos-basket-items .ph-cart-empty{margin-top:2px;min-height:230px;padding:30px 15px}
.ph-pos-basket-line{padding:12px 10px;margin-bottom:9px;border:1px solid #e4ecf0;border-radius:11px;background:#fff}
.ph-pos-basket-line.is-selected{border-color:#56bdb1;background:#f4fcf9;box-shadow:inset -3px 0 #00aa96}
[dir="ltr"] .ph-pos-basket-line.is-selected{box-shadow:inset 3px 0 #00aa96}
.ph-pos-line-select{flex:1;min-width:0;display:flex;gap:9px;align-items:center;text-align:start;border:0;padding:0;background:transparent;color:inherit}
.ph-pos-line-select>span:last-child{min-width:0}
.ph-pos-line-select strong{font-size:13px;line-height:1.6;display:block;overflow-wrap:anywhere}
.ph-pos-line-select small{display:block;font-size:10px;color:#8aa0ab;margin-top:3px}
.ph-pos-line-index{width:25px;height:25px;display:grid;place-items:center;flex:none;border-radius:7px;background:#eaf3f6;color:#71919e;font-size:11px}
.is-selected .ph-pos-line-index{background:#d7f3e9;color:#007d66}
.ph-pos-screen .ph-cart-line-tools{padding-inline-start:0;gap:7px;margin-top:12px}
.ph-pos-screen .ph-cart-line-tools .form-select{max-width:84px;min-width:73px;margin:0;height:35px}
.ph-pos-screen .ph-quantity-stepper{height:35px}
.ph-pos-screen .ph-quantity-stepper button{height:35px;width:28px;font-size:17px}
.ph-pos-screen .ph-quantity-stepper input{width:43px;font-size:14px;background:transparent}
.ph-pos-screen .ph-cart-line-sum{font-size:15px;color:#166657}
.ph-pos-customer-fields{display:grid;gap:12px;padding-top:14px;border-top:1px solid #e6edf1}
.ph-pos-customer-fields label,.ph-pos-hold-box>label{display:block;color:#6e8997;font-size:11px;font-weight:650}
.ph-pos-customer-fields .form-control,.ph-pos-customer-fields .form-select{font-size:12px;min-height:40px;margin-top:6px}
.ph-pos-hold-box{padding-top:16px;margin-top:17px;border-top:1px dashed #d8e6e8}
.ph-pos-hold-box>div{display:flex;gap:7px;margin-top:7px;align-items:center}
.ph-pos-hold-box .form-control{min-width:0;margin:0;min-height:40px;font-size:11px}
.ph-pos-hold-box .btn{flex:none;display:flex;align-items:center;gap:5px;min-height:40px;font-size:12px;padding:7px 10px}
.ph-pos-terminal{display:grid;gap:14px;min-width:0}
.ph-pos-screen .ph-pos-payment-panel{background:linear-gradient(165deg,#fff 0%,#f6fbf9 100%)}
.ph-pos-grand-total{display:flex;flex-direction:column;align-items:center;gap:7px;padding:17px 0 20px;margin-bottom:16px;border-bottom:1px dashed #d6e6df}
.ph-pos-grand-total>span{font-size:11px;color:#78938c;text-align:center}
.ph-pos-grand-total>strong{font-size:39px;line-height:1.25;color:#06775e;font-weight:800;letter-spacing:-1px;font-variant-numeric:tabular-nums}
.ph-pos-grand-total>small{font-size:10px;color:#7e9c91}
.ph-pos-payment-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px}
.ph-pos-payment-methods button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:65px;border-radius:10px;border:1px solid #dde8e7;background:#fff;color:#819a9c;font-size:11px;padding:8px 2px}
.ph-pos-payment-methods button.is-active{color:#008371;border-color:#2aae96;background:#e9f9f0;box-shadow:0 0 0 1px #2aae9620}
.ph-pos-cash-entry>label{font-size:11px;color:#71958a;display:block;margin-bottom:7px}
.ph-pos-cash-entry>div{display:flex;align-items:center;gap:7px}
.ph-pos-cash-entry input{margin:0;min-width:0;min-height:42px;direction:ltr;font-size:18px;text-align:start;font-variant-numeric:tabular-nums}
.ph-pos-cash-entry button{background:#eff7f3;border:1px solid #d9e9df;border-radius:8px;color:#548d78;font-size:10px;padding:7px;min-height:42px;white-space:nowrap}
.ph-pos-change{display:flex;justify-content:space-between;align-items:center;margin:12px 0 17px;color:#538b76;font-size:11px}
.ph-pos-change strong{font-size:19px;font-variant-numeric:tabular-nums}.ph-pos-change small{font-size:10px}
.ph-pos-change.is-short{color:#bd7427}
.ph-pos-payment-hint{font-size:11px;color:#78929e;line-height:1.8;min-height:75px}
.ph-pos-screen .ph-pos-pay-button{display:flex;width:100%;align-items:center;justify-content:center;gap:9px;min-height:50px;font-size:14px;border-radius:10px;background:#049c7d;border-color:#049c7d;box-shadow:0 5px 13px #049c7d20}
.ph-pos-pay-button kbd{margin-inline-start:auto;font-size:9px}.ph-pos-pay-button>.ph-icon{margin-inline-end:auto}
.ph-pos-keypad-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;background:#f1f5f8;border-radius:8px;padding:4px;margin-bottom:12px}
.ph-pos-keypad-tabs button{border:0;border-radius:6px;background:transparent;color:#8ba0ab;font-size:11px;padding:8px 3px}
.ph-pos-keypad-tabs button.is-active{background:#fff;color:#176876;box-shadow:0 1px 4px #16455712;font-weight:700}
.ph-pos-keypad-display{padding:10px 13px;background:#f6f9fb;border:1px solid #e4ebf0;border-radius:9px;margin-bottom:12px;text-align:end}
.ph-pos-keypad-display>span{display:block;font-size:10px;color:#8a9eaa;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.ph-pos-keypad-display output{display:block;font-size:26px;font-weight:700;letter-spacing:.5px;color:#294d62;line-height:1.5;font-variant-numeric:tabular-nums}
.ph-pos-keypad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.ph-pos-keypad button{border:1px solid #e1eaf0;background:#fff;color:#24475c;font-size:20px;font-weight:650;border-radius:9px;min-height:45px;box-shadow:0 2px 2px #13354c06;touch-action:manipulation;transition:background .1s,transform .1s}
.ph-pos-keypad button:hover:not(:disabled){background:#eff8f5;border-color:#a7d9cb}.ph-pos-keypad button:active:not(:disabled){transform:translateY(1px)}
.ph-pos-keypad .ph-pos-keypad-clear{color:#c07854;background:#fff6ee;font-size:12px;border-color:#f0e2d6}
.ph-pos-keypad .ph-pos-keypad-back{grid-column:span 2;background:#f2f7fa;color:#6f8b9d;font-size:23px}
.ph-pos-quick-quantities{display:flex;align-items:center;gap:6px;margin-top:12px}
.ph-pos-quick-quantities>span{font-size:9px;color:#8a9fac;margin-inline-end:auto}
.ph-pos-quick-quantities button{background:#f2f7f9;border:1px solid #e5edf0;border-radius:6px;color:#598294;min-width:30px;min-height:29px;font-size:11px}
.ph-pos-screen button:disabled{cursor:not-allowed;opacity:.42}
.ph-pos-screen button:focus-visible,.ph-pos-screen input:focus-visible{outline:2px solid #00a994;outline-offset:3px}
.ph-pos-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:15px;margin:17px 0 0;color:#8b9fab;font-size:10px}
.ph-pos-shortcuts>span{display:flex;align-items:center;gap:5px}.ph-pos-shortcuts>small{margin-inline-start:auto;font-size:9px}
.ph-held-panel{margin-bottom:18px!important;background:#fbfdfd!important}
.ph-held-panel .ph-panel-heading small{font-size:11px;color:#8aa0aa;display:block;margin-top:6px}
.ph-held-hint{font-size:11px;color:#b58242;background:#fff8e8;border-radius:8px;padding:10px 12px}
.ph-held-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;max-height:330px;overflow:auto}
.ph-held-card{background:#fff;border:1px solid #dbe8e5;border-radius:11px;padding:13px;min-width:0}
.ph-held-card-top,.ph-held-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ph-held-card-top strong{font-size:13px;color:#316c61;overflow-wrap:anywhere}.ph-held-card-top time{font-size:10px;color:#96aaa5;white-space:nowrap}
.ph-held-card>small{display:block;font-size:10px;color:#8ca29e;margin:8px 0 14px}
.ph-held-card-bottom b{font-size:19px;color:#14755d}.ph-held-card-bottom small{font-size:10px}
.ph-held-discard{display:block;background:transparent;border:0;font-size:9px;margin-top:10px;color:#a09c91}
.ph-held-delete{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:10px;margin-top:12px}
.ph-held-empty{font-size:13px;text-align:center;color:#8ba199;padding:25px}
@media(max-width:1260px){.ph-pos-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.ph-pos-terminal{grid-column:1/-1;grid-template-columns:1fr 1fr}.ph-pos-product-list{max-height:650px}.ph-pos-keypad button{min-height:47px}.ph-pos-grand-total>strong{font-size:45px}.ph-pos-screen .ph-pos-payment-panel{display:flex;flex-direction:column}.ph-pos-pay-button{margin-top:auto}.ph-pos-payment-methods button{min-height:72px}.ph-pos-grand-total{padding:23px 0}.ph-pos-shortcuts>small{width:100%;margin:0}}
@media(max-width:760px){.ph-pos-workspace{grid-template-columns:minmax(0,1fr)}.ph-pos-terminal{grid-column:auto}.ph-pos-product-list{max-height:330px}.ph-pos-basket-items{min-height:0;max-height:420px}.ph-pos-heading h1{font-size:24px!important}.ph-pos-screen .panel{padding:16px}.ph-pos-screen .ph-page-head-actions{flex-wrap:wrap;gap:8px}.ph-held-list{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.ph-pos-terminal{grid-template-columns:1fr}.ph-pos-hold-box>div{flex-wrap:wrap}.ph-pos-hold-box .btn{width:100%;justify-content:center}.ph-held-list{grid-template-columns:1fr}.ph-pos-grand-total{padding:14px 0}.ph-pos-keypad button{min-height:53px;font-size:23px}.ph-pos-keypad .ph-pos-keypad-clear{font-size:14px}.ph-pos-shortcuts{gap:10px}.ph-pos-screen .ph-page-head-actions>.btn{flex:1;justify-content:center;font-size:11px}.ph-pos-product-info>strong{font-size:13px}}
