/* 建築・土木の単位変換ツール（tools/unit-converter）の画面と帳票の表。index.php・report.php が swl_page_assets() で読む */

/* 換算した値の表の、単位の組（SI 単位・重力単位など）の見出し */
.ucv-group-title { margin: var(--space-4) 0 var(--space-2); font-size: var(--fs-base); }
#ucv-result > .ucv-group-title:first-child { margin-top: var(--space-2); }
.ucv-table { margin-bottom: var(--space-2); }

/* 入れた値の単位の行。水色の地の上の注記は、デフォルトの灰色だと文字の濃さが足りないので濃くする（勾配計算と同じ） */
.ucv-row-input { background: var(--accent-soft); }
.ucv-row-input th, .ucv-row-input .rdk-row-note { color: #3f4a57; }

/* ページの換算表（技術解説と同じ箱に入れる） */
.ucv-reference-table { width: auto; font-size: var(--fs-sm); }
.ucv-reference-table th, .ucv-reference-table td { padding: 4px 8px; }
.table-scroll .ucv-reference-table th[scope="row"] { text-align: left; font-weight: 400; color: var(--text); }
.ucv-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ucv-nowrap { white-space: nowrap; }
/* 換算表のセルの 2 行（重力単位から SI 単位と、その逆） */
.ucv-line { display: block; }
/* 狭い画面では、「1 kgf ＝」と「9.80665 N」の間でだけ折り、表を枠に収める（.table-scroll の中の表は折り返さないので、強さをそろえて戻す） */
@media (max-width: 600px) {
    .table-scroll .ucv-reference-table td.ucv-num { white-space: normal; }
    .ucv-reference-table th, .ucv-reference-table td { padding: 4px 5px; }
    .ucv-reference-table th[scope="row"] { width: 6em; }
}
