/* Screen-only saved Receipt presentation. PDF/Print retain the original DOM
   values and generator; every rule requires the Mobile Retail renderer marker. */
@media screen {
html[data-medaliza-ui-mode="mobile"]:has(.mpr-receipt),html[data-medaliza-ui-mode="mobile"] body:has(.mpr-receipt){scrollbar-gutter:auto!important;scrollbar-width:none}
html[data-medaliza-ui-mode="mobile"]:has(.mpr-receipt)::-webkit-scrollbar,html[data-medaliza-ui-mode="mobile"] body:has(.mpr-receipt)::-webkit-scrollbar{display:none}
html[data-medaliza-ui-mode="mobile"] .medaliza-mobile-shell:has(.mpr-receipt){padding:4px 2px calc(100px + env(safe-area-inset-bottom))!important}
html[data-medaliza-ui-mode="mobile"] .medaliza-mobile-shell:has(.mpr-receipt)>.medaliza-mobile-shell-header{display:none!important}
html[data-medaliza-ui-mode="mobile"] .medaliza-mobile-shell:has(.mpr-receipt) .medaliza-mobile-shell-content{padding-top:0!important}
html[data-medaliza-ui-mode="mobile"] :is(#app,body) .mpr-receipt.mpr-receipt.mpr-receipt.mpr-receipt {
 --mpr-ink:#090e25;--mpr-blue:#03366c;--mpr-border:#bdcee4;--mpr-shadow:0 3px 6px #205e9130;
 box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0 auto;padding:clamp(6px,2.6vw,12px)!important;background:radial-gradient(ellipse at 90% 0,#b9eaff80,transparent 40%),linear-gradient(125deg,#f4faff,#e0f2ff);color:var(--mpr-ink);font:400 clamp(8.5px,2.35vw,11px)/1.25 Arial,sans-serif;
 & *{box-sizing:border-box;min-width:0}
 & svg{display:block;width:1.5em;height:1.5em;flex:none}
 & .mpr-brand{display:flex;align-items:center;gap:4%;padding:0 2% 2.3%;margin:0;background:none;border:0;min-height:0}
 & .mpr-brand img{width:32%;height:auto;object-fit:contain}
 & .mpr-brand>div{display:grid;align-content:center;border-left:1px solid #0a2e4a;padding-left:8%;font-size:clamp(10px,3vw,14px);line-height:1.15;color:#003879}
 & .mpr-brand b{font-size:clamp(18px,5.1vw,25px);color:#060b1d;font-weight:800}
 & .bill-receipt-actions{display:grid!important;grid-template-columns:1.15fr 1fr 1fr 1fr 1fr!important;align-items:stretch;gap:3px!important;margin:0 1% 8px!important;padding:0!important}
 & .bill-receipt-actions>button{grid-column:auto!important;grid-row:auto!important;width:auto!important}
 & .bill-receipt-actions button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:49px;height:auto;padding:5px 2px!important;margin:0;border:1px solid #adcfef;border-radius:9px!important;box-shadow:var(--mpr-shadow);background:linear-gradient(140deg,#fff,#eff6ff);color:#080c23;font:700 clamp(8px,2.2vw,10.5px)/1.08 Arial!important;white-space:normal!important;text-align:center;overflow-wrap:normal}
 & .bill-receipt-actions button svg{width:clamp(17px,4.5vw,24px);height:clamp(17px,4.5vw,24px);color:#ef273a}
 & .bill-receipt-actions button:first-child{background:linear-gradient(140deg,#158fac,#003048 80%)!important;color:#fff;border-bottom:3px solid #ffca00!important;box-shadow:0 3px 5px #16618b40}
 & .bill-receipt-actions button:first-child svg{color:#ffe122}
 & .bill-receipt-actions button:nth-child(3){background:linear-gradient(#fcfffd,#c4f0dd)}
 & .bill-receipt-actions button:nth-child(3) svg{color:#25c715;fill:#c4ffa5}
 & .bill-receipt-actions button:nth-child(4){background:linear-gradient(#fff,#e7e4ff)}
 & .bill-receipt-actions button:nth-child(4) svg{color:#a044fb}
 & .bill-receipt-actions button:nth-child(5){background:linear-gradient(#fff,#fff0d5)}
 & .bill-receipt-actions button:nth-child(5) svg{color:#ff9300}
 & .purchase-a4-invoice{display:block;width:100%!important;max-width:100%;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;color:var(--mpr-ink)!important;overflow:visible!important}
 & .purchase-receipt-heading{position:relative;display:block!important;padding:8px 9px 5px 20px!important;margin:0!important;border:1px solid var(--mpr-border)!important;border-bottom:0!important;border-radius:12px 12px 0 0;background:linear-gradient(120deg,#fff,#f5faff);box-shadow:var(--mpr-shadow)}
 & .purchase-receipt-heading::before{content:'';position:absolute;left:9px;top:8px;width:4px;height:25px;border-radius:4px;background:linear-gradient(#00cbff,#008767)}
 & .purchase-receipt-heading h1{margin:0!important;padding:0!important;font:800 clamp(15px,4.15vw,20px)/1.12 Arial!important;overflow-wrap:anywhere;color:#070c24!important}
 & .purchase-receipt-heading p{margin:2px 0 0!important;font:400 clamp(9px,2.45vw,12px)/1.25 Arial!important;color:#07316e}
 & [data-store-document-details]{display:block;margin-top:3px;font:400 clamp(7px,1.8vw,9px)/1.3 Arial!important;overflow-wrap:anywhere;color:#48607a}
 & .mpr-store-details{font-size:7.5px;line-height:1.3;color:#4e6985;margin-top:3px}
 & .mpr-store-details summary{cursor:pointer}
 & .purchase-receipt-gstin{display:block;margin:3px 0;font-size:8px;overflow-wrap:anywhere}
 & .purchase-receipt-details{display:grid!important;grid-template-columns:repeat(30,minmax(0,1fr))!important;gap:0!important;padding:3px 5px 6px!important;margin:0 0 5px!important;border:1px solid var(--mpr-border);border-top:0;border-radius:0 0 12px 12px;background:linear-gradient(110deg,#fff,#f6faff);box-shadow:var(--mpr-shadow)}
 & .purchase-receipt-details>div{display:contents!important}
 & .purchase-receipt-field{display:flex;flex-direction:column;gap:3px;justify-content:flex-start;min-height:0!important;padding:4px 5px!important;margin:0!important;border:0;border-right:1px solid #cad4e4;border-bottom:1px solid #d9e2ef;background:none;overflow-wrap:anywhere}
 & .purchase-receipt-field>span{font-size:clamp(7.5px,2vw,9.5px)!important;font-weight:400!important;color:#10132e}
 & .purchase-receipt-field>b{font-size:clamp(8.5px,2.4vw,11.5px)!important;line-height:1.2;font-weight:700;color:#070e26}
 & .purchase-receipt-field>small{font-size:8px;overflow-wrap:anywhere}
 & [data-mpr-field="0"]{grid-area:1/1/2/13}
 & [data-mpr-field="1"]{grid-area:1/13/2/21}
 & [data-mpr-field="2"]{grid-area:1/21/2/31;border-right:0}
 & [data-mpr-field="3"]{grid-area:2/1/3/10;border-bottom:0}
 & [data-mpr-field="4"]{grid-area:2/10/3/22;border-bottom:0}
 & [data-mpr-field="5"]{grid-area:2/22/3/31;border-right:0;border-bottom:0}
 & [data-mpr-field="3"]>b{align-self:start;padding:3px 6px;border-radius:12px;background:linear-gradient(#cbffd0,#7ee694);color:#063e1d}
 & [data-payment-status="CANCELLED"]>b{background:#ffe1e5;color:#971f38}
 & :is([data-payment-status="DRAFT"],[data-payment-status="PART_PAID"],[data-payment-status="UNPAID"])>b{background:#fff0c5;color:#715218}
 & [data-mpr-field="5"]>b{padding:3px;border-radius:7px;background:linear-gradient(#fff9d7,#ffe995)}
 & .purchase-receipt-status{display:none}
 & .purchase-receipt-table-wrap{width:100%;max-width:100%;margin:0!important;padding:0!important;border:0!important;overflow:visible!important;background:none;box-shadow:none}
 & table.purchase-receipt-items{display:block;width:100%!important;min-width:0!important;margin:0;border:0;background:none;table-layout:auto}
 & .purchase-receipt-items thead{display:none}
 & .purchase-receipt-items tbody{display:grid;gap:5px;width:100%}
 & tr[data-mpr-item]{display:grid!important;grid-template-columns:repeat(20,minmax(0,1fr))!important;gap:0!important;align-items:stretch;margin:0;padding:3px 5px 4px!important;border:1px solid #bbd8ef!important;border-radius:12px;background:linear-gradient(110deg,#fff,#f5faff)!important;box-shadow:var(--mpr-shadow);overflow:visible}
 & tr[data-mpr-item]>td{display:block;width:auto!important;min-width:0;max-width:100%;padding:4px 3px!important;border:0!important;border-bottom:1px solid #d0dbea;background:transparent!important;white-space:normal!important;text-align:center;vertical-align:top;font:700 clamp(8px,2.25vw,11px)/1.25 Arial!important;overflow-wrap:anywhere;color:#080e26}
 & tr[data-mpr-item]>td::before{content:attr(data-label);display:block;margin:0 0 3px;font:400 clamp(7.5px,2.05vw,10px)/1.15 Arial;color:#0c1330;white-space:normal}
 & .mpr-value{overflow-wrap:anywhere}
 & td:has(>.mpr-item-label)::before{display:none!important}
 & .mpr-item-label{display:flex;align-items:center;justify-content:center;gap:3px;margin:0 0 3px;font:400 clamp(7.5px,2.05vw,10px)/1.15 Arial}
 & [data-mpr-cell="1"] .mpr-item-label{justify-content:flex-start}
 & .mpr-item-label svg{width:clamp(9px,2.5vw,12px);height:clamp(9px,2.5vw,12px);color:#ff9c00}
 & .mpr-value b{font-size:inherit!important;font-weight:700}
 & tr[data-mpr-item]>td[data-mpr-cell="0"]{position:relative!important;grid-area:1/1/2/21!important;display:flex!important;align-items:center;justify-content:space-between;padding:3px 6px 4px 12px!important;margin:0 -1px 3px;border:0!important;border-radius:9px 9px 5px 5px;background:linear-gradient(115deg,#138da4,#003748)!important;color:#fff!important;font-size:clamp(12px,3.25vw,16px)!important;text-align:left!important;overflow:hidden}
 & [data-mpr-cell="0"]::before{content:''!important;position:absolute;left:0;top:0;bottom:0;width:7px;background:linear-gradient(125deg,#ffda00,#fff0a9 50%,#ffad00);border-radius:0 0 8px 0}
 & [data-mpr-cell="0"] b{padding:2px 9px;border-radius:8px;background:linear-gradient(#ffed35,#ffc300);color:#071525;font-size:clamp(10px,2.7vw,13px)!important;box-shadow:0 2px 4px #002e58}
 & [data-mpr-cell="1"]{grid-area:2/1/3/9!important;text-align:left!important}
 & [data-mpr-cell="4"]{grid-area:2/9/3/13!important}
 & [data-mpr-cell="7"]{grid-area:2/13/3/17!important}
 & [data-mpr-cell="3"]{grid-area:2/17/3/21!important}
 & [data-mpr-cell="2"]{grid-area:3/1/4/5!important}
 & [data-mpr-cell="6"]{grid-area:3/5/4/9!important}
 & [data-mpr-cell="9"]{grid-area:3/9/4/13!important}
 & [data-mpr-cell="10"]{grid-area:3/13/4/17!important}
 & [data-mpr-cell="8"]{grid-area:3/17/4/21!important}
 & :is([data-mpr-cell="9"],[data-mpr-cell="10"]) .mpr-value{background:linear-gradient(#fff7d8,#ffeda5);border-radius:5px}
 & [data-mpr-cell="12"]{grid-area:4/1/5/6!important}
 & [data-mpr-cell="11"]{grid-area:4/6/5/11!important}
 & [data-mpr-cell="13"]{grid-area:4/11/5/21!important;display:flex!important;gap:5px;align-items:center;justify-content:space-between}
 & [data-mpr-cell="13"]::before{margin:0!important}
 & [data-mpr-cell="13"] .mpr-value{flex:1;padding:3px;border-radius:7px;background:linear-gradient(110deg,#efffd6,#d2fba5);font-size:clamp(12px,3.2vw,16px)}
 & [data-mpr-cell="5"]{grid-area:5/1/6/8!important;display:flex!important;gap:4px;align-items:center;padding:3px!important;border:0!important;font-size:8px!important;color:#48627c!important}
 & [data-mpr-cell="5"]::before{margin:0!important;font-size:7px!important;color:#48627c}
 & td.mpr-item-notes{grid-area:5/8/6/21;padding:3px!important;border:0!important;text-align:right!important;font:400 8px/1.3 Arial!important;color:#48627c!important}
 & td.mpr-item-notes::before{display:none}
 & .mpr-item-notes summary{cursor:pointer}
 & .mpr-item-notes small{display:block;font-size:8px!important;line-height:1.4;overflow-wrap:anywhere;text-align:left}
 & .purchase-receipt-settlement{display:block!important;grid-template-columns:none!important;gap:0!important;padding:5px 0!important;margin:0!important;min-height:0!important;border:0!important;background:none}
 & .purchase-receipt-words{position:relative;display:block;padding:5px 8px 5px 32px!important;margin:0 0 5px!important;min-height:0!important;border:1px solid #d0edf4;border-radius:9px;background:linear-gradient(110deg,#b2eced,#f0fdff 35%,#a9e5e8);box-shadow:0 0 0 4px #ffffffb0}
 & .purchase-receipt-words>svg{position:absolute;left:8px;top:9px;width:17px;height:17px;color:#034e3c}
 & .purchase-receipt-words h2{padding:0;margin:0 0 1px!important;font:700 clamp(10px,2.8vw,13px)/1.2 Arial!important;color:#003f35}
 & .purchase-receipt-words p{margin:0!important;font:400 clamp(8px,2.25vw,11px)/1.25 Arial!important;overflow-wrap:anywhere}
 & .purchase-receipt-totals{isolation:isolate;position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto repeat(4,auto) auto;column-gap:6px;row-gap:0;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:0!important;background:none!important;float:none}
 & .purchase-receipt-totals::before,& .purchase-receipt-totals::after{content:'';position:absolute;top:0;bottom:0;left:0;width:calc(50% - 3px);z-index:-1;border:1px solid #b8cce3;border-radius:9px;background:linear-gradient(120deg,#fff,#f4f8ff);box-shadow:var(--mpr-shadow)}
 & .purchase-receipt-totals::after{left:auto;right:0}
 & .purchase-receipt-totals h3{display:flex;align-items:center;gap:4px;align-self:stretch;padding:5px 6px;margin:0 0 3px;border-radius:9px 9px 0 0;font:700 clamp(9px,2.5vw,12px)/1.2 Arial!important;white-space:normal}
 & .purchase-receipt-totals h3 svg{width:16px;height:16px}
 & .mpr-summary-title{grid-area:1/1;background:linear-gradient(110deg,#fff3c8,#fffaf0)}
 & .mpr-summary-title svg{color:#ffa300}
 & .mpr-payment-title{grid-area:1/2;background:linear-gradient(110deg,#f4faff,#e3ddff)}
 & .mpr-payment-title svg{color:#00577b}
 & .purchase-receipt-totals>div{display:flex;align-items:baseline;justify-content:space-between;gap:3px;padding:2px 8px!important;margin:0;border:0!important;background:none;font:400 clamp(8px,2.2vw,10.5px)/1.25 Arial!important;overflow-wrap:anywhere}
 & .purchase-receipt-totals>div>b{font-size:inherit!important;white-space:normal;overflow-wrap:anywhere;text-align:right;color:#081127}
 & [data-mpr-total="0"]{grid-area:2/1}
 & [data-mpr-total="1"]{grid-area:3/1}
 & [data-mpr-total="2"]{grid-area:4/1}
 & [data-mpr-total="3"]{grid-area:5/1}
 & .purchase-receipt-totals>[data-mpr-total="4"]{grid-area:6/1;font-weight:700!important;padding:6px!important;margin-top:3px;border-top:1px dashed #a9b6c9!important}
 & [data-mpr-total="4"] b{background:linear-gradient(#007d87,#003c50);color:#ffe61c!important;padding:3px 6px;border-radius:6px;font-size:clamp(12px,3.2vw,15px)!important}
 & [data-mpr-total="5"]{grid-area:2/2}
 & [data-mpr-total="6"]{grid-area:3/2}
 & .purchase-receipt-totals>[data-mpr-total="7"]{grid-area:6/2;font-weight:700!important;padding:6px!important;margin-top:3px;border-top:1px dashed #a9b6c9!important}
 & [data-mpr-total="7"] b{padding:3px 6px;border-radius:6px;background:linear-gradient(#ffe3e8,#ffcbd5);color:#ed0014!important;font-size:clamp(12px,3.2vw,15px)!important}
 & .purchase-receipt-signoff{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:7px 4px!important;margin:3px 0 7px!important;border:1px solid #b8cde4;border-radius:9px;background:linear-gradient(#fff,#f3f8ff);box-shadow:var(--mpr-shadow)}
 & .purchase-receipt-signoff>div{display:flex;flex-direction:column;gap:5px;padding:0 6px;border-right:1px solid #bbc9db;text-align:left!important;overflow-wrap:anywhere}
 & .purchase-receipt-signoff>div:last-child{border:0}
 & .purchase-receipt-signoff span{font-size:clamp(7px,2vw,9.5px)!important;font-weight:400;color:#182138}
 & .purchase-receipt-signoff :is(p,b,small){margin:0!important;font:400 clamp(8px,2.2vw,10px)/1.2 Arial!important;overflow-wrap:anywhere}
 & .purchase-receipt-signoff>div:last-child b{font-size:0!important;letter-spacing:0;min-height:10px}
 & .purchase-receipt-signoff>div:last-child b::after{content:'';display:block;width:100%;border-bottom:1px dashed #163574;margin-top:9px}
 & .purchase-receipt-footer{position:relative;display:block!important;margin:0!important;padding:7px 12px!important;border:0!important;border-radius:10px;background:linear-gradient(115deg,#008b8c,#003c4c)!important;text-align:center!important;font:italic 700 clamp(10px,2.9vw,14px)/1.3 Arial!important;color:#fff!important;overflow:hidden;box-shadow:0 2px 4px #1d55724d}
 & .purchase-receipt-footer::before,& .purchase-receipt-footer::after{content:'';position:absolute;width:35px;top:0;bottom:0;left:0;clip-path:polygon(0 0,100% 0,0 100%);background:linear-gradient(135deg,#ffef7c,#ffb700,#ffe625)}
 & .purchase-receipt-footer::after{left:auto;right:0;clip-path:polygon(100% 0,100% 100%,0 100%)}
 & button:focus-visible,& summary:focus-visible{outline:2px solid #1685d4;outline-offset:2px}
}
}
