/* 資格者一覧・案内図・免状の写し（sheets_chakko2.js）2026-11-21 深夜。届出一式 Excel ver.6 の形 */
.sheet.pg.c2 { position: relative; height: 297mm; padding: 0; font-family: "BIZ UDMincho", "Yu Mincho", "MS Mincho", serif; font-size: 10pt; color: #000; }
.c2 .c2-in { position: absolute; left: 20mm; top: 18mm; width: 170mm; }
.c2 .c2-t { text-align: center; font-size: 13pt; margin: 0 0 4mm; letter-spacing: .05em; }
.c2 .c2-t.big { font-size: 15pt; margin-bottom: 5mm; }
.c2 .c2-hd { display: flex; align-items: center; gap: 2mm; min-height: 6.4mm; font-size: 10pt; }
.c2 .c2-hd > span:first-child { white-space: nowrap; }
.c2 .c2-hd .fi, .c2 .c2-hd .c2-v { flex: 1; }
.c2 .c2-sub2 { text-align: center; font-size: 10pt; min-height: 5mm; margin-bottom: 2mm; }
.c2 .c2-pg { text-align: right; font-size: 9pt; margin-top: 1mm; }
.c2 .c2-note { font-size: 8.5pt; margin-top: 1.5mm; }
.sheet.c2 table.c2-tb { width: 170mm; border-collapse: collapse; table-layout: fixed; border: 0.35mm solid #000; margin: 0 0 3mm; }
.sheet.c2 table.c2-tb th, .sheet.c2 table.c2-tb td { border: 0.18mm solid #000; padding: 0 1.2mm; font-size: 9.5pt; font-weight: 400; vertical-align: middle; overflow: hidden; }
.sheet.c2 table.c2-tb th { text-align: center; font-size: 9pt; }
.c2 th.c2-l { text-align: justify !important; text-align-last: justify; padding: 0 2mm !important; }
.c2 th.c2-sm { font-size: 8.5pt !important; line-height: 1.25; text-align: center !important; text-align-last: center; }
.c2 th.c2-vt span { writing-mode: vertical-rl; letter-spacing: .3em; }
.c2 td.c2-gap { border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; height: 0; padding: 0 !important; }
.c2 td.c2-sub { border-bottom-color: transparent; }
.c2 .c2-v { white-space: nowrap; }
.c2 .c2-fi { width: 100%; font: inherit; font-size: 9.5pt; border: 1px dashed #b7c4dd; background: #fbfdff; padding: 0 2px; height: 5.4mm; }
.c2 .c2-pick { margin-top: 1mm; font-size: 7.5pt; font-family: var(--ui); } .c2 .c2-pick select { width: 100%; font-size: 8pt; padding: 0; }
.c2 .ck-o { position: relative; display: inline-block; }
.c2 .ck-o::after { content: ''; position: absolute; left: -0.3em; right: -0.3em; top: -0.2em; bottom: -0.2em; border: 0.25mm solid #000; border-radius: 50%; }

/* 画像の枠 */
.c2 .c2-slot { position: relative; border: 0.35mm solid #000; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.c2 .c2-slot img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.c2 .c2-slot.edit { cursor: pointer; outline: none; }
.c2 .c2-slot.edit:focus { box-shadow: 0 0 0 3px #9ec2fa inset; }
.c2 .c2-ph { color: #9aa3ad; text-align: center; font-family: var(--ui); font-size: 11pt; } .c2 .c2-ph small { font-size: 8.5pt; }
.c2 .c2-btns { position: absolute; right: 2mm; bottom: 2mm; display: flex; gap: 4px; font-family: var(--ui); }
.c2 .c2-mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm 8mm; }
.c2 .c2-cap { display: flex; gap: 2mm; align-items: center; min-height: 6.5mm; margin-bottom: 1mm; font-size: 9.5pt; }
.c2 .c2-cap .c2-fi, .c2 .c2-cap .c2-v { flex: 1; }
.c2 .c2-mpick { width: 34mm; font-size: 8pt; font-family: var(--ui); }

/* 案内図：Google マップ（画面だけ。印刷されない） */
.c2-map { max-width: 210mm; margin: 0 auto 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.c2-mapbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.c2-mapf { width: 100%; height: 440px; border: 1px solid #ccd; border-radius: 4px; display: block; }
@media print { .c2-map, .c2 .c2-btns { display: none !important; } }

/* 11/22 案内図（annai_draw.js）：地図は案内図の枠と同じ形（170：205・少し縦長）、赤い線で囲む */
.an-map { max-width: 210mm; margin: 0 auto 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; box-sizing: border-box; }
.an-map > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.an-mapin { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: flex-start; }
.an-mapw { flex: none; width: min(520px, 100%, calc((100vh - 130px) * 170 / 205)); min-width: 0; } /* 地図が画面の高さに収まるように（全部見えていないと取り込めない） */
.an-mapf { width: 100%; aspect-ratio: 170 / 205; border: 1px solid #ccd; border-radius: 4px; display: block; }
.an-steps { flex: 1 1 240px; min-width: 0; font-size: 13px; }
.an-steps ol { margin: 0 0 8px; padding-left: 1.4em; } .an-steps li { margin-bottom: 8px; line-height: 1.55; }
.an-steps .hint { margin-bottom: 6px; }
.an-tools { max-width: 210mm; margin: 0 auto 8px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.an-tools .an-lw { font-size: 13px; white-space: nowrap; }
.an-tools .an-sep { width: 1px; align-self: stretch; background: #dfe5ee; margin: 0 2px; }
.an-tools .an-hint { flex-basis: 100%; font-size: 12.5px; color: #445; }
.c2 .an-frame { position: relative; box-sizing: border-box; height: 205mm; border: 0.35mm solid #000; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.c2 .an-frame.edit { cursor: pointer; outline: none; }
.c2 .an-frame.edit:focus { box-shadow: 0 0 0 3px #9ec2fa inset; }
.c2 .an-frame.draw, .c2 .an-frame.draw * { cursor: crosshair; }
.c2 .an-frame.draw:focus { box-shadow: 0 0 0 3px #f3a3a8 inset; }
.c2 .an-box { position: relative; flex: none; }
.c2 .an-box > img { width: 100%; height: 100%; display: block; }
.c2 .an-box > svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.c2 .an-fbar { position: absolute; top: 2mm; right: 2mm; z-index: 2; display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .92); border: 1px solid #f3a3a8; border-radius: 6px; font-family: var(--ui); }
.c2 .an-fbar, .c2 .an-fbar * { cursor: pointer; }
.c2 .an-img0 { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
@media print { .an-map, .an-tools { display: none !important; } .c2 .an-frame { box-shadow: none !important; } }

/* 11/22 資格者マスタから引いた欄（読むだけ）・複数の○ */
.fnr .fnr-ro { position: absolute; box-sizing: border-box; display: flex; align-items: center; white-space: nowrap; overflow: hidden; padding: 0 0.6mm; font-family: var(--mincho); background: #eef1f5; border: 1px solid #d5dbe4; border-radius: 2px; color: #222; cursor: not-allowed; }
.fnr .fnr-ro.c { justify-content: center; } .fnr .fnr-ro.r { justify-content: flex-end; }
#app .fnr .fnr-o.ro { cursor: default; } #app .fnr .fnr-o.ro:hover { background: none; }

/* 11/22 着工・設置の共通項目（Excel の表紙（入力）の 1〜6） */
.cc { margin-top: 10px; display: grid; gap: 10px; }
.cc .cc-sec { border: 1px solid #dfe5ee; border-radius: 6px; padding: 8px 10px; background: #fff; }
.cc .cc-sec h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #1f3a68; }
.cc .cc-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 14px; }
.cc .cc-r { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; }
.cc .cc-r.w2 { grid-column: 1 / -1; }
.cc .cc-r > span:first-child { flex: 0 0 9.5em; font-size: 13px; color: #445; }
.cc .cc-v { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.cc .cc-v > .fi:only-child { width: 100%; }
.cc .cc-r.w2 .cc-v > input.fi:first-child { flex: 1; min-width: 12em; }
.cc .cc-cb { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; white-space: nowrap; }
.cc .cc-ro { background: #eef1f5; color: #222; font-size: 12.5px; padding: 4px 6px; border-radius: 3px; }
.cc .cc-hm { align-self: center; min-height: 1em; }
.cc .cc-hm:empty { display: none; }
.cc .cc-warn { color: #b45309; }
.cc table.cc-t { border-collapse: collapse; width: 100%; font-size: 13px; }
.cc table.cc-t th, .cc table.cc-t td { border: 1px solid #dfe5ee; padding: 3px 5px; text-align: left; vertical-align: middle; }
.cc table.cc-t thead th { background: #f4f6fa; font-weight: 600; white-space: nowrap; }
.cc table.cc-t tbody th { white-space: nowrap; font-weight: 600; }
.cc table.cc-kai td { padding: 1px; } .cc table.cc-kai .fi { width: 100%; border: 0; background: transparent; height: 24px; }
.cc .cc-tw { overflow-x: auto; }
@media (max-width: 600px) { .cc .cc-g { grid-template-columns: 1fr; } .cc .cc-r > span:first-child { flex-basis: 7em; } }

/* 11/22 配線の試験結果報告書（Excel の配線シートの形） */
.fnr.hs .hs-res { position: absolute; display: flex; align-items: center; justify-content: center; font-family: var(--mincho); font-size: 11pt; cursor: pointer; user-select: none; border: 1px dashed #b7c4dd; background: rgba(251, 253, 255, .92); border-radius: 2px; box-sizing: border-box; }
.fnr.hs .hs-res:hover { background: rgba(37, 99, 235, .10); }
/* 11/22 狭い画面で共通項目が横にはみ出さないように */
.cc, .cc .cc-sec, .cc .cc-g, .cc .cc-r, .cc .cc-v { min-width: 0; }
.cc .cc-g { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.cc .cc-v .fi { max-width: 100%; min-width: 0; }
.cc .cc-sec > table.cc-t { display: block; overflow-x: auto; }
@media (max-width: 600px) { .cc .cc-r { flex-wrap: wrap; } .cc .cc-r > span:first-child { flex-basis: 100%; } }
