/* Phase 1 usability: 社員ボード (A1), 月末レポート (A2), 翌月へのまとめ (A3), 用語ヒント (A4).
   Same palette as style.css (spec/04 §4). */

/* lower-left area: 社員ボード / お知らせ */
.lower { position: absolute; left: 8px; top: 486px; width: 760px; height: 226px; display: flex; flex-direction: column; }
.lowertabs { display: flex; align-items: flex-end; gap: 4px; height: 30px; flex: none; }
.ltab { height: 28px; padding: 0 14px; border: 0; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .55); color: var(--c-teal-700); font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ltab.on { background: var(--c-panel); color: var(--c-teal-800); }
.ltab .cnt { font-size: 12px; font-weight: 500; color: #4A7E78; }
.ltab .dot:not(:empty) { min-width: 18px; height: 18px; border-radius: 9px; background: var(--c-warn); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }
.lowerfill { flex: 1; }
.board-filters { display: flex; gap: 6px; padding-bottom: 3px; }
.board-sel { font-size: 13px; padding: 2px 6px; height: 25px; border-width: 1px; }
.lower .board, .lower .infolog { flex: 1; min-height: 0; }
.lower .infolog { position: static; width: auto; height: auto; border-radius: 0 8px 8px 8px; }
.lower .board { background: var(--c-panel); border-radius: 0 8px 8px 8px; overflow: auto; padding: 6px; }
.lower.showlog .board, .lower.showlog .board-filters { display: none; }
.lower:not(.showlog) .infolog { display: none; }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.board-empty:not(:empty) { padding: 20px; text-align: center; color: var(--c-teal-700); }
.scard { display: flex; flex-direction: column; gap: 1px; text-align: left; padding: 4px 8px; min-width: 0; background: #fff; border: 2px solid #fff; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1.35; color: var(--c-text); box-shadow: 0 2px 0 rgba(32, 88, 80, .18); }
.scard:hover, .scard:focus-visible { border-color: var(--c-hover-exec); }
.scard.standby { border-color: #F5A623; background: #FFF8E8; }
.scard.next { border-color: #F7C873; }
.scard.zero { border-color: var(--c-warn); background: #FFF0EF; }
.sc-top, .sc-mid, .sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.sc-name { font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-role { flex: none; font-size: 12px; padding: 0 6px; border-radius: 999px; background: #E3F4F1; color: var(--c-teal-700); font-weight: 700; }
.sc-role.r0, .sc-role.r1 { background: #EFE6FF; color: #5B3FA0; }
.sc-role.r3 { background: #E6F0FF; color: #2B55A8; }
.sc-role.r4 { background: #F2F2F2; color: #555; }
.sc-assign { font-size: 12px; font-weight: 700; padding: 0 6px; border-radius: 4px; white-space: nowrap; }
.sc-assign.site { background: #DDF5E9; color: #1E7A4E; }
.sc-assign.dev { background: #E6F0FF; color: #2B55A8; }
.sc-assign.standby { background: #F5A623; color: #fff; }
.sc-assign.next { background: #FFE7B8; color: #8A5200; }
.sc-assign.office { background: #EEF1F1; color: #556; }
.sc-tanka { font-size: 12px; color: #456; white-space: nowrap; }
.sc-tanka b { font-size: 14px; color: var(--c-text); margin: 0 1px 0 3px; }
.sc-tanka.none { color: #A05C00; }
.sc-motv { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px; font-size: 12px; }
.sc-lbl { color: #567; }
.sc-rank { font-weight: 900; font-size: 13px; color: var(--c-hover-exec); }
.sc-rank.mD { color: var(--c-warn); }
.sc-bar { height: 6px; border-radius: 3px; background: #E0F5F2; overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFB347, #F07800); }
.sc-num { font-variant-numeric: tabular-nums; }
.scard.zero .sc-num { color: var(--c-warn); font-weight: 900; }
.sc-foot { font-size: 12px; color: #567; }
.sc-skill { display: flex; gap: 8px; font-size: 12px; color: #456; }
.sc-skill b { margin-left: 2px; color: var(--c-teal-800); }
.sc-foot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* staff detail */
.staffdetail .sd { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd h3 { margin: 10px 0 6px; color: var(--c-teal-700); font-size: 17px; }
.sd-kv { font-size: 16px; background: #fff; border-radius: 10px; padding: 10px 14px; grid-template-columns: auto 1fr; }
.sd-actions { background: #fff; border-radius: 10px; padding: 4px 14px 12px; }
.sd-row { display: grid; grid-template-columns: 82px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px dashed #CDE9E5; }
.sd-row:last-child { border-bottom: 0; }
.sd-k { font-weight: 900; color: var(--c-teal-700); padding-top: 6px; }
.sd-row .note { margin: 4px 0; font-size: 14px; }
.sd-acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sd-acts .btn, .sd-row > .btn { min-width: 0; font-size: 15px; height: auto; min-height: 34px; padding: 4px 16px; justify-self: start; text-align: left; }
.target-note { margin-top: 6px; font-size: 14px; font-weight: 700; color: #A05C00; background: #FFF3D6; border-radius: 6px; padding: 3px 8px; }

/* 用語ヒント */
.term { border-bottom: 1px dotted currentColor; cursor: help; }
.term::after { content: "?"; display: inline-block; width: 13px; height: 13px; margin-left: 2px; border-radius: 50%; background: #9CCFC9; color: #fff; font-size: 10px; line-height: 13px; text-align: center; font-weight: 900; vertical-align: 2px; }
.term:focus-visible { outline: 2px solid var(--c-hover-exec); }
.tip { position: absolute; z-index: 200; max-width: 380px; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--c-text); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); border: 2px solid var(--c-accent); font-size: 14px; line-height: 1.6; pointer-events: none; opacity: 0; transition: opacity .12s; white-space: normal; text-align: left; font-weight: 400; }
.tip.show { opacity: 1; }
.tip-title { font-weight: 900; color: var(--c-teal-700); font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.tip-ideal { font-size: 12px; font-weight: 700; color: #fff; background: var(--c-hover-exec); border-radius: 999px; padding: 0 8px; margin-left: 8px; white-space: nowrap; }
.tip-short { font-weight: 700; margin: 2px 0; }
.tip-body { color: #345; }
.glossary { columns: 2; column-gap: 28px; }
.glossary section { break-inside: avoid; margin-bottom: 12px; }
.glossary h3 { margin: 0 0 6px; color: var(--c-teal-700); }
.glossary dl { margin: 0; background: #fff; border-radius: 10px; padding: 6px 14px; }
.glossary dt { font-weight: 900; margin-top: 6px; }
.glossary dd { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: #345; }

/* 翌月へのまとめ */
.modal.flowpanel { width: 1220px; height: 680px; padding: 16px 22px; }
.modal.flowpanel h2 { font-size: 22px; margin-bottom: 8px; }
.modal.flowpanel .body { overflow: hidden; }
.fl-body { display: grid; grid-template-columns: 380px 1fr; gap: 16px; height: 100%; min-height: 0; }
.fl-left { display: flex; flex-direction: column; min-height: 0; background: rgba(255, 255, 255, .55); border-radius: 10px; padding: 8px; }
.fl-ltitle { font-weight: 900; color: var(--c-teal-700); font-size: 15px; margin: 0 0 6px 4px; }
.fl-list { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fl-entry { background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 14px; line-height: 1.55; animation: rise .35s cubic-bezier(.25, 1, .5, 1); border-left: 4px solid var(--c-band); }
.fl-entry.e-start { background: transparent; border-left: 0; color: var(--c-teal-700); font-weight: 700; padding: 2px 4px; }
.fl-entry.e-penalty { border-left-color: var(--c-warn); background: #FFF4F3; }
.fl-entry.e-topic { border-left-color: var(--c-accent); }
.fl-entry.e-result { border-left-color: #48C096; }
.fl-entry.e-quiz { border-left-color: #5272E0; }
.fl-entry.e-settle { border-left-color: var(--c-cash); background: #FFF8EE; }
.fl-entry.e-month { border-left-color: var(--c-hover-exec); font-weight: 900; color: var(--c-teal-800); }
.fl-tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; border-radius: 999px; padding: 0 8px; margin-right: 6px; background: var(--c-accent); }
.fl-tag.t-penalty { background: var(--c-warn); }
.fl-tag.t-result { background: #2FA37A; }
.fl-tag.t-quiz { background: #5272E0; }
.fl-tag.t-settle { background: #E08A00; }
.fl-etext { white-space: pre-line; }
.fl-choice { font-weight: 700; color: #A05C00; }
.fl-item { font-weight: 700; color: #2B55A8; }
.fl-figs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.fl-right { display: flex; flex-direction: column; min-height: 0; }
.fl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex: none; }
.fl-skip { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-teal-800); cursor: pointer; font-size: 15px; }
.fl-skip input { width: 20px; height: 20px; }
.fl-skip.big { font-size: 18px; margin-bottom: 8px; }
.fl-hint { font-weight: 400; font-size: 13px; color: var(--c-teal-700); }
.fl-keys { font-size: 13px; color: #4A7E78; background: rgba(255, 255, 255, .6); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.fl-now { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.fl-step { display: flex; gap: 18px; flex: 1; min-height: 0; }
.fl-pic { position: relative; width: 300px; height: 380px; flex: none; border-radius: 8px; overflow: hidden; }
.fl-pic.img img { width: 100%; height: 100%; object-fit: contain; }
.fl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-main .tag { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--c-accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.fl-main .tag.penalty { background: var(--c-warn); }
.fl-main .choices .choice { font-size: 16px; }
.fl-text { white-space: pre-line; font-size: 18px; line-height: 1.7; background: #fff; border-radius: 8px; padding: 10px 14px; overflow: auto; max-height: 280px; }
.fl-penalty { background: var(--c-penalty); border-radius: 10px; padding: 12px; flex: 1; display: flex; }
.fl-btns { display: flex; justify-content: flex-end; gap: 14px; margin-top: 10px; flex: none; }
.fl-quiz .quiz { width: 100%; height: 420px; }
.fl-quiz .quiz .side { width: 150px; }
.fl-form { background: #fff; border-radius: 10px; padding: 14px 20px; font-size: 17px; line-height: 1.7; }
.fl-form h3 { margin: 0 0 8px; color: var(--c-teal-700); font-size: 22px; }
.fl-report { flex: 1; min-height: 0; overflow: auto; }

/* 月末レポート */
.report { font-size: 15px; }
.rp-title { font-size: 20px; font-weight: 900; color: var(--c-teal-800); margin-bottom: 6px; }
.rp-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.rp-kpi { background: #fff; border-radius: 10px; padding: 6px 10px; text-align: center; }
.rp-kpi .lbl { font-size: 14px; font-weight: 700; color: var(--c-teal-700); }
.rp-kpi .val { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rp-kpi .val small { font-size: 13px; margin-left: 2px; }
.rp-kpi.cash .val { color: #c56a00; }
.rp-kpi .val.neg { color: var(--c-warn); }
.rp-kpi .diff { font-size: 13px; color: #567; }
.rp-kpi .diff.up { color: #1E7A4E; font-weight: 700; }
.rp-kpi .diff.down { color: var(--c-warn); font-weight: 700; }
.rp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.rp-sec { background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.rp-sec h3 { margin: 0 0 6px; font-size: 16px; color: var(--c-teal-700); }
.rp-reasons { margin: 0; padding-left: 22px; }
.rp-reasons > li { margin-bottom: 8px; }
.rp-rtext { font-weight: 700; }
.rp-reasons .good .arrow { color: #1E7A4E; margin-right: 4px; }
.rp-reasons .bad .arrow { color: var(--c-warn); margin-right: 4px; }
.rp-effect { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 400; color: #567; }
.rp-hints { margin: 2px 0 0; padding-left: 18px; font-size: 13px; color: #456; line-height: 1.55; }
.rp-explain { margin: 0 0 6px; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.rp-cash td { font-size: 13px; }
.rp-cl { font-weight: 700; }
.rp-cn { font-size: 12px; color: #567; line-height: 1.45; }
.rp-cash td.num { vertical-align: top; font-size: 15px; font-weight: 700; }
.rp-cash tr.sub td { color: #567; }
.rp-warn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rp-warn li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.55; padding: 4px 8px; border-radius: 8px; }
.rp-warn li.danger { background: #FFECEB; }
.rp-warn li.warn { background: #FFF5E0; }
.rp-warn li.info { background: #EAF7F5; }
.rp-warn .ico { flex: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-weight: 900; text-align: center; line-height: 20px; font-size: 13px; background: var(--c-accent); }
.rp-warn .danger .ico { background: var(--c-warn); }
.rp-warn .warn .ico { background: #F5A623; }
.rp-warn .names { font-weight: 700; color: var(--c-teal-800); }
.rp-parts summary { cursor: pointer; font-weight: 700; color: var(--c-teal-700); }
.rp-parts table { margin-top: 6px; }
