/* 働き方の法令の要点。style.css・flow.css・br.css の上に重ねる（接頭辞 lw-） */
.lw-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.lw-mt { margin-top: 12px; }
.lw-nl { display: block; margin: 6px 0 0; }
.lw-tips { margin-top: 12px; }
.lw-box { padding: 12px 14px; min-width: 0; }
.lw-tbl { font-size: 12.5px; }
.lw-tbl th, .lw-tbl td { padding: 6px 8px; }
.lw-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.lw-own { font-size: 12px; font-weight: 700; color: #92400e; align-self: center; }

/* 人と案件の表 */
.lw-ptbl { min-width: 860px; }
.lw-ptbl tbody th { font-weight: 700; min-width: 12em; }
.lw-ptbl td:nth-child(2) { min-width: 16em; }

/* 判定の操作 */
.lw-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.lw-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lw-lab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 5em; }
.lw-what { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.lw-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; align-items: start; }
.lw-form { padding: 12px 14px; margin: 0; min-width: 0; }
.lw-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
.lw-fields.lw-prev { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lw-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ink2); min-width: 0; }
.lw-fields label > span:first-child { display: flex; flex-direction: column; gap: 1px; }
.lw-fields label small { font-size: 11px; font-weight: 500; color: var(--muted); }
.lw-inp { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: auto; }
.lw-inp input { font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 9px; padding: 5px 7px; min-width: 0; width: 100%; box-sizing: border-box; }
.lw-inp em { flex: none; font-style: normal; font-size: 11.5px; color: var(--muted); }
.lw-out { padding: 12px 14px; min-width: 0; position: sticky; top: 12px; }
.lw-verdict { margin: 0 0 10px; font-size: 13.5px; border-radius: 10px; padding: 9px 12px; border: 1px solid transparent; }
.lw-verdict b { display: block; font-size: 15px; }
.lw-verdict span { display: block; margin-top: 2px; font-size: 12.5px; }
.lw-verdict.lw-v-ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.lw-verdict.lw-v-sp { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.lw-verdict.lw-v-ng { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.lw-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.lw-num { background: var(--line2); border-radius: 10px; padding: 6px 4px; text-align: center; min-width: 0; }
.lw-num b { display: block; font: 700 19px/1.2 var(--latin); color: var(--ink); }
.lw-num span { font-size: 11px; font-weight: 700; color: var(--ink2); }
.lw-rtbl { min-width: 0; }
.lw-rtbl tbody th { font-weight: 700; }
.lw-rtbl tbody th small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.lw-rtbl td:nth-child(2) { white-space: nowrap; font-family: var(--latin); font-size: 12px; }
.lw-st { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 8px; white-space: nowrap; border: 1px solid transparent; }
.lw-st.lw-s-ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.lw-st.lw-s-sp { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.lw-st.lw-s-ng { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lw-notes { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 12.5px; color: #7c2d12; }
.lw-next { margin: 0; padding-left: 1.2em; display: grid; gap: 3px; font-size: 12.5px; color: var(--ink2); }

/* 残す形 */
.lw-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.lw-tpl { padding: 12px 14px; min-width: 0; }
.lw-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lw-tplh .lw-h4 { margin: 0; }
.lw-pre { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; font: 500 12px/1.6 var(--latin); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.lw-wtbl { min-width: 1500px; }
.lw-wtbl th { white-space: nowrap; }
.lw-wtbl td:nth-child(3), .lw-wtbl td:nth-child(12), .lw-wtbl td:nth-child(13) { min-width: 14em; }
.lw-ctbl { min-width: 1100px; }
.lw-ctbl td:nth-child(1), .lw-ctbl td:nth-child(6) { min-width: 15em; }

.lw-inp input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 1100px) {
  .lw-tool { grid-template-columns: minmax(0, 1fr); }
  .lw-out { position: static; }
}
@media (max-width: 760px) {
  .lw-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw-fields.lw-prev { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lw-lab { min-width: 0; width: 100%; }
  .lw-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lw-rtbl td:nth-child(2) { white-space: normal; }
}
