/*
// Print a packhouse inspection certificate
// The layout is critical - it must fit a pre-printed label
//
// From MobileFrame
// Total size is 403 wide by 163 high px
//
// Variety: 386,32 at 93,63 20.25pt Sans Serif Bold
// "size": 31,15 at 85,108 8.25pt Sans Serif
// size: 149,25 at 154.98 18pt Arial
// "inspected by": 75,15 at 347,101 Arial 8.25pt
// "Crop Ref. No.": 67,15 at 85,132 Sans Serif 8.25pt
// pnz_ref_no: 149,25 at 154,132 Arial 18pt
// "EUROGROW": 122,18 at 347,118 Arial 12pt Bold
// "EuroQA Seed Class": 111,15 at 347,141 Arial 8.25pt
// ProductGrade: 397,24 at 347,155 Tahoma 15.75pt Bold
// "ROP": 32,15 at 85,165 Sans Serif 8.25pt
// ROP: 149,25 at 154,162 Arial 18pt
// "Insp. Date:": 67,15 at 85,194 Sans Serif 8.25pt Bold
// InspectionDate: 157,18 at 154,192 Sans Serif 9.75pt Bold
// "EuroQA Ref:": 75,15 at 347,185 Arial 8.25pt
// RefNum: 197,17 at 347,200 Arial 12pt Bold
// "tm": 10,7 at 84,216 Sans Serif 3.75pt
// Generation: 104,56 at 85,203 Arial 42pt Bold
// "EuroQA Lot No:": 75,15 at 347,221 Arial 8.25pt
// LotNumber: 197,22 at 347,236 Arial 12pt Bold
// "Grower:": 46,15 at 85,267 Sans Serif 8.25pt Bold
// Grower: 246,25 at 132,259 Arial 18pt
// Status: 397,22 at 353,258 Tahoma 14.25pt Bold Red
*/


/******************************************************************************
 * The Packhouse Inspection Certificate is fussy.
 * Everything is absolutely positioned.
 *****************************************************************************/

@page {
    margin: 0;
    size: 595pt 260pt;
}

#qa__packhouse_inspection__certificate {
    display: inline-block;
    position: relative;
    width: 595pt;
    height: 260pt;
    background-color: white;
}


#qa__packhouse_inspection__certificate__content {
    display: inline-block;
    position: relative;
    width: 595pt;
    height: 260pt;
}

#qa__packhouse_inspection__certificate__inner {
    display: inline-block;
    position: relative;
    width: 595pt;
    height: 260pt;
    margin-left: 100pt;
}

/* Variety is upper left, but indented slightly from other left content */
#qa__packhouse_inspection__certificate__variety {
    position: absolute;
    left: 110pt; 
    top: 15pt;
    font-family: Sans-Serif;
    font-size: 30pt;
    font-weight: bold;
    white-space: nowrap;
}


/* then a set of fixed text, aligned to the left */

#qa__packhouse_inspection__certificate__size_label {
    position: absolute;
    left: 110pt; 
    top: 60pt;
    font-family: Sans-Serif;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__pnz_ref_label {
    position: absolute;
    left: 110pt; 
    top: 90pt;
    font-family: Sans-Serif;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__rop_label {
    position: absolute;
    left: 110pt; 
    top: 120pt;
    font-family: Sans-Serif;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__insp_date_label {
    position: absolute;
    left: 110pt; 
    top: 150pt;
    font-family: Sans-Serif;
    font-size: 12pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__tm {
    position: absolute;
    left: 110pt; 
    top: 177pt;
    font-family: Sans-Serif;
    font-size: 5pt;
    font-weight: normal;
    white-space: nowrap;
}

/* With one exception: generation is data, but still aligned to the left */
#qa__packhouse_inspection__certificate__generation {
    position: absolute;
    left: 110pt; 
    top: 165pt;
    font-family: Arial;
    font-size: 60pt;
    font-weight: bold;
    white-space: nowrap;
    color: green;
}

#qa__packhouse_inspection__certificate__grower_label {
    position: absolute;
    left: 110pt; 
    top: 240pt;
    font-family: Sans-Serif;
    font-size: 12pt;
    font-weight: bold;
    white-space: nowrap;
}



/* Next are the values corresponding to the left aligned labels */
/* These are mostly left aligned to a vertical */
/* but grower is a bit further left, to maximize space for long grower names */

#qa__packhouse_inspection__certificate__size {
    position: absolute;
    left: 180pt;
    top: 53pt;
    font-family: Arial;
    font-size: 20pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__pnz_ref {
    position: absolute;
    left: 180pt; 
    top: 83pt;
    font-family: Arial;
    font-size: 20pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__rop {
    position: absolute;
    left: 180pt; 
    top: 113pt;
    font-family: Arial;
    font-size: 20pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__insp_date {
    position: absolute;
    left: 180pt; 
    top: 150pt;
    font-family: Sans-Serif;
    font-size: 12pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__grower {
    position: absolute;
    left: 165pt; 
    top: 235pt;
    font-family: Arial;
    font-size: 18pt;
    font-weight: bold;
    white-space: nowrap;
}






/* The remaining content is aligned to a vertical, to put it right of a */
/* vertical bar pre-printed on the label. */

#qa__packhouse_inspection__certificate__inspected_by_label {
    position: absolute;
    left: 327pt; 
    top: 60pt;
    font-family: Arial;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__eurogrow_label {
    position: absolute;
    left: 327pt; 
    top: 71pt;
    font-family: Arial;
    font-size: 18pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__grade_label {
    position: absolute;
    left: 327pt; 
    top: 97pt;
    font-family: Arial;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__grade {
    position: absolute;
    left: 327pt; 
    top: 108pt;
    font-family: Tahoma;
    font-size: 18pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__crop_ref_label {
    position: absolute;
    left: 327pt; 
    top: 133pt;
    font-family: Arial;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__crop_ref {
    position: absolute;
    left: 327pt; 
    top: 145pt;
    font-family: Arial;
    font-size: 18pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__lot_label {
    position: absolute;
    left: 327pt; 
    top: 165pt;
    font-family: Arial;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__lot {
    position: absolute;
    left: 327pt; 
    top: 180pt;
    font-family: Arial;
    font-size: 18pt;
    font-weight: bold;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__status {
    position: absolute;
    left: 327pt; 
    top: 235pt;
    font-family: Tahoma;
    font-size: 18pt;
    font-weight: bold;
    color: red;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__hundred_tuber_weight_label {
    position: absolute;
    left: 327pt; 
    top: 200pt;
    font-family: Arial;
    font-size: 12pt;
    font-weight: normal;
    white-space: nowrap;
}

#qa__packhouse_inspection__certificate__hundred_tuber_weight {
    position: absolute;
    left: 327pt; 
    top: 215pt;
    font-family: Arial;
    font-size: 18pt;
    font-weight: bold;
    white-space: nowrap;
}


