/* 案A「紙の日報が、そのまま画面」：意匠の3案（2026-11-03）の案Aの見た目。緑＝済、赤＝まだ、黄＝次に押す所 */
.ph.app[data-sid^="P"], .ph.app[data-sid="G03"], .ph.app[data-sid^="S0"] { background: #F2F4F6; font-family: "BIZ UDPGothic", "BIZ UDゴシック", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; }
.sx-top { background: #fff; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid #E1E6EC; flex: none; display: flex; align-items: flex-start; gap: 10px; color: #17202C; }
.sx-top .tt { flex: 1; min-width: 0; }
.sx-top h1 { font-size: 20px; margin: 0; line-height: 1.3; display: flex; align-items: center; }
.sx-top .s { font-size: 13px; color: #4A5666; margin-top: 3px; }
.sx-top .bk { font-size: 28px; line-height: 1; color: #0E7A50; padding: 0 6px 0 0; }
.sx-top .ds { font-size: 12px; font-weight: 700; color: #0E7A50; border: 1.5px solid #0E7A50; border-radius: 10px; padding: 5px 8px; white-space: nowrap; }
.ph.app[data-sid^="P"] .a-body, .ph.app[data-sid="G03"] .a-body, .ph.app[data-sid^="S0"] .a-body { padding: 12px; color: #17202C; }
.sx-card { background: #fff; border: 1px solid #E1E6EC; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.sx-card.need { border: 2px solid #E57373; background: #FFF5F5; }
.sx-card.done0 { border: 2px solid #0E7A50; background: #F1FAF5; }
.sx-card.flat { padding: 0; overflow: hidden; }
.sx-btn { display: block; width: 100%; text-align: center; background: #0E7A50; color: #fff; font-weight: 700; font-size: 17px; border-radius: 14px; padding: 15px; border: 0; font-family: inherit; }
.sx-btn.off { background: #C9D0D8; color: #4A5666; }
.sx-btn.sub { background: #fff; color: #0E7A50; border: 2px solid #0E7A50; }
.sx-btn.go { background: #F2B705; color: #3A2A00; }
.sx-btn.ng { background: #fff; color: #C62828; border: 2px solid #E57373; }
.sx-btn.sm { font-size: 15px; padding: 11px; }
.sx-btn + .sx-btn { margin-top: 8px; }
.sx-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #0E7A50; color: #fff; font-size: 13px; font-weight: 700; margin-right: 6px; flex: none; }
.sx-no.g { background: #8A96A3; }
.sx-red { color: #C62828; } .sx-ok { color: #0E7A50; }
.sx-chip { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.c-ok { background: #E6F4EC; color: #0E7A50; }
.c-ng { background: #FDECEA; color: #C62828; border: 1.5px solid #E57373; }
.c-gy { background: #EEF1F4; color: #4A5666; }
.c-hv { background: #FFF6D9; color: #6A4D00; }
.sx-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.sx-seg > span { flex: 1; min-width: 60px; min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px solid #CDD4DC; border-radius: 12px; padding: 8px 2px; font-size: 14px; background: #fff; }
.sx-seg > span.on { background: #0E7A50; color: #fff; border-color: #0E7A50; font-weight: 700; }
.sx-seg > span.on.w { background: #FFF6D9; color: #3A2A00; border-color: #F2B705; }
/* 名前の札は折り返さず、横に送る */
.sx-seg.tabs { flex-wrap: nowrap; overflow-x: auto; }
.sx-seg.tabs > span { flex: none; white-space: nowrap; padding: 8px 14px; }
.sx-seg.need { padding: 4px; border-radius: 14px; border: 2px solid #E57373; background: #FFF5F5; }
.sx-seg.ro > span { opacity: .75; }
.sx-seg.five { gap: 4px; } .sx-seg.five > span { min-width: 0; font-size: 13px; padding: 8px 0; letter-spacing: -.02em; }
.sx-lbl { font-size: 13px; color: #4A5666; margin: 12px 0 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sx-lbl b { color: #17202C; font-size: 14px; }
.sx-lbl:first-child { margin-top: 0; }
.sx-pr { font-size: 11px; color: #6A3FA0; background: #F3ECFA; border-radius: 8px; padding: 1px 6px; white-space: nowrap; }
.sx-ph { width: 100%; border-radius: 12px; display: block; }
.sx-row { display: flex; align-items: center; gap: 8px; }
.sx-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.sx-big { font-size: 44px; font-weight: 700; line-height: 1; }
.sx-foot { background: #fff; border-top: 1px solid #E1E6EC; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); flex: none; }
.sx-tap { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 22px; padding: 0 8px; font-size: 13px; font-weight: 700; flex: 1; }
.sx-nt { font-size: 12px; color: #4A5666; margin-top: 6px; line-height: 1.5; }
.sx-in { display: block; width: 100%; border: 1.5px solid #CDD4DC; border-radius: 12px; padding: 10px; font-size: 16px; background: #fff; font-family: inherit; color: #17202C; }
.sx-in.need { border: 2px solid #E57373; background: #FFF5F5; }
textarea.sx-in { min-height: 4.5em; resize: vertical; }
.sx-line { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid #EEF1F4; min-height: 60px; }
.sx-line:last-child { border-bottom: 0; }
.sx-line > b { flex: none; }
.sx-line .r { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sx-res { padding: 10px 0; border-bottom: 1px solid #EEF1F4; }
.sx-res:last-child { border-bottom: 0; }
.sx-meas { display: flex; align-items: center; gap: 8px; }
.sx-meas input { flex: 1; min-width: 0; }
.sx-meas .u { flex: none; min-width: 3.2em; font-size: 14px; color: #4A5666; }
.sx-ro { font-size: 14px; color: #33404F; background: #F5F7F9; border-radius: 10px; padding: 8px 10px; line-height: 1.6; }
.sx-ban { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; line-height: 1.55; }
.sx-ban.w { background: #FFF6D9; border: 2px solid #F2B705; color: #3A2A00; }
.sx-ban.ng { background: #FFF5F5; border: 2px solid #E57373; color: #8E1C1C; }
.sx-ban.ok { background: #E6F4EC; border: 2px solid #0E7A50; color: #0B5E3E; }
.sx-cam { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sx-prev { background: #DDE2E7; padding: 12px; overflow-x: auto; }
.sx-prev .kp-pg { margin: 0 auto 12px; box-shadow: 0 2px 10px rgba(0,0,0,.18); zoom: .46; }
@media (min-width: 700px) { .sx-prev .kp-pg { zoom: .75; } }
.ph.app[data-sid="PR"] { max-width: 980px; }

/* ---- A4の日報（印刷） ---- */
#kp-root { display: none; }
.kp-pg { width: 210mm; height: 297mm; padding: 11mm 12mm 10mm; position: relative; overflow: hidden; background: #fff; color: #111; font-size: 10.5px;
  font-family: "BIZ UDPGothic", "BIZ UDゴシック", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kp-pg * { box-sizing: border-box; }
.kp-bd { position: absolute; left: 12mm; right: 12mm; top: 11mm; bottom: 34mm; overflow: hidden; }
.kp-pg h1 { font-size: 20px; margin: 0; }
.kp-hd { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2.5px solid #0E7A50; padding-bottom: 6px; margin-bottom: 8px; }
.kp-hd .k { font-size: 12px; }
.kp-meta { font-size: 11px; text-align: right; line-height: 1.5; }
.kp-pg table { border-collapse: collapse; width: 100%; }
.kp-pg th, .kp-pg td { border: 1px solid #9AA5B1; padding: 2.5px 5px; text-align: left; vertical-align: top; line-height: 1.45; }
.kp-pg th { background: #EEF1F4; font-weight: 700; }
.kp-sec { margin-top: 7px; }
.kp-st { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.kp-n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #0E7A50; color: #fff; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.kp-n.g { background: #8A96A3; }
.kp-src { margin-left: auto; font-size: 11px; font-weight: 700; color: #333; border: 1.2px solid #555; border-radius: 8px; padding: 0 6px; }
.kp-na { background: #DDE2E7; }
.kp-ph { width: 100%; height: 24mm; object-fit: cover; border: 1px solid #9AA5B1; display: block; }
.kp-noph { width: 100%; height: 24mm; border: 1px dashed #9AA5B1; display: flex; align-items: center; justify-content: center; color: #555; }
.kp-x { background: #FFF6D9; } .kp-ng { color: #B71C1C; font-weight: 700; }
.kp-miss { background: #FDECEA; color: #B71C1C; font-weight: 700; }
.kp-stamp { position: absolute; right: 12mm; bottom: 10mm; display: flex; }
.kp-stamp div { width: 22mm; height: 21mm; border: 1.2px solid #333; text-align: center; font-size: 10px; padding-top: 2px; }
.kp-stamp div + div { border-left: 0; }
.kp-chg { position: absolute; left: 12mm; bottom: 10mm; width: 120mm; height: 21mm; border: 1.2px solid #333; font-size: 10px; padding: 3px 6px; }
.kp-ft { position: absolute; left: 12mm; right: 12mm; bottom: 3.5mm; font-size: 10px; color: #333; display: flex; justify-content: space-between; }
.kp-draft { position: absolute; right: 12mm; top: 3mm; font-size: 11px; font-weight: 700; color: #B71C1C; }
.kp-pg.tight th, .kp-pg.tight td { padding: 1.8px 4px; line-height: 1.35; }
.kp-pg.tight .kp-sec { margin-top: 5px; }
.kp-pg.tighter { font-size: 9.5px; }
.kp-pg.tighter .kp-ph, .kp-pg.tighter .kp-noph { height: 19mm; }
.kp-nw { white-space: nowrap; }
@page { size: A4; margin: 0; }
@media print {
  html, body { height: auto; background: #fff; }
  #app { display: none !important; }
  #kp-root { display: block; }
  #kp-root .kp-pg { break-after: page; page-break-after: always; }
  #kp-root .kp-pg:last-child { break-after: auto; page-break-after: auto; }
}
