/* ===========================================================================
   731: SITUACAO DO PEDIDO — escopo .st (tela), .st-modal (janelas) e os botoes de busca rapida
   do menu lateral (.sl-busca-rapida) e da barra do celular. Sem transicoes nem animacoes.
   Layout pela LARGURA DISPONIVEL (container query em .st): o menu lateral come espaco.
   =========================================================================== */
.st, .st-modal { color: #0F172A; }
.st *, .st-modal *, .st *::before, .st *::after { box-sizing: border-box; }
.st button, .st-modal button { font: inherit; cursor: pointer; }
.st button:disabled, .st-modal button:disabled { opacity: .6; cursor: default; }
.st { container-type: inline-size; display: flex; flex-direction: column; gap: 16px; max-width: 1120px; margin: 0 auto; }
.st-topo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-topo h1 { margin: 0; font-size: 22px; }
.st-topo > div:first-child { margin-right: auto; }
.st-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 20px; }
.st-card h2 { font-size: 14px; letter-spacing: .04em; color: #334155; margin: 0 0 12px; }
.st-btn-sec { appearance: none; border: 1px solid #CBD5E1; background: #fff; color: #1E293B; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.st-btn-sec:hover { border-color: #1D4ED8; color: #1D4ED8; }
.st-btn { appearance: none; border: 1px solid #1D4ED8; background: #1D4ED8; color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: 14px; }
.st-kbd { font-size: 12px; border: 1px solid #CBD5E1; border-radius: 6px; padding: 1px 6px; color: #475569; font-weight: 600; background: #F8FAFC; }
.st-dica { margin: 10px 2px; color: #64748B; font-size: 14px; }
.st-erro { color: #B91C1C; font-weight: 600; }
.st-erro:empty { display: none; }
.st-nota { font-size: 12.5px; color: #64748B; margin: 8px 0 0; line-height: 1.4; }
.st-fora { position: fixed; left: -9999px; top: 0; }

/* campo de busca */
.st-campo { display: flex; align-items: center; gap: 10px; border: 1px solid #CBD5E1; border-radius: 12px; padding: 10px 14px; background: #F8FAFC; }
.st-campo:focus-within { border-color: #1D4ED8; background: #fff; }
/* 735: o campo de dentro nao tem borda propria (o estilo geral de input desenhava uma caixa dentro da caixa) */
.st-campo input, .st-campo input:focus { flex: 1; min-width: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font-size: 16px; color: #0F172A; padding: 4px 0; border-radius: 0; }
.st-campo input::-webkit-search-cancel-button { cursor: pointer; }
.st-campo-grande { padding: 14px 18px; border-width: 2px; border-radius: 14px; background: #fff; }
.st-campo-grande input, .st-campo-grande input:focus { font-size: 19px; }
.st-campo-grande:focus-within { box-shadow: 0 0 0 4px #DBEAFE; }
.st-lupa { font-size: 20px; }
.st-sub { margin: 4px 0 0; color: #475569; font-size: 14px; }
.st-busca { padding: 18px 20px; }
.st-exemplos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: #64748B; }
.st-ex { background: #F1F5F9; color: #334155; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.st-res-tit { margin: 2px 2px 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #64748B; text-transform: uppercase; }
.st-esc { appearance: none; border: 1px solid #CBD5E1; background: #fff; border-radius: 6px; font-size: 12px; padding: 2px 8px; color: #475569; }

/* resultados */
.st-res { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.st-res-tela { max-height: none; }
.st-item { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid transparent; background: #fff; border-radius: 10px; padding: 10px 12px; color: #0F172A; }
.st-item:hover, .st-item-sel { background: #EFF6FF; border-color: #BFDBFE; }
.st-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-item-txt b { font-size: 15px; overflow-wrap: anywhere; }
.st-item-txt small { color: #64748B; font-size: 12.5px; overflow-wrap: anywhere; }

/* selo da etapa */
.st-selo { font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; white-space: nowrap; }
.st-selo-grande { padding: 8px 16px; font-size: 14px; }
.st-selo-azul { background: #DBEAFE; color: #1E40AF; }
.st-selo-roxo { background: #EDE9FE; color: #5B21B6; }
.st-selo-ciano { background: #CFFAFE; color: #155E75; }
.st-selo-verde { background: #DCFCE7; color: #166534; }
.st-selo-vermelho { background: #FEE2E2; color: #991B1B; }

/* cabecalho do pedido */
.st-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st-cab-esq { min-width: 0; flex: 1 1 360px; }
.st-cab h1 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.st-cab p { margin: 4px 0 0; color: #475569; }
.st-cab-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.st-copiar { appearance: none; border: 1px solid #16A34A; color: #166534; background: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 13px; }
.st-copiar:hover { background: #F0FDF4; }
.st-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.st-chip { appearance: none; font-size: 12.5px; border: 1px solid #CBD5E1; border-radius: 999px; padding: 4px 10px; color: #334155; background: #fff; display: inline-flex; align-items: center; gap: 4px; }
.st-outros-aviso { margin: 8px 0 0; }
.st-link { appearance: none; border: 0; background: none; padding: 2px 0; color: #1D4ED8; font-weight: 700; font-size: 14px; }
.st-link:hover { text-decoration: underline; }
.st-num { display: inline-block; min-width: 22px; text-align: center; border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 12px; background: #E2E8F0; color: #475569; }
.st-ped { display: flex; flex-direction: column; }
.st-ped-item { appearance: none; display: grid; grid-template-columns: 170px minmax(0, 1fr) 130px auto 16px; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #F1F5F9; background: #fff; padding: 11px 6px; color: #0F172A; font-size: 14px; }
.st-ped-item:hover { background: #F8FAFC; }
.st-ped-item small { display: block; color: #64748B; font-size: 12.5px; margin-top: 2px; }
.st-ped-prod { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-ped-valor { text-align: right; font-weight: 700; }
.st-ped-valor small { font-weight: 500; }
.st-ped-seta { color: #94A3B8; font-size: 20px; }
.st-ped-mais { margin-top: 12px; }
.st-x { appearance: none; border: 0; background: none; color: #B91C1C; font-weight: 800; padding: 0 2px; }

/* etapas */
.st-passos { display: flex; align-items: flex-start; margin: 22px 0 4px; padding: 0; list-style: none; }
.st-p { flex: 1; min-width: 0; text-align: center; position: relative; font-size: 13px; color: #64748B; }
.st-p b { display: block; font-weight: 800; }
.st-p small { display: block; font-weight: 500; color: #64748B; margin-top: 2px; padding: 0 4px; overflow-wrap: break-word; }
.st-b { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-weight: 900; background: #E2E8F0; color: #64748B; position: relative; z-index: 1; }
.st-p:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 50%; width: 100%; height: 4px; background: #E2E8F0; }
.st-p-ok { color: #15803D; }
.st-p-ok .st-b { background: #22C55E; color: #fff; }
.st-p-ok small { color: #15803D; font-weight: 700; }
.st-p-ok:not(:last-child)::after { background: #22C55E; }
.st-p-agora { color: #1D4ED8; }
.st-p-agora .st-b { background: #2563EB; color: #fff; box-shadow: 0 0 0 5px #BFDBFE; }
.st-p-agora small { color: #1D4ED8; font-weight: 700; }
.st-p-cancelado { color: #B91C1C; }
.st-p-cancelado .st-b { background: #DC2626; color: #fff; }
.st-p-nao { color: #94A3B8; }
.st-p-nao .st-b { background: #F1F5F9; color: #94A3B8; }

/* proximo passo */
.st-prox { display: flex; align-items: center; gap: 12px; margin-top: 16px; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px; padding: 12px 14px; }
.st-prox-fim { background: #FEF2F2; border-color: #FECACA; }
.st-prox-txt { min-width: 0; }
.st-prox b { font-size: 16px; }
.st-prox span { color: #475569; font-size: 13.5px; display: block; margin-top: 2px; }
.st-prox .st-falta { color: #9A3412; }
.st-parado { margin-left: auto; background: #FEF3C7; color: #92400E !important; font-weight: 800; border-radius: 999px; padding: 4px 10px; font-size: 12.5px !important; white-space: nowrap; }
.st-pend { margin-top: 10px; background: #FFF7ED; border: 1px solid #FDBA74; border-left: 6px solid #EA580C; border-radius: 12px; padding: 10px 14px; color: #7C2D12; font-size: 14px; }
.st-pend ul { margin: 6px 0 0; padding-left: 18px; }
.st-pend li { margin: 2px 0; }
.st-pend small { color: #9A3412; }

/* produtos e linha do tempo */
.st-grade { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.st-prod > div { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #F1F5F9; padding: 9px 0; font-size: 14px; gap: 8px; }
.st-prod small { color: #64748B; }
.st-tag { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.st-tag-m { background: #E0E7FF; color: #3730A3; }
.st-tag-s { background: #F1F5F9; color: #475569; }
.st-tl { list-style: none; margin: 0; padding: 0; }
.st-tl li { display: grid; grid-template-columns: 92px 18px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; }
.st-q { font-size: 12.5px; color: #64748B; text-align: right; padding-top: 1px; }
.st-d { width: 14px; height: 14px; border-radius: 50%; background: #94A3B8; margin-top: 3px; }
.st-d-verde { background: #22C55E; }
.st-d-azul { background: #2563EB; }
.st-d-roxo { background: #7C3AED; }
.st-d-ciano { background: #0E7490; }
.st-d-laranja { background: #EA580C; }
.st-d-vermelho { background: #DC2626; }
.st-tl b { display: block; font-size: 14.5px; }
.st-tl em { display: block; font-style: normal; font-size: 13px; color: #475569; overflow-wrap: anywhere; }

/* janelas */
.st-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.st-modal.hidden { display: none; }
.st-modal-fundo { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.st-modal-caixa { position: relative; width: 100%; max-width: 640px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3); max-height: 80vh; display: flex; flex-direction: column; }
.st-lista { gap: 6px; overflow-y: auto; }
.st-lista h2 { margin: 4px 0 0; font-size: 18px; }
.st-lnova { display: flex; gap: 8px; margin-top: 12px; }
.st-lnova input { flex: 1; min-width: 0; border: 1px solid #CBD5E1; border-radius: 10px; padding: 8px 12px; font-size: 15px; text-transform: uppercase; }
.st-lbotoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* busca rapida no menu lateral (computador) e na barra do celular */
.sl-busca-rapida { white-space: nowrap; display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); margin: 12px 12px 0; padding: 8px 10px; border: 1px solid var(--line, #E2E8F0); border-radius: 10px; background: #F8FAFC; color: #64748B; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.sl-busca-rapida:hover { border-color: var(--primary, #1D4ED8); color: var(--primary, #1D4ED8); }
.sl-busca-rapida .st-kbd { margin-left: auto; }
.sl-busca-rapida.hidden, .topbar-btn.hidden { display: none; }
.topbar #slBuscaTopo { margin-left: auto; }
/* 735: menu ENCOLHIDO (so icones): fica so a lupa, num botao quadrado centralizado (o "Ctrl K" vazava para fora) */
@media (min-width: 901px) {
  .menu-encolhido .sl-busca-rapida { width: 44px; height: 40px; margin: 10px auto 0; padding: 0; justify-content: center; gap: 0; }
  .menu-encolhido .sl-busca-rapida > span:not(:first-child) { display: none; }
  .menu-encolhido .sl-busca-rapida > span:first-child { font-size: 18px; }
}
@media (max-width: 900px) {
  .sl-busca-rapida .st-kbd { display: none; }
}

/* largura disponivel estreita (celular / tablet em pe) */
@container (max-width: 720px) {
  .st-grade { grid-template-columns: minmax(0, 1fr); }
  .st-card { padding: 14px; }
  .st-cab h1 { font-size: 20px; }
  .st-cab-dir { align-items: flex-start; }
  .st-p { font-size: 11px; }
  .st-b { width: 32px; height: 32px; }
  .st-p:not(:last-child)::after { top: 14px; }
  .st-tl li { grid-template-columns: 70px 18px minmax(0, 1fr); }
  .st-prox { flex-wrap: wrap; }
  .st-parado { margin-left: 0; }
  .st-topo .st-kbd { display: none; }
  .st-exemplos { display: none; }
  .st-res-tela .st-item { flex-wrap: wrap; gap: 6px; }
  .st-res-tela .st-item-txt { flex: 1 1 100%; }
  .st-campo-grande input, .st-campo-grande input:focus { font-size: 16px; }
  .st-campo-grande { padding: 12px 14px; }
  .st-ped-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "data selo" "prod valor"; row-gap: 6px; }
  .st-ped-data { grid-area: data; }
  .st-ped-item .st-selo { grid-area: selo; justify-self: end; }
  .st-ped-prod { grid-area: prod; }
  .st-ped-valor { grid-area: valor; }
  .st-ped-seta { display: none; }
}

/* 735: no celular, a etapa vai para baixo do nome tambem na janela de busca */
@media (max-width: 600px) {
  .st-modal .st-item { flex-wrap: wrap; gap: 6px; }
  .st-modal .st-item-txt { flex: 1 1 100%; }
  .st-modal { padding: 12px; }
}

/* 789: blocos por situacao (Novo, Em analise, Pendente, Aprovado, Cancelado) — a tela abre com eles.
   Cartao branco com a faixa de cima e o icone na cor da situacao; nome forte; sem animacao. */
.st-blocos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.st-blocos.hidden { display: none; }
.st-bl { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 1px 3px rgba(15,23,42,.06), inset 0 4px 0 var(--st-bl-cor); }
.st-bl-cab { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; }
.st-bl-ico { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--st-bl-fundo); color: var(--st-bl-cor); }
.st-bl-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-bl-tit b { font-size: 18px; font-weight: 800; color: #0F172A; line-height: 1.2; }
.st-bl-tit small { font-size: 13px; color: #64748B; line-height: 1.3; }
.st-bl-n { flex: 0 0 auto; min-width: 44px; text-align: center; font-size: 22px; font-weight: 800; color: var(--st-bl-cor); background: var(--st-bl-fundo); border-radius: 12px; padding: 6px 10px; }
.st-bl-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid #F1F5F9; }
.st-bl-lista li { border-bottom: 1px solid #F1F5F9; }
.st-bl-lista li:last-child { border-bottom: 0; }
.st-bl-item { appearance: none; display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 10px 6px; color: #0F172A; }
.st-bl-item:hover { background: #F8FAFC; }
.st-bl-item:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 1px; }
.st-bl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-bl-txt b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.st-bl-txt small { font-size: 12.5px; color: #64748B; overflow-wrap: anywhere; }
.st-bl-det { align-self: flex-start; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: #9A3412; background: #FFEDD5; border-radius: 999px; padding: 2px 9px; }
.st-bl-tempo { flex: 0 0 auto; font-size: 12.5px; color: #64748B; white-space: nowrap; padding-top: 2px; }
.st-bl-vazio { margin: 6px 4px 2px; font-size: 14px; color: #94A3B8; }
.st-bl-mais { appearance: none; display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #E2E8F0; border-radius: 10px; background: #F8FAFC; color: #1D4ED8; font-weight: 700; font-size: 14px; }
.st-bl-mais:hover { background: #EFF6FF; border-color: #BFDBFE; }
.st-bl-cinza { --st-bl-cor: #475569; --st-bl-fundo: #F1F5F9; }
.st-bl-azul { --st-bl-cor: #1D4ED8; --st-bl-fundo: #DBEAFE; }
.st-bl-laranja { --st-bl-cor: #EA580C; --st-bl-fundo: #FFEDD5; }
.st-bl-verde { --st-bl-cor: #15803D; --st-bl-fundo: #DCFCE7; }
.st-bl-vermelho { --st-bl-cor: #DC2626; --st-bl-fundo: #FEE2E2; }
@container (max-width: 600px) {
  .st-blocos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
