{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "ShiftManagement",
      "name": "Screen/Shift Management",
      "reusable": true,
      "width": 600,
      "height": 800,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "ShiftHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "ShiftHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "ShiftBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "ShiftBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "ShiftTitle", "fill": "$text-primary", "content": "Quản lý ca làm việc", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "700"}
            ]},
            {"type": "frame", "id": "ShiftHelpBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "ShiftHelpIcon", "width": 20, "height": 20, "iconFontName": "help-circle", "iconFontFamily": "lucide", "fill": "$text-secondary"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "ShiftContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {
              "type": "frame",
              "id": "CashierInfo",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "padding": 20,
              "gap": 16,
              "alignItems": "center",
              "children": [
                {"type": "frame", "id": "CashierAvatar", "width": 56, "height": 56, "fill": "#22C55E20", "cornerRadius": 100, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "text", "id": "CashierAvatarText", "fill": "#22C55E", "content": "NA", "fontFamily": "Roboto", "fontSize": 18, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "CashierDetails", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                  {"type": "text", "id": "CashierName", "fill": "$text-primary", "content": "Nguyễn Văn A", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"},
                  {"type": "frame", "id": "CashierMeta", "gap": 16, "children": [
                    {"type": "frame", "id": "CashierStart", "gap": 6, "alignItems": "center", "children": [
                      {"type": "icon_font", "id": "CashierStartIcon", "width": 14, "height": 14, "iconFontName": "clock", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                      {"type": "text", "id": "CashierStartText", "fill": "$text-tertiary", "content": "08:00 AM", "fontFamily": "Roboto", "fontSize": 13}
                    ]},
                    {"type": "frame", "id": "CashierDuration", "gap": 6, "alignItems": "center", "children": [
                      {"type": "icon_font", "id": "CashierDurationIcon", "width": 14, "height": 14, "iconFontName": "timer", "iconFontFamily": "lucide", "fill": "$text-tertiary"},
                      {"type": "text", "id": "CashierDurationText", "fill": "$text-tertiary", "content": "4h 30m", "fontFamily": "Roboto", "fontSize": 13}
                    ]}
                  ]}
                ]},
                {"type": "frame", "id": "ShiftStatus", "fill": "#22C55E20", "cornerRadius": 8, "padding": [6, 12], "children": [
                  {"type": "text", "id": "ShiftStatusText", "fill": "#22C55E", "content": "Đang mở", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "600"}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "CashCount",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "CashCountHeader", "width": "fill_container", "padding": [16, 20], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 10, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "CashCountIcon", "width": 20, "height": 20, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                  {"type": "text", "id": "CashCountTitle", "fill": "$text-primary", "content": "Kiểm kê tiền", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "CashCountBody", "width": "fill_container", "padding": 20, "layout": "vertical", "gap": 12, "children": [
                  {"type": "frame", "id": "CashRow1", "width": "fill_container", "justifyContent": "space_between", "children": [
                    {"type": "text", "id": "CashRow1Label", "fill": "$text-secondary", "content": "Tiền đầu ca", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "CashRow1Value", "fill": "$text-primary", "content": "2,000,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "CashRow2", "width": "fill_container", "justifyContent": "space_between", "children": [
                    {"type": "text", "id": "CashRow2Label", "fill": "$text-secondary", "content": "Thu trong ca", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "CashRow2Value", "fill": "#22C55E", "content": "+5,450,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "CashRow3", "width": "fill_container", "justifyContent": "space_between", "children": [
                    {"type": "text", "id": "CashRow3Label", "fill": "$text-secondary", "content": "Chi trong ca", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "CashRow3Value", "fill": "#EF4444", "content": "-150,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
                  ]},
                  {"type": "frame", "id": "CashDivider", "width": "fill_container", "height": 1, "fill": "$border-subtle"},
                  {"type": "frame", "id": "CashRow4", "width": "fill_container", "justifyContent": "space_between", "children": [
                    {"type": "text", "id": "CashRow4Label", "fill": "$text-primary", "content": "Kỳ vọng", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                    {"type": "text", "id": "CashRow4Value", "fill": "$text-primary", "content": "7,300,000₫", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "700"}
                  ]},
                  {"type": "frame", "id": "CashActual", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                    {"type": "text", "id": "CashActualLabel", "fill": "$text-secondary", "content": "Thực tế", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "frame", "id": "CashActualInput", "width": 180, "height": 44, "fill": "$bg-surface", "cornerRadius": 10, "stroke": {"thickness": 1, "fill": "$border-default"}, "padding": [0, 14], "justifyContent": "end", "alignItems": "center", "children": [
                      {"type": "text", "id": "CashActualValue", "fill": "$text-primary", "content": "7,300,000", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "500"}
                    ]}
                  ]},
                  {"type": "frame", "id": "CashDiff", "width": "fill_container", "fill": "#22C55E15", "cornerRadius": 10, "padding": 12, "justifyContent": "space_between", "children": [
                    {"type": "text", "id": "CashDiffLabel", "fill": "$text-secondary", "content": "Chênh lệch", "fontFamily": "Roboto", "fontSize": 14},
                    {"type": "text", "id": "CashDiffValue", "fill": "#22C55E", "content": "0₫", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "700"}
                  ]}
                ]}
              ]
            },
            {
              "type": "frame",
              "id": "ShiftStats",
              "width": "fill_container",
              "fill": "$bg-elevated",
              "cornerRadius": 16,
              "layout": "vertical",
              "children": [
                {"type": "frame", "id": "ShiftStatsHeader", "width": "fill_container", "padding": [16, 20], "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]}, "gap": 10, "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "ShiftStatsIcon", "width": 20, "height": 20, "iconFontName": "bar-chart-3", "iconFontFamily": "lucide", "fill": "#8B5CF6"},
                  {"type": "text", "id": "ShiftStatsTitle", "fill": "$text-primary", "content": "Thống kê ca", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
                ]},
                {"type": "frame", "id": "ShiftStatsBody", "width": "fill_container", "padding": 20, "gap": 20, "children": [
                  {"type": "frame", "id": "StatOrders", "width": "fill_container", "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
                    {"type": "text", "id": "StatOrdersValue", "fill": "$text-primary", "content": "47", "fontFamily": "Roboto", "fontSize": 28, "fontWeight": "700"},
                    {"type": "text", "id": "StatOrdersLabel", "fill": "$text-tertiary", "content": "Hóa đơn", "fontFamily": "Roboto", "fontSize": 12}
                  ]},
                  {"type": "frame", "id": "StatVoid", "width": "fill_container", "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
                    {"type": "text", "id": "StatVoidValue", "fill": "#EF4444", "content": "2", "fontFamily": "Roboto", "fontSize": 28, "fontWeight": "700"},
                    {"type": "text", "id": "StatVoidLabel", "fill": "$text-tertiary", "content": "Hủy", "fontFamily": "Roboto", "fontSize": 12}
                  ]},
                  {"type": "frame", "id": "StatRefund", "width": "fill_container", "layout": "vertical", "gap": 4, "alignItems": "center", "children": [
                    {"type": "text", "id": "StatRefundValue", "fill": "#F59E0B", "content": "1", "fontFamily": "Roboto", "fontSize": 28, "fontWeight": "700"},
                    {"type": "text", "id": "StatRefundLabel", "fill": "$text-tertiary", "content": "Hoàn", "fontFamily": "Roboto", "fontSize": 12}
                  ]}
                ]},
                {"type": "frame", "id": "PaymentBreakdown", "width": "fill_container", "padding": [0, 20, 20, 20], "gap": 12, "children": [
                  {"type": "frame", "id": "PayCash", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                    {"type": "frame", "id": "PayCashRow", "width": "fill_container", "justifyContent": "space_between", "children": [
                      {"type": "text", "id": "PayCashLabel", "fill": "$text-tertiary", "content": "Tiền mặt", "fontFamily": "Roboto", "fontSize": 12},
                      {"type": "text", "id": "PayCashPercent", "fill": "$text-secondary", "content": "60%", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                    ]},
                    {"type": "frame", "id": "PayCashBar", "width": "fill_container", "height": 6, "fill": "$bg-interactive", "cornerRadius": 3, "children": [
                      {"type": "frame", "id": "PayCashFill", "width": "60%", "height": 6, "fill": "#22C55E", "cornerRadius": 3}
                    ]}
                  ]},
                  {"type": "frame", "id": "PayQR", "width": "fill_container", "layout": "vertical", "gap": 6, "children": [
                    {"type": "frame", "id": "PayQRRow", "width": "fill_container", "justifyContent": "space_between", "children": [
                      {"type": "text", "id": "PayQRLabel", "fill": "$text-tertiary", "content": "QR / Chuyển khoản", "fontFamily": "Roboto", "fontSize": 12},
                      {"type": "text", "id": "PayQRPercent", "fill": "$text-secondary", "content": "40%", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "500"}
                    ]},
                    {"type": "frame", "id": "PayQRBar", "width": "fill_container", "height": 6, "fill": "$bg-interactive", "cornerRadius": 3, "children": [
                      {"type": "frame", "id": "PayQRFill", "width": "40%", "height": 6, "fill": "#3B82F6", "cornerRadius": 3}
                    ]}
                  ]}
                ]}
              ]
            }
          ]
        },
        {
          "type": "frame",
          "id": "ShiftFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "children": [
            {"type": "frame", "id": "CloseShiftBtn", "width": "fill_container", "height": 52, "fill": "#EF4444", "cornerRadius": 14, "justifyContent": "center", "alignItems": "center", "gap": 10, "children": [
              {"type": "icon_font", "id": "CloseShiftIcon", "width": 20, "height": 20, "iconFontName": "log-out", "iconFontFamily": "lucide", "fill": "#FFFFFF"},
              {"type": "text", "id": "CloseShiftText", "fill": "#FFFFFF", "content": "Đóng ca làm việc", "fontFamily": "Roboto", "fontSize": 16, "fontWeight": "600"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "bg-surface": {"type": "color", "value": "#111113"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
