/* ===== Movimentação de vidas (prefixo mov-). Só variáveis --mds-*; nada de cor fixa. ===== */
.mov-pag { display: block; min-width: 0; }
.mov-pag h2 { font-size: 16px; line-height: 1.25; margin: 0 0 8px; }
.mov-apoio { color: var(--mds-apoio); font-size: 12px; font-weight: 400; }
.mov-p { margin: 4px 0 8px; }
.mov-pag .mds-cartao { margin-bottom: 12px; min-width: 0; }
.mov-pag .mds-kpis { margin-bottom: 12px; }

/* fila */
.mov-filtros .mds-campo { min-width: 150px; flex: 1 1 150px; }
.mov-filtros .mds-btn { flex: 0 0 auto; }
.mov-resumo { margin: 0 0 8px; color: var(--mds-apoio); font-size: 12px; }
.mov-mais { display: flex; justify-content: center; padding: 12px 0 4px; }
.mov-cli { display: inline-block; max-width: 220px; overflow-wrap: anywhere; }
.mov-trilha { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.mov-trilha i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--mds-borda); background: var(--mds-superficie); display: block; }
.mov-trilha i.feita { background: var(--mds-ok); border-color: var(--mds-ok); }
.mov-trilha i.atual { background: var(--mds-primaria); border-color: var(--mds-primaria); box-shadow: 0 0 0 3px var(--mds-info-suave); }
.mov-trilha i.erro { background: var(--mds-erro); border-color: var(--mds-erro); box-shadow: 0 0 0 3px var(--mds-erro-suave); }
.mov-etapa-rot { font-size: 12px; color: var(--mds-apoio); }
.mov-corte-ok { color: var(--mds-ok); font-weight: 600; }
.mov-corte-erro { color: var(--mds-erro); font-weight: 600; }
.mov-corte-neutro { color: var(--mds-apoio); }
.mov-pag .mds-tabela td:first-child { white-space: nowrap; }
.mov-pag .mds-tabela td[data-rot="Corte"] { white-space: nowrap; }

/* tipos */
.mov-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mov-tipo { display: flex; flex-direction: column; gap: 6px; margin: 0 !important; }
.mov-tipo h2 { font-size: 16px; margin: 2px 0 0; }
.mov-tipo h2 b { color: var(--mds-primaria); margin-right: 4px; }
.mov-tipo p { margin: 0; }
.mov-tipo-topo { display: flex; align-items: flex-start; gap: 8px; }
.mov-ordem { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--mds-info-suave); color: var(--mds-primaria); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mov-pergunta { font-size: 12px; color: var(--mds-apoio); font-weight: 600; line-height: 1.35; }
.mov-dl { margin: 4px 0 0; display: grid; gap: 2px; font-size: 13px; }
.mov-dl dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--mds-apoio); margin-top: 6px; }
.mov-dl dd { margin: 0; overflow-wrap: anywhere; }
.mov-dl ul { margin: 0; padding-left: 16px; }
.mov-dl-2 { grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; }
.mov-dl-2 dt { margin-top: 0; align-self: center; }
.mov-tipo-acoes { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

/* por operadora */
.mov-op-topo { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 12px 24px; align-items: end; }
.mov-op-resumo { display: flex; flex-direction: column; gap: 2px; }
.mov-op-resumo strong { font-size: 18px; }
.mov-op-resumo span { color: var(--mds-apoio); font-size: 13px; }
.mov-legenda { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--mds-apoio); }
.mov-legenda > span { margin-right: 10px; }
.mov-cel { display: block; min-width: 0; overflow-wrap: anywhere; }
.mov-cel > .mov-apoio { display: block; }
.mov-sep { color: var(--mds-apoio); }
.mov-col-rota { min-width: 220px; }
.mov-col-docs { min-width: 180px; }
.mov-docs-l { margin: 0; padding-left: 14px; font-size: 12px; }
.mov-pag tr.mov-destaque td { background: var(--mds-info-suave); }
.mov-pag tr.mov-destaque td:first-child { box-shadow: inset 3px 0 0 var(--mds-primaria); }

/* detalhe */
.mov-tempo { padding: 14px 16px; }
.mov-etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; position: relative; }
.mov-et { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative; }
.mov-et::before { content: ""; position: absolute; top: 13px; left: 30px; right: -10px; height: 2px; background: var(--mds-borda); }
.mov-et:last-child::before { display: none; }
.mov-et-feita::before { background: var(--mds-ok); }
.mov-marca { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--mds-borda); background: var(--mds-superficie); color: var(--mds-apoio); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.mov-et-feita .mov-marca { background: var(--mds-ok); border-color: var(--mds-ok); color: var(--mds-sobre-cor); }
.mov-et-atual .mov-marca { background: var(--mds-primaria); border-color: var(--mds-primaria); color: var(--mds-sobre-cor); box-shadow: 0 0 0 4px var(--mds-info-suave); }
.mov-et-erro .mov-marca { background: var(--mds-erro); border-color: var(--mds-erro); color: var(--mds-sobre-cor); box-shadow: 0 0 0 4px var(--mds-erro-suave); }
.mov-et-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mov-et-txt b { font-size: 13px; line-height: 1.25; }
.mov-et-txt small { font-size: 11px; color: var(--mds-apoio); line-height: 1.35; overflow-wrap: anywhere; }
.mov-et-txt .mov-nota { color: var(--mds-texto); }
.mov-et-pendente .mov-et-txt b { color: var(--mds-apoio); }
.mov-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.mov-col { min-width: 0; }
.mov-lista { list-style: none; margin: 0; padding: 0; }
.mov-lista li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--mds-borda); font-size: 13px; }
.mov-lista li:first-child { border-top: 0; }
.mov-lista label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; min-width: 0; }
.mov-lista label span { overflow-wrap: anywhere; }
.mov-ck { margin-top: 2px; flex: 0 0 auto; accent-color: var(--mds-primaria); }
.mov-regra { margin: 0; font-size: 15px; }
.mov-links { margin: 8px 0 0; font-size: 13px; }

/* nova movimentação */
.mov-form { max-width: 880px; }
.mov-stepper { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; }
.mov-stepper li { flex: 1 1 0; min-width: 0; border-bottom: 3px solid var(--mds-borda); }
.mov-stepper li.feito { border-color: var(--mds-ok); }
.mov-stepper li.atual { border-color: var(--mds-primaria); }
.mov-stepper button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 2px 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mds-apoio); }
.mov-stepper li.atual button { color: var(--mds-texto); }
.mov-stepper button:disabled { cursor: default; }
.mov-stepper button:focus-visible { outline: 2px solid var(--mds-primaria); outline-offset: 2px; }
.mov-n { width: 22px; height: 22px; border-radius: 50%; background: var(--mds-borda); color: var(--mds-texto); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.mov-stepper li.atual .mov-n { background: var(--mds-primaria); color: var(--mds-sobre-cor); }
.mov-stepper li.feito .mov-n { background: var(--mds-ok); color: var(--mds-sobre-cor); }
.mov-tipos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mov-tipo-btn { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--mds-borda); border-radius: var(--mds-raio); background: var(--mds-superficie); cursor: pointer; min-width: 0; }
.mov-tipo-btn b { color: var(--mds-primaria); }
.mov-tipo-btn span { font-size: 13px; overflow-wrap: anywhere; }
.mov-tipo-btn:hover { background: var(--mds-fundo); }
.mov-tipo-btn[aria-pressed="true"] { border-color: var(--mds-primaria); background: var(--mds-info-suave); box-shadow: inset 0 0 0 1px var(--mds-primaria); }
.mov-tipo-btn:focus-visible { outline: 2px solid var(--mds-primaria); outline-offset: 2px; }
.mov-campo { max-width: 420px; }
.mov-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mov-dica { margin: 12px 0 0; }
.mov-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--mds-borda); }
.mov-resumo-box { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 10px 12px; border-radius: var(--mds-raio); background: var(--mds-fundo); border: 1px solid var(--mds-borda); font-size: 13px; }
.mov-form [data-aviso]:not(:empty) { margin-bottom: 12px; }

@media (max-width: 1100px) {
  .mov-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mov-etapas { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .mov-et:nth-child(3)::before { display: none; }
}
@media (max-width: 760px) {
  .mov-duas { grid-template-columns: minmax(0, 1fr); }
  .mov-op-topo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .mov-cel { text-align: right; } }
@media (max-width: 640px) {
  .mov-grade { grid-template-columns: minmax(0, 1fr); }
  .mov-etapas { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mov-et { flex-direction: row; align-items: flex-start; padding-bottom: 14px; }
  .mov-et::before { top: 28px; bottom: 0; left: 13px; right: auto; width: 2px; height: auto; }
  .mov-stepper { flex-direction: column; gap: 0; }
  .mov-stepper li { border-bottom: 0; border-left: 3px solid var(--mds-borda); padding-left: 8px; }
  .mov-stepper button { padding: 6px 0; }
  .mov-nav .mds-btn { flex: 1 1 auto; }
  .mov-filtros .mds-campo { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .mov-tipos-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mov-stepper button { padding: 3px 0; }
  .mov-cli { max-width: none; }
  .mov-tipo-acoes .mds-btn { width: 100%; }
  .mov-col-rota, .mov-col-docs { min-width: 0; }
}
