root = Card([header, statsRow, appointmentsCard, roomStatusCard, nextPatientCard, checkinCard, dayNavCard])
header = CardHeader("Receptionist Desk", "Wednesday, June 12 — Day view")
statsRow = Card([expectedStat, noShowStat], "sunk", "row", "m")
expectedStat = Card([expectedLabel, expectedValue], "clear", "column")
expectedLabel = TextContent("Patients expected today", "small")
expectedValue = TextContent("24", "large-heavy")
noShowStat = Card([noShowLabel, noShowValue], "clear", "column")
noShowLabel = TextContent("No-show rate this month", "small")
noShowValue = TextContent("12%", "large-heavy")
appointmentsCard = Card([appointmentsHeader, appointmentsTable], "card", "column")
appointmentsHeader = CardHeader("Today's Appointments", "Scheduled visits")
appointmentsTable = Table([timeCol, patientCol, statusCol])
timeCol = Col("Time", ["9:00 AM", "9:30 AM", "10:00 AM", "10:30 AM", "11:00 AM", "1:00 PM", "2:00 PM", "3:00 PM"])
patientCol = Col("Patient", ["Amara Okafor", "Liam Chen", "Priya Patel", "Noah Williams", "Sofia Rossi", "Ethan Kim", "Maya Thompson", "Lucas Garcia"])
statusCol = Col("Status", ["Checked in", "Arrived", "Checked in", "Scheduled", "Scheduled", "Scheduled", "Scheduled", "Scheduled"])
roomStatusCard = Card([roomStatusHeader, roomStatusTable], "card", "column")
roomStatusHeader = CardHeader("Room Availability", "Right now")
roomStatusTable = Table([roomCol, freeCol])
roomCol = Col("Room", ["Exam 1", "Exam 2", "Exam 3", "Exam 4"])
freeCol = Col("Status", ["Free", "In use", "Free", "Free"])
nextPatientCard = Card([nextPatientHeader, nextPatientCallout], "sunk", "column")
nextPatientHeader = CardHeader("Next Patient Called", "Please proceed to Exam 1")
nextPatientCallout = Callout("info", "Now calling", "Sofia Rossi — 11:00 AM. Please head to Exam 1.")
checkinCard = Card([checkinHeader, checkinForm], "card", "column")
checkinHeader = CardHeader("Check In Patient", "Find and confirm arrival")
checkinForm = Form("check-in", checkinButtons, [patientField, roomField])
patientField = FormControl("Patient name", patientInput)
patientInput = Input("patient", "Enter patient name")
roomField = FormControl("Assign room", roomSelect)
roomSelect = Select("room", [roomFree1, roomFree3, roomFree4], "Choose a free room")
roomFree1 = SelectItem("exam1", "Exam 1")
roomFree3 = SelectItem("exam3", "Exam 3")
roomFree4 = SelectItem("exam4", "Exam 4")
checkinButtons = Buttons([checkinBtn, cancelBtn])
checkinBtn = Button("Check in patient", null, "primary")
cancelBtn = Button("Cancel", null, "tertiary")
dayNavCard = Card([dayNavHeader, dayNavButtons], "card", "column")
dayNavHeader = CardHeader("Move to Another Day", "Navigate the schedule")
dayNavButtons = Buttons([prevDayBtn, todayBtn, nextDayBtn], "row")
prevDayBtn = Button("← Previous day")
todayBtn = Button("Today", null, "secondary")
nextDayBtn = Button("Next day →")