/* 12条点検（建築設備定期検査・特定建築物定期調査・防火設備定期検査）の様式（試作2・2026-11-21）。描画は sheets_12jo.js */
.sheet.pg.j12 { font-family: var(--mincho); font-size: 9.66pt; color: #000; }
.j12 .j12-in { position: absolute; left: 14mm; top: 14mm; width: 182mm; }
.j12 b.au, .j12cb.au { color: #1a62c9; }

/* 報告書・概要書：44列の方眼（1列 4.137mm）。1行＝.j12-ln、欄＝.j12-c（左からの位置と幅を mm で） */
.j12 .j12-ln { position: relative; }
.j12 .j12-c { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; line-height: 1.1; }
.j12 .j12-c.ac { justify-content: center; }
.j12 .j12-c.ar { justify-content: flex-end; }
.j12 .j12-c.red { color: #c00; }
.j12 .j12-c.wr { white-space: normal; align-items: flex-start; line-height: 1.35; }
.j12 .j12-c.ip.wr { align-items: stretch; }
.j12 .j12-p { white-space: pre-wrap; line-height: 1.42; overflow: hidden; }
.j12 .j12-v { white-space: nowrap; }
.j12 .j12-pv { white-space: pre-wrap; line-height: 1.25; font-size: 7.8pt; }
.j12 .j12-fi { width: 100%; height: 100%; box-sizing: border-box; font-family: var(--mincho); font-size: 8.5pt; line-height: 1.1; padding: 0 2px; border: 1px dashed #b7c4dd; border-radius: 0; background: #fbfdff; margin: 0; }
.j12 textarea.j12-fi { resize: none; line-height: 1.25; }
.j12 select.j12-fi { height: auto; }
.j12 .j12-fi::placeholder { color: #aab4c4; }
.j12 .j12cb { cursor: pointer; padding: 0 1px; border-radius: 2px; user-select: none; }
.j12 .j12cb:hover { background: #e6efff; }
.j12 .j12-o { padding: 0.2mm 1.2mm; border: 0.25mm solid transparent; border-radius: 50%; }
.j12 .j12-o.on { border-color: #000; }
/* 検査対象外の設備（画面だけ灰色） */
.j12 .j12-ln.off { background: rgba(120, 120, 120, .16); }
.j12 .j12-ln.off .j12-fi { background: transparent; border-color: #ccc; }
.j12 .j12-offl { position: absolute; right: 0; top: -0.2mm; z-index: 2; font-family: var(--ui); font-size: 7.5pt; color: #555; background: #eee; border: 1px solid #ccc; padding: 0 1.5mm; border-radius: 3px; }
/* 台帳番号などの枠 */
.j12 .j12-bx { position: absolute; top: 0; height: 100%; box-sizing: border-box; border: 0.2mm solid #000; display: flex; align-items: center; justify-content: center; padding: 0 0.8mm; }
.j12 .j12-bx.nl { border-left: none; }
/* 返却先・不具合の表 */
.j12 table.j12-rt { position: absolute; left: 0; top: 0; width: 182mm; border-collapse: collapse; table-layout: fixed; }
.j12 table.j12-rt td, .j12 table.j12-rt th { border: 0; padding: 0 0.8mm; font-weight: 400; overflow: hidden; white-space: nowrap; vertical-align: middle; line-height: 1.1; }
.j12 table.j12-rt .b { border: 0.2mm solid #000; }
.j12 table.j12-rt .bt { border-top: 0.2mm solid #000; } .j12 table.j12-rt .bb { border-bottom: 0.2mm solid #000; }
.j12 table.j12-rt .bl { border-left: 0.2mm solid #000; } .j12 table.j12-rt .br { border-right: 0.2mm solid #000; }
.j12 table.j12-rt .ac { text-align: center; } .j12 table.j12-rt .j12top { vertical-align: top; }
.j12 table.j12-rt .sm { font-size: 8.7pt; } .j12 table.j12-rt .xs { font-size: 8.2pt; }
.j12 table.j12-rt .wr { white-space: normal; line-height: 1.25; }
.j12 table.j12-rt .j12-fi { height: 4.2mm; }
.j12 table.j12-fg th, .j12 table.j12-fg td { border: 0.2mm solid #000; }
.j12 table.j12-fg th { font-size: 8.7pt; white-space: normal; line-height: 1.2; text-align: center; }
.j12 table.j12-fg td { vertical-align: top; padding: 0.5mm; white-space: normal; }
.j12 table.j12-fg td .j12-fi { height: 100%; }

/* 検査結果表・調査結果表・測定表 */
.j12 table.j12t { width: 182mm; border-collapse: collapse; table-layout: fixed; }
.j12 table.j12t td, .j12 table.j12t th { border: 0.2mm solid #000; padding: 0.3mm 0.8mm; font-size: 7.8pt; line-height: 1.2; font-weight: 400; vertical-align: middle; overflow: hidden; }
.j12 table.j12t tr.r { height: 3.9mm; }
.j12 table.j12t th { text-align: center; }
.j12 table.j12t .sm { font-size: 7pt; line-height: 1.1; }
.j12 table.j12t .ac { text-align: center; }
.j12 table.j12t .j12top { vertical-align: top; }
.j12 table.j12t td.no { text-align: center; white-space: nowrap; font-size: 7.5pt; padding: 0 0.3mm; }
/* style.css の table.grid（点検票）の決まり（行の高さ 5.6mm・項目の均等割付・大項目の字間）を打ち消す */
.j12 table.j12t td { height: auto; }
.j12 table.j12t tr.sec td { text-align: left; letter-spacing: 0; height: auto; }
.j12 table.j12t td.lbl { text-align: left; text-align-last: auto; white-space: normal; padding: 0.3mm 0.8mm; font-size: 7.8pt; }
.j12 table.j12t td.g { font-size: 7.5pt; text-align: left; white-space: normal; }
.j12 table.j12t td.gv { padding: 0.3mm 0; text-align: center; }
.j12 table.j12t td.gv .vtx { writing-mode: vertical-rl; text-orientation: upright; margin: 0 auto; line-height: 1.05; letter-spacing: 0; overflow: hidden; }
.j12 table.j12t tr.sec td { background: none; }
.j12 table.j12t td.secl { font-size: 7.8pt; }
.j12 table.j12t td.c.j { font-size: 9pt; text-align: center; padding: 0; white-space: nowrap; }
.j12 table.j12t td.c.t { font-size: 7.8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j12 table.j12t tr.na td.no, .j12 table.j12t tr.na td.g, .j12 table.j12t tr.na td.lbl, .j12 table.j12t tr.na td.c { text-decoration: line-through; }
.j12 table.j12t.ks td { height: 4.4mm; font-size: 7.8pt; }
.j12 table.j12t.ks .j12-fi, .j12 table.j12t.mh .j12-fi { height: 4mm; }
.j12 table.j12t.tk td { vertical-align: top; padding: 0.3mm 0.5mm; height: 6.5mm; }
.j12 table.j12t.tk .j12-fi { min-height: 4mm; }
.j12 table.j12t.tk textarea.j12-fi { height: 8mm; }
.j12 .j12-tno { font-size: 8.5pt; }
.j12 .j12-tt { text-align: center; font-size: 11pt; letter-spacing: 0.3em; margin-top: 1mm; }
.j12 .j12-tsub { text-align: center; font-size: 9pt; margin-bottom: 2.5mm; }
.j12 .j12-tkh { font-size: 8.5pt; margin: 2.5mm 0 0.6mm; display: flex; align-items: center; gap: 2mm; }
.j12 .j12-tkh .btn { font-family: var(--ui); }
.j12 .j12-notes { font-size: 7pt; line-height: 1.3; margin-top: 2.5mm; }
.j12 .j12-notes .nl { display: flex; } .j12 .j12-notes .nn { flex: none; width: 3.5mm; } .j12 .j12-notes .nt { flex: 1; }
.j12 .j12-pgno { text-align: right; font-size: 8pt; margin-top: 1mm; }
.j12 .j12-slot { display: inline-block; width: 18mm; vertical-align: middle; }
.j12 .j12-slot .j12-fi { height: 4mm; }
/* 測定表 */
.j12 .j12-mt { font-size: 8.5pt; line-height: 1.3; margin-bottom: 1.5mm; }
.j12 .j12-mn { font-size: 7.5pt; line-height: 1.35; margin-top: 1.5mm; }
.j12 .j12-sub { font-size: 8.5pt; margin: 3mm 0 1mm; }
.j12 table.j12t.mtb td { font-size: 7.8pt; white-space: nowrap; overflow: hidden; }
.j12 table.j12t.mtb td.lsrc { white-space: normal; font-size: 6.8pt; line-height: 1.1; }
.j12 table.j12t .chp, .j12 .chp { color: #000; font-size: 7.2pt; letter-spacing: -0.02em; }
#app .j12 table.j12t td.c:empty::before { content: attr(data-ch); color: #b5bdc9; font-size: 7pt; }
/* 関係写真・結果図 */
.j12 .j12-ph-t { display: flex; align-items: baseline; gap: 18mm; font-size: 9pt; margin-bottom: 1.4mm; }
.j12 .j12-ph-t b { font-weight: 400; font-size: 12pt; letter-spacing: 0.1em; }
.j12 table.j12t.phs td { font-size: 8.5pt; }
.j12 table.j12t.phs td.j12top { vertical-align: top; }
.j12 table.j12t.phs textarea.j12-fi { height: 7.5mm; }
.j12 table.j12t.phs td.j12top textarea.j12-fi { height: 77mm; }
.j12 td.j12-photo { position: relative; padding: 0; text-align: center; }
.j12 .j12-img { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.j12 td.j12-photo .j12-img { position: absolute; inset: 0.5mm; width: calc(100% - 1mm); height: calc(100% - 1mm); }
.j12 .j12-imgph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8a94a3; font-size: 10pt; cursor: pointer; background: #fafbfc; }
.j12 .j12-imgph:hover { background: #eef4ff; }
.j12 .j12-imgph .sm { font-family: var(--ui); font-size: 8pt; }
.j12 .j12-imgdel { position: absolute; right: 1mm; bottom: 1mm; z-index: 2; font-family: var(--ui); }
.j12 .j12-zuw { display: flex; gap: 2mm; height: 238mm; }
.j12 .j12-zuf { position: relative; flex: 1; border: 0.2mm solid #000; }
.j12 .j12-zuf .j12-img { position: absolute; inset: 0.5mm; width: calc(100% - 1mm); height: calc(100% - 1mm); }
.j12 table.j12t.zl { width: 56mm; align-self: flex-start; }
.j12 table.j12t.zl td, .j12 table.j12t.zl th { font-size: 7pt; height: 5mm; white-space: nowrap; overflow: hidden; }
.j12 table.j12t.zl tr.b td { font-weight: 700; }

/* 画面だけ：操作ボタンと説明 */
.j12 .j12-tools { position: absolute; right: 6mm; top: 3mm; z-index: 3; display: flex; gap: 2mm; font-family: var(--ui); }
.j12 .j12-help { position: absolute; left: 14mm; right: 14mm; bottom: 3mm; font-family: var(--ui); font-size: 8pt; color: #555; background: #f6f8fb; border: 1px solid #dde3ec; border-radius: 4px; padding: 1.2mm 2.5mm; line-height: 1.45; }
@media print {
  .j12 .j12-help, .j12 .j12-tools, .j12 .j12-offl, .j12 .j12-imgdel, .j12 .j12-tkh .btn { display: none !important; }
  .j12 .j12-ln.off { background: none; }
}
