/* O levantamento do mês (#levantamento, novo-levantamento.js) e o cartão
   dele no Início. Só tokens; os componentes são os do design system. */

.tl-lev-titulo { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }

/* a fila dos 5 passos */
.tl-lev-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tl-lev-passo { position: relative; width: 100%; min-height: 56px; display: grid; justify-items: center; align-content: center; gap: 4px;
  padding: 6px 2px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); color: var(--muted);
  font: 500 12px/1.1 var(--font-texto); cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease; }
.tl-lev-passo[aria-current="step"] { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.tl-lev-passo:focus-visible, .tl-lev-ir:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tl-lev-passo__n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 500 11px/1 var(--font-mono); }
.tl-lev-passo[aria-current="step"] .tl-lev-passo__n { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.tl-lev-passo__nome { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lev-passo__marca { position: absolute; top: -6px; right: -4px; box-sizing: border-box; }
.tl-lev-passo__marca--ok { top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.tl-lev-passo__marca--falta { min-width: 18px; height: 18px; padding: 0 4px; border: 1.5px solid var(--ground); display: grid; place-items: center; border-radius: 999px;
  background: var(--res-soft); color: var(--res); font: 700 11px/1 var(--font-texto); font-variant-numeric: tabular-nums; }

/* o passo aberto */
.tl-lev-corpo { display: flex; flex-direction: column; gap: 12px; }
.tl-lev-h { margin: -6px 0 0; font: 700 22px/1.2 var(--font-texto); color: var(--ink); }
.tl-lev-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tl-lev-fechado { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* passo 1 */
.tl-lev-linha { grid-template-columns: minmax(0, 1fr) auto; }
.tl-lev-linha:last-of-type { border-bottom: 0; }
.tl-lev-linha .od-estado { height: 22px; padding: 0 8px; }
.tl-lev-erro { color: var(--neg); }
.tl-lev-ler { align-self: flex-start; }

/* passo 2 */
.tl-lev-mov { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
.tl-lev-mov__nota { font-size: 12px; color: var(--muted); text-align: right; min-width: 0; }
.tl-lev-mov .od-btn--pequeno { padding: 0 10px; }

/* passo 4 */
.tl-lev-conta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.tl-lev-conta b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-lev-orc { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tl-lev-orc:last-of-type { border-bottom: 0; }
.tl-lev-orc__topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tl-lev-orc__cat { font: 600 15px/1.3 var(--font-texto); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lev-orc__val { font: 700 14px var(--font-texto); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.tl-lev-orc__val span { font-weight: 500; color: var(--muted); }
.tl-lev-orc__barra { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tl-lev-orc__barra i { display: block; height: 100%; border-radius: 4px; }
.tl-lev-orc__msg { font: 600 12px var(--font-texto); }

/* passo 5 */
.tl-lev-eq { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; }
.tl-lev-eq > span { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.tl-lev-eq b { font: 700 18px/1.1 var(--font-texto); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-lev-eq i { font: 600 18px/1.1 var(--font-texto); font-style: normal; color: var(--muted); padding-bottom: 1px; }
.tl-lev-falta { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink); display: grid; gap: 6px; }
.tl-lev-ir { display: inline; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.tl-lev-falta a { color: var(--ink); }
.tl-lev-form { display: grid; gap: 10px; margin-top: 4px; }
.tl-lev-form .od-campo { display: grid; gap: 6px; }
.tl-lev-form input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 15px var(--font-texto); }
.tl-lev-form input:focus { outline: none; }
.tl-lev-form .od-campo__caixa:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* o cartão do Início */
.tl-lev-cartao .tl-frase { margin-top: 0; }

@media (min-width: 1024px) {
  .tl-lev-passos, .tl-lev-corpo, .tl-lev-nav, .tl-lev-fechado { max-width: 720px; width: 100%; margin-inline: auto; }
  .tl-lev-passo { min-height: 48px; grid-auto-flow: column; gap: 8px; }
}
