/* No hidden columns, clipped values or horizontal scrolling. */
table.erp-table-cards{display:block;width:100%!important;min-width:0!important;max-width:100%;border-collapse:separate;box-sizing:border-box}
table.erp-table-cards thead,table.erp-table-cards tbody,table.erp-table-cards tfoot{display:block;width:100%;min-width:0}
table.erp-table-cards tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr));gap:12px;padding:14px 16px;border-bottom:1px solid var(--hair2);min-width:0;max-width:100%;box-sizing:border-box}
table.erp-table-cards tr:last-child{border-bottom:0}
table.erp-table-cards [hidden]{display:none!important}
table.erp-table-cards td,table.erp-table-cards tbody th,table.erp-table-cards tfoot th{display:block;min-width:0!important;width:auto!important;max-width:100%;padding:0;border:0;white-space:normal!important;text-align:start!important;overflow-wrap:anywhere;box-sizing:border-box}
table.erp-table-cards td:first-child,table.erp-table-cards tbody th:first-child{grid-column:1/-1;font-weight:600}
table.erp-table-cards [data-erp-label]:not([data-erp-label=""])::before{content:attr(data-erp-label);display:block;color:var(--muted);font-family:var(--font-body);font-size:11px;line-height:1.5;font-weight:400;letter-spacing:0;text-transform:none;margin-bottom:4px;overflow-wrap:anywhere}
table.erp-table-cards [data-erp-help]:not([data-erp-help=""])::after{content:attr(data-erp-help);display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
table.erp-table-cards td *,table.erp-table-cards tbody th *{min-width:0!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}
table.erp-table-cards thead tr{display:flex;flex-wrap:wrap;border:0;padding:0;gap:6px}
table.erp-table-cards thead th{display:none;min-width:0!important;width:auto!important;white-space:normal!important}
/* Header actions stay live in the original DOM; handlers are never cloned. */
table.erp-table-cards thead th:has(button,input,select,a,[role="button"]),table.erp-table-cards thead th:is([tabindex],[aria-sort],[onclick],[data-sort]){display:block;padding:8px 12px}
table.erp-table-cards tfoot{border-top:1px solid var(--hair)}
