{
  "entityType": "customer",
  "title": "Customer Profile",
  "columns": 12,
  "styles": {
    "containerClass": "entity-container entity-p-4",
    "titleClass": "entity-title entity-mb-4",
    "sectionClass": "entity-section entity-card entity-mb-4",
    "rowClass": "entity-row entity-gap-3",
    "fieldClass": "field-container"
  },
  "sections": [
    {
      "id": "header",
      "title": "Customer Overview",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-primary entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "customerName",
              "label": "Customer Name",
              "dataKey": "name",
              "type": "text",
              "span": 6,
              "styles": {
                "valueClass": "entity-fs-4 entity-fw-bold entity-text-primary",
                "containerClass": "field-container"
              }
            },
            {
              "id": "customerType",
              "label": "Customer Type",
              "dataKey": "type",
              "type": "badge",
              "span": 3,
              "badgeMap": {
                "corporate": { "class": "field-badge badge-primary", "text": "Corporate" },
                "individual": { "class": "field-badge badge-success", "text": "Individual" },
                "sme": { "class": "field-badge badge-info", "text": "SME" },
                "startup": { "class": "field-badge badge-warning", "text": "Startup" }
              }
            },
            {
              "id": "status",
              "label": "Status",
              "dataKey": "status",
              "type": "badge",
              "span": 3,
              "badgeMap": {
                "active": { "class": "field-badge badge-success", "text": "Active" },
                "inactive": { "class": "field-badge badge-secondary", "text": "Inactive" },
                "suspended": { "class": "field-badge badge-danger", "text": "Suspended" },
                "pending": { "class": "field-badge badge-warning", "text": "Pending" }
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "industry",
              "label": "Industry",
              "dataKey": "industry",
              "type": "text",
              "span": 4,
              "styles": {
                "valueClass": "entity-text-capitalize"
              }
            },
            {
              "id": "customerId",
              "label": "Customer ID",
              "dataKey": "customerId",
              "type": "text",
              "span": 4,
              "styles": {
                "valueClass": "entity-font-monospace"
              }
            },
            {
              "id": "taxId",
              "label": "Tax ID",
              "dataKey": "taxId",
              "type": "text",
              "span": 4
            }
          ]
        }
      ]
    },
    {
      "id": "contactInfo",
      "title": "Contact Information",
      "columns": 8,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "primaryContact",
              "label": "Primary Contact",
              "dataKey": "contact.primary",
              "type": "object",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded entity-mb-3",
                "valueClass": "entity-mb-0"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "billingContact",
              "label": "Billing Contact",
              "dataKey": "contact.billing",
              "type": "object",
              "span": 6,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            },
            {
              "id": "technicalContact",
              "label": "Technical Contact",
              "dataKey": "contact.technical",
              "type": "object",
              "span": 6,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            }
          ]
        }
      ]
    },
    {
      "id": "financialInfo",
      "title": "Financial Information",
      "columns": 4,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-success entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "creditLimit",
              "label": "Credit Limit",
              "dataKey": "financial.creditLimit",
              "type": "currency",
              "span": 12,
              "styles": {
                "valueClass": "entity-fs-5 entity-fw-bold",
                "containerClass": "field-container entity-border-bottom entity-pb-2"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "currentBalance",
              "label": "Current Balance",
              "dataKey": "financial.currentBalance",
              "type": "currency",
              "span": 6
            },
            {
              "id": "availableCredit",
              "label": "Available Credit",
              "dataKey": "financial.availableCredit",
              "type": "currency",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "creditRating",
              "label": "Credit Rating",
              "dataKey": "financial.creditRating",
              "type": "badge",
              "span": 12,
              "badgeMap": {
                "A": { "class": "field-badge badge-success", "text": "A - Excellent" },
                "B": { "class": "field-badge badge-warning", "text": "B - Good" },
                "C": { "class": "field-badge badge-danger", "text": "C - Fair" },
                "D": { "class": "field-badge badge-dark", "text": "D - Poor" }
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "paymentTerms",
              "label": "Payment Terms",
              "dataKey": "financial.paymentTerms",
              "type": "text",
              "span": 12
            }
          ]
        }
      ]
    },
    {
      "id": "addresses",
      "title": "Addresses",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "headquarters",
              "label": "Headquarters",
              "dataKey": "addresses.headquarters",
              "type": "object",
              "span": 4,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            },
            {
              "id": "billingAddress",
              "label": "Billing Address",
              "dataKey": "addresses.billing",
              "type": "object",
              "span": 4,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            },
            {
              "id": "shippingAddress",
              "label": "Shipping Address",
              "dataKey": "addresses.shipping",
              "type": "object",
              "span": 4,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-mb-0"
              }
            }
          ]
        }
      ]
    },
    {
      "id": "subscription",
      "title": "Subscription Details",
      "columns": 6,
      "styles": {
        "containerClass": "entity-section entity-card entity-bg-info entity-bg-opacity-10",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "subscriptionPlan",
              "label": "Plan",
              "dataKey": "subscription.plan",
              "type": "text",
              "span": 12,
              "styles": {
                "valueClass": "entity-fs-5 entity-fw-bold",
                "containerClass": "field-container entity-mb-3"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "subscriptionStatus",
              "label": "Status",
              "dataKey": "subscription.status",
              "type": "badge",
              "span": 6
            },
            {
              "id": "monthlyRate",
              "label": "Monthly Rate",
              "dataKey": "subscription.monthlyRate",
              "type": "currency",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "startDate",
              "label": "Start Date",
              "dataKey": "subscription.startDate",
              "type": "date",
              "span": 6
            },
            {
              "id": "renewalDate",
              "label": "Renewal Date",
              "dataKey": "subscription.renewalDate",
              "type": "date",
              "span": 6
            }
          ]
        },
        {
          "fields": [
            {
              "id": "users",
              "label": "Number of Users",
              "dataKey": "subscription.users",
              "type": "number",
              "span": 12
            }
          ]
        }
      ]
    },
    {
      "id": "features",
      "title": "Subscription Features",
      "columns": 6,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "features",
              "label": "Included Features",
              "dataKey": "subscription.features",
              "type": "array",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": ""
              }
            }
          ]
        }
      ]
    },
    {
      "id": "metadata",
      "title": "Additional Information",
      "columns": 12,
      "styles": {
        "containerClass": "entity-section entity-card",
        "titleClass": "entity-section-title"
      },
      "rows": [
        {
          "fields": [
            {
              "id": "notes",
              "label": "Customer Notes",
              "dataKey": "notes",
              "type": "textarea",
              "span": 12,
              "styles": {
                "containerClass": "field-container entity-bg-light entity-p-3 entity-rounded",
                "valueClass": "entity-fst-italic entity-mb-0"
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "tags",
              "label": "Tags",
              "dataKey": "tags",
              "type": "array",
              "span": 12,
              "badgeMap": {
                "enterprise": { "class": "field-badge badge-primary", "text": "Enterprise" },
                "tech": { "class": "field-badge badge-info", "text": "Tech" },
                "high-value": { "class": "field-badge badge-success", "text": "High Value" },
                "long-term": { "class": "field-badge badge-warning", "text": "Long Term" },
                "default": { "class": "field-badge badge-secondary", "text": "Other" }
              }
            }
          ]
        },
        {
          "fields": [
            {
              "id": "createdAt",
              "label": "Created Date",
              "dataKey": "createdAt",
              "type": "datetime",
              "span": 4
            },
            {
              "id": "lastUpdated",
              "label": "Last Updated",
              "dataKey": "lastUpdated",
              "type": "datetime",
              "span": 4
            },
            {
              "id": "foundedDate",
              "label": "Founded Date",
              "dataKey": "foundedDate",
              "type": "date",
              "span": 4
            }
          ]
        }
      ]
    }
  ]
}