.order-lab-only{margin:16px 0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px 22px;box-shadow:0 10px 28px rgba(15,23,42,.035)}
.order-lab-only label{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:18px;margin:0}
.order-lab-only label>span{font-size:12px;font-weight:800;letter-spacing:.035em;color:#18181b}
.order-lab-only input{width:100%;height:44px;border:0;border-bottom:1px solid #d2d2d7;border-radius:0;background:transparent;padding:0 2px;font-size:14px;outline:none}
.order-lab-only input:focus{border-bottom-color:#0071e3;box-shadow:0 1px 0 #0071e3}

.a5-order.apple-a5{box-sizing:border-box;width:148mm;min-height:210mm;height:210mm;padding:8mm;margin:0 auto;background:#fff;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;display:grid;grid-template-rows:59mm 6mm 129mm;gap:0;overflow:hidden;box-shadow:0 28px 80px rgba(15,23,42,.16)}
.apple-a5 *{box-sizing:border-box}
.apple-a5 header{height:auto;min-height:0;padding:0;gap:0;background:transparent;color:#1d1d1f}
.apple-a5 label,.apple-section-label span{display:block;margin:0 0 1.3mm;color:#6e6e73;font-size:5.4px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}
.apple-customer-copy,.apple-lab-copy{min-width:0;overflow:hidden}
.apple-invoice-head,.apple-lab-head{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:.22mm solid #1d1d1f;padding-bottom:2.1mm}
.apple-brand{display:flex;align-items:center;gap:2.2mm}
.apple-brand img{display:block;width:9.8mm;height:9.8mm;border-radius:2.3mm;object-fit:contain}
.apple-brand>span{font-size:7px;font-weight:800;line-height:1.18;letter-spacing:.07em}
.apple-brand small{font-size:4.4px;font-weight:600;color:#86868b;letter-spacing:.16em}
.apple-document-title{text-align:right;line-height:1}
.apple-document-title>span{display:block;margin-bottom:1mm;color:#86868b;font-size:5px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.apple-document-title h1,.apple-document-title h2{margin:0 0 1.2mm;font-size:15px;line-height:.9;letter-spacing:-.045em;font-weight:720;color:#1d1d1f}
.apple-document-title h2{font-size:13px}
.apple-document-title>b{font-size:6.2px;font-weight:650;letter-spacing:.03em}
.apple-bill-row{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(0,1fr);gap:8mm;padding:2mm 0 1.7mm}
.apple-bill-to,.apple-lab-customer{display:flex;min-width:0;flex-direction:column;align-items:flex-start}
.apple-bill-to strong,.apple-lab-customer strong{font-size:8.2px;line-height:1.1;letter-spacing:-.015em}
.apple-bill-to span,.apple-lab-customer span{max-width:100%;font-size:5.7px;line-height:1.34;color:#424245;white-space:normal}
.apple-bill-to small{margin-top:.7mm;font-size:4.7px;color:#86868b}
.apple-summary,.apple-lab-identity dl{display:grid;grid-template-columns:1fr 1fr;gap:.9mm 4mm;margin:0;align-content:start}
.apple-summary>div,.apple-lab-identity dl>div{display:flex;justify-content:space-between;gap:2mm;border-bottom:.14mm solid #e5e5e7;padding-bottom:.6mm;min-width:0}
.apple-summary dt,.apple-lab-identity dt{font-size:4.7px;color:#86868b}
.apple-summary dd,.apple-lab-identity dd{min-width:0;margin:0;font-size:5.2px;font-weight:700;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.apple-a5 table{width:100%;border:0;border-collapse:collapse;table-layout:fixed;margin:0;background:transparent;white-space:normal}
.apple-a5 table th,.apple-a5 table td{border:0;border-radius:0;background:transparent;color:#1d1d1f;box-shadow:none}
.apple-invoice-items thead{border-top:.18mm solid #d2d2d7;border-bottom:.18mm solid #d2d2d7}
.apple-invoice-items th{padding:1mm .7mm;font-size:4.6px;letter-spacing:.08em;text-transform:uppercase;text-align:left;color:#6e6e73;font-weight:750}
.apple-invoice-items th:nth-child(1){width:38%}.apple-invoice-items th:nth-child(2){width:40%}.apple-invoice-items th:nth-child(3){width:8%;text-align:center}.apple-invoice-items th:nth-child(4){width:14%;text-align:right}
.apple-invoice-items td{padding:.85mm .7mm;border-bottom:.12mm solid #ececee;font-size:5px;line-height:1.12;vertical-align:top}
.apple-invoice-items td b{display:inline;margin-right:1.2mm;font-size:5.2px}
.apple-invoice-items td span{color:#6e6e73}.apple-invoice-items td:nth-child(3){text-align:center}.apple-invoice-items td:nth-child(4){text-align:right;font-weight:700}
.apple-payment-row{display:grid;grid-template-columns:1fr 42mm;gap:5mm;padding-top:1.4mm}
.apple-payment-row p{margin:0;font-size:5.2px;color:#424245}
.apple-payment-row dl{margin:0}.apple-payment-row dl>div{display:flex;justify-content:space-between;gap:3mm;padding:.4mm 0;font-size:5.3px}.apple-payment-row dt{color:#6e6e73}.apple-payment-row dd{margin:0;font-weight:700}
.apple-payment-row .apple-balance{margin-top:.4mm;padding-top:.9mm;border-top:.18mm solid #1d1d1f;font-size:6.2px}.apple-payment-row .apple-balance dt,.apple-payment-row .apple-balance dd{color:#1d1d1f;font-weight:800}
.apple-tear-line{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:2mm;color:#86868b}
.apple-tear-line span,.apple-tear-line em{display:block;border-top:.18mm dashed #b8b8bd}.apple-tear-line b{font-size:6px;font-weight:400}
.apple-lab-head{padding-bottom:1.8mm}
.apple-lab-identity{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.4fr);gap:7mm;padding:1.8mm 0 2mm}
.apple-lab-customer strong{font-size:7.4px}.apple-lab-customer span{font-size:5.3px}
.apple-lab-identity dl{grid-template-columns:1fr 1fr}.apple-lab-identity dl>div:last-child:nth-child(odd){grid-column:1 / -1}
.apple-lab-section{margin:0 0 2.2mm}
.apple-section-label{display:flex;align-items:center;gap:2mm;margin-bottom:.6mm}
.apple-section-label:after{content:"";height:.16mm;background:#1d1d1f;flex:1}.apple-section-label span{margin:0;color:#1d1d1f}
.apple-lab-items thead,.apple-rx-table thead{border-bottom:.18mm solid #a1a1a6}
.apple-lab-items th,.apple-lab-items td{padding:.8mm .7mm;border-bottom:.12mm solid #dedee1;font-size:5.1px;line-height:1.16;text-align:left;vertical-align:middle}
.apple-lab-items thead th{padding:.65mm .7mm;color:#86868b;font-size:4.4px;text-transform:uppercase;letter-spacing:.07em}
.apple-lab-items thead th:nth-child(1){width:14%}.apple-lab-items thead th:nth-child(2){width:38%}.apple-lab-items thead th:nth-child(3){width:8%;text-align:center}.apple-lab-items thead th:nth-child(4){width:40%}
.apple-lab-items tbody th{font-weight:750}.apple-lab-items tbody td:nth-child(3){text-align:center}
.apple-prescription{margin-bottom:2mm}
.apple-rx-table{border-bottom:.18mm solid #a1a1a6}
.apple-rx-table th,.apple-rx-table td{padding:.7mm .25mm;border-bottom:.12mm solid #e5e5e7;border-right:.12mm solid #ececee;text-align:center;font-size:4.75px;line-height:1.1}
.apple-rx-table tr>*:last-child{border-right:0}.apple-rx-table thead tr:first-child th{font-size:4.6px;letter-spacing:.07em;text-transform:uppercase;color:#424245}.apple-rx-table thead tr:nth-child(2) th{font-size:4px;color:#86868b;font-weight:700}.apple-rx-table thead th:first-child{width:12%}.apple-rx-table tbody th{text-align:left;padding-left:.7mm;font-size:4.6px}.apple-rx-table tbody td{font-weight:700}
.apple-measures{display:grid;grid-template-columns:repeat(3,1fr);gap:0 3mm;border-bottom:.18mm solid #d2d2d7}
.apple-measures>div{display:grid;grid-template-columns:1fr auto auto;gap:1.5mm;align-items:center;padding:1mm .5mm;border-bottom:.12mm solid #ececee;min-width:0}
.apple-measures span{font-size:4.45px;color:#6e6e73;font-weight:700}.apple-measures b{font-size:4.65px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apple-notes{display:grid;grid-template-columns:1fr 1fr;gap:4mm;margin-bottom:1.7mm}
.apple-notes>div{min-height:10mm;border-bottom:.18mm solid #b8b8bd;padding:.4mm 0}.apple-notes p{margin:0;font-size:5.1px;line-height:1.35;white-space:pre-wrap}.apple-notes label{margin-bottom:.8mm}
.apple-progress{margin-bottom:1.5mm}.apple-progress>label{margin-bottom:.8mm}.apple-progress>div{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto 1fr;gap:1.2mm;align-items:center;border-top:.16mm solid #d2d2d7;border-bottom:.16mm solid #d2d2d7;padding:1.2mm .3mm}.apple-progress span{font-size:4.6px;font-weight:700;white-space:nowrap}.apple-progress i{font-size:4.2px;color:#86868b;font-style:normal;white-space:nowrap}
.apple-lab-footer{position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:5mm;margin:0;padding:1mm 0 0;border-top:.14mm solid #d2d2d7;background:transparent;color:#86868b;font-size:4.4px;line-height:1.2;letter-spacing:0}.apple-lab-footer>span{max-width:78mm}.apple-lab-footer>b{color:#1d1d1f;font-size:4.7px}.apple-lab-footer>div{display:flex;align-items:flex-end;gap:1.4mm;text-align:right}.apple-lab-footer img{display:block;width:8mm;height:8mm}.apple-lab-footer>div>span{max-width:18mm}
.apple-a5 .receipt-cancelled{position:absolute;z-index:3;top:44%;left:27%;transform:rotate(-13deg);padding:2mm 5mm;border:.8mm solid #d70015;color:#d70015;font-size:17px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;opacity:.72}

@media(max-width:760px){.order-lab-only label{grid-template-columns:1fr;gap:8px}.a5-order.apple-a5{transform-origin:top left}}
@media print{
  @page{size:A5 portrait;margin:5mm}
  .a5-order.apple-a5{width:138mm!important;height:200mm!important;min-height:200mm!important;margin:0!important;padding:6mm!important;grid-template-rows:57mm 5mm 126mm!important;box-shadow:none!important;overflow:hidden!important;page-break-after:avoid!important}
  .apple-a5{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
