{
  "board": {
    "title": "약장 재고",
    "theme": "dark",
    "accent": "#c8553d",
    "skin": {
      "palette": {
        "paper": "#2b1f16",
        "ink": "#f1e6cf",
        "muted": "#b79f7c",
        "rule": "#6b4f33"
      },
      "frame": "plate",
      "radius": 2
    }
  },
  "statuses": {
    "enough": {
      "tone": "ok",
      "label": "충분"
    },
    "low": {
      "tone": "warn",
      "label": "발주"
    },
    "out": {
      "tone": "alarm",
      "label": "소진",
      "emphasis": "invert"
    }
  },
  "data": {
    "clinic": {
      "from": "clinic",
      "path": "/clinic/now",
      "time": "updatedAt",
      "fields": {
        "name": {},
        "date": {},
        "prepared": {
          "label": "오늘 조제",
          "unit": "첩"
        },
        "waiting": {
          "label": "대기 환자",
          "unit": "명"
        },
        "wait": {
          "label": "평균 대기",
          "unit": "분"
        }
      }
    },
    "drawers": {
      "from": "clinic",
      "path": "/clinic/drawers",
      "list": "/value",
      "key": "id",
      "time": "updatedAt",
      "fields": {
        "state": {
          "state": "raw"
        },
        "name": {},
        "use": {},
        "stock": {
          "unit": "g"
        },
        "full": {},
        "reorder": {}
      }
    },
    "usage": {
      "from": "clinic",
      "path": "/clinic/usage",
      "list": "/value",
      "key": "herb",
      "answerTime": "/updatedAt",
      "fields": {
        "grams": {
          "unit": "g"
        }
      }
    },
    "deliveries": {
      "from": "clinic",
      "path": "/clinic/deliveries",
      "list": "/value",
      "key": "id",
      "time": "updatedAt",
      "fields": {
        "herb": {},
        "note": {},
        "when": {}
      }
    }
  },
  "parts": {
    "title": {
      "as": "header",
      "of": "clinic",
      "title": "{{name}} · {{date}}",
      "kicker": "약장 재고판",
      "subtitle": "예시 데이터"
    },
    "drawer": {
      "as": "status-card",
      "each": "drawers",
      "title": "{{name}}",
      "subtitle": "{{use}}",
      "show": [
        "state"
      ],
      "meter": {
        "field": "stock",
        "max": "full",
        "form": "bar"
      },
      "highlight": "reorder"
    },
    "today": {
      "as": "stat-list",
      "of": "clinic",
      "title": "오늘",
      "show": [
        "prepared",
        "waiting",
        "wait"
      ]
    },
    "usage": {
      "as": "bar-list",
      "of": "usage",
      "title": "이번 주 많이 쓴 약재",
      "label": "herb",
      "value": "grams"
    },
    "coming": {
      "as": "list",
      "of": "deliveries",
      "title": "들어올 약재",
      "primary": "herb",
      "secondary": "note",
      "trailing": "when"
    }
  },
  "layout": {
    "kind": "canvas",
    "size": [
      1920,
      1160
    ],
    "place": {
      "title": [
        24,
        16,
        1872,
        84
      ],
      "drawer": {
        "flow": {
          "at": [
            24,
            112
          ],
          "cell": [
            223,
            136
          ],
          "gap": [
            12,
            10
          ],
          "columns": 8
        }
      },
      "today": [
        24,
        848,
        520,
        290
      ],
      "usage": [
        560,
        848,
        640,
        290
      ],
      "coming": [
        1216,
        848,
        680,
        290
      ]
    }
  }
}
