{
  "version": 1,
  "id": "scn_showcase_baanmae",
  "name": "Baan Mae Kitchens",
  "icon": "fork.knife",
  "tint": "#B4532A",
  "settings": {
    "description": "Three family restaurants, Bangkok"
  },
  "assets": [],
  "scenes": [
    {
      "id": "scn_showcase_baanmae_today",
      "slug": "today",
      "name": "Today",
      "icon": "sun.max.fill",
      "tint": "#B4532A",
      "settings": {
        "description": "฿184,600 across the three branches yesterday. The rice order waits for a yes."
      },
      "assets": [
        {
          "id": "baanmae-today",
          "type": "daslab/webview",
          "name": "Yesterday at Baan Mae",
          "fields": {
            "html": "<style>.cover .hero { position: relative; margin: 0 0 18px; }\n.cover .hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }\n/* A scrim under the title so it reads over any photo. */\n.cover .hero figcaption { position: absolute; inset: auto 0 0 0; max-width: none; padding: 40px 18px 14px; border-radius: 0 0 14px 14px; background: linear-gradient(to bottom, transparent, rgb(0 0 0 / .72)); }\n.cover .hero h1 { margin: 0; color: #fff; }\n.cover .hero .kicker { margin: 0 0 4px; color: rgb(255 255 255 / .85); }\n.cover .hero .state { color: rgb(255 255 255 / .85); }\n.cover .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n/* Baht figures run long, so the first one gets the room on a phone. */\n.cover .stats.money { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); }</style>\n<main data-tile=\"own\" class=\"cover\">\n  <figure class=\"hero\"><img src=\"https://daslab.run/marketing/showcase/baanmae/thai-table.jpg\" alt=\"A table of Thai dishes: curry, crab fried rice, a whole fish, fresh herbs\">\n    <figcaption><p class=\"kicker\">Tills · three branches · Friday</p><h1>Yesterday at Baan Mae</h1></figcaption>\n  </figure>\n  <dl class=\"stats money\">\n    <div><dt>Sales</dt><dd>฿184,600</dd><dd>+1.9% on last Friday</dd></div>\n    <div><dt>Covers</dt><dd>612</dd><dd>Thonglor had 241</dd></div>\n    <div><dt>Massaman beef</dt><dd>418</dd><dd>Plates, the best this week</dd></div>\n  </dl>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 0,
            "size": "xlarge"
          }
        },
        {
          "id": "baanmae-branches",
          "type": "daslab/webview",
          "name": "Sales by branch",
          "fields": {
            "html": "<style>.branches { margin: 14px 0 6px; }\n.branches svg { display: block; width: 100%; height: auto; }\n.branches .name { font-size: 11px; font-weight: 600; fill: var(--text); }\n.branches .sub { font: 500 9px var(--brand-mono); fill: var(--text-secondary); text-anchor: end; }\n.branches .amount { fill: var(--accent); }\n.branches .tick { stroke: var(--text); stroke-width: 2; }\n.branches .val { font: 600 10px var(--brand-mono); fill: var(--text); }\n.foot { font-size: 13px; color: var(--text-secondary); }</style>\n<main data-tile=\"own\">\n  <p class=\"kicker\">Sales by branch · Friday · tills</p>\n  <h1>Thonglor sold the most</h1>\n  <figure class=\"branches\">\n    <svg viewBox=\"0 0 320 134\" role=\"img\" aria-label=\"Friday's sales: Ari 52,300 baht, Thonglor 78,900, Sathorn 53,400, each beside a tick at last Friday's\">\n      <text class=\"name\" x=\"0\" y=\"15\">Ari</text><text class=\"sub\" x=\"320\" y=\"15\">178 covers · +5.0%</text><rect class=\"amount\" x=\"0\" y=\"22\" width=\"145.3\" height=\"16\" rx=\"3\"/><line class=\"tick\" x1=\"138.3\" y1=\"19\" x2=\"138.3\" y2=\"41\"/><text class=\"val\" x=\"151.3\" y=\"34\">฿52,300</text><text class=\"name\" x=\"0\" y=\"59\">Thonglor</text><text class=\"sub\" x=\"320\" y=\"59\">241 covers · −2.8%</text><rect class=\"amount\" x=\"0\" y=\"66\" width=\"219.2\" height=\"16\" rx=\"3\"/><line class=\"tick\" x1=\"225.6\" y1=\"63\" x2=\"225.6\" y2=\"85\"/><text class=\"val\" x=\"231.6\" y=\"78\">฿78,900</text><text class=\"name\" x=\"0\" y=\"103\">Sathorn</text><text class=\"sub\" x=\"320\" y=\"103\">193 covers · +6.6%</text><rect class=\"amount\" x=\"0\" y=\"110\" width=\"148.3\" height=\"16\" rx=\"3\"/><line class=\"tick\" x1=\"139.2\" y1=\"107\" x2=\"139.2\" y2=\"129\"/><text class=\"val\" x=\"154.3\" y=\"122\">฿53,400</text>\n    </svg>\n  </figure>\n  <p class=\"foot\">Tick: last Friday · ฿184,600 across all three</p>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 1,
            "size": "large"
          }
        },
        {
          "id": "baanmae-orders",
          "type": "daslab/webview",
          "name": "Market orders",
          "fields": {
            "html": "<style>.orders, .sensors { margin-top: 14px; }\n.foot { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }</style>\n<main data-tile=\"own\">\n  <p class=\"kicker\">Market orders · LINE groups · sent 6:00am</p>\n  <h1>One order not read yet</h1>\n  <ul class=\"items orders\">\n    <li><h3>Seafood, Mahachai <span class=\"state ok\">Confirmed</span></h3><p>Prawns 14 kg, squid 9 kg · all three by 10am</p></li>\n    <li><h3>Greens, Pak Khlong Talat <span class=\"state ok\">Delivered</span></h3><p>Morning glory, holy basil, limes · 6:40am</p></li>\n    <li><h3>Meat, Khlong Toei <span class=\"state ok\">Confirmed</span></h3><p>Pork neck 18 kg, chicken thigh 24 kg · by 9am</p></li>\n    <li><h3>Coconut milk <span class=\"state warn\">Not read</span></h3><p>40 litres for all three · asked again at 7:30am</p></li>\n  </ul>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 2,
            "size": "large"
          }
        },
        {
          "id": "baanmae-rice",
          "type": "daslab/webview",
          "name": "Rice order",
          "fields": {
            "html": "<style>.chat { display: grid; gap: 8px; margin-top: 14px; }\n.chat .them, .chat .us { max-width: 90%; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 19px; }\n.chat .them { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-surface); border: 1px solid var(--border); border-top-left-radius: 4px; }\n.chat .them img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }\n/* Dashed: written, not sent. */\n.chat .us { justify-self: end; border: 1px dashed var(--accent); border-top-right-radius: 4px; }\n.chat b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }\n.ask { margin-top: 14px; font-size: 14px; }</style>\n<main data-tile=\"own\">\n  <p class=\"kicker\">Rice mill · LINE group · <span class=\"state warn\">Waiting</span></p>\n  <h1>40 sacks at ฿480</h1>\n  <div class=\"chat\">\n    <div class=\"them\">\n      <img src=\"https://daslab.run/marketing/showcase/baanmae/rice-sacks.jpg\" alt=\"Sacks of jasmine rice stacked at the mill\">\n      <p><b>Khun Chai, rice mill</b>For 40 sacks I can do ฿480 a sack, not ฿540. Tuesday, split across the three shops.</p>\n    </div>\n    <p class=\"us\"><b>Reply, drafted</b>Yes please: 40 sacks of hom mali, 15 kg, at ฿480. Tuesday morning.</p>\n  </div>\n  <p class=\"ask\"><span class=\"state warn\">Waits for your yes</span> · ฿19,200 · saves ฿2,400 · about two weeks of rice</p>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 3,
            "size": "large"
          }
        },
        {
          "id": "baanmae-dishes",
          "type": "daslab/table",
          "name": "Dishes this week",
          "fields": {
            "columns": [
              {
                "id": "dish",
                "name": "Dish",
                "type": "text"
              },
              {
                "id": "ari",
                "name": "Ari",
                "type": "number"
              },
              {
                "id": "thonglor",
                "name": "Thonglor",
                "type": "number"
              },
              {
                "id": "sathorn",
                "name": "Sathorn",
                "type": "number"
              },
              {
                "id": "total",
                "name": "Plates",
                "type": "number"
              }
            ],
            "rows": [
              {
                "dish": "Massaman beef",
                "ari": 131,
                "thonglor": 162,
                "sathorn": 125,
                "total": 418
              },
              {
                "dish": "Crab fried rice",
                "ari": 118,
                "thonglor": 149,
                "sathorn": 121,
                "total": 388
              },
              {
                "dish": "Pad kra pao, pork",
                "ari": 126,
                "thonglor": 131,
                "sathorn": 109,
                "total": 366
              },
              {
                "dish": "Tom yum goong",
                "ari": 97,
                "thonglor": 140,
                "sathorn": 102,
                "total": 339
              },
              {
                "dish": "Green curry, chicken",
                "ari": 104,
                "thonglor": 118,
                "sathorn": 96,
                "total": 318
              },
              {
                "dish": "Mango sticky rice",
                "ari": 88,
                "thonglor": 126,
                "sathorn": 90,
                "total": 304
              }
            ]
          },
          "layout": {
            "sortOrder": 4,
            "size": "large"
          }
        }
      ]
    },
    {
      "id": "scn_showcase_baanmae_cold",
      "slug": "cold",
      "name": "Cold rooms",
      "icon": "thermometer.snowflake",
      "tint": "#3F7FA6",
      "settings": {
        "description": "Thonglor ran warm overnight, 9°C at 3am. Two seafood trays wait for a yes."
      },
      "assets": [
        {
          "id": "baanmae-cold",
          "type": "daslab/webview",
          "name": "Cold again by 7am",
          "fields": {
            "html": "<style>.cover .hero { position: relative; margin: 0 0 18px; }\n.cover .hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }\n/* A scrim under the title so it reads over any photo. */\n.cover .hero figcaption { position: absolute; inset: auto 0 0 0; max-width: none; padding: 40px 18px 14px; border-radius: 0 0 14px 14px; background: linear-gradient(to bottom, transparent, rgb(0 0 0 / .72)); }\n.cover .hero h1 { margin: 0; color: #fff; }\n.cover .hero .kicker { margin: 0 0 4px; color: rgb(255 255 255 / .85); }\n.cover .hero .state { color: rgb(255 255 255 / .85); }\n.cover .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n/* Baht figures run long, so the first one gets the room on a phone. */\n.cover .stats.money { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); }</style>\n<main data-tile=\"own\" class=\"cover\">\n  <figure class=\"hero\"><img src=\"https://daslab.run/marketing/showcase/baanmae/cold-room.jpg\" alt=\"A restaurant cold room with steel shelves, covered trays and a small sensor on the wall\">\n    <figcaption><p class=\"kicker\">Sensors · three branches</p><h1>Cold again by 7am</h1></figcaption>\n  </figure>\n  <dl class=\"stats\">\n    <div><dt>Thonglor peak</dt><dd>9<small>°C</small></dd><dd>At 3am, door not shut</dd></div>\n    <div><dt>Over 5°C</dt><dd>4<small>h 15m</small></dd><dd><span class=\"state alert\">Seafood at risk</span></dd></div>\n    <div><dt>Thonglor now</dt><dd>3<small>°C</small></dd><dd><span class=\"state ok\">Back in range</span></dd></div>\n  </dl>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 0,
            "size": "xlarge"
          }
        },
        {
          "id": "baanmae-night",
          "type": "daslab/webview",
          "name": "Thonglor last night",
          "fields": {
            "html": "<style>.night { margin: 14px 0 6px; }\n.night svg { display: block; width: 100%; height: auto; }\n.night .over { fill: var(--alert); opacity: .08; }\n.night .tag { font: 500 9px var(--brand-mono); fill: var(--alert); }\n.night .limit { stroke: var(--alert); stroke-width: 1; stroke-dasharray: 4 3; opacity: .7; }\n.night .door { stroke: var(--text-dim); stroke-width: 1; stroke-dasharray: 2 3; }\n.night .note { font: 500 9px var(--brand-mono); fill: var(--text-secondary); }\n.night .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.night .dot { fill: var(--alert); }\n.night .val { font: 600 11px var(--brand-mono); fill: var(--alert); }\n.night .axis { font: 500 9px var(--brand-mono); fill: var(--text-dim); }\n.night .axis.mid { text-anchor: middle; }\n.night .axis.end { text-anchor: end; }\n.foot { font-size: 13px; color: var(--text-secondary); }</style>\n<main data-tile=\"own\">\n  <p class=\"kicker\">Thonglor cold room · last night · °C</p>\n  <h1>Thonglor ran warm</h1>\n  <figure class=\"night\">\n    <svg viewBox=\"0 0 320 150\" role=\"img\" aria-label=\"The cold room from 11pm to 7am: 3 degrees at closing, over 5 from 12:35am, 9 at 3am, back to 3 by 7am after the door was shut at 3:10am\">\n      <rect class=\"over\" x=\"24\" y=\"16\" width=\"284\" height=\"55\"/>\n      <text class=\"tag\" x=\"28\" y=\"27\">Over 5°C</text>\n      <line class=\"limit\" x1=\"24\" y1=\"71\" x2=\"308\" y2=\"71\"/>\n      <line class=\"door\" x1=\"171.9\" y1=\"16\" x2=\"171.9\" y2=\"126\"/>\n      <text class=\"note\" x=\"176\" y=\"118\">Door shut 3:10am</text>\n      <polyline class=\"line\" points=\"24.0,91.9 41.8,90.8 59.5,83.1 77.3,72.1 95.0,64.4 112.8,53.4 130.5,43.5 148.3,33.6 166.0,27.0 183.8,39.1 201.5,53.4 219.3,65.5 237.0,73.2 254.8,80.9 272.5,86.4 290.3,90.8 308.0,93.0\"/>\n      <circle class=\"dot\" cx=\"166\" cy=\"27\" r=\"4\"/>\n      <text class=\"val\" x=\"178\" y=\"27\">9°C at 3am</text>\n      <text class=\"axis end\" x=\"18\" y=\"19\">10°</text><text class=\"axis end\" x=\"18\" y=\"74\">5°</text><text class=\"axis end\" x=\"18\" y=\"129\">0°</text>\n      <text class=\"axis\" x=\"24\" y=\"144\">11pm</text><text class=\"axis mid\" x=\"95\" y=\"144\">1am</text><text class=\"axis mid\" x=\"166\" y=\"144\">3am</text><text class=\"axis mid\" x=\"237\" y=\"144\">5am</text><text class=\"axis end\" x=\"308\" y=\"144\">7am</text>\n    </svg>\n  </figure>\n  <p class=\"foot\">Over 5°C from 12:35am to 4:50am · back to 3°C by 7am</p>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 1,
            "size": "large"
          }
        },
        {
          "id": "baanmae-sensors",
          "type": "daslab/webview",
          "name": "Sensors",
          "fields": {
            "html": "<style>.orders, .sensors { margin-top: 14px; }\n.foot { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }</style>\n<main data-tile=\"own\">\n  <p class=\"kicker\">Sensors · every 5 minutes · <span class=\"state ok\">9 online</span></p>\n  <h1>All nine in range now</h1>\n  <ul class=\"items sensors\">\n    <li><h3>Ari <span class=\"state ok\">In range</span></h3><p>Cold room 2.8°C · fridge 3.6°C · freezer −18°C</p></li>\n    <li><h3>Thonglor <span class=\"state info\">Recovered</span></h3><p>Cold room 3.0°C, was 9°C at 3am · fridge 3.9°C · freezer −19°C</p></li>\n    <li><h3>Sathorn <span class=\"state ok\">In range</span></h3><p>Cold room 3.2°C · fridge 4.1°C · freezer −18°C</p></li>\n  </ul>\n  <p class=\"foot\">Over 5°C for 15 minutes: the branch manager hears on LINE</p>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 2,
            "size": "large"
          }
        },
        {
          "id": "baanmae-discard",
          "type": "daslab/webview",
          "name": "Two seafood trays",
          "fields": {
            "html": "<style>.trays { display: flex; gap: 14px; align-items: center; margin-top: 14px; }\n.trays img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; }\n.trays ul { list-style: none; margin: 0; padding: 0; }\n.trays li + li { margin-top: 10px; }\n.trays b { display: block; font-size: 15px; font-weight: 600; }\n.trays span { display: block; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }\n.why { margin-top: 12px; font-size: 13.5px; color: var(--text-secondary); }\n.ask { margin-top: 12px; font-size: 14px; }</style>\n<main data-tile=\"own\">\n  <p class=\"kicker\">Thonglor · food safety · <span class=\"state warn\">Waiting</span></p>\n  <h1>Discard two trays?</h1>\n  <div class=\"trays\">\n    <img src=\"https://daslab.run/marketing/showcase/baanmae/seafood-tray.jpg\" alt=\"A steel tray of cleaned river prawns on ice\">\n    <ul>\n      <li><b>River prawns, cleaned</b><span>3 kg · ฿2,700</span></li>\n      <li><b>Squid, scored</b><span>2.5 kg · ฿600</span></li>\n    </ul>\n  </div>\n  <p class=\"why\">Over 5°C for 4 hours 15 minutes, past the 4 hour limit. A yes logs the loss and orders the same from the seafood group, there by 11am.</p>\n  <p class=\"ask\"><span class=\"state warn\">Waits for your yes</span> · ฿3,300 · Khun Nok has set them aside</p>\n</main>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 3,
            "size": "large"
          }
        },
        {
          "id": "baanmae-incident",
          "type": "daslab/note",
          "name": "What happened at Thonglor",
          "fields": {
            "content": "**Saturday, 7:20am.** Thonglor's cold room ran warm last night.\n\n- **11:30pm** Closing. The room was at 3.1°C.\n- **11:50pm** It started to climb. A crate of limes had kept the door from shutting.\n- **12:35am** Over 5°C.\n- **3:00am** 9°C, the highest.\n- **3:10am** The night guard found the door open on his round and shut it.\n- **4:50am** Back under 5°C.\n- **7:00am** 3°C.\n\nThe two trays of prepared seafood, river prawns and squid for tonight's tom yum, were over 5°C for 4 hours 15 minutes. That is past the 4 hour limit, so they should not be served. Discarding them and ordering ฿3,300 of the same from the seafood group waits for your yes. Khun Nok checked the rest at 7am: vegetables, sauces and sealed stock, all fine.\n\nNobody heard about it overnight. From tonight, a room over 5°C for 15 minutes goes to that branch's LINE group, for its manager."
          },
          "layout": {
            "sortOrder": 4,
            "size": "large"
          }
        }
      ]
    },
    {
      "id": "scn_showcase_baanmae_suppliers",
      "slug": "suppliers",
      "name": "Suppliers",
      "icon": "shippingbox.fill",
      "tint": "#8C6A3F",
      "settings": {
        "description": "Five market suppliers, one LINE group each. Orders go out at 6am."
      },
      "assets": []
    },
    {
      "id": "scn_showcase_baanmae_menu",
      "slug": "menu",
      "name": "Menu",
      "icon": "menucard.fill",
      "tint": "#C27C2C",
      "settings": {
        "description": "62 dishes at all three. Massaman beef is the best this week, 418 plates."
      },
      "assets": []
    },
    {
      "id": "scn_showcase_baanmae_staff",
      "slug": "staff",
      "name": "Staff",
      "icon": "person.3.fill",
      "tint": "#5E8C4A",
      "settings": {
        "description": "41 people at Ari, Thonglor and Sathorn. Each branch's rota goes to its LINE group."
      },
      "assets": []
    }
  ]
}
