/* Execução da ordem de serviço — também usado na página do fornecedor (os.html). Pensado para o celular. */
.mx { display: flex; flex-direction: column; gap: 10px; }
.mx-h { margin: 14px 0 4px; font-size: 1rem; color: #333; }
.mx-muted { color: #888; font-size: .85rem; }
.mx-alert { background: #fde8eb; color: #b3263c; padding: 10px 12px; border-radius: 8px; }
.mx-info { background: #f3e8ff; color: #6d28d9; padding: 10px 12px; border-radius: 8px; }
.mx-ok-box { background: #e5f6ea; color: #2f8a4c; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.mx-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.mx-bar { flex: 1 1 200px; height: 10px; background: #eee; border-radius: 999px; overflow: hidden; }
.mx-bar i { display: block; height: 100%; background: #7c3aed; }
.mx-score { font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.mx-score.g { background: #e5f6ea; color: #2f8a4c; }
.mx-score.y { background: #fff6dc; color: #9a7400; }
.mx-score.r { background: #fde8eb; color: #c9374d; }
.mx-sec { border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; }
.mx-sec > summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.mx-sec-meta { font-weight: 400; color: #777; font-size: .85rem; white-space: nowrap; }
.mx-nok-t { color: #c9374d; }
.mx-item { border-top: 1px solid #f0f0f0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.mx-a-ok { background: #f7fcf8; }
.mx-a-nok { background: #fff7f8; }
.mx-a-na { background: #fafafa; }
.mx-q { font-size: .95rem; }
.mx-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.mx-opt { flex: 1 1 110px; min-height: 44px; border: 1px solid #d5d5d5; border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.mx-opt.on[data-ans="ok"] { background: #2f9a55; border-color: #2f9a55; color: #fff; }
.mx-opt.on[data-ans="nok"] { background: #d0465a; border-color: #d0465a; color: #fff; }
.mx-opt.on[data-ans="na"] { background: #6b7280; border-color: #6b7280; color: #fff; }
.mx-opt:disabled { cursor: default; opacity: .75; }
.mx-cam { flex: 0 0 56px; }
.mx-note { width: 100%; min-height: 60px; border: 1px solid #f0b9c2; border-radius: 8px; padding: 8px; font: inherit; }
.mx-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-thumb { position: relative; margin: 0; }
.mx-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; cursor: zoom-in; }
.mx-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #d0465a; color: #fff; cursor: pointer; font-weight: 700; }
.mx-x-inline { position: static; }
.mx-add { width: 96px; height: 96px; border: 2px dashed #c9b8f5; border-radius: 8px; background: #faf7ff; color: #7c3aed; cursor: pointer; font: inherit; font-size: .8rem; }
.mx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx-lbl { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: #555; font-weight: 600; }
.mx-lbl textarea, .mx-lbl input, .mx-lbl select, .mx-parts input { border: 1px solid #d5d5d5; border-radius: 8px; padding: 9px; font: inherit; font-weight: 400; }
.mx-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.mx-parts { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mx-parts th, .mx-parts td { border-bottom: 1px solid #eee; padding: 6px; text-align: left; }
.mx-parts input { width: 100%; }
.mx-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mx-end { justify-content: flex-end; }
.mx-btn { background: #2b2b2b; color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 700; cursor: pointer; font-family: inherit; font-size: .9rem; }
.mx-btn.mx-light { background: #fff; color: #2b2b2b; border: 1px solid #ccc; font-weight: 600; }
.mx-btn.mx-big { width: 100%; padding: 16px; font-size: 1rem; background: #7c3aed; }
.mx-submit { margin-top: 12px; text-align: center; }
.mx-signs { display: flex; flex-wrap: wrap; gap: 12px; }
.mx-sign { display: flex; gap: 10px; align-items: center; border: 1px solid #e6e6e6; border-radius: 10px; padding: 8px 12px; background: #fff; font-size: .85rem; }
.mx-sign-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; cursor: zoom-in; }
.mx-sign-draw { width: 160px; height: 56px; object-fit: contain; border-bottom: 1px solid #999; display: block; }
.mx-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 12px; }
.mx-dialog { background: #fff; border-radius: 14px; padding: 18px; width: min(640px, 100%); max-height: 95vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.mx-dialog h3 { margin: 0; }
.mx-canvas { width: 100%; height: auto; aspect-ratio: 600 / 220; border: 2px dashed #c9b8f5; border-radius: 10px; touch-action: none; background: #fff; }
.mx-photo-prev { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
@media (max-width: 700px) {
  .mx-grid { grid-template-columns: 1fr; }
  .mx-thumb img, .mx-add { width: 80px; height: 80px; }
}
