{% verbatim %}<script id="tpl-drawer-header" type="text/template"> <div class="hb-doc-card hb-doc-card-header-card"> <div class="hb-doc-card-topline"> <span class="hb-doc-card-title">{{entityAlias}}</span> <span class="hb-doc-card-status">{{statusBadge}}</span> </div> <div class="hb-doc-card-document">{{documentHash}}</div> <div class="hb-doc-card-meta-line">{{createdDate}} <span class="hb-doc-card-meta-dot">-</span> {{createdTime}}</div> </div></script><script id="tpl-drawer-footer" type="text/template"> <div class="hb-doc-card hb-doc-card-stack"> <div class="hb-doc-person"> <div class="hb-doc-avatar" style="{{avatarStyle}}">{{avatarContent}}</div> <div class="hb-doc-person-body"> <div class="hb-doc-person-name">{{createdBy}}</div> <div class="hb-doc-person-label">Created by</div> </div> </div> <div class="hb-doc-priority-row"> <span class="hb-doc-priority-label">Priority</span> {{priorityBadge}} </div> <div class="hb-doc-note"> {{noteHtml}} </div> </div></script><script id="tpl-drawer-action-bar" type="text/template"> <div class="hb-doc-action-bar"> <button type="button" class="btn btn-success trigger_approval_btn hb-doc-action-primary" data-entity="{{entity}}" data-entity-id="{{entityId}}" data-approval-id="{{approvalId}}">✓ Approve</button> {{attachmentBtn}} <a href="{{url}}" target="_blank" class="hb-doc-action-secondary">Full page ↗</a> </div></script><script id="tpl-drawer-kv-table" type="text/template"> <div class="hb-doc-card hb-doc-kv-card"> <table class="hb-doc-kv-table"> <thead> <tr> <th>Field</th> <th>Value</th> </tr> </thead> <tbody>{{rows}}</tbody> </table> </div></script><script id="tpl-drawer-kv-row" type="text/template"> <tr> <td class="hb-doc-kv-key">{{key}}</td> <td class="hb-doc-kv-value">{{value}}</td> </tr></script><script id="tpl-drawer-amount-card" type="text/template"> <div class="hb-doc-card hb-doc-card-summary"> <div class="hb-doc-card-label">{{label}}</div> <div class="hb-doc-card-value" style="color:{{color}};">{{amount}}</div> </div></script><style> .hb-doc-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; margin-bottom: 16px; } .hb-doc-card-header-card { padding: 14px 16px; background: linear-gradient(180deg, #fbfbfa 0%, #ffffff 100%); } .hb-doc-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; } .hb-doc-card-title { font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #6a6a6a; } .hb-doc-card-status { display: inline-flex; align-items: center; justify-content: flex-end; } .hb-doc-card-document { font-size: 18px; font-weight: 700; line-height: 1.2; color: #1a1a1a; word-break: break-word; } .hb-doc-card-meta-line { margin-top: 3px; font-size: 11px; color: #9a9a9a; } .hb-doc-card-meta-dot { margin: 0 4px; } .hb-doc-card-stack { padding: 0; } .hb-doc-person { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid #f0f0ee; } .hb-doc-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #2f6f96; background: #eaf4fb; background-size: cover; background-position: center; } .hb-doc-person-body { min-width: 0; } .hb-doc-person-name { font-size: 13px; font-weight: 700; color: #222; line-height: 1.2; } .hb-doc-person-label { font-size: 11px; color: #9a9a9a; margin-top: 2px; } .hb-doc-priority-row { padding: 12px 16px; border-bottom: 1px solid #f0f0ee; display: flex; justify-content: space-between; align-items: center; gap: 12px; } .hb-doc-priority-label { font-size: 12px; color: #6a6a6a; } .hb-doc-note { padding: 12px 16px; display: flex; align-items: flex-start; gap: 12px; } .hb-doc-action-bar { display: flex; gap: 8px; padding-top: 4px; } .hb-doc-action-primary { flex: 1; padding: 9px 12px; font-size: 13px; border-radius: 10px; border: none; } .hb-doc-action-secondary { flex: 1; padding: 9px 12px; font-size: 13px; text-align: center; border-radius: 10px; border: 1px solid #e5e5e5; color: #3a3a3a; text-decoration: none; display: flex; align-items: center; justify-content: center; background: #fff; } .hb-doc-kv-card { padding: 0; } .hb-doc-kv-table { width: 100%; border-collapse: collapse; } .hb-doc-kv-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; } .hb-doc-kv-table tbody td { border-bottom: 1px solid #f5f5f5; } .hb-doc-kv-table tbody tr:last-child td { border-bottom: none; } .hb-doc-kv-key { padding: 10px 16px; font-size: 12px; color: #6a6a6a; white-space: nowrap; width: 34%; } .hb-doc-kv-value { padding: 10px 16px; font-size: 12px; color: #222; word-break: break-word; } .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-value-negative { color: #c05350; } .hb-doc-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; } .hb-doc-metric-card { background: #fafaf8; border: 1px solid #f0f0ee; border-radius: 10px; padding: 10px 12px; } .hb-doc-metric-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 3px; } .hb-doc-metric-value { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.2; word-break: break-word; } .hb-doc-section-header { padding: 10px 16px; background: #fafaf8; border-bottom: 1px solid #f0f0ee; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6a6a6a; } .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 %}