namespace TravelAgencyWinForms.Forms;

partial class ReportsForm
{
    private System.ComponentModel.IContainer components = null;
    private Panel rootPanel;
    private Panel headerPanel;
    private PictureBox reportPictureBox;
    private Label titleLabel;
    private Label subtitleLabel;
    private FlowLayoutPanel buttonsPanel;
    private Button scheduleButton;
    private Button bookingsButton;
    private Button overdueButton;
    private Button employeesButton;
    private FlowLayoutPanel calculatedPanel;
    private DataGridView reportGrid;
    private Panel emptyPanel;
    private TableLayoutPanel emptyLayout;
    private PictureBox emptyPictureBox;
    private Label emptyLabel;

    protected override void Dispose(bool disposing)
    {
        if (disposing && components != null)
            components.Dispose();

        base.Dispose(disposing);
    }

    private void InitializeComponent()
    {
        components = new System.ComponentModel.Container();
        rootPanel = new Panel();
        headerPanel = new Panel();
        reportPictureBox = new PictureBox();
        titleLabel = new Label();
        subtitleLabel = new Label();
        buttonsPanel = new FlowLayoutPanel();
        scheduleButton = new Button();
        bookingsButton = new Button();
        overdueButton = new Button();
        employeesButton = new Button();
        calculatedPanel = new FlowLayoutPanel();
        reportGrid = new DataGridView();
        emptyPanel = new Panel();
        emptyLayout = new TableLayoutPanel();
        emptyPictureBox = new PictureBox();
        emptyLabel = new Label();

        SuspendLayout();

        Text = "Отчёты";
        StartPosition = FormStartPosition.CenterParent;
        WindowState = FormWindowState.Maximized;
        MinimumSize = new Size(980, 640);

        rootPanel.Dock = DockStyle.Fill;
        rootPanel.Padding = new Padding(18);

        headerPanel.Dock = DockStyle.Top;
        headerPanel.Height = 92;
        headerPanel.Padding = new Padding(18, 12, 18, 12);
        headerPanel.BorderStyle = BorderStyle.FixedSingle;

        reportPictureBox.Dock = DockStyle.Right;
        reportPictureBox.Width = 170;
        reportPictureBox.SizeMode = PictureBoxSizeMode.Zoom;

        titleLabel.Dock = DockStyle.Top;
        titleLabel.Height = 34;
        titleLabel.Font = new Font("Segoe UI Semibold", 18F);

        subtitleLabel.Dock = DockStyle.Top;
        subtitleLabel.Height = 24;
        subtitleLabel.Font = new Font("Segoe UI", 9.5F);

        headerPanel.Controls.Add(subtitleLabel);
        headerPanel.Controls.Add(titleLabel);
        headerPanel.Controls.Add(reportPictureBox);

        buttonsPanel.Dock = DockStyle.Top;
        buttonsPanel.Height = 56;
        buttonsPanel.Padding = new Padding(0, 6, 0, 6);

        scheduleButton.Text = "Расписание";
        scheduleButton.Width = 150;
        scheduleButton.Height = 36;
        scheduleButton.Click += ScheduleButton_Click;

        bookingsButton.Text = "Бронирования";
        bookingsButton.Width = 150;
        bookingsButton.Height = 36;
        bookingsButton.Click += BookingsButton_Click;

        overdueButton.Text = "Просроченные";
        overdueButton.Width = 150;
        overdueButton.Height = 36;
        overdueButton.Click += OverdueButton_Click;

        employeesButton.Text = "Сотрудники";
        employeesButton.Width = 150;
        employeesButton.Height = 36;
        employeesButton.Click += EmployeesButton_Click;

        buttonsPanel.Controls.Add(scheduleButton);
        buttonsPanel.Controls.Add(bookingsButton);
        buttonsPanel.Controls.Add(overdueButton);
        buttonsPanel.Controls.Add(employeesButton);

        calculatedPanel.Dock = DockStyle.Top;
        calculatedPanel.Height = 78;
        calculatedPanel.WrapContents = false;
        calculatedPanel.AutoScroll = true;
        calculatedPanel.Padding = new Padding(0, 4, 0, 8);

        reportGrid.Dock = DockStyle.Fill;
        reportGrid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
        reportGrid.SelectionChanged += ReportGrid_SelectionChanged;

        emptyPanel.Dock = DockStyle.Fill;
        emptyPanel.Visible = false;

        emptyLayout.Dock = DockStyle.Fill;
        emptyLayout.ColumnCount = 1;
        emptyLayout.RowCount = 2;
        emptyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 75));
        emptyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 25));

        emptyPictureBox.Anchor = AnchorStyles.None;
        emptyPictureBox.Size = new Size(230, 230);
        emptyPictureBox.SizeMode = PictureBoxSizeMode.Zoom;

        emptyLabel.Dock = DockStyle.Fill;
        emptyLabel.Text = "По этому запросу ничего не найдено";
        emptyLabel.TextAlign = ContentAlignment.TopCenter;
        emptyLabel.Font = new Font("Segoe UI", 11F);

        emptyLayout.Controls.Add(emptyPictureBox, 0, 0);
        emptyLayout.Controls.Add(emptyLabel, 0, 1);
        emptyPanel.Controls.Add(emptyLayout);

        rootPanel.Controls.Add(emptyPanel);
        rootPanel.Controls.Add(reportGrid);
        rootPanel.Controls.Add(calculatedPanel);
        rootPanel.Controls.Add(buttonsPanel);
        rootPanel.Controls.Add(headerPanel);

        Controls.Add(rootPanel);

        ResumeLayout(false);
    }
}
