/*
 * Generic label print stylesheet (extracted from src/utils/printUtils.ts
 * printHtml inline template).
 *
 * Loaded into popup print windows via <link rel="stylesheet"> from the same
 * origin so it is allowed by CSP `style-src 'self'` (T28 Phase B, PR #312).
 *
 * Page size is hardcoded to the project default (58mm x 40mm landscape,
 * matches `defaultPrintSettings` in printUtils.ts and the single call-site
 * in `labelPrinter.ts`). Dynamic @page sizes are NOT achievable under the
 * current CSP — both inline `<style>` and `style=""` attributes are
 * blocked. If a different label size is needed, add a dedicated CSS file
 * under public/print/ and teach the caller to use it.
 */

@page {
  size: 40mm 58mm; /* landscape: height × width */
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  display: flex;
  align-items: center;
  justify-content: center;
}

* {
  box-sizing: border-box;
}
