/* Central de Manutenção (Etapa 1): quadro, calendário, equipamentos, checklists */
.mt-qr-btn { min-width: 0; }
.mt-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mt-stat { border: 1px solid #e6e6e6; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.mt-stat strong { font-size: 1.6rem; line-height: 1; }
.mt-stat span { font-size: .82rem; color: #666; }
.mt-stat.r strong { color: #d0465a; }
.mt-stat.y strong { color: #b88a00; }
.mt-stat.b strong { color: #2f6fd0; }
.mt-stat.p strong { color: #7c3aed; }
.mt-stat.g strong { color: #2f9a55; }
.mt-views { display: inline-flex; border: 1px solid #d5d5d5; border-radius: 8px; overflow: hidden; }
.mt-view { background: #fff; border: 0; padding: 9px 12px; cursor: pointer; font: inherit; font-size: .85rem; color: #444; }
.mt-view.active { background: #2b2b2b; color: #fff; }
.mt-board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.mt-col { background: #f5f5f7; border-radius: 10px; padding: 8px; min-height: 160px; }
.mt-col.mt-drop { outline: 2px dashed #7c3aed; }
.mt-col-h { font-weight: 700; font-size: .85rem; color: #444; display: flex; justify-content: space-between; padding: 4px 4px 8px; }
.mt-col-h span { background: #fff; border-radius: 999px; padding: 0 8px; font-weight: 600; }
.mt-col-b { display: flex; flex-direction: column; gap: 8px; }
.mt-col-empty { color: #aaa; text-align: center; padding: 16px 0; }
.mt-card { background: #fff; border-radius: 8px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: pointer; border-left: 4px solid #ccc; }
.mt-card[draggable="true"] { cursor: grab; }
.mt-card:hover { box-shadow: 0 2px 8px rgba(124,58,237,.18); }
.mt-pr-low { border-left-color: #9ca3af; }
.mt-pr-medium { border-left-color: #3b82f6; }
.mt-pr-high { border-left-color: #f59e0b; }
.mt-pr-urgent { border-left-color: #dc2626; }
.mt-late { background: #fff6f7; }
.mt-card-t { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.mt-card-s, .mt-card-w { font-size: .78rem; color: #666; }
.mt-card-w { color: #9a7400; margin-top: 4px; }
.mt-card-f { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .75rem; color: #666; margin-top: 6px; }
.mt-kind { margin-left: auto; color: #999; }
.mt-score { border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.mt-score.g { background: #e5f6ea; color: #2f8a4c; }
.mt-score.y { background: #fff6dc; color: #9a7400; }
.mt-score.r { background: #fde8eb; color: #c9374d; }
.mt-stage { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: #eee; color: #555; }
.mt-st-open { background: #eef2ff; color: #4f46e5; }
.mt-st-doing { background: #e0f2fe; color: #0369a1; }
.mt-st-waiting { background: #fff6dc; color: #9a7400; }
.mt-st-validate { background: #f3e8ff; color: #7c3aed; }
.mt-st-completed { background: #e5f6ea; color: #2f8a4c; }
.mt-st-cancelled { background: #f1f1f1; color: #888; }
.mt-tag { font-size: .7rem; background: #efe9fb; color: #7c3aed; padding: 1px 6px; border-radius: 6px; }
.mt-calhead { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px; }
.mt-calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mt-cwd { text-align: center; font-size: .78rem; color: #777; font-weight: 600; padding: 4px 0; }
.mt-cday { min-height: 96px; border: 1px solid #ececec; border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.mt-cempty { border: 0; }
.mt-ctoday { border-color: #7c3aed; background: #faf7ff; }
.mt-cnum { font-size: .75rem; color: #666; }
.mt-cev { border: 0; border-radius: 4px; font-size: .72rem; text-align: left; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mt-cmore { font-size: .7rem; color: #888; }
.mt-eq { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; }
.mt-eq-qr { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mt-eq-qr svg { width: 160px; height: 160px; }
.mt-eq-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mt-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; max-height: 50vh; overflow: auto; margin-top: 8px; }
.mt-tpl h5 { margin: 6px 0; color: #7c3aed; }
.mt-tpl .uc-check { display: flex; margin: 3px 0; font-size: .88rem; }
.mt-cktext { font-family: Consolas, monospace; font-size: .85rem; width: 100%; }
.mt-link { width: 100%; padding: 10px; border: 1px solid #d5d5d5; border-radius: 8px; font-size: .85rem; }
.mt-notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid #eee; }
@media (max-width: 900px) {
  .mt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-board { grid-template-columns: repeat(5, 78vw); }
  .mt-eq { grid-template-columns: 1fr; }
  .mt-cday { min-height: 60px; }
}
/* Etapa 2 — Painel e Plano de manutenção */
.mt-stat small { display: block; font-size: .72rem; color: #71717a; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.mp-box { border: 1px solid #e4e4e7; border-radius: 10px; padding: 14px 16px; background: #fff; }
.mp-box h4 { margin: 0 0 10px; font-size: .95rem; }
.mp-wide { grid-column: 1 / -1; }
.mp-rate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mp-rate strong { font-size: 1.8rem; color: #6d28d9; display: block; line-height: 1.1; }
.mp-rate span { font-size: .8rem; color: #52525b; }
.mp-rate small { display: block; font-size: .75rem; color: #71717a; margin-top: 4px; }
.mp-bar { height: 8px; background: #f4f4f5; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.mp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #22c55e); }
.mp-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mp-kv li { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; }
.mp-late td { color: #b91c1c; }
.mp-intro { margin: 4px 0 14px; }
.mp-group { margin-bottom: 18px; }
.mp-group h4 { margin: 0 0 8px; }
.mp-group summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.mp-tpls { display: grid; gap: 8px; max-height: 55vh; overflow: auto; }
.mp-tpl { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e4e4e7; border-radius: 8px; padding: 10px; cursor: pointer; }
.mp-tpl span { display: grid; gap: 2px; }
.mp-tpl small { color: #71717a; }
.mp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-mode { display: grid; gap: 4px; }
.mp-inline, .mp-months { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 640px) { .mp-two, .mp-rate { grid-template-columns: 1fr; } }
/* Etapas 3 e 4 */
.mc-chip { display: inline-block; font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.mc-r { background: #fee2e2; color: #b91c1c; } .mc-y { background: #fef3c7; color: #92400e; } .mc-g { background: #dcfce7; color: #166534; } .mc-b { background: #e0e7ff; color: #3730a3; }
.mc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mc-photo { max-width: 100%; max-height: 260px; border-radius: 8px; margin-bottom: 10px; display: block; }
.mc-env input { width: 100%; min-width: 80px; padding: 5px 6px; border: 1px solid #e4e4e7; border-radius: 6px; }
.mp-warn { border-color: #fcd34d; background: #fffbeb; }
.mp-warn p { margin: 4px 0; }
.mx-prev-nc ul { margin: 6px 0 0 18px; padding: 0; }
