/* 見積もりの読み方。style.css・flow.css・br.css の上に重ねる（接頭辞 es-） */
.es-box { padding: 12px 14px; min-width: 0; }
.es-mt { margin-top: 10px; }
.es-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.es-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.es-num { font-family: var(--latin); font-weight: 600; white-space: nowrap; }

/* 例の表・内訳の表 */
.es-case th { width: 10em; font-weight: 700; color: var(--ink2); }
.es-read { min-width: 640px; }
.es-read tbody th { font-weight: 700; }
.es-read tfoot th, .es-read tfoot td { border-top: 2px solid var(--line); }
.es-read tfoot b { font: 700 15px var(--latin); }
.es-items { margin: 0; padding-left: 1.2em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 18px; font-size: 13px; color: var(--ink2); }

/* 道具: 前提を選ぶ */
.es-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.es-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.es-lab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 9em; }

/* 道具: 3 社の比べ表 */
.es-cmp { min-width: 760px; table-layout: fixed; }
.es-cmp thead th:first-child { width: 11em; }
.es-cmp tbody th { font-weight: 700; color: var(--ink2); }
.es-cmp td { min-width: 0; overflow-wrap: anywhere; }
.es-big { display: block; font: 700 16px var(--latin); color: var(--ink); }
.es-sm { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.es-out { display: inline-block; font-size: 12px; font-weight: 700; color: #9a3412; background: #fff7ed; border-radius: 6px; padding: 1px 7px; margin: 1px 0; }
.es-in { display: inline-block; font-size: 12px; font-weight: 700; color: #166534; background: #f0fdf4; border-radius: 6px; padding: 1px 7px; }
.es-sum { padding: 10px 14px; margin-top: 10px; font-size: 13.5px; }
.es-sum p { margin: 0 0 6px; color: var(--ink2); }
.es-sum p:last-child { margin-bottom: 0; }
.es-sum b { color: var(--ink); }
.es-warn { background: #fff7ed; color: #7c2d12 !important; border-radius: 8px; padding: 6px 10px; }
.es-okp { background: #f0fdf4; color: #14532d !important; border-radius: 8px; padding: 6px 10px; }
.es-ratio { min-width: 560px; }
.es-ratio tbody th { font-weight: 700; }
.es-cellout { background: #fff7ed; color: #9a3412; }

.es-mcards { display: none; }
.es-mcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.es-dl { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px 10px; font-size: 13px; }
.es-dl dt { font-size: 12px; font-weight: 700; color: var(--ink2); }
.es-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* 残す形 */
.es-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.es-tpl { padding: 12px 14px; min-width: 0; }
.es-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.es-tplh .es-h4 { margin: 0; }
.es-ttbl { min-width: 980px; font-size: 12.5px; }
.es-ttbl th { white-space: nowrap; }
.es-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; }

@media (max-width: 760px) {
  .es-cmpbox { display: none; }
  .es-mcards { display: grid; gap: 8px; }
  .es-items { grid-template-columns: minmax(0, 1fr); }
  .es-lab { min-width: 0; width: 100%; }
  .es-case th { width: 6.5em; }
}
