.amar-invoice{box-sizing:border-box;color:#000;font:10px/1.2 Tahoma,Verdana,Helvetica,sans-serif;width:800px;max-width:100%;margin:0 auto;background:white;padding:10px 0}
.amar-invoice *{box-sizing:border-box}
.aid-head{display:flex;align-items:flex-start;gap:10px;min-height:75px;padding-bottom:5px}
.aid-head>img{width:65px;height:65px;object-fit:contain;flex:none}
.aid-shop{flex:1;min-width:0}
.aid-shop h1{font:bold 24px/27px Tahoma,Verdana,sans-serif;margin:0 0 2px}
.aid-shop p{margin:0;line-height:12px;font-size:10px}
.aid-licenses{font-size:7px;display:flex;flex-wrap:wrap;gap:3px 6px;margin-top:5px}
.aid-licenses span+span{border-left:1px solid #000;padding-left:6px}
.aid-number{min-width:128px;border-left:1px solid #000;padding-left:6px;align-self:stretch;display:flex;flex-direction:column;font-size:10px;line-height:11px}
.aid-number h2{font:bold 16px/18px Tahoma,Verdana,sans-serif;margin:0 0 2px}
.aid-number strong{color:#b40000}
.aid-qr{width:75px;flex:none;text-align:center;font-size:9px}
.aid-qr svg{display:block;width:64px;height:64px;margin:auto}
.aid-qr b{display:block;white-space:nowrap}
.aid-patient{display:flex;flex-wrap:wrap;gap:3px 10px;padding:5px 0;border-top:1px solid #000;border-bottom:1px solid #000;font-size:9px}
.aid-patient span>b{margin-right:5px}
.aid-lines{position:relative;min-height:310px;display:flex;flex-direction:column}
.aid-lines table{width:100%;border-collapse:collapse;font:10px/1.25 Tahoma,Verdana,Helvetica,sans-serif;position:relative;z-index:1}
.aid-lines th{font-weight:bold;font-size:10px;border-bottom:1px solid #000;padding:2px 0;text-align:left;background:white;color:#000;text-transform:none;letter-spacing:0}
.aid-lines td{border-bottom:1px dashed #bbb;padding:3px 0;vertical-align:top;color:#000;background:transparent;font-size:10px}
.aid-lines th:first-child{width:7%}
.aid-lines th:nth-child(2){width:25%}
.aid-lines th:nth-child(3){width:11%}
.aid-lines th:nth-child(4){width:14%}
.aid-lines th:nth-child(5){width:7%}
.aid-lines th:nth-child(n+6){width:9%}
.aid-lines .aid-n{text-align:right;padding-left:8px;white-space:nowrap}
.aid-watermark{display:flex;align-items:center;justify-content:center;flex:1;min-height:200px;pointer-events:none}
.aid-watermark img{height:125px;width:125px;object-fit:contain;opacity:.27}
.aid-foot{border-top:1px solid #000;border-bottom:1px solid #000;padding:4px 0;display:grid;grid-template-columns:44% 10% 18% 28%;min-height:70px}
.aid-foot>div+div{border-left:1px solid #000;padding-left:10px}
.aid-terms>b{font-size:12px}
.aid-terms>p{font:8px/12px Tahoma,Verdana,Helvetica,sans-serif;white-space:normal;margin:0}
.aid-sign{display:flex;justify-content:center;align-items:flex-end;font-size:12px}
.aid-subtotal p{margin:0 0 5px;display:flex;justify-content:space-between;gap:10px;padding-right:8px}
.aid-subtotal p:last-child{margin:0}
.aid-subtotal b{font-weight:400}
.aid-net{padding-right:30px}
.aid-net>p{display:flex;justify-content:space-between;gap:15px;font-size:9px;line-height:11px;margin:0}
.aid-net>p:first-child{font-size:16px;line-height:20px;margin-bottom:2px}
.aid-brand{display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:5px 0;font-weight:bold;font-size:10px}
.aid-brand img{width:13px;height:13px;object-fit:contain}
.bill-reference-print .amar-invoice{max-width:none}
.bill-reference-print{padding:0!important;border:0!important;box-shadow:none!important}
.invoice-header-dialog select,.invoice-header-dialog textarea{font:14px Manrope,Arial,sans-serif;padding:8px;border:1px solid #bec9db}
.invoice-header-dialog textarea{min-height:140px}
@media print{.amar-invoice{width:100%;max-width:none;padding:0;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.aid-lines{min-height:310px}
.aid-watermark img{opacity:.27}
.bill-reference-print{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
.aid-foot{break-inside:avoid}
.thermal .amar-invoice{width:100%;font-size:9px}
.thermal .aid-head{flex-wrap:wrap}
.thermal .aid-head>img{width:40px;height:40px}
.thermal .aid-shop h1{font-size:17px}
.thermal .aid-number{border-left:0;min-width:100%;font-size:10px;margin-top:5px}
.thermal .aid-qr{display:none}
.thermal .aid-lines{min-height:0}
.thermal .aid-lines table{font-size:8px}
.thermal .aid-lines th,.thermal .aid-lines td{font-size:8px;white-space:normal;padding:3px 1px}
.thermal .aid-lines th:nth-child(3),.thermal .aid-lines td:nth-child(3){display:none}
.thermal .aid-watermark{display:none}
.thermal .aid-foot{display:flex;flex-wrap:wrap;gap:7px}
.thermal .aid-terms{order:4;width:100%}
.thermal .aid-foot>div+div{border:0}
.thermal .aid-subtotal,.thermal .aid-net{flex:1}
.thermal .aid-net{padding:0}
.thermal .aid-brand{font-size:8px}
}


/* Composition scheme declaration (CGST Rule 5): bold capitals at the top of every bill of supply. */
.aid-composition{margin:0 0 4px;padding:2px 0;border-bottom:1px solid currentColor;text-align:center;font-weight:800;font-size:10px;letter-spacing:.02em;text-transform:uppercase}
.thermal .aid-composition{font-size:9px}
.aid-sign{flex-direction:column;align-items:center;justify-content:flex-end}
.aid-sign span{display:block;font-size:9px;font-weight:600;margin-bottom:14px}
