/* 仮の登録と現場の登録の QR (2026-11-04、課題 Orca-Setup-nhy)。画面は site-join.js が作る */

/* ---- 登録を終える画面 (join-view) ---- */
.sj-box { max-width: 440px; }
.sj-badge {
    display: inline-block; background: #fff3cd; color: #7a5b00; border: 1px solid #f0c36d;
    border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 6px;
}
.sj-heading { margin-top: 4px; }
.sj-steps { list-style: none; margin: 12px 0 16px; padding: 0; }
.sj-steps li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; line-height: 1.6; }
.sj-steps .sj-n {
    flex: 0 0 28px; height: 28px; border-radius: 50%; background: #0f7c80; color: #fff;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.sj-steps li.sj-done .sj-n { background: #2e9e5b; }
.sj-steps li.sj-now { background: #eef8f8; border-radius: 10px; padding: 8px; }
.sj-muted { color: #666; font-size: 13px; line-height: 1.6; }
.sj-code-row { display: flex; gap: 8px; align-items: stretch; }
.sj-code-row input { flex: 1 1 auto; min-width: 0; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; }
.sj-code-row button { flex: 0 0 auto; white-space: nowrap; }
.sj-ok { font-size: 20px; font-weight: 800; color: #1d7a46; margin: 8px 0; }
.sj-site { font-weight: 800; font-size: 17px; margin: 4px 0 8px; word-break: break-all; }
.sj-wide { width: 100%; margin-top: 12px; }
.sj-center { text-align: center; }

/* ---- 現場管理: 登録の QR ---- */
.sj-qr-btn { background: #0f7c80; color: #fff; border: none; }
.sj-qr-btn:hover { background: #0b6467; color: #fff; }
.sj-modal { max-width: 440px; width: calc(100% - 24px); max-height: calc(100vh - 24px); overflow-y: auto; box-sizing: border-box; }
.sj-modal-title { font-size: 17px; line-height: 1.4; margin: 0 0 8px; word-break: break-all; }
.sj-qr { text-align: center; }
.sj-qr svg { width: 200px; height: 200px; max-width: 70vw; max-height: 70vw; }
.sj-code-big { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: 3px; font-family: Consolas, "Courier New", monospace; margin: 4px 0; }
.sj-bad { color: #c0392b; font-weight: 700; }
.sj-warn {
    background: #fff6f6; border: 1px solid #f1b0b0; border-radius: 8px; padding: 10px 12px;
    font-size: 13px; line-height: 1.6; color: #8a1f1f; margin-top: 12px;
}

/* ---- ログインの QR (2026-11-09、課題 Orca-Setup-8kgm)。画面は login-qr.js が作る ---- */
.lq-badge { background: #e6f4f4; color: #0b5e61; border-color: #9fd3d4; }
.lq-hint {
    background: #eaf7ee; border: 1px solid #9fd8b0; color: #1d6b3a; border-radius: 8px;
    padding: 8px 12px; font-size: 14px; font-weight: 700; margin: 0 0 12px;
}
.lq-remember {
    display: flex; gap: 10px; align-items: flex-start; border: 2px solid #0f7c80; border-radius: 10px;
    padding: 10px 12px; margin: 4px 0 8px; background: #f3fbfb; cursor: pointer; font-size: 15px; line-height: 1.5;
}
.lq-remember input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: #0f7c80; }
.lq-chip-row { text-align: center; margin: 0 0 6px; }
.lq-chip {
    display: inline-block; background: #0f7c80; color: #fff; border-radius: 999px; padding: 4px 14px;
    font-size: 14px; font-weight: 700;
}
.lq-pre { white-space: pre-line; }
.lq-interval { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 14px; }
.lq-interval select { font-size: 15px; padding: 4px 8px; border-radius: 6px; }

/* ---- アカウント管理 ---- */
.sj-tag {
    background: #fff3cd; color: #7a5b00; border: 1px solid #f0c36d; border-radius: 6px;
    font-size: 11px; padding: 2px 8px; font-weight: 700; margin-left: 8px; white-space: nowrap;
}
.account-sj-complete-btn { font-size: 11px; padding: 3px 10px; margin-left: 8px; }

/* ---- A4 の貼り紙 (印刷の時だけ出す) ---- */
#sj-poster { display: none; }
@media print {
    body.sj-printing > *:not(#sj-poster) { display: none !important; }
    body.sj-printing #sj-poster { display: block !important; color: #000; font-size: 12pt; }
    @page { size: A4 portrait; margin: 15mm; }
    #sj-poster .sjp-title { font-size: 24pt; margin: 0 0 4pt; }
    #sj-poster .sjp-sys { font-size: 11pt; color: #444; margin-bottom: 12pt; }
    #sj-poster .sjp-site { font-size: 17pt; font-weight: 800; border-bottom: 2px solid #999; padding-bottom: 8pt; margin-bottom: 14pt; }
    #sj-poster .sjp-qrbox { display: flex; gap: 18pt; align-items: center; }
    #sj-poster .sjp-qr svg { width: 85mm; height: 85mm; }
    #sj-poster .sjp-code { font-size: 26pt; font-weight: 800; letter-spacing: 4pt; font-family: Consolas, "Courier New", monospace; }
    #sj-poster .sjp-small { font-size: 10.5pt; color: #333; }
    #sj-poster .sjp-gap { margin-top: 10pt; }
    #sj-poster .sjp-steps { font-size: 13pt; line-height: 1.8; margin: 16pt 0 10pt; padding-left: 18pt; }
    #sj-poster .sjp-badge { display: inline-block; background: #0f7c80; color: #fff; border-radius: 6pt; padding: 3pt 10pt; font-size: 18pt; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #sj-poster .sjp-badge:empty { display: none; }
    #sj-poster .lq-pre { white-space: pre-line; }
    #sj-poster .sjp-foot { font-size: 10pt; color: #333; border-top: 1px dashed #888; padding-top: 8pt; line-height: 1.7; }
}
