/* 1049: Expedicao · Assistencias (public/telas/expedicaoAssistencias.js). Sem animacao. Usa as classes do quadro da
   Expedicao (ex-nums, ex-quadro, ex-col, ex-so-cel) e acrescenta so o que e da assistencia. */
.as-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.as-num-fab { border: 2px solid var(--blue-200); background: var(--blue-50); }
.as-num-al { border: 2px solid var(--red-200); background: var(--red-50); }
.as-num-al b { color: var(--red-700); }
.as-num-dev { border: 2px solid var(--amber-300); background: var(--amber-50); }
.as-ferr { flex-wrap: wrap; gap: 8px; }
.as-ferr .ex-busca { flex: 1 1 260px; }
.as-nova { margin-left: auto; }
.as-nova[aria-disabled="true"] { opacity: .55; }
.as-aviso { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--blue-200); background: var(--blue-50); color: var(--blue-900); font-size: 14.5px; }
.as-quadro { gap: 12px; }
.as-quadro .as-col { flex: 1 1 0; min-width: 240px; width: auto; align-self: flex-start; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 14px; }
.as-quadro .as-col-vazia { flex: 0 0 180px; min-width: 0; }
.as-col-cab { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 14px 10px; border-top: 4px solid var(--slate-400); border-radius: 14px 14px 0 0; }
.as-col-cab b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 800; color: var(--slate-900); }
.as-col-n { flex: none; min-width: 26px; text-align: center; font-size: 13px; font-weight: 800; color: var(--slate-700); background: var(--card); border: 1px solid var(--slate-200); border-radius: 999px; padding: 1px 8px; }
.as-col-filtro { flex: 1 1 100%; font-size: 12px; font-weight: 700; color: var(--blue-800); }
.as-cab-aberta { border-top-color: var(--slate-400); }
.as-cab-pedida { border-top-color: var(--blue-500); }
.as-cab-chegou { border-top-color: var(--violet-500); }
.as-cab-falta_montar { border-top-color: var(--orange-400); }
.as-cab-feita { border-top-color: var(--green-500); }
/* cada coluna com a sua cor de fundo (dono: "uma cor que separa cada coluna") */
.as-quadro .as-col-aberta { background: var(--slate-200); border-color: var(--slate-300); }
.as-quadro .as-col-pedida { background: var(--blue-100); border-color: var(--blue-300); }
.as-quadro .as-col-chegou { background: var(--violet-100); border-color: var(--violet-300); }
.as-quadro .as-col-falta_montar { background: var(--orange-100); border-color: var(--orange-300); }
.as-quadro .as-col-feita { background: var(--green-100); border-color: var(--green-300); }
.as-col-itens { padding: 0 10px 10px; }
.as-col-nada { margin: 4px 4px 8px; font-size: 13px; color: var(--slate-400); }
.as-grupo { margin-top: 6px; }
.as-grupo-cab { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 4px; border: 0; background: none; font: inherit; color: var(--slate-600); text-align: left; cursor: pointer; }
.as-grupo-cab i { flex: none; width: 12px; font-style: normal; font-size: 11px; color: var(--slate-400); }
.as-grupo-cab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.as-grupo-n { flex: none; font-size: 12px; font-weight: 700; color: var(--slate-400); }
.as-grupo-al { flex: none; margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--red-700); white-space: nowrap; }
.as-grupo-itens { display: flex; flex-direction: column; gap: 8px; }
.as-cartao { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 10px 12px 11px; border-radius: 12px; border: 1px solid var(--slate-200); border-left: 4px solid var(--slate-200); background: var(--card); font: inherit; text-align: left; cursor: pointer; color: var(--slate-900); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.as-cartao:hover { border-color: var(--slate-300); }
.as-c-laranja { border-left-color: var(--orange-400); }
.as-c-claro { border-left-color: var(--red-500); }
.as-c-escuro { border-left-color: var(--red-800); }
.as-l1 { display: flex; align-items: center; gap: 6px; }
.as-num { font-size: 12px; font-weight: 800; color: var(--slate-400); }
.as-est { font-size: 11.5px; font-weight: 700; color: var(--teal-700); }
.as-dias { flex: none; margin-left: auto; white-space: nowrap; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); }
.as-d-laranja { background: var(--orange-100); color: var(--orange-800); }
.as-d-claro { background: var(--red-100); color: var(--red-700); }
.as-d-escuro { background: var(--red-700); color: var(--branco); }
.as-tit { font-size: 14.5px; font-weight: 800; line-height: 1.3; color: var(--slate-900); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-sub { font-size: 12.5px; line-height: 1.35; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-rod { display: flex; margin-top: 2px; }
.as-tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.as-tag-man { background: var(--orange-50); color: var(--orange-800); }
.as-tag-peca { background: var(--blue-50); color: var(--blue-800); }
.as-tag-prod { background: var(--violet-50); color: var(--violet-800); }
.as-tag-azul { background: var(--blue-50); color: var(--blue-800); }
.as-tag-verde { background: var(--green-50); color: var(--green-800); }
.as-tag-cinza { background: var(--slate-100); color: var(--slate-700); }
.as-fin { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.as-fin-c { margin: 0; }
.as-fin-pag { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
/* a janela da assistencia */
.sl-janela.as-jan { width: min(940px, calc(100vw - 32px)); max-width: none; }
.as-jan .sl-janela-msg { max-height: calc(100vh - 190px); overflow-y: auto; text-align: left; }
.as-det-cab { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--slate-300); }
.as-det-cab-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-det-tit { font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--slate-900); overflow-wrap: anywhere; }
.as-det-de { font-size: 14px; color: var(--slate-600); overflow-wrap: anywhere; }
.as-det-cab-txt small { font-size: 12.5px; color: var(--slate-400); margin-top: 2px; }
.as-det-cab .as-dias { font-size: 13px; padding: 3px 10px; }
.as-passos { display: flex; list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 2px solid var(--slate-300); }
.as-passos li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; font-size: 12px; color: var(--slate-400); }
.as-passos li::before { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--slate-200); }
.as-passos li:first-child::before { display: none; }
.as-passos li i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 999px; background: var(--card); border: 2px solid var(--slate-300); font-style: normal; font-size: 11px; line-height: 16px; color: var(--branco); }
.as-passos li span { font-weight: 700; }
.as-passos .as-p-ok, .as-passos .as-p-on { color: var(--slate-700); }
.as-passos .as-p-ok i { background: var(--green-600); border-color: var(--green-600); }
.as-passos .as-p-ok::before, .as-passos .as-p-on::before { background: var(--green-600); }
.as-passos .as-p-on i { border-color: var(--primary); border-width: 6px; }
.as-passos .as-p-on span { color: var(--primary); font-weight: 800; }
.as-alerta { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: var(--orange-50); color: var(--orange-900); font-weight: 700; font-size: 13.5px; }
.as-alerta-escuro { background: var(--red-50); color: var(--red-900); }
.as-det-grade { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.as-det-grade > div + div { border-left: 2px solid var(--slate-300); padding-left: 18px; }
.as-sec + .as-sec, .as-det-acoes + .as-sec { padding-top: 12px; border-top: 2px solid var(--slate-300); }
.as-sec { margin-bottom: 14px; }
.as-sec h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--slate-400); }
.as-inf { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--slate-300); font-size: 13.5px; }
.as-inf:last-child { border-bottom: 0; }
.as-inf span { flex: 0 0 132px; color: var(--slate-500); }
.as-inf b { flex: 1; min-width: 0; font-weight: 700; color: var(--slate-800); overflow-wrap: anywhere; }
.as-gar-sim { color: var(--green-700); }
.as-gar-nao { color: var(--red-700); }
.as-cli-txt { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--slate-700); overflow-wrap: anywhere; }
.as-hist { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--slate-600); }
.as-hist li { padding: 5px 0; border-bottom: 1px solid var(--slate-200); overflow-wrap: anywhere; }
.as-hist li:last-child { border-bottom: 0; }
.as-hist small { font-weight: 700; color: var(--slate-400); }
.as-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.as-foto { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; padding: 0; border-radius: 10px; border: 1px solid var(--slate-200); background: var(--slate-100); overflow: hidden; font: inherit; cursor: pointer; text-align: left; }
.as-foto-img { position: absolute; inset: 0; }
.as-foto-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-foto-rot { position: relative; padding: 3px 7px; font-size: 11.5px; font-weight: 800; color: var(--branco); background: var(--preto); opacity: .8; }
.as-foto-mais { justify-content: center; align-items: center; border: 2px dashed var(--slate-300); color: var(--slate-500); font-weight: 800; background: var(--card); }
.as-foto-fila { cursor: default; justify-content: flex-start; padding: 8px; gap: 4px; aspect-ratio: auto; min-height: 76px; }
.as-foto-fila .as-foto-rot { background: none; color: var(--slate-900); padding: 0; opacity: 1; }
.as-foto-fila small { font-size: 12px; color: var(--slate-500); overflow-wrap: anywhere; }
.as-foto-fila button { position: absolute; top: 4px; right: 4px; border: 0; background: var(--slate-100); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.as-det-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.as-det-acoes .btn.primary { flex: 1 1 auto; }
.as-foto-grande { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 10px; }
.sl-janela.as-jan-foto { width: min(900px, calc(100vw - 32px)); max-width: none; }
/* nova assistencia */
.as-form { display: flex; flex-direction: column; gap: 6px; }
.as-f-tit { margin-top: 8px; font-size: 13.5px; font-weight: 900; color: var(--slate-700); }
.as-ops { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.as-ops-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-ops-cor { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.as-op { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--slate-200); background: var(--card); font: inherit; text-align: left; cursor: pointer; color: var(--slate-900); }
.as-op b { font-size: 14.5px; overflow-wrap: anywhere; }
.as-op small { font-size: 12.5px; color: var(--slate-500); overflow-wrap: anywhere; }
.as-op-on { border-color: var(--primary); background: var(--blue-50); }
.as-op:disabled { cursor: default; opacity: .5; }
.as-f-busca { display: flex; gap: 8px; }
.as-f-busca input { flex: 1; min-width: 0; }
.as-form input[type="text"] { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--slate-300); font: inherit; font-size: 15px; box-sizing: border-box; }
.as-f-busca input[type="text"] { width: auto; }
.as-f-venda { margin: 4px 0 0; font-size: 14px; }
.as-f-gar { margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.as-f-gar-sim { background: var(--green-50); border: 1px solid var(--green-200); }
.as-f-gar-nao { background: var(--red-50); border: 1px solid var(--red-200); }
.as-f-gar small { font-weight: 600; color: var(--slate-600); }
.as-f-dois .slsel-esc { width: 100%; }
.as-f-erro { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--red-50); color: var(--red-800); font-weight: 800; font-size: 14px; }
@media (max-width: 760px) {
  .as-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-nums .as-num-fab, .as-nums .as-num-dev { display: none; }
  .as-nums .ex-num-tot { grid-column: auto; }
  .as-ferr .as-nova { flex: 1 1 100%; }
  .as-nova { margin-left: 0; }
  .as-col, .as-col-vazia { width: auto; }
  .as-det-grade { grid-template-columns: minmax(0, 1fr); }
  .as-det-grade > div + div { border-left: 0; padding-left: 0; padding-top: 12px; border-top: 2px solid var(--slate-300); }
  .as-inf span { flex-basis: 110px; }
  .as-passos li { font-size: 11px; }
  .as-ops-2 { grid-template-columns: minmax(0, 1fr); }
  .as-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 1053: as que vieram do sistema antigo (so leitura ate ligar "feita no sistema novo") e a linha da copia no alto */
.as-antigo { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--slate-200); color: var(--slate-700); }
.as-copia { margin: 0 0 10px; font-size: 13px; color: var(--slate-600); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.as-copia-erro { color: var(--red-700); font-weight: 600; }
.as-copia-ler { padding: 2px 10px; min-height: 0; font-size: 13px; }
.as-sec-antigo { background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: 12px; padding: 10px 12px; }
.as-antigo-aviso { margin: 0 0 8px; font-size: 13px; color: var(--slate-700); }
.as-l1 .as-num { white-space: nowrap; }
/* 1055: falta devolver a fabrica (o selo no cartao) e o numero do alto que abre a lista */
.as-tag-dev { background: var(--amber-100); color: var(--amber-900); border: 1px solid var(--amber-300); }
.as-rod { display: flex; flex-wrap: wrap; gap: 4px; }
/* 1056: a coluna "No conserto" e a etiqueta do conserto por nossa conta (sem transicao nem animacao) */
.as-cab-conserto { border-top-color: var(--cyan-600); }
.as-quadro .as-col-conserto { background: var(--cyan-100); border-color: var(--cyan-300); }
.as-tag-rosa { background: var(--pink-50); color: var(--pink-800); }
/* 1058: o Pos-venda — LISTA ENXUTA (dono: "melhore o layout"; "o WhatsApp direto nos numeros da cliente"; "ainda ta confuso"):
   no alto so "para ligar hoje"; cada cliente uma linha (o nome grande, uma linha de detalhe) com 2 botoes iguais. Sem transicao. */
.pv-topo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 16px 20px; margin-bottom: 12px; border-radius: 16px; background: var(--primary); color: var(--branco); }
.pv-topo b { font-size: 40px; font-weight: 900; line-height: 1; }
.pv-topo span { font-size: 19px; font-weight: 800; }
.pv-topo small { font-size: 14px; opacity: .85; margin-left: auto; }
.pv-tag-prob { background: var(--amber-100); color: var(--amber-900); }
.pv-dica { font-size: 13.5px; color: var(--slate-600); margin: 12px 2px 0; }
.pv-lista { display: flex; flex-direction: column; gap: 8px; }
.pv-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--card); border: 1px solid var(--slate-200); border-radius: 14px; }
.pv-l-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; }
.pv-l-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-nome { font-size: 18px; font-weight: 900; color: var(--slate-900); }
.pv-l-sub { font-size: 14.5px; color: var(--slate-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-l-acoes { display: flex; align-items: center; gap: 8px; }
.pv-b { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 46px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; }
.pv-b-zap { background: var(--green-600); color: var(--branco); }
.pv-b-reg { background: var(--primary); color: var(--branco); }
.pv-b-off { background: var(--slate-100); color: var(--slate-500); cursor: default; font-weight: 700; }
.pv-tels { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.pv-tel { display: flex; gap: 6px; }
.pv-zap { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 14px; border-radius: 12px; background: var(--green-600); color: var(--branco); font-size: 17px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pv-ligar { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--slate-300); background: var(--branco); color: var(--slate-800); font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pv-sem-tel { font-size: 14px; color: var(--slate-500); }
.pv-det { display: flex; flex-direction: column; gap: 14px; }
.pv-det-cab { display: flex; flex-direction: column; gap: 3px; }
.pv-det-acoes .btn.primary { min-height: 52px; font-size: 17px; }
@media (max-width: 760px) {
  .pv-linha { grid-template-columns: minmax(0, 1fr); }
  .pv-l-sub { white-space: normal; }
  .pv-l-acoes .pv-b { flex: 1 1 0; min-width: 0; }
  .pv-topo small { margin-left: 0; width: 100%; }
}
