/* 運用保守の契約。style.css・flow.css・br.css の上に重ねる（接頭辞 mn-） */
.mn-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.mn-mt { margin-top: 14px; }
.mn-tips { margin-top: 12px; }
.mn-box { padding: 12px 14px; min-width: 0; }
.mn-tbl { font-size: 12.5px; }
.mn-tbl th, .mn-tbl td { padding: 6px 8px; }
.mn-tbl tbody th { font-weight: 700; }
.mn-tnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.mn-nl { display: block; margin-top: 6px; font-weight: 700; }
.mn-nl a { color: #1d4ed8; text-decoration: none; }
.mn-nl a:hover { text-decoration: underline; }
.mn-systbl { min-width: 760px; }
.mn-systbl tbody th { min-width: 9em; }
.mn-slatbl { min-width: 820px; }
.mn-slatbl tbody th { min-width: 9em; }
.mn-slatbl td { width: 28%; }
.mn-costtbl { min-width: 760px; }
.mn-costtbl td:nth-child(3), .mn-costtbl td:nth-child(4) { white-space: nowrap; font-family: var(--latin); font-size: 12px; }
.mn-costtbl tr.mn-sum th, .mn-costtbl tr.mn-sum td { background: var(--line2); font-weight: 700; }

/* SLA と SLO の印 */
.mn-tag { display: inline-block; font: 600 10.5px/1.6 var(--latin); border-radius: 5px; padding: 0 6px; vertical-align: 1px; white-space: nowrap; }
.mn-t-sla { background: #fee2e2; color: #991b1b; }
.mn-t-slo { background: #e0f2fe; color: #075985; }

/* 範囲の 3 つの箱 */
.mn-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mn-bx { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.mn-bxh { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.mn-bxn { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: 13px; }
.mn-bx-in .mn-bxn { background: #dcfce7; color: #14532d; }
.mn-bx-extra .mn-bxn { background: #fef3c7; color: #78350f; }
.mn-bx-out .mn-bxn { background: #e2e8f0; color: #1e293b; }
.mn-bxc { font: 600 12px var(--latin); color: var(--muted); }
.mn-bxw { margin: 6px 0 8px; font-size: 12px; color: var(--muted); }
.mn-bx ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mn-bx li { font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--any-bg); border: 1px solid var(--line2); }
.mn-bx li b { display: block; font-size: 13px; }
.mn-bx li span { display: block; font-size: 12px; color: var(--ink2); margin-top: 1px; }

/* 計算機 */
.mn-ctl { padding: 12px 14px; display: grid; gap: 8px; margin-bottom: 10px; }
.mn-crow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mn-lab { font-size: 12.5px; font-weight: 700; color: var(--muted); min-width: 5em; }
.mn-own { font-size: 12px; font-weight: 700; color: #92400e; align-self: center; }
.mn-exwhat { margin: 0; font-size: 13px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 11px; }
.mn-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; align-items: start; margin-bottom: 4px; }
.mn-form { padding: 10px 14px 12px; margin: 0; min-width: 0; }
.mn-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.mn-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--ink2); min-width: 0; }
.mn-fields label small { font-size: 11px; font-weight: 500; color: var(--muted); }
.mn-inp { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: auto; }
.mn-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 8px; min-width: 0; width: 100%; box-sizing: border-box; }
.mn-inp em { flex: none; font-style: normal; font-size: 11.5px; color: var(--muted); }
.mn-out { padding: 12px 14px; min-width: 0; }
.mn-verdict { margin: 0 0 10px; font-size: 13.5px; border-radius: 8px; padding: 8px 11px; }
.mn-verdict b { display: inline-block; margin-right: 8px; font-size: 14px; }
.mn-verdict.mn-ok { background: #f0fdf4; color: #14532d; }
.mn-verdict.mn-ng { background: #fef2f2; color: #7f1d1d; }
.mn-warn { margin: 0 0 10px; font-size: 12.5px; color: #78350f; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 9px; }
.mn-dtbl, .mn-rtbl { font-size: 12.5px; }
.mn-dtbl th, .mn-dtbl td, .mn-rtbl th, .mn-rtbl td { padding: 5px 8px; }
.mn-dtbl th { font-weight: 500; color: var(--ink2); width: 42%; }
.mn-dtbl td { font-family: var(--latin); font-size: 12.5px; }
.mn-dtbl td b { font-size: 14px; }
.mn-rtbl tbody th { font: 600 12.5px var(--latin); }
.mn-rtbl td { font-family: var(--latin); }
.mn-rtbl tr.mn-on th, .mn-rtbl tr.mn-on td { background: #f0fdf4; }
.mn-rb { appearance: none; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); border-radius: 999px; padding: 3px 10px; cursor: pointer; white-space: nowrap; }
.mn-rb:hover { border-color: #94a3b8; color: var(--ink); }
.mn-rb[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.mn-fnote { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* 残す形 */
.mn-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.mn-tpl { padding: 12px 14px; min-width: 0; }
.mn-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mn-tplh .mn-h4 { margin: 0; }
.mn-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; }
.mn-scopetbl { min-width: 900px; }
.mn-scopetbl td:nth-child(3) { min-width: 16em; }
.mn-revtbl { min-width: 1000px; }
.mn-revtbl td { min-width: 8em; }

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

@media (max-width: 1100px) {
  .mn-calc { grid-template-columns: minmax(0, 1fr); }
  .mn-boxes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mn-fields { grid-template-columns: minmax(0, 1fr); }
  .mn-lab { min-width: 0; width: 100%; }
}
