.pos-terminal{--pos-green:#00874c;position:relative;display:grid;grid-template-columns:minmax(0,7fr) minmax(300px,3fr);gap:9px;padding:6px 12px 6px 6px;min-height:100dvh;color:#414645;background:#f7f8f7;font-size:13px;line-height:1.4}
.pos-terminal,.pos-terminal *{box-sizing:border-box}
.pos-left,.pos-side,.pos-pad,.pos-actions,.pos-head,.pos-check,.pos-summary,.pos-tenders{display:grid;min-width:0;gap:8px}
.pos-left{grid-template-rows:auto 1fr auto}.pos-head{grid-template-columns:1.22fr 1fr}
.pos-head article,.pos-cart,.pos-check,.pos-side{background:white;border-radius:5px;box-shadow:0 1px 4px #526e5370}
.pos-head article{position:relative;display:flex;gap:14px;justify-content:space-between;padding:5px 9px;min-height:74px}.pos-head article>div{min-width:0}.pos-head a{display:block;color:inherit;font-size:16px;font-weight:700}.pos-head article:first-child>div:first-child{display:grid;align-content:space-between}.pos-head article:first-child>div:nth-child(2){margin-right:auto}
.pos-head b{text-transform:uppercase;font-size:12px}.pos-head p{margin:0 0 3px}.pos-head time{position:absolute;right:9px;bottom:5px;font-size:11px}.pos-head article button{align-self:flex-start;padding:0 3px!important}
.pos-cart{padding:30px 20px 10px;overflow:hidden;min-height:285px}.pos-search,.pos-tender,.pos-fiscal,.pos-side>section,.pos-dialog footer{display:flex;align-items:center;gap:7px}
.pos-terminal input:not([type=checkbox]),.pos-terminal select{min-width:0;height:34px;padding:5px 9px;background:white;border:1px solid #dedede;border-radius:4px;color:inherit;font:inherit}.pos-terminal input:disabled,.pos-terminal select:disabled{background:#eee}
.pos-terminal input[type=checkbox]{width:19px;height:19px;accent-color:var(--pos-green);vertical-align:middle}
.pos-terminal button{border:1px solid #ddd;border-radius:4px;background:#f3f3f3;color:inherit;font:inherit;cursor:pointer}.pos-terminal button:disabled{opacity:.55;cursor:default}.pos-terminal button:hover:enabled{border-color:#52a87e}
.pos-search{min-height:55px;margin-bottom:16px}.pos-search>input{flex:1;height:42px!important}.pos-search>button{width:40px;height:40px;color:var(--pos-green);background:#f7fcfa;font-size:24px}.pos-search>button:first-of-type{background:var(--pos-green);color:white}
.pos-search>strong{display:grid;align-content:center;background:#e20613;color:white;transform:rotate(-3deg);font-size:13px;line-height:1.2;padding:4px 7px;height:55px}
.pos-search>label{padding:7px 9px;border:1px solid #eee;border-radius:4px;white-space:nowrap}
.pos-table{overflow:auto;max-height:52vh}.pos-table table{border-collapse:collapse;min-width:1950px;width:100%;white-space:nowrap;font-size:12px}.pos-table th{height:40px;background:var(--pos-green);color:white;font-weight:500}.pos-table th,.pos-table td{padding:6px 13px;text-align:center;border:1px solid #dce5de}.pos-table th:nth-child(2){min-width:145px}.pos-table td input{width:84px}.pos-table .selected{background:#e2f1e7}
.pos-empty{display:grid;align-content:center;justify-items:center;gap:7px;min-height:154px;color:#848f89;border:1px solid #eee}.pos-empty[hidden]{display:none}.pos-empty span{font-size:45px;color:#c5ced0}.pos-stock-error{color:#af342c}
.pos-side{grid-template-rows:auto auto auto 1fr;padding:6px 10px;align-content:start;gap:13px}
.pos-side>section>label{display:grid;flex:1;font-size:12px}.pos-side>section>button{align-self:end;height:34px;width:38px;color:var(--pos-green)}
.pos-pad,.pos-actions{grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}.pos-pad button,.pos-actions button{position:relative;min-width:0;min-height:43px;padding:7px 2px;line-height:1.05;font-size:16px}.pos-pad button small,.pos-actions button small{display:block;font-size:9px}.pos-pad .orange,.pos-actions .accent{background:#f4c476}.pos-pad .green,.pos-terminal .pos-confirm{background:var(--pos-green);color:white}
.pos-actions button,.pos-side fieldset button{background:#c2e2d5;font-size:13px}.pos-actions button:nth-child(6),.pos-actions button:nth-child(9){grid-column:span 2}.pos-side fieldset{align-self:end;display:flex;gap:6px;border:0;border-top:1px dashed #bbb;padding:12px 0 5px;margin:0;text-align:center}.pos-side legend{padding:0 12px}.pos-side fieldset button{flex:1;min-height:82px;color:var(--pos-green)}
.pos-check{grid-template-columns:minmax(75px,1fr) minmax(120px,1.15fr) minmax(125px,1fr) minmax(90px,.65fr);padding:7px;gap:7px;align-items:stretch}.pos-fiscal{align-items:flex-start}.pos-fiscal select{width:64px}.pos-tenders{gap:4px}.pos-tender{gap:4px;padding:3px;border:1px solid #eee;border-radius:5px}.pos-tender input:not([type=checkbox]){width:40px;flex:1;height:26px}.pos-tender small{font-size:10px}
.pos-summary{align-content:center;padding:6px;border:1px solid #eee;border-radius:6px;font-size:12px}.pos-summary>div{display:flex;align-items:center;justify-content:space-between;gap:5px}.pos-summary>div:last-child{color:var(--pos-green);font-size:16px;margin-top:10px;font-weight:700}
.pos-terminal .pos-confirm{display:grid;align-content:center;justify-items:center;gap:3px;font-size:16px;border-radius:12px}.pos-confirm span{display:grid;place-items:center;width:46px;height:46px;border:1px solid white;border-radius:50%;font-size:28px}.pos-confirm small{font-size:11px}
.pos-dialog{width:min(520px,92vw);max-height:82vh;overflow:auto;background:#fff;color:#424843;border:1px solid #ddd;border-radius:6px;padding:20px;box-shadow:0 9px 35px #283c3440}.pos-dialog::backdrop{background:#1c2e274d}.pos-dialog form{display:grid;gap:12px}.pos-dialog header,.pos-results button{display:flex;align-items:center;justify-content:space-between;gap:6px}.pos-dialog h2{font-size:20px;margin:0}.pos-dialog header button{width:32px;height:32px}.pos-dialog label{display:grid;gap:3px}.pos-dialog footer{justify-content:flex-end}.pos-dialog footer button{background:var(--pos-green);padding:8px 16px;color:white}.pos-dialog [role=alert]{color:#ab3028;margin:0}.pos-results{display:grid;max-height:42vh;overflow:auto}.pos-results button{border:0;border-bottom:1px solid #eee;border-radius:0;background:white;padding:8px;text-align:left}.pos-results small{color:#777}
@media(min-width:1000px){.pos-terminal{height:100dvh;overflow:auto}.pos-side{grid-template-columns:minmax(0,1fr)}}
@media(max-width:960px){.pos-terminal{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}.pos-head{grid-template-columns:1fr}.pos-check{grid-template-columns:1fr 1fr}.pos-cart{padding:10px}.pos-search{flex-wrap:wrap}.pos-search>input{min-width:165px!important}}
@media(max-width:680px){.pos-terminal{display:flex;flex-direction:column;padding:5px}.pos-left{display:contents}.pos-cart{min-height:180px}.pos-side{order:2}.pos-check{order:3}.pos-head{grid-template-columns:1fr}.pos-table{max-height:33vh}.pos-side fieldset button{min-height:42px}.pos-actions button,.pos-pad button{min-height:44px}}

.pos-dialog.pos-wallet-dialog{width:min(80vw,1400px);max-width:96vw;height:min(81vh,770px);box-sizing:border-box}
.pos-wallet-dialog form{height:100%;grid-template-rows:auto auto minmax(0,1fr) auto auto}
.pos-wallet-scroll{overflow:auto;min-width:0}
.pos-wallet-scroll table{border-collapse:collapse;width:100%;font-size:12px}
.pos-wallet-scroll th,.pos-wallet-scroll td{padding:12px 20px 10px;text-align:left;border-bottom:1px solid #ddd;white-space:nowrap}
.pos-wallet-scroll thead{position:sticky;top:0;background:#008b45;color:white}
.pos-wallet-scroll tfoot{position:sticky;bottom:0;background:#454545;color:white}
.pos-wallet-scroll tbody tr:hover{background:#deebe2}
.pos-wallet-scroll svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
.pos-wallet-detail{display:grid;grid-template-columns:auto 1fr;gap:8px 16px}
.pos-wallet-detail dd{margin:0}
@media(max-width:680px){.pos-dialog.pos-wallet-dialog{width:96vw}}
.pos-dialog.pos-returns-dialog{width:min(94vw,1460px);max-width:98vw;max-height:92vh}
.pos-return-filters{display:grid;align-items:end;gap:10px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.pos-returns-dialog .pos-wallet-scroll{max-height:35vh}
.pos-returns-dialog [role=tab][aria-selected=true]{border-color:var(--pos-green);color:var(--pos-green)}
