/* Only the new green-card CASH workspace. All other POS-X R205 modes retain their CSS. */
.pos-workspace.pxcv-active{width:min(1540px,98vw)!important;max-width:98vw!important;height:min(960px,97dvh)!important;max-height:97dvh!important;background:#f5f9ff!important}
.pos-workspace.pxcv-active>.pos-top{height:56px!important;gap:10px!important;padding:0 15px!important}
.pos-workspace.pxcv-active .pos-progress{display:none!important}
.pos-workspace.pxcv-active>.pos-message{position:absolute;top:54px;left:12px;right:12px;z-index:40;white-space:normal}
.pos-workspace .pxcv{height:calc(100% - 56px);padding:10px;display:flex;flex-direction:column;gap:10px;overflow:hidden;color:#192f4e;background:#f6f9ff;font-size:12px}
.pos-workspace .pxcv button{font-family:inherit}
.pos-workspace .pxcv input,.pos-workspace .pxcv select{height:34px;padding:5px 8px;width:100%;min-width:0;font-size:12px}
.pos-workspace .pxcv svg{width:17px;height:17px}
.pxcv-top{display:grid;grid-template-columns:minmax(180px,1.48fr) minmax(100px,.64fr) minmax(160px,1.3fr) minmax(90px,.6fr) minmax(77px,.47fr) minmax(165px,1.15fr);position:relative;gap:8px;padding:8px 10px 10px;border:1px solid #d6e3f7;background:#fff;border-radius:12px;box-shadow:0 2px 7px #122c4b12;flex:0 0 auto}
.pxcv-top>label{display:grid;gap:4px;font-weight:700;font-size:11px;white-space:nowrap}
.pxcv-top>label>input{font-weight:600;background:#f9fbff}
.pxcv-top .pxcv-find{display:flex;gap:4px;min-width:0}
.pxcv-top .pxcv-find input{flex:1}
.pos-workspace .pxcv-top .pxcv-find button{padding:5px;min-height:34px;min-width:36px;color:#fff;border-color:#075bd1;background:#0963d9}
.pxcv-customer-suggest{position:absolute;z-index:30;top:calc(100% - 2px);left:5px;width:min(460px,98%);max-height:245px;overflow:auto;background:#fff;border:1px solid #bfd5ed;border-radius:8px;box-shadow:0 14px 25px #19375940;padding:5px}
.pos-workspace .pxcv-customer-suggest button{display:block;width:100%;text-align:left;min-height:32px;padding:7px 10px;border:0;border-radius:5px}.pxcv-customer-suggest small{margin-left:8px;color:#667b91}
.pxcv-body{display:grid;grid-template-columns:minmax(0,1.26fr) minmax(240px,.56fr) minmax(285px,.85fr);grid-template-rows:minmax(185px,.83fr) minmax(205px,1fr) auto;gap:9px;flex:1;min-height:0}
.pxcv-panel{min-width:0;min-height:0;overflow:hidden;border:1px solid #d6e3f7;border-radius:11px;background:#fff;box-shadow:0 2px 6px #172c4410;display:flex;flex-direction:column}
.pxcv-product{grid-column:1/3;grid-row:1}.pxcv-sn{grid-column:1;grid-row:2}.pxcv-summary{grid-column:2;grid-row:2}.pxcv-payment{grid-column:3;grid-row:1/4}.pxcv-actions{grid-column:1/3;grid-row:3;display:flex;gap:5px;align-items:center;flex-wrap:wrap;min-height:39px}
.pos-workspace .pxcv-actions button{min-height:31px;padding:5px 9px;border:0;background:#f0f3f9;color:#15345b;font-weight:600;font-size:10.5px}
.pos-workspace .pxcv-actions button:first-child{color:#c72530;background:#fff0f2}
.pxcv-panel-head{min-height:40px;flex-shrink:0;display:flex;align-items:center;gap:9px;padding:8px 12px;background:linear-gradient(100deg,#076bdf,#08449d);color:#fff;font-size:15px;font-weight:700}
.pxcv-product>.pxcv-panel-head{background:linear-gradient(100deg,#f5faff,#eaf4ff);color:#18395e}
.pxcv-sn>.pxcv-panel-head{background:linear-gradient(100deg,#f5faff,#eaf4ff);color:#18395e}
.pxcv-panel-head .pxcv-source{font-size:10px;font-weight:600;margin-left:auto;border:1px solid #c4dbff;border-radius:6px;padding:5px 8px;color:#1253a3;white-space:nowrap;max-width:60%;overflow:hidden;text-overflow:ellipsis}
.pxcv-sn-pill{margin-left:auto;background:#ffe8ad;color:#a16a09;border-radius:7px;padding:5px 9px;font-size:11px;white-space:nowrap}.pxcv-sn-pill.is-complete{background:#159653;color:white}
.pxcv-table-scroll{flex:1;min-height:0;overflow:auto;padding:5px 8px 7px}
.pxcv table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}
.pxcv th{text-align:left;background:#eef2f6;color:#21364e;padding:7px 6px;position:sticky;top:0;z-index:1}
.pxcv td{padding:7px 6px;border-bottom:1px solid #e5ecf4;max-width:320px;overflow:hidden;text-overflow:ellipsis}
.pxcv tr:hover td{background:#eff6ff}.pxcv tr.is-selected td,.pxcv tr.is-checked td{background:#e4efff}
.pxcv-product th:nth-child(4),.pxcv-product td:nth-child(4),.pxcv-product th:nth-child(5),.pxcv-product td:nth-child(5),.pxcv-product th:nth-child(n+6),.pxcv-product td:nth-child(n+6){text-align:right}
.pxcv-empty{text-align:center!important;color:#72869f;padding:28px 8px!important;font-weight:400}
.pxcv-badge{display:inline-block;text-align:center;min-width:44px;padding:3px 7px;border-radius:6px;background:#fff1c8;border:1px solid #f7d57e;color:#885d06;font-weight:700}.pxcv-badge.is-complete{color:#0f7e4b;background:#dff7eb;border-color:#aee2c6}
.pos-workspace .pxcv-remove-sn{padding:0!important;border:1px solid #ffb6ba!important;background:#fff5f5!important;color:#e34249!important;min-height:23px!important;min-width:23px!important;border-radius:5px!important;font-size:16px!important;font-weight:700}
.pxcv-summary-title{font-weight:700;font-size:15px;padding:12px;background:#f4f8fd}.pxcv-summary-content{padding:7px 12px;flex:1;min-height:0}.pxcv-summary-content>div{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:7px 0;border-bottom:1px solid #edf1f6}.pxcv-summary-content strong{font-size:11px}.pxcv-grand{margin:8px 9px;padding:12px 7px;text-align:center;background:#e8f2ff;border-radius:9px;font-weight:700}.pxcv-grand strong{font-size:clamp(20px,2.2vw,35px);color:#064ee0;display:block;margin-top:7px}.pxcv-grand small{font-size:12px}
.pxcv-payment-inner{min-height:0;flex:1;display:flex;flex-direction:column;padding:8px 9px 9px;gap:2px;overflow:auto}
.pxcv-payheading{display:flex;justify-content:space-between;font-weight:700;font-size:11px;background:#edf2f9;padding:7px 9px;border-radius:7px}
.pxcv-payrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(88px,115px);align-items:center;gap:6px;border-bottom:1px solid #e3eaf4;min-height:39px;padding:3px 0}
.pxcv-payrow>div{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-weight:600}.pxcv-payrow>div>svg{color:#1265d7}.pxcv-payrow select{flex-basis:100%;margin-left:22px;max-width:calc(100% - 22px);height:27px!important;font-size:10px!important;padding:1px 4px!important}
.pxcv-payrow>input{text-align:right;height:29px!important;font-weight:700;font-variant-numeric:tabular-nums}
.pxcv-paytotals{margin-top:auto;padding-top:10px;display:grid;gap:4px}.pxcv-paytotals>div{display:flex;justify-content:space-between;align-items:center;background:#edf2fa;border-radius:6px;padding:9px;font-weight:650}.pxcv-paytotals strong{font-size:16px;font-variant-numeric:tabular-nums}.pxcv-paytotals>div:nth-child(2) strong{color:#c34f13}.pxcv-paytotals>.pxcv-change{background:#e1fadc;color:#096c1b}.pxcv-paytotals>.pxcv-change strong{color:#096c1b}
.pos-workspace .pxcv-confirm{width:100%;flex-shrink:0;margin-top:9px;min-height:47px!important;background:linear-gradient(90deg,#0975ee,#073b9f)!important;border:0!important;color:#fff!important;font-size:17px!important;font-weight:700!important}
.pxcv-scanner{flex:0 0 auto;min-height:54px;border:1px solid #a6c7ff;background:#fff;border-radius:10px;display:flex;align-items:center;gap:10px;padding:6px 9px;box-shadow:0 2px 7px #1665d114}.pxcv-scanner label{display:flex;align-items:center;gap:8px;white-space:nowrap;min-width:185px;font-size:14px}.pxcv-scanner label svg{color:#0565d9}.pxcv-scanner>input{flex:1;height:40px!important;border:2px solid #076cff!important;font-size:13px!important}.pos-workspace .pxcv-scanner button{min-height:40px;background:#f2f7ff;color:#144588;border:1px solid #b9d1ff;font-weight:700;font-size:13px}
.pxcv-message{position:absolute;top:60px;bottom:auto;left:auto;right:18px;max-width:420px;pointer-events:none;z-index:35;background:#eef6ff;border:1px solid #94bfff;padding:10px;border-radius:8px;text-align:center;font-weight:650;box-shadow:0 10px 20px #23405b25}.pxcv-message.is-error{background:#fff1f0;color:#a52626;border-color:#eab2af}
.pxcv-overlay{position:absolute;inset:0;z-index:70;background:#071d4d90;display:grid;place-items:center;padding:16px}.pxcv-modal-content{width:min(1430px,96%);height:min(820px,92%);max-height:95%;background:#fff;border:1px solid #d2e2ff;border-radius:14px;box-shadow:0 18px 55px #0e244d70;display:flex;flex-direction:column;overflow:hidden}
.pxcv-modal-head{min-height:56px;flex:0 0 auto;display:flex;align-items:center;gap:10px;background:linear-gradient(95deg,#0758c8,#063e97);color:#fff;padding:10px 15px}.pxcv-modal-head strong{font-size:20px}.pxcv-modal-head span{font-size:11px}.pxcv-modal-head button{margin-left:auto;color:#fff!important;background:transparent!important;border:0!important}
.pxcv-filters{display:grid;grid-template-columns:minmax(210px,2fr) minmax(90px,.7fr) minmax(108px,.8fr) minmax(108px,.8fr) minmax(95px,.7fr) auto;gap:7px;align-items:end;padding:12px;border-bottom:1px solid #dde7f3}.pxcv-filters label{display:grid;gap:4px;font-size:10px;font-weight:700}.pxcv-filters input,.pxcv-filters select{height:37px!important}.pos-workspace .pxcv-filters>button{background:#075adb;color:#fff;min-height:37px}
.pxcv-modal-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.97fr);flex:1;min-height:0;gap:10px;padding:10px}.pxcv-modal-grid>section{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #d8e6ff;border-radius:10px;overflow:hidden}.pxcv-modal-grid .pxcv-panel-head{font-size:12px;min-height:39px}.pxcv-modal-grid .pxcv-panel-head span{margin-left:auto;background:#ffffff33;border-radius:30px;padding:4px 8px;font-size:10px}.pxcv-modal-scroll{flex:1;overflow:auto;min-height:0;padding:5px}.pxcv-modal-scroll table{font-size:10px}.pxcv-modal-scroll td{padding:8px 5px}.pxcv-modal-scroll input[type=checkbox]{width:16px;height:16px;min-height:16px;cursor:pointer}.pxcv-crt-link{min-height:25px!important;padding:0!important;border:0!important;background:transparent!important;color:#075ac4!important;font-weight:700!important;text-decoration:underline}
.pxcv-pagination{display:flex;justify-content:center;gap:12px;align-items:center;padding:5px;border-top:1px solid #e6ecf5}.pos-workspace .pxcv-pagination button{min-height:28px;padding:4px 9px;font-size:10px}
.pxcv-detail-empty{padding:30px;text-align:center;color:#7990a4}.pxcv-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f3f7fe;margin:7px;padding:8px;border-radius:7px;font-size:10px}.pxcv-detail-total{display:flex;justify-content:space-between;align-items:center;margin:6px;background:#eaf2ff;padding:14px;color:#0657cd;font-size:16px;font-weight:750;border-radius:8px}
.pxcv-modal-footer{min-height:62px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid #e2ebf6}.pxcv-modal-footer>div:last-child{display:flex;gap:7px}.pxcv-modal-footer>div:first-child{font-weight:700;font-size:12px;background:#f3f7ff;padding:10px;border-radius:8px}.pos-workspace .pxcv-primary{background:#0b60d5;color:#fff;border-color:#0b60d5;font-weight:700}
.pxcv-small-dialog{width:min(700px,95%);max-height:90%;overflow:hidden;background:#fff;border-radius:12px;display:flex;flex-direction:column;box-shadow:0 15px 48px #12254655}.pxcv-other-body{padding:15px;overflow:auto}.pxcv-product-find{display:flex;gap:9px}.pxcv-product-find input{flex:1}.pxcv-product-results{display:grid;gap:7px;margin-top:12px;max-height:400px;overflow:auto}.pxcv-product-results button{display:grid!important;grid-template-columns:100px 1fr 80px!important;text-align:left!important;justify-content:stretch!important}.pxcv-product-results button span{overflow:hidden;text-overflow:ellipsis}.pxcv-product-results small{text-align:right}.pxcv-muted{font-size:11px;color:#76869a}
@media(max-width:1200px){.pxcv-body{grid-template-columns:minmax(0,1.15fr) minmax(190px,.6fr) minmax(260px,.84fr)}.pxcv-top{grid-template-columns:1.4fr .65fr 1.2fr .5fr .5fr 1fr}.pxcv-scanner label{min-width:145px}.pos-workspace .pxcv-scanner button{font-size:11px}.pxcv-actions button{font-size:9px!important}.pxcv-payrow{grid-template-columns:minmax(0,1fr) 90px}}
@media(max-height:820px){.pos-workspace.pxcv-active{height:98dvh!important;max-height:98dvh!important}.pos-workspace .pxcv{gap:6px;padding:6px}.pxcv-top{padding:5px 8px;gap:6px}.pxcv-top input{height:29px!important}.pxcv-panel-head{min-height:33px;padding:6px 9px;font-size:12px}.pxcv-body{grid-template-rows:minmax(125px,.75fr) minmax(155px,.9fr) auto;gap:5px}.pxcv-payrow{min-height:32px;padding:2px 0}.pxcv-payrow input{height:27px!important}.pxcv-summary-content>div{padding:4px 0}.pxcv-grand{margin:3px 7px;padding:6px 5px}.pxcv-grand strong{margin-top:2px}.pxcv-scanner{min-height:49px;padding:4px 7px}.pxcv-scanner>input,.pos-workspace .pxcv-scanner button{height:35px!important;min-height:35px!important}.pos-workspace .pxcv-confirm{min-height:39px!important;margin-top:5px;font-size:14px!important}.pxcv-paytotals{padding-top:5px;gap:2px}.pxcv-paytotals>div{padding:5px}.pxcv-paytotals strong{font-size:14px}.pxcv-actions{min-height:27px}.pos-workspace .pxcv-actions button{min-height:27px;padding:3px 6px}}
@media(max-width:930px){.pos-workspace.pxcv-active{width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}.pos-workspace .pxcv{overflow:auto}.pxcv-top{grid-template-columns:repeat(3,minmax(0,1fr))}.pxcv-body{grid-template-columns:minmax(0,1fr) minmax(190px,.8fr);grid-template-rows:minmax(170px,1fr) minmax(170px,1fr) auto auto}.pxcv-product{grid-column:1/3;grid-row:1}.pxcv-sn{grid-column:1;grid-row:2}.pxcv-summary{grid-column:2;grid-row:2}.pxcv-payment{grid-column:1/3;grid-row:3}.pxcv-actions{grid-column:1/3;grid-row:4}.pxcv-modal-grid{grid-template-columns:1fr;overflow:auto}.pxcv-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.pxcv-modal-content{height:94%;width:100%}.pxcv-payrow{grid-template-columns:1fr 160px}.pxcv-scanner label{min-width:auto}}

.pxcv-overlay[hidden]{display:none!important}
/* R207: locked V2, extra action row from legacy R205 is not part of approved design. */
.pxcv-actions{display:none!important}
.pxcv-doc-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:18px}
.pxcv-doc-actions button{border-radius:8px;padding:12px 15px;background:#eaf2ff;color:#173c7b;border:1px solid #b9d0ec;font-weight:700;cursor:pointer}
.pxcv-doc-actions button:last-child{background:#1154bf;color:#fff}

.pxcv-sn .pxcv-table-scroll{overflow-x:hidden}
.pxcv-sn table{table-layout:fixed}
.pxcv-sn th:first-child{width:28px;box-sizing:border-box}
.pxcv-sn th:nth-child(2){width:38%}
.pxcv-sn th:nth-child(3){width:84px;box-sizing:border-box}
.pxcv-sn th:last-child{width:36px;box-sizing:border-box}
.pxcv-sn td:nth-child(2),.pxcv-sn td:nth-child(3){white-space:normal;overflow-wrap:anywhere}
.pos-workspace input.pxcv-adjust-line{box-sizing:border-box;width:86px;max-width:100%;min-width:0;padding:4px 6px;text-align:right;border:1px solid #bdd0e5;border-radius:5px;background:#fff;color:#192f4e;font:inherit}
.pos-workspace input.pxcv-adjust-line[aria-invalid="true"]{border-color:#bc3034}

.pos-workspace .pxcv-product td{vertical-align:middle}
.pos-workspace .pxcv-product input.pxcv-adjust-line{height:26px;min-height:0;padding:2px 6px;vertical-align:middle;line-height:1.2}
