/* Maintenance: what's due, logging service, registrations, history, intervals.
   Built on the Command Center's tokens and panels (command-center.css). */
.mt-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.mt-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:var(--gap);align-items:stretch}
.mt-grid > .panel{min-height:0;max-height:640px}
.mt-rail{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.mt-grid2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:var(--gap);align-items:start}
.mt-grid2:has(#reminders-panel[hidden]){grid-template-columns:1fr}
.mt-hist{max-height:360px}
.mt-filter{margin-left:auto;display:flex;align-items:center;gap:12px}
.mt-filter select,.mt-form input,.mt-form select,.mt-form textarea,.tbl input{height:30px;background:var(--bg-0);border:1px solid var(--line-strong);border-radius:var(--r);color:var(--text-1);padding:0 8px;font:12.5px var(--font);min-width:0}
.mt-form textarea{height:auto;padding:6px 8px;resize:vertical}
.mt-form{display:flex;flex-direction:column;gap:10px}
.mt-form label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:600;color:var(--text-2)}
.mt-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mt-three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
a.unit-link{color:var(--text-1);text-decoration:underline;text-underline-offset:2px}
.tbl input{height:26px;width:84px;font:12px var(--mono)}
.tbl input[type=date]{width:136px}
.tbl td.num{font-family:var(--mono);white-space:nowrap}
.st-overdue{color:var(--danger)} .st-due_soon{color:var(--gold)} .st-no_record{color:var(--text-3)} .st-ok{color:var(--teal)}
.chip.st{background:var(--bg-2)} .chip.st-overdue{background:var(--danger-soft)} .chip.st-due_soon{background:var(--gold-soft)} .chip.st-ok{background:var(--teal-soft)}
tr.voided td{opacity:.45;text-decoration:line-through} tr.voided td:last-child{text-decoration:none}
.proposed{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gold)}
.mt-rem-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.mt-rem-row:last-child{border-bottom:0}
.btn.sm{height:24px;padding:0 8px;font-size:10.5px}
.ok-text{color:var(--ok)}
@media (max-width:1000px){.mt-grid,.mt-grid2{grid-template-columns:1fr}.mt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
