{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "style": {
    "display": "=if(toString(@currentField) == '', 'none', 'flex')",
    "align-items": "center"
  },
  "attributes": {
    "class": "=if([$ReviewStatus] == 'Approved', '', if(@currentField < @now, 'sp-field-severity--blocked', if(@currentField <= @now + 604800000, 'sp-field-severity--warning', '')))"
  },
  "children": [
    {
      "elmType": "span",
      "style": { "padding": "0 6px" },
      "attributes": {
        "iconName": "=if([$ReviewStatus] == 'Approved', 'CheckMark', if(@currentField < @now, 'Error', if(@currentField <= @now + 604800000, 'Clock', 'Calendar')))"
      }
    },
    {
      "elmType": "span",
      "style": { "padding-right": "6px", "white-space": "nowrap" },
      "txtContent": "=toLocaleDateString(@currentField) + if([$ReviewStatus] != 'Approved' && @currentField < @now, ' (overdue)', '')"
    }
  ]
}
