<?php

/**
 * A4 label-sheet layouts for the product label printer
 * (docs/features/hardware.md §6.3). Each layout is an Avery-style grid
 * the browser prints to an inkjet / laser printer. Dimensions are in mm
 * and drive a CSS grid on the printable sheet.
 *
 * `per_page` is cols × rows — the renderer paginates rows of labels into
 * pages of this size.
 */

return [
    'default' => 'a4-24',

    'layouts' => [
        'a4-24' => [
            'label'      => '24 per sheet — 63.5 × 33.9 mm',
            'cols'       => 3,
            'rows'       => 8,
            'label_w_mm' => 63.5,
            'label_h_mm' => 33.9,
            'margin_top_mm'  => 12.9,
            'margin_left_mm' => 7.75,
            'col_gap_mm' => 2.5,
            'row_gap_mm' => 0,
        ],
        'a4-30' => [
            'label'      => '30 per sheet — 63.5 × 25.4 mm',
            'cols'       => 3,
            'rows'       => 10,
            'label_w_mm' => 63.5,
            'label_h_mm' => 25.4,
            'margin_top_mm'  => 21.5,
            'margin_left_mm' => 7.75,
            'col_gap_mm' => 2.5,
            'row_gap_mm' => 0,
        ],
        'a4-40' => [
            'label'      => '40 per sheet — 45.7 × 25.4 mm',
            'cols'       => 4,
            'rows'       => 10,
            'label_w_mm' => 45.7,
            'label_h_mm' => 25.4,
            'margin_top_mm'  => 21.5,
            'margin_left_mm' => 9.8,
            'col_gap_mm' => 2.5,
            'row_gap_mm' => 0,
        ],
    ],
];
