{
  "analysis_date": "2025-11-02",
  "source_file": "/home/centralgoparts/public_html/profit-old-full.html",
  "page_url": "https://ops.go-parts.com/profitability/indexImproved",
  "collapsed_row_structure": {
    "layout_type": "card-based",
    "main_container": "order-item-card",
    "summary_container": "order-summary",
    "sections": [
      {
        "position": 1,
        "name": "Order / Date",
        "css_class": "summary-item order-info",
        "fields": [
          {
            "type": "label",
            "text": "Order / Date"
          },
          {
            "type": "value",
            "content": "Order number with optional icons"
          },
          {
            "type": "subvalue",
            "content": "Date"
          }
        ]
      },
      {
        "position": 2,
        "name": "Product / Category",
        "css_class": "summary-item",
        "fields": [
          {
            "type": "label",
            "text": "Product / Category"
          },
          {
            "type": "value",
            "content": "Part number"
          },
          {
            "type": "subvalue",
            "content": "Category name"
          }
        ]
      },
      {
        "position": 3,
        "name": "Supplier",
        "css_class": "summary-item",
        "fields": [
          {
            "type": "label",
            "text": "Supplier"
          },
          {
            "type": "value",
            "content": "Supplier name"
          }
        ]
      },
      {
        "position": 4,
        "name": "Channel / Customer",
        "css_class": "summary-item",
        "fields": [
          {
            "type": "label",
            "text": "Channel / Customer"
          },
          {
            "type": "value",
            "content": "Sales channel"
          },
          {
            "type": "subvalue",
            "content": "Customer name"
          }
        ]
      },
      {
        "position": 5,
        "name": "Financial Summary",
        "css_class": "summary-item financial",
        "container_class": "financial-summary",
        "metrics": [
          {
            "position": 1,
            "label": "Sale",
            "value_type": "currency",
            "shows_dual_values": false,
            "example": "$332.95"
          },
          {
            "position": 2,
            "label": "Cost",
            "value_type": "currency",
            "shows_dual_values": false,
            "example": "$309.14"
          },
          {
            "position": 3,
            "label": "COGS",
            "value_type": "currency",
            "shows_dual_values": false,
            "example": "$396.51"
          },
          {
            "position": 4,
            "label": "COGS %",
            "value_type": "percentage",
            "shows_dual_values": false,
            "example": "119.1%"
          },
          {
            "position": 5,
            "label": "Gross Margin",
            "value_type": "currency",
            "shows_dual_values": false,
            "has_color_coding": true,
            "example": "$56.71",
            "color_rules": {
              "negative": "#dc3545",
              "positive": "default"
            }
          },
          {
            "position": 6,
            "label": "Gross Profit",
            "value_type": "percentage",
            "shows_dual_values": false,
            "has_color_coding": true,
            "example": "-17.0%",
            "color_rules": {
              "negative": "#dc3545",
              "positive": "default"
            }
          }
        ]
      },
      {
        "position": 6,
        "name": "Badges",
        "css_class": "summary-item",
        "alignment": "right",
        "content": "Status/type badges"
      }
    ]
  },
  "critical_findings": {
    "shows_dual_values": false,
    "shows_standard_and_calculated": false,
    "number_of_financial_metrics": 6,
    "financial_metrics_layout": "grid",
    "single_value_per_metric": true
  },
  "example_order": {
    "order_id": "230697",
    "order_number": "#112-6957509-5203444",
    "date": "Aug 31, 2025",
    "product": "MB1095120",
    "category": "Bumper Trim",
    "supplier": "USAuto TX",
    "channel": "Amazon",
    "customer": "REBECCA BARRAGAN",
    "financial_metrics": {
      "sale": "$332.95",
      "cost": "$309.14",
      "cogs": "$396.51",
      "cogs_percent": "119.1%",
      "gross_margin": "$56.71",
      "gross_profit": "-17.0%"
    }
  },
  "html_structure": {
    "collapsed_row_pattern": "order-item-card > order-summary > order-summary-grid > summary-item[s]",
    "financial_section_pattern": "summary-item.financial > financial-summary > financial-metric[s]",
    "financial_metric_pattern": "financial-metric > (label + value)"
  }
}
