<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.text.Font?>

<AnchorPane fx:id="mainAnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="768.0" minWidth="768.0" prefHeight="768.0" prefWidth="1024.0" style="-fx-background-color: #32343D;" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="cz.polreich.spagetka.controllers.OrderManagementController">

     <FlowPane fx:id="buttonsFlowPane" alignment="TOP_CENTER" maxWidth="250.0" orientation="VERTICAL" vgap="20" AnchorPane.bottomAnchor="14.0" AnchorPane.leftAnchor="14.0" AnchorPane.topAnchor="14.0">
         <Button fx:id="cashPaymentConfirmationButton" mnemonicParsing="false" onAction="#cashPaymentConfirmationButtonAction" style="-fx-background-color: #e6e600;" styleClass="button_left_side" text="Potvrdit zaplacení" textAlignment="CENTER" wrapText="true" />
         <Button fx:id="cancelOrderButton" mnemonicParsing="false" onAction="#cancelOrderButtonAction" style="-fx-background-color: #e6e600;" styleClass="button_left_side" text="Zrušit objednávku" textAlignment="CENTER" wrapText="true" />
         <Button fx:id="cookOrderButton" mnemonicParsing="false" onAction="#cookOrderButtonAction" style="-fx-background-color: #e6e600;" styleClass="button_left_side" text="Do přípravy" textAlignment="CENTER" wrapText="true" />
         <Button fx:id="printReceiptButton" mnemonicParsing="false" onAction="#printReceiptButtonAction" style="-fx-background-color: #e6e600;" styleClass="button_left_side" text="Tisk účtenky" textAlignment="CENTER" wrapText="true" />
         <Button fx:id="printLabelsButton" mnemonicParsing="false" onAction="#printLabelsButtonAction" style="-fx-background-color: #e6e600;" styleClass="button_left_side" text="Tisk štítků" textAlignment="CENTER" wrapText="true" />
         <Button fx:id="showGiftVoucherButton" mnemonicParsing="false" onAction="#showGiftVoucherButtonAction" style="-fx-background-color: #e6e600;" styleClass="button_left_side" text="Zobrazit poukazy" textAlignment="CENTER" wrapText="true" />
     </FlowPane>
    <Label fx:id="titleLabel" alignment="CENTER" layoutX="456.0" maxHeight="200.0" prefHeight="45.0" prefWidth="343.0" style="-fx-font-size: 30px;" textFill="white" AnchorPane.leftAnchor="456.0" AnchorPane.rightAnchor="225.0" AnchorPane.topAnchor="14.0" />
    <Button fx:id="exitButton" mnemonicParsing="false" onAction="#exitButtonAction" prefHeight="100.0" prefWidth="200.0" styleClass="button_left_side" text="Zavřít" textAlignment="CENTER" wrapText="true" AnchorPane.rightAnchor="14.0" AnchorPane.topAnchor="14.0" />
    <TextField fx:id="orderNumberTextField" alignment="CENTER" layoutX="508.0" layoutY="150.0" prefHeight="53.0" prefWidth="500.0" promptText="Číslo objednávky" AnchorPane.leftAnchor="508.0" AnchorPane.topAnchor="150.0" />
    <TextField fx:id="orderIdTextField" alignment="CENTER" layoutX="509.0" layoutY="231.0" prefHeight="53.0" prefWidth="500.0" promptText="ID objednávky" AnchorPane.leftAnchor="509.0" AnchorPane.topAnchor="231.0" />
    <ScrollPane fx:id="orderInfoScrollPane" hbarPolicy="NEVER" layoutX="297.0" layoutY="125.0" maxWidth="693.0" prefHeight="623.0" prefWidth="688.0" AnchorPane.bottomAnchor="10.0" AnchorPane.leftAnchor="297.0" AnchorPane.rightAnchor="39.0" AnchorPane.topAnchor="125.0">
        <FlowPane fx:id="orderInfoFlowPane" prefWrapLength="1500.0">
            <GridPane fx:id="orderInfoGridPane" alignment="TOP_CENTER" maxWidth="683.0" prefHeight="20.0" prefWidth="683.0">
                <padding>
                   <Insets left="20.0" top="10.0" />
                </padding>
             </GridPane>
            <GridPane fx:id="orderItemsInfoGridPane" alignment="TOP_CENTER" maxWidth="684.0" prefHeight="20.0" prefWidth="684.0">
                <padding>
                    <Insets left="20.0" top="20.0" />
                </padding>
            </GridPane>
        </FlowPane>
    </ScrollPane>
    <FlowPane fx:id="keyboardFlowPane" layoutX="507.0" layoutY="354.0" prefHeight="61.0" prefWidth="500.0" AnchorPane.leftAnchor="507.0" AnchorPane.topAnchor="354.0">

    </FlowPane>
    <Button fx:id="findOrderButton" contentDisplay="CENTER" layoutX="899.0" layoutY="640.0" mnemonicParsing="false" onAction="#findOrderButtonAction" prefHeight="100.0" prefWidth="100.0" style="-fx-background-color: #66cd00;" styleClass="button_left_side" stylesheets="@cashier.css" text="Nacist objednavku" textAlignment="CENTER" textFill="#000000e0" textOverrun="LEADING_WORD_ELLIPSIS" wrapText="true" AnchorPane.leftAnchor="899.0" AnchorPane.topAnchor="640.0">
       <font>
          <Font name="Alef Regular" size="14.0" />
       </font>
    </Button>
    <AnchorPane fx:id="cancelOrderAnchorPane" layoutX="442.0" layoutY="168.0" prefHeight="231.0" prefWidth="492.0" AnchorPane.leftAnchor="442.0" AnchorPane.topAnchor="168.0">
        <Label fx:id="cancelTextLabel" alignment="CENTER" layoutX="70.0" layoutY="8.0" prefHeight="45.0" prefWidth="368.0" style="-fx-text-fill: #a6a6ed;" text="Label" textAlignment="CENTER">
            <font>
                <Font size="17.0" />
            </font>
        </Label>
        <Button fx:id="acceptCancelOrderButton" contentDisplay="CENTER" layoutX="373.0" layoutY="116.0" mnemonicParsing="false" onAction="#acceptCancelOrderButtonAction" prefHeight="100.0" prefWidth="100.0" style="-fx-background-color: #66cd00;" styleClass="button_left_side" stylesheets="@cashier.css" text="Ano" textAlignment="CENTER" textFill="#000000e0" textOverrun="LEADING_WORD_ELLIPSIS" wrapText="true">
            <font>
                <Font name="Alef Regular" size="14.0" />
            </font>
        </Button>
        <Button fx:id="cancelCancelOrderButton" contentDisplay="CENTER" layoutX="20.0" layoutY="116.0" mnemonicParsing="false" onAction="#cancelCancelOrderButtonAction" prefHeight="100.0" prefWidth="100.0" style="-fx-background-color: #EB5757;" styleClass="button_left_side" stylesheets="@cashier.css" text="Ne" textAlignment="CENTER" textFill="#000000e0" textOverrun="LEADING_WORD_ELLIPSIS" wrapText="true">
            <font>
                <Font name="Alef Regular" size="14.0" />
            </font>
        </Button>
    </AnchorPane>
</AnchorPane>
