/* 日報の確認ページ（画面案 Nippo.dc.html を測った値）。A4縦 794×1123px の紙。色は theme.css の変数。
   紙の中は白黒でも読める見た目（済の✓だけ緑・期間の印は青い薄い地・リンクは茶色） */
.nip { width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--mk-text); line-height: normal; font-size: 13px; }
.nip-top { width: 794px; max-width: 100%; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.nip-back { color: var(--primary); font-weight: 500; font-size: 14px; text-decoration: none; }
.nip-top-note { font-size: 12px; color: var(--muted); }
.nip-flex { flex: 1; }

.nip-paper { width: 794px; max-width: 100%; min-height: 1123px; background: var(--surface); border: 1px solid var(--grid); box-shadow: var(--nip-shadow); padding: 44px 52px 36px; box-sizing: border-box; }
.nip-title { text-align: center; font-size: 28px; font-weight: 500; letter-spacing: .5em; padding: 0 0 22px .5em; }
.nip-dt { width: 100%; border-collapse: collapse; font-size: 14px; }
.nip-dt td { border: 1px solid var(--mk-text); padding: 7px 10px; }
.nip-dt td.k { width: 84px; background: var(--surface-2); text-align: center; font-weight: 500; letter-spacing: .1em; }
.nip-dt .nip-date { font-size: 18px; font-weight: 500; }
.nip-late { font-size: 12px; color: var(--muted); }
.nip-sec { font-size: 14px; font-weight: 500; border: 1px solid var(--mk-text); padding: 5px 10px; margin: 22px 0 4px; background: var(--surface); letter-spacing: .08em; }
.nip-note { font-size: 12px; color: var(--muted); padding: 10px 0 4px; }
.nip-none { padding: 10px 2px; color: var(--faint); font-size: 14px; }

/* チェックの行 */
.nip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 48px; padding: 4px 2px; border-bottom: 1px solid var(--border); font-size: 14px; box-sizing: border-box; }
.nip-lbl { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; min-width: 0; margin: 0; cursor: pointer; }
.nip-lbl input[type=checkbox] { flex: none; }
.nip-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nip-row.done .nip-name { color: var(--faint); text-decoration: line-through; }
.nip-sub { font-size: 12px; color: var(--muted); }
.nip-note-need, .nip-row .nip-note { flex: none; font-size: 12px; color: var(--muted); }
.nip-ev { flex: none; cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 400; text-decoration: none; }
.nip-period { flex: none; font-size: 12px; padding: 3px 10px; border-radius: 12px; background: var(--tj-tag-bg); color: var(--tj-tag-ink); font-weight: 500; }
.nip-evline { flex-basis: 100%; padding-left: 36px; margin-top: -4px; padding-bottom: 6px; font-size: 12px; color: var(--muted); }
.nip-row .howto-link { font-size: 12px; }

/* メモ欄（枠なし・16px・案内文は薄く） */
body.field-ui .nip .nip-memo { width: 100%; box-sizing: border-box; border: 0; border-radius: 0; outline: none; box-shadow: none; resize: vertical; font-family: inherit; font-size: 16px; line-height: 1.9; padding: 8px 2px; color: var(--mk-text); background: transparent; display: block; }
body.field-ui .nip .nip-memo:focus { outline: none; border: 0; }
.nip-memo::placeholder { color: var(--tj-memo-ph); }

/* 下に固定の帯 */
.nip-bar { position: sticky; bottom: var(--footer-h); align-self: stretch; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); margin-top: 2px; padding: 10px 18px; display: flex; justify-content: center; }
.nip-bar-in { width: 100%; max-width: 980px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nip-btn, .nip-btn2 { display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 4px; background: var(--surface); font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer; font-family: inherit; }
.nip-btn { padding: 0 24px; color: var(--mk-text); border: 1px solid var(--faint); }
.nip-btn2 { padding: 0 20px; color: var(--text-2); border: 1px solid var(--border-strong); }
.nip-btn:disabled { opacity: .6; cursor: default; }

/* 確認の窓（幅420px） */
.nip-back-drop { position: fixed; inset: 0; background: var(--nip-backdrop); display: flex; align-items: center; justify-content: center; z-index: 6; }
.nip-back-drop[hidden] { display: none; }
.nip-dlg { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; width: min(420px, 94vw); box-shadow: var(--nip-dlg-shadow); padding: 24px 24px 20px; box-sizing: border-box; }
.nip-dlg-title { font-size: 17px; font-weight: 500; padding-bottom: 8px; }
.nip-dlg-sub { font-size: 13px; line-height: 1.7; color: var(--muted); }
.nip-dlg-error { padding-top: 10px; font-size: 13px; color: var(--tj-warn-ink); }
.nip-dlg-acts { display: flex; align-items: center; padding-top: 22px; }
.nip-cancel { cursor: pointer; color: var(--muted); font-size: 14px; background: none; border: 0; padding: 0; font-family: inherit; }
.nip-dlg-done { text-align: center; padding: 10px 0; }
.nip-dlg-done .nip-dlg-title { padding-bottom: 14px; }
.nip-dlg-done a { color: var(--brand); font-weight: 500; font-size: 14px; text-decoration: none; }
body.report-page .fab-wrap { display: none; }

/* 提出済みの表示（画面案 Nippo）：紙の上の緑の枠・提出の欄は太さ500・下のボタンは、直していないとき薄い */
.nip-banner { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--success); color: var(--nip-ok-ink); font-weight: 500; font-size: 15px; padding: 8px 14px; margin-bottom: 18px; }
.nip-banner[hidden] { display: none; }
.nip-dt td.nip-sent-on { font-weight: 500; }
.nip-btn.is-off { opacity: .4; cursor: default; }
.nip-dlg-links { display: flex; gap: 22px; justify-content: center; }
.nip-dlg-links a, .nip-linkbtn { color: var(--brand); font-weight: 500; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.nip-banner::before { content: "✓"; }

/* 日報のページ：左が日報、右が「過去の日報」のカレンダー（画面案 NippoPast）。全体の幅は 794＋16＋300 */
.nip-page { align-items: center; }
.nip-top-wide { width: 1110px; max-width: 100%; }
.nip-cols { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; justify-content: center; width: 100%; }
.nip-left { width: 794px; max-width: 100%; display: flex; flex-direction: column; gap: 10px; }
.nip-card { flex: none; width: 300px; box-sizing: border-box; padding: 14px 16px; }
.nip-who { display: flex; align-items: center; gap: 10px; font-size: 14px; position: relative; }
.nip-who-name { font-size: 18px; font-weight: 500; }
.nip-pick { position: relative; }
.nip-pick-link { cursor: pointer; color: var(--primary); font-weight: 500; list-style: none; }
.nip-pick-link::-webkit-details-marker { display: none; }
.nip-pick-box { position: absolute; top: 30px; left: 0; z-index: 4; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: var(--shadow-pop); padding: 8px; width: 240px; }
.nip-pick-q { width: 100%; box-sizing: border-box; height: 34px; margin-bottom: 6px; border: 1px solid var(--border-strong); border-radius: 4px; padding: 0 8px; }
.nip-pick-row { display: block; padding: 8px 10px; border-radius: 4px; color: var(--mk-text); text-decoration: none; }
.nip-pick-row.on { background: var(--bg); font-weight: 500; }
.nip-pick-row:hover { background: var(--bg); }
.nip-memo-ro { white-space: pre-wrap; font-size: 16px; line-height: 1.9; padding: 8px 2px; min-height: 40px; }
.nip-paper-none { padding: 60px 52px; text-align: center; color: var(--muted); min-height: 0; }
.nip-ro-note { color: var(--muted); font-size: 12px; line-height: 1.6; padding-top: 8px; }
.nip-boss { padding-top: 10px; font-size: 13px; }
.nip-boss-link { color: var(--primary); font-weight: 500; text-decoration: none; }
.nip-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.nip-card .tj-flex { flex: 1; }
#report-cal .tj-cal-cell.sel { border: 2px solid var(--mk-text); }
.nip-page { padding-bottom: 80px; }
.nip-page .nip-bar { position: fixed; left: 0; right: 0; bottom: var(--footer-h); margin: 0; justify-content: center; }
