{% verbatim %}<script id="tpl-drawer-sales-order" type="text/template"> <div class="hb-doc-card hb-doc-card-summary"> <div class="hb-doc-card-label">Order Total</div> <div class="hb-doc-card-value hb-doc-card-value-positive">{{amount}}</div> </div> <div class="hb-doc-card hb-doc-card-table"> <div class="hb-doc-card-header"> <span class="hb-doc-card-title">Line Items</span> <span class="hb-doc-card-meta">{{lineCountLabel}}</span> </div> <div class="hb-doc-table-wrap"> <table class="hb-doc-table"> <thead> <tr> <th>Item</th> <th class="text-right">Qty</th> <th class="text-right">Rate</th> <th class="text-right">Amount</th> </tr> </thead> <tbody>{{linesHtml}}</tbody> </table> </div> </div></script><script id="tpl-drawer-sales-order-row" type="text/template"> <tr> <td>{{itemName}}</td> <td class="text-right">{{quantity}}</td> <td class="text-right">{{rate}}</td> <td class="text-right">{{amount}}</td> </tr></script><style> .hb-doc-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; margin-bottom: 16px; } .hb-doc-card-summary { padding: 14px 16px; } .hb-doc-card-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 4px; } .hb-doc-card-value { font-size: 22px; font-weight: 700; line-height: 1.1; color: #1a1a1a; } .hb-doc-card-value-positive { color: #4baa6b; } .hb-doc-card-table { padding: 0; } .hb-doc-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid #f0f0ee; } .hb-doc-card-title { font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #6a6a6a; } .hb-doc-card-meta { font-size: 10px; color: #9a9a9a; text-align: right; } .hb-doc-table-wrap { overflow: auto; } .hb-doc-table { width: 100%; border-collapse: collapse; } .hb-doc-table thead th { padding: 10px 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9a9a; background: #fafaf8; border-bottom: 1px solid #f0f0ee; white-space: nowrap; } .hb-doc-table tbody td { padding: 10px 16px; border-bottom: 1px solid #f5f5f5; font-size: 12px; color: #3a3a3a; vertical-align: middle; } .hb-doc-table tbody tr:last-child td { border-bottom: none; } .hb-doc-table .text-right { text-align: right; white-space: nowrap; }</style>{% endverbatim %}