inherited frmStockEnvasadoEditor: TfrmStockEnvasadoEditor
  Caption = 'Editor de Stock / Entrada de Producto Envasado'
  ClientHeight = 585
  ClientWidth = 950
  OnShow = FormShow
  ExplicitWidth = 966
  ExplicitHeight = 624
  PixelsPerInch = 96
  TextHeight = 16
  inherited pnlToolbar: TPanel
    Width = 950
    ExplicitWidth = 950
    inherited btnAyuda: TBitBtn
      Left = 895
      ExplicitLeft = 895
    end
    inherited btnSalir: TBitBtn
      Left = 840
      ExplicitLeft = 840
    end
  end
  inherited pnlMain: TPanel
    Width = 950
    Height = 420
    ExplicitWidth = 950
    ExplicitHeight = 420
    inherited pgcDetails: TPageControl
      Width = 950
      Height = 420
      ExplicitWidth = 950
      ExplicitHeight = 420
      inherited tsDatosEnvio: TTabSheet
        ExplicitWidth = 612
        ExplicitHeight = 361
        object lblAlmacen: TLabel [0]
          Left = 24
          Top = 20
          Width = 51
          Height = 15
          Caption = 'Almac'#233'n:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblArticulo: TLabel [1]
          Left = 24
          Top = 140
          Width = 109
          Height = 15
          Caption = 'Producto / Art'#237'culo:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblLote: TLabel [2]
          Left = 24
          Top = 80
          Width = 28
          Height = 15
          Caption = 'Lote:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblFormato: TLabel [3]
          Left = 24
          Top = 200
          Width = 142
          Height = 15
          Caption = 'Formato de Presentaci'#243'n:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblCantidadProducida: TLabel [4]
          Left = 24
          Top = 260
          Width = 158
          Height = 15
          Caption = 'Cant. Fabricada / Producida:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblCantidad: TLabel [5]
          Left = 250
          Top = 260
          Width = 127
          Height = 15
          Caption = 'Cantidad (Stock F'#237'sico):'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblFechaElaboracion: TLabel [6]
          Left = 24
          Top = 315
          Width = 118
          Height = 15
          Caption = 'Fecha Elaboraci'#243'n:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object lblFechaCaducidad: TLabel [7]
          Left = 250
          Top = 315
          Width = 106
          Height = 15
          Caption = 'Fecha Caducidad:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clWindowText
          Font.Height = -12
          Font.Name = 'Segoe UI'
          Font.Style = [fsBold]
          ParentFont = False
        end
        inherited dbgItems: TDBGrid
          Width = 537
          Height = 223
          TabOrder = 5
        end
        inherited pnlSideToolbar: TPanel
          Left = 537
          Height = 223
          TabOrder = 6
          ExplicitLeft = 537
          ExplicitHeight = 108
        end
        inherited pnlHeader: TPanel
          Width = 612
          TabOrder = 8
          ExplicitLeft = 3
          ExplicitTop = 78
          ExplicitWidth = 612
        end
        object dblcAlmacen: TDBLookupComboBox
          Left = 24
          Top = 38
          Width = 550
          Height = 24
          DataField = 'id_almacen'
          DataSource = dsMaster
          KeyField = 'id'
          ListField = 'descripcion'
          ListSource = dsAlmacenes
          TabOrder = 0
        end
        object dblcArticulo: TDBLookupComboBox
          Left = 24
          Top = 158
          Width = 550
          Height = 24
          DataField = 'id_articulo'
          DataSource = dsMaster
          Enabled = False
          KeyField = 'id'
          ListField = 'descripcion'
          ListSource = dsArticulos
          TabOrder = 1
        end
        object btnBuscarProd: TButton
          Left = 490
          Top = 157
          Width = 84
          Height = 26
          Caption = 'Buscar...'
          TabOrder = 7
          Visible = False
          OnClick = btnBuscarProdClick
        end
        object dblcLote: TDBLookupComboBox
          Left = 24
          Top = 98
          Width = 550
          Height = 24
          DataField = 'id_lote'
          DataSource = dsMaster
          KeyField = 'id'
          ListField = 'lote_desc'
          ListSource = dsLotes
          TabOrder = 2
        end
        object dblcFormato: TDBLookupComboBox
          Left = 24
          Top = 218
          Width = 550
          Height = 24
          DataField = 'id_formato_presentacion'
          DataSource = dsMaster
          KeyField = 'id'
          ListField = 'descripcion'
          ListSource = dsFormatos
          TabOrder = 3
        end
        object dbeCantidadProducida: TDBEdit
          Left = 24
          Top = 278
          Width = 200
          Height = 24
          DataField = 'cantidad_producida'
          DataSource = dsMaster
          TabOrder = 4
          OnExit = dbeCantidadProducidaExit
        end
        object dbeCantidad: TDBEdit
          Left = 250
          Top = 278
          Width = 200
          Height = 24
          DataField = 'cantidad_unidades'
          DataSource = dsMaster
          TabOrder = 5
        end
        object dtpFechaElaboracion: TDateTimePicker
          Left = 24
          Top = 333
          Width = 200
          Height = 24
          Date = 46273.000000000000000000
          Time = 0.500000000000000000
          TabOrder = 6
          OnChange = dtpFechaElaboracionChange
        end
        object dtpFechaCaducidad: TDateTimePicker
          Left = 250
          Top = 333
          Width = 200
          Height = 24
          Date = 46273.000000000000000000
          Time = 0.500000000000000000
          ShowCheckbox = True
          TabOrder = 7
          OnChange = dtpFechaCaducidadChange
        end
      end
      object tsTrazabilidadVentas: TTabSheet
        Caption = '📦 Documentos de Venta (Trazabilidad)'
        ImageIndex = 2
        object pnlTrazabilidadTop: TPanel
          Left = 0
          Top = 0
          Width = 942
          Height = 46
          Align = alTop
          BevelOuter = bvNone
          TabOrder = 0
          object lblResumenTrazabilidad: TLabel
            Left = 16
            Top = 14
            Width = 400
            Height = 16
            Caption = 'Seleccione o consulte un lote para visualizar sus ventas.'
            Font.Charset = DEFAULT_CHARSET
            Font.Color = clWindowText
            Font.Height = -13
            Font.Name = 'Segoe UI'
            Font.Style = [fsBold]
            ParentFont = False
          end
          object btnVerDocumento: TButton
            Left = 670
            Top = 8
            Width = 140
            Height = 30
            Anchors = [akTop, akRight]
            Caption = '📄 Ver Documento'
            TabOrder = 0
            OnClick = btnVerDocumentoClick
          end
          object btnActualizarTraz: TButton
            Left = 820
            Top = 8
            Width = 110
            Height = 30
            Anchors = [akTop, akRight]
            Caption = '🔄 Actualizar'
            TabOrder = 1
            OnClick = btnActualizarTrazClick
          end
        end
        object dbgTrazabilidadVentas: TDBGrid
          Left = 0
          Top = 46
          Width = 942
          Height = 315
          Align = alClient
          DataSource = dsTrazabilidadVentas
          Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit, dgTitleClick]
          ReadOnly = True
          TabOrder = 1
          TitleFont.Charset = DEFAULT_CHARSET
          TitleFont.Color = clWindowText
          TitleFont.Height = -12
          TitleFont.Name = 'Segoe UI'
          TitleFont.Style = []
          OnDblClick = dbgTrazabilidadVentasDblClick
          OnTitleClick = dbgTrazabilidadVentasTitleClick
        end
      end
      inherited TsListado: TTabSheet
        ExplicitWidth = 612
        ExplicitHeight = 361
      end
    end
  end
  inherited pnlFooter: TPanel
    Top = 455
    Width = 620
    ExplicitTop = 340
    ExplicitWidth = 620
  end
  object qMaster: TFDQuery
    Connection = dmgMain.dbConn
    Left = 460
    Top = 260
  end
  object dsMaster: TDataSource
    DataSet = qMaster
    Left = 520
    Top = 260
  end
  object qAlmacenes: TFDQuery
    Connection = dmgMain.dbConn
    Left = 400
    Top = 80
  end
  object dsAlmacenes: TDataSource
    DataSet = qAlmacenes
    Left = 460
    Top = 80
  end
  object qArticulos: TFDQuery
    Connection = dmgMain.dbConn
    Left = 400
    Top = 140
  end
  object dsArticulos: TDataSource
    DataSet = qArticulos
    Left = 460
    Top = 140
  end
  object qLotes: TFDQuery
    Connection = dmgMain.dbConn
    Left = 400
    Top = 200
  end
  object dsLotes: TDataSource
    DataSet = qLotes
    Left = 460
    Top = 200
  end
  object qFormatos: TFDQuery
    Connection = dmgMain.dbConn
    Left = 400
    Top = 260
  end
  object dsFormatos: TDataSource
    DataSet = qFormatos
    Left = 460
    Top = 260
  end
  object qTrazabilidadVentas: TFDQuery
    Connection = dmgMain.dbConn
    Left = 320
    Top = 320
  end
  object dsTrazabilidadVentas: TDataSource
    DataSet = qTrazabilidadVentas
    Left = 380
    Top = 320
  end
end
