/*
 * Picking-list print stylesheet (extracted from src/utils/printUtils.ts).
 *
 * Loaded into popup print windows via <link rel="stylesheet"> from the same
 * origin so it is allowed by CSP `style-src 'self'` (PR #312 enforcement).
 *
 * Inline <style> blocks are blocked by the deployed CSP — even inside
 * blob: URL popups, because Chrome inherits the parent CSP for same-origin
 * blob documents. Putting the rules in /print/picking-list.css makes them
 * load like any first-party asset.
 */

@page { size: A4; margin: 5mm; }

body {
  font-family: Arial, sans-serif;
  font-size: 8pt;
  margin: 0;
  padding: 5mm;
}

h1 { font-size: 12pt; margin-bottom: 2mm; }

.meta {
  font-size: 8pt;
  color: #666;
  margin-bottom: 3mm;
  padding-bottom: 2mm;
  border-bottom: 1px solid #ddd;
}

.warehouse-section { margin-bottom: 4mm; }

.warehouse-header {
  background: #e8e8e8;
  padding: 2mm;
  font-weight: bold;
  font-size: 10pt;
  border-left: 3px solid #333;
  margin-bottom: 2mm;
}

.warehouse-mp,
.warehouse-stats { font-weight: normal; font-size: 8pt; }
.warehouse-stats { color: #666; }

.section-title {
  font-weight: bold;
  font-size: 8pt;
  margin: 2mm 0 1mm 0;
  color: #333;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #333;
  padding: 1mm;
  text-align: left;
}

th {
  background: #f0f0f0;
  font-weight: bold;
  font-size: 7pt;
}

.sku { font-weight: bold; font-size: 8pt; }

.quantity {
  text-align: center;
  font-weight: bold;
  font-size: 9pt;
}

.summary-section { margin-bottom: 4mm; }

.section-divider {
  border: none;
  border-top: 2px solid #333;
  margin: 3mm 0;
}

.orders {
  font-size: 7pt;
  color: #333;
  word-break: break-all;
  line-height: 1.2;
}

.footer {
  margin-top: 5mm;
  font-size: 8pt;
  color: #666;
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 2mm;
}

/* by-order format extras */
.order-section { margin: 2mm 0 3mm 3mm; }

.order-header {
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 1mm;
  color: #000;
}

.order-count { font-weight: normal; font-size: 8pt; color: #666; }

.order-table { margin-left: 2mm; }
