/**
 * TITLE: UDS Submittal Print Layout
 * VERSION: 1.0.0 — September 25, 2026
 * PURPOSE: Letter-size color and full-series specifications.
 * ASSOCIATED FILES: submittal.php; detail.js.
 * CHANGE LOG: Initial screen preview and print pagination.
 */
* { box-sizing: border-box; }
body { margin: 0; font: 14px Arial, sans-serif; color: #233544; background: #eceff2; }
.print-controls, .report-header, .sheet, main { max-width: 8.5in; margin: 24px auto; padding: 30px; background: white; }
.print-controls { border-top: 5px solid #036; }
.print-controls label { display: block; margin: 12px 0; }
input { display: block; padding: 9px; width: 100%; font: inherit; }
button { padding: 13px; background: #036; color: white; border: 0; font: inherit; cursor: pointer; }
p { line-height: 1.6; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 14px; }
.images { display: flex; flex-wrap: wrap; gap: 10px; }
.tile-frame { width: 155px; height: 80px; position: relative; overflow: hidden; background: #eef0ed; border: 1px solid #ddd; }
.tile-frame img { width: 100%; height: 100%; object-fit: contain; }
.horizontal-tile img { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(90deg); }
.spec { border: 1px solid #ccd4da; padding: 12px; margin-top: 16px; break-inside: avoid; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; }
dl div { display: flex; gap: 12px; justify-content: space-between; border-top: 1px solid #eee; padding-top: 5px; }
dt { color: #56636b; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
footer { margin-top: 20px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 10px; }
@page { size: Letter; margin: 0.5in; }
@media print {
    body { background: white; font-size: 10px; }
    .print-controls { display: none; }
    .report-header, .sheet { margin: 0; padding: 0; max-width: none; }
    .sheet { break-before: page; }
    h2 { font-size: 18px; }
    h3 { font-size: 12px; }
    header { break-after: avoid; }
    .images { break-inside: avoid; }
    .spec { margin-top: 10px; padding: 9px; }
    * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
@media screen and (max-width: 560px) {
    .print-controls, .report-header, .sheet { padding: 18px; }
    dl { grid-template-columns: 1fr; }
}
