/* UX round 3: confirmation step for money decisions (G1), report option (G3), お知らせ (G4), bonus (G5),
   borrowing (G6), year-end summary (G7), motivation help (G8). Loaded last. */

.pos { color: #1E7F5A; }
.neg { color: var(--c-warn); }

/* ---------------- G1: inline confirmation ---------------- */
.confirm-step { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding: 12px 16px; border-radius: 10px; background: #FFF6DA; border: 2px solid #F0B400; animation: fadeQuick .12s ease-out; }
.confirm-msg { flex: 1; min-width: 0; }
.confirm-text { margin: 0; font-weight: 900; font-size: 17px; color: #4A3000; line-height: 1.5; }
.confirm-detail { font-size: 14px; line-height: 1.5; color: #4A3A10; }
.confirm-btns { flex: none; display: flex; gap: 10px; }
.confirm-btns .btn { min-width: 120px; }
.fl-foot:has(.confirm-step) { height: auto; padding-top: 6px; }
.fl-foot .confirm-step { flex: 1; margin-top: 0; }
.fl-foot .confirm-step .btn { height: 44px; }

/* ---------------- G3: options of the month flow ---------------- */
.fl-opts { display: flex; align-items: center; gap: 18px; }
.fl-rep[hidden] { display: none; }
.fl-skip.big.off { opacity: .5; }

/* ---------------- G4: お知らせ ---------------- */
.infolog .k-ach { color: #7A4B00; font-weight: 700; }

/* ---------------- G6 borrowing / dividends in the month flow ---------------- */
.fl-borrow, .fl-divform { font-size: 15px; line-height: 1.6; padding: 12px 18px; }
.fl-borrow h3, .fl-divform h3 { font-size: 20px; margin-bottom: 4px; }
.fl-borrow .msg { margin: 0 0 4px; }
.fl-rules { margin: 2px 0 6px; padding-left: 20px; font-size: 14px; color: #345; }
.fl-rules-h { font-size: 14px; font-weight: 700; color: var(--c-teal-700); margin-top: 6px; }
.fl-borrow .form-row, .fl-divform .form-row { margin: 6px 0; }
.fl-borrow .form-row label, .fl-divform .form-row label { width: 150px; }
.fl-borrow .form-row input, .fl-divform .form-row input { flex: none; }
.fl-plan { min-height: 40px; }
.fl-plan-in { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
.fl-plan-t { width: 100%; font-size: 14px; }
.fl-plan-t th { text-align: left; font-weight: 700; background: #F2FAF8; color: var(--c-teal-800); padding: 3px 8px; }
.fl-plan-t td { padding: 3px 8px; }
.fl-impact { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.fl-impact b { font-variant-numeric: tabular-nums; }
.fl-effect { min-height: 26px; margin-top: 4px; padding: 4px 10px; border-radius: 8px; background: #F2FAF8; font-size: 15px; }
.fl-effect:empty { background: transparent; }
.fl-effect .neg { color: var(--c-warn); }
.fl-effect .pos { color: #1E7F5A; }

/* ---------------- G5: employee bonus ---------------- */
.modal.bonusdlg { width: 1000px; }
.modal.bonusdlg .body { overflow: visible; }
.bn.with-pic { gap: 20px; }
.bn.with-pic .pic { width: 190px; height: 230px; }
.bn .txt { font-size: 15px; line-height: 1.6; }
.bn-lead { margin: 0 0 6px; font-size: 16px; }
.bn .kv { font-size: 14px; max-width: 420px; }
.bn .note { margin: 4px 0; }
.bn .form-row { margin: 6px 0; }
.bn .form-row label { width: 110px; }
.bn .form-row input { flex: none; }
.bn-preview { min-height: 26px; padding: 4px 10px; border-radius: 8px; background: #FFF8E6; font-size: 16px; }
.bn-preview:empty { background: transparent; }
.bn-delta.up, .bn-eff.up, .bn-staff b.up, .bn-result.up { color: #1E7F5A; }
.bn-delta.down, .bn-eff.down, .bn-staff b.down, .bn-result.down { color: var(--c-warn); }
.bn-who { font-size: 13px; color: #456; margin-left: 4px; }
.bn-rule { margin-top: 4px; }
.bn-rule-h { font-size: 13px; font-weight: 700; color: var(--c-teal-700); }
.bn-bands { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; font-size: 13px; }
.bn-bands li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 8px; border-radius: 6px; }
.bn-bands li.on { background: #FFE58A; font-weight: 700; outline: 2px solid #F0B400; }
.bn-eff { white-space: nowrap; font-weight: 700; }
.bn-result { font-size: 18px; font-weight: 900; margin: 4px 0 8px; }
.bn-staff { font-size: 14px; }
.bn-staff td, .bn-staff th { padding: 3px 10px; }
.modal.bonusdlg .confirm-step { margin-top: 12px; }

/* ---------------- G7: year-end summary ---------------- */
.yearreview .rp-kpis.yr-kpis { grid-template-columns: repeat(5, 1fr); }
.yearreview .rp-kpi .val { font-size: 22px; }
.yr-score h3 { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.yr-total { font-size: 28px; font-weight: 900; color: #A05C00; }
.yr-prev { font-size: 13px; font-weight: 400; color: #456; }
.yr-comment { margin: 0 0 6px; font-size: 14px; color: #345; }
.yr-items { width: 100%; font-size: 14px; }
.yr-items td, .yr-items th { padding: 3px 8px; }
.yr-was { font-size: 11px; color: #678; font-weight: 400; }
.yr-stars { color: #E8A800; letter-spacing: 1px; font-size: 16px; white-space: nowrap; }
.yr-stars .off { color: #D5DEDB; }
.yr-hints ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.yr-hints li + li { margin-top: 6px; }
.yr-advice { font-size: 12px; color: #567; }
.yr-due table { width: 100%; font-size: 14px; }
.yr-due td { padding: 3px 8px; }
.yr-cash { margin: 8px 0 2px; font-size: 14px; }
.yr-cash b { font-size: 17px; }

/* ---------------- G8: motivation help ---------------- */
.mh-state { margin: 0 0 4px; font-size: 16px; }
.mh-state .warn { color: var(--c-warn); font-weight: 700; }
.mh-table { width: 100%; font-size: 14px; margin-top: 6px; }
.mh-table th[scope], .mh-table tbody th { text-align: left; white-space: nowrap; color: var(--c-teal-800); background: #F2FAF8; padding: 4px 10px; }
.mh-table td { padding: 4px 10px; line-height: 1.5; }
.mh-table tr.off td, .mh-table tr.off th { color: #7A8A88; }
.mh-now { white-space: nowrap; }
.mh-note { font-size: 12px; }
.bn-next { font-size: 13px; color: #6A4A00; }
.modal .buttons[hidden], .fl-foot > [hidden] { display: none !important; }
.yearreview .rp-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.yr-items td, .yr-items th { padding: 3px 6px; }
.yr-items { table-layout: auto; }
