/* 保守の契約と SLA。style.css・flow.css・fm.css の上に重ねる */
.mt-lead { margin: 0 0 8px; font-size: 13px; color: var(--ink2); }
.mt-note { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.mt-score { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.mt-bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }
.mt-judge { margin: 8px 0 0; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 7px 10px; }
.mt-judge.ok { background: #f0fdf4; color: #14532d; }
.mt-judge.ng { background: #fef2f2; color: #7f1d1d; }
.mt-judge.mid { background: #fffbeb; color: #78350f; }
.mt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.mt-list { padding: 12px 14px; }
.mt-list h3 { margin: 0 0 6px; font-size: 14px; }
.mt-list ul, .mt-list ol { margin: 0; padding-left: 1.3em; font-size: 13px; color: var(--ink2); display: grid; gap: 3px; }
.mt-list.out { background: #f8fafc; }
#mtKindFacts { margin-top: 10px; }
/* 練習: 仕分けと重さ */
.mt-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mt-case, .mt-ev { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mt-case > p, .mt-ev > p { margin: 0; font-size: 13.5px; color: var(--ink); }
.mt-case > p.mt-cd, .mt-ev > p.mt-cd { font: 600 12px var(--latin); color: #1d4ed8; }
.mt-case.ok, .mt-ev.ok { border-color: #86efac; }
.mt-case.ng, .mt-ev.ng { border-color: #fca5a5; }
.mt-copts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mt-copts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-copts button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 7px 6px; color: var(--ink2); }
.mt-copts button:hover { border-color: #94a3b8; }
.mt-copts button[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.mt-fb { margin: 0; font-size: 12.5px; border-radius: 8px; padding: 7px 10px; background: var(--line2); color: var(--ink2); }
.mt-case.ok .mt-fb, .mt-ev.ok .mt-fb { background: #f0fdf4; color: #14532d; }
.mt-case.ng .mt-fb, .mt-ev.ng .mt-fb { background: #fef2f2; color: #7f1d1d; }
.mt-fb .srcl { display: block; margin-top: 4px; }
.mt-fb p { margin: 4px 0 0; }
.mt-kind { font-size: 12px; color: var(--muted); }
.mt-dead { font-size: 13px; color: var(--ink); }
.mt-dead b { font-family: var(--latin); font-size: 13px; }
/* 練習: 時間の枠 */
.mt-quota { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; margin-top: 10px; align-items: start; }
.mt-qin, .mt-qout { padding: 12px 14px; }
.mt-inputs { display: grid; gap: 6px; }
.mt-inputs label, .mt-cin { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.mt-inputs label span, .mt-cin span { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; flex: none; }
.mt-inputs input, .mt-cin input { font: inherit; font-size: 14px; width: 6.5em; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--paper); color: var(--ink); text-align: right; }
.mt-inputs input:disabled, .mt-cin input:disabled { background: var(--line2); color: var(--muted); }
.mt-inputs .mt-free { border-top: 1px dashed var(--line); padding-top: 6px; color: var(--muted); }
.mt-carry { margin: 10px 0 6px; }
.mt-bar { position: relative; height: 16px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.mt-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: #0d9488; border-radius: 999px; }
.mt-bar span.warn { background: #f59e0b; }
.mt-bar span.over { background: #b91c1c; }
.mt-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: #0f172a; opacity: .5; }
.mt-dl { margin: 10px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13px; }
.mt-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 1px; }
.mt-dl dd { margin: 0; font-weight: 700; color: var(--ink); }
.mt-dl dd small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.mt-kv th { min-width: 7.5em; }
.mt-mon th { min-width: 9em; }
/* 保守料 */
.mt-n { text-align: right !important; font-family: var(--latin); white-space: nowrap; }
.mt-sum th, .mt-sum td { font-weight: 700; border-top: 1px solid var(--line); }
/* 期限の計算 */
.mt-calc { padding: 12px 14px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.mt-cinputs { display: grid; gap: 8px; }
.mt-cinputs label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mt-cinputs input, .mt-cinputs select { font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--paper); color: var(--ink); min-width: 0; }
.mt-cout p { margin: 0 0 6px; }
/* 報告 */
.mt-rep { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; align-items: start; }
.mt-repcards { grid-template-columns: minmax(0, 1fr) !important; }
/* 契約不適合の期間との関係 */
.mt-tlbox { padding: 14px 16px; }
.mt-track { position: relative; height: 74px; margin: 6px 0 10px; border-bottom: 2px solid var(--line); }
.mt-band { position: absolute; height: 26px; border-radius: 8px; display: flex; align-items: center; overflow: hidden; }
.mt-band span { font-size: 11.5px; font-weight: 700; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-band.liab { top: 6px; background: #dbeafe; color: #1e3a8a; }
.mt-band.maint { top: 38px; background: #ccfbf1; color: #134e4a; border-radius: 8px 0 0 8px; }
.mt-mark { position: absolute; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0f172a; }
.mt-mark.acc { background: #1d4ed8; }
.mt-mark.start { background: #0d9488; }
.mt-mark.end { background: #b91c1c; }
.mt-mark.renew { background: #64748b; }
.mt-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 12.5px; color: var(--ink2); }
.mt-tl li { border-left: 4px solid #0f172a; padding: 2px 8px; }
.mt-tl li.acc { border-color: #1d4ed8; }
.mt-tl li.start { border-color: #0d9488; }
.mt-tl li.end { border-color: #b91c1c; }
.mt-tl li.renew { border-color: #64748b; }
.mt-td { display: block; font: 600 12px var(--latin); color: var(--ink); }
#mtLiab { margin-top: 10px; }
.mt-hand { margin-top: 10px; }
.mt-hand ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.mt-copts button:focus-visible, .mt-inputs input:focus-visible, .mt-cin input:focus-visible, .mt-cinputs input:focus-visible, .mt-cinputs select:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 1100px) {
  .mt-quota, .mt-calc, .mt-rep { grid-template-columns: minmax(0, 1fr); }
  .mt-tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mt-two, .mt-cases { grid-template-columns: minmax(0, 1fr); }
  .mt-copts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-hand ul { grid-template-columns: minmax(0, 1fr); }
  .mt-band span { font-size: 10.5px; padding: 0 5px; }
}
