/* ExpressMED · Entregas — Manual da Marca v1.0 (nov/2026) · conceito "Pulso Sereno"
   Cores: Azul Express #0B68EB · Azul Céu #93C7FC · Azul Bruma #D6E8F7 · Névoa #E5EDEF · Grafite #22313F
   Tipografia: Poppins (títulos e texto) · Jost (rótulos, descritor, contatos)                        */

@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("/static/fonts/Poppins-Light.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/static/fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/static/fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/static/fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("/static/fonts/Jost-Regular.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("/static/fonts/Jost-Medium.woff2") format("woff2"); }

:root {
  /* Paleta institucional */
  --express: #0B68EB; --express-escuro: #0957C4; --ceu: #93C7FC; --bruma: #D6E8F7; --nevoa: #E5EDEF; --grafite: #22313F;
  /* Nomes usados pelo sistema, agora apontando para a paleta */
  --azul: var(--express); --azul-2: var(--express); --azul-claro: var(--bruma); --azul-fundo: #EEF5FB; --azul-borda: var(--ceu);
  /* Cores de estado (funcionais, fora da paleta de marca) */
  --verde: #15803D; --verde-claro: #DCFCE7; --vermelho: #B91C1C; --vermelho-claro: #FEF2F2; --vermelho-borda: #FECACA;
  --ambar: #92400E; --ambar-claro: #FEF3C7;
  /* Texto e superfícies em degraus do grafite */
  --texto: var(--grafite); --texto-2: #3E4F5E; --texto-3: #66788A; --borda: #D3DFE3; --borda-2: #B9C9D0;
  --fundo: var(--nevoa); --branco: #FFFFFF; --raio: 8px;
  --fonte: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-apoio: "Jost", "Poppins", ui-sans-serif, system-ui, sans-serif;
  /* Padrão Pulso: triângulo arredondado; espaço entre marcas = 3 × altura da marca */
  --pulso: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M12 12.6c0-.9.7-1.3 1.5-.9l5.6 3c.8.4.8 1.2 0 1.6l-5.6 3c-.8.4-1.5 0-1.5-.9z' fill='%2393C7FC'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 15px/1.55 var(--fonte); -webkit-font-smoothing: antialiased; }
a { color: var(--azul); } a:hover { color: var(--express-escuro); }
h1 { font-size: 28px; font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 17px; font-weight: 500; margin: 0; }
h3 { font-size: 15px; font-weight: 500; margin: 0; }
p { margin: 0; }
strong, b { font-weight: 600; }
[hidden] { display: none !important; }
.mono { font-family: var(--fonte-apoio); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.suave { color: var(--texto-3); font-size: 13px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Rótulo técnico: Jost Medium em caixa alta, espaçamento aberto */
.sobretitulo { font: 500 11.5px/1.3 var(--fonte-apoio); letter-spacing: 0.14em; text-transform: uppercase; color: var(--azul); }

.faixa-teste { background: var(--ambar-claro); color: var(--ambar); text-align: center; font: 500 12px/1.4 var(--fonte-apoio); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px; }
.topo { background: var(--branco); border-bottom: 1px solid var(--borda); }
.topo .in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
/* Marca: o logotipo é desenho próprio e entra como imagem (.marca img); o texto fica só como reserva */
.marca { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; color: var(--azul); text-decoration: none; }
.marca img { display: block; height: 36px; width: auto; }
.marca b { color: var(--azul); font-weight: 600; }
.marca span { font: 400 13px/1.2 var(--fonte-apoio); color: var(--texto-3); letter-spacing: 0.04em; padding-left: 12px; border-left: 1px solid var(--borda); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex-grow: 1; }
.nav a { padding: 8px 12px; border-radius: var(--raio); text-decoration: none; color: var(--texto-2); font-size: 14px; }
.nav a:hover { background: var(--fundo); color: var(--texto); }
.nav a.ativo { background: var(--bruma); color: var(--azul); font-weight: 500; }
.quem { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-3); }

.pagina { max-width: 1240px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 20px; }
.cabeca { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.linha { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-princ { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-lado { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.card { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card.sem-pad { padding: 0; gap: 0; overflow: hidden; }
.card.azul { background: var(--azul-fundo); border-color: var(--bruma); }
.card.aviso { background: var(--vermelho-claro); border-color: var(--vermelho-borda); color: #991B1B; }
.card.ok { border-color: #BBF7D0; background: #F0FDF4; }

.grade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
.s1 { grid-column: span 1; } .s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
@media (max-width: 640px) { .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s1 { grid-column: span 1; } .s2, .s3, .s4, .s6 { grid-column: span 2; } }

.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, .rotulo { font-size: 13px; font-weight: 500; color: var(--texto-2); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input:not([type]), select, textarea {
  min-height: 44px; padding: 0 12px; border-radius: var(--raio); border: 1px solid var(--borda-2); font: inherit; color: var(--texto); background: var(--branco); width: 100%; min-width: 0;
}
input::placeholder, textarea::placeholder { color: #8A9AA8; }
input[type=file] { font: inherit; font-size: 14px; }
textarea { padding: 10px 12px; min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--azul); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--ceu); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { accent-color: var(--azul); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 40px; font-weight: 400; color: var(--texto); }
.check input { width: 20px; height: 20px; flex-shrink: 0; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--raio); border: 1px solid var(--borda-2); background: var(--branco); font-size: 14px; color: var(--texto); cursor: pointer; font-weight: 400; }
.opcao:has(input:checked) { border: 2px solid var(--azul); background: var(--bruma); font-weight: 500; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 500 11.5px/1.3 var(--fonte-apoio); letter-spacing: 0.12em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 10px; padding: 0; }

/* Botões: o Azul Express é o ponto de decisão da tela */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--raio); border: 0; background: var(--azul); color: #fff; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s; }
.btn:hover { background: var(--express-escuro); color: #fff; }
.btn.sec { background: var(--branco); color: var(--texto); border: 1px solid var(--borda-2); font-weight: 400; }
.btn.sec:hover { background: var(--fundo); color: var(--texto); }
.btn.verde { background: var(--verde); } .btn.verde:hover { background: #166534; }
.btn.perigo { background: var(--branco); color: var(--vermelho); border: 1px solid var(--borda-2); }
.btn.grande { min-height: 52px; font-size: 16px; width: 100%; }
.btn.peq { min-height: 36px; padding: 0 12px; font-size: 13px; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; }

.selo { display: inline-block; align-self: center; padding: 3px 10px; border-radius: 999px; font: 500 12px/1.5 var(--fonte-apoio); letter-spacing: 0.03em; white-space: nowrap; }
.tabela-caixa { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 11.5px/1.3 var(--fonte-apoio); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texto-3); background: #F4F8F9; padding: 12px 14px; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--borda); vertical-align: top; }
tbody tr:hover td { background: #F7FAFB; }
td a.linha-link { text-decoration: none; color: inherit; font-weight: 500; }

.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cartao { background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 18px; }
.cartao .n { font-size: 30px; font-weight: 300; line-height: 1.2; color: var(--azul); }
.cartao.alerta { background: var(--vermelho-claro); border-color: var(--vermelho-borda); color: #991B1B; }
.cartao.alerta .n { color: #991B1B; }

.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filtros .campo { flex: 1 1 160px; }

.flash { background: var(--azul-fundo); border: 1px solid var(--bruma); border-left: 3px solid var(--azul); color: var(--texto); padding: 12px 16px; border-radius: var(--raio); }
.erro { background: var(--vermelho-claro); border: 1px solid var(--vermelho-borda); border-left: 3px solid var(--vermelho); color: #991B1B; padding: 12px 16px; border-radius: var(--raio); }

/* Linha do tempo: marcas em triângulo, como no padrão Pulso */
.linha-tempo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.linha-tempo li { display: flex; gap: 12px; }
.linha-tempo .pt { width: 10px; height: 11px; margin-top: 5px; flex-shrink: 0; background: var(--azul); border-radius: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.lista-simples { list-style: none; margin: 0; padding: 0; }
.lista-simples li { padding: 12px 16px; border-top: 1px solid var(--borda); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lista-simples li:first-child { border-top: 0; }
.lista-simples li.ativo { background: var(--azul-fundo); }
.abas { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--borda); }
.abas a { padding: 12px 14px; text-decoration: none; color: var(--texto-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.abas a.ativo { color: var(--azul); font-weight: 500; border-bottom-color: var(--azul); }
.copiar { display: flex; gap: 8px; }
.copiar input { font-size: 13px; }

/* Acesso: o azul ocupa um lado inteiro (página-acontecimento), com o padrão Pulso no canto */
.acesso { min-height: 100vh; display: flex; flex-wrap: wrap; }
.acesso .lado { position: relative; overflow: hidden; flex: 1 1 380px; background: var(--azul); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.acesso .lado::after { content: ""; position: absolute; right: 0; bottom: 0; width: 55%; height: 45%; background: var(--pulso) repeat; opacity: .35; pointer-events: none; -webkit-mask-image: linear-gradient(to top left, #000 30%, transparent 85%); mask-image: linear-gradient(to top left, #000 30%, transparent 85%); }
.acesso .lado > * { position: relative; z-index: 1; }
.acesso .lado a { color: var(--bruma); }
.acesso .lado h1 { font-size: 34px; font-weight: 300; line-height: 1.18; }
.acesso .lado p { color: var(--bruma) !important; }
.acesso .lado .marca img { height: 44px; }
.acesso .form { flex: 1 1 380px; padding: 48px 20px; display: flex; align-items: center; justify-content: center; background: var(--nevoa); }
.acesso form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.acesso form h2 { font-weight: 300; }

/* Campo (celular do entregador e do paciente) */
.celular { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--fundo); display: flex; flex-direction: column; }
.celular .cab { background: var(--azul); color: #fff; padding: 18px 18px 16px; }
.celular .cab .marca img { height: 30px; }
.celular .cab.claro { background: var(--branco); color: var(--texto); border-bottom: 1px solid var(--borda); }
.celular .cab small { color: var(--bruma); font-size: 13px; }
.celular .cab.claro small { color: var(--texto-3); }
.celular .corpo { padding: 16px 16px 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.celular .card { padding: 16px; gap: 10px; border-radius: 10px; }
.celular .pe { padding: 14px 16px 20px; background: var(--branco); border-top: 1px solid var(--borda); display: flex; flex-direction: column; gap: 10px; }
.parada { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; background: var(--branco); border: 1px solid var(--borda); text-decoration: none; color: var(--texto); }
.parada.feita { background: #EEF3F5; color: var(--texto-3); }
.codigo-grande { font-family: var(--fonte); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; letter-spacing: 0.2em; text-align: center; color: var(--azul); }
.termo { white-space: normal; font-size: 13px; color: var(--texto-2); background: var(--branco); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; max-height: 220px; overflow: auto; }

/* Comprovante para impressão: segue o papel timbrado (faixa névoa, filete azul, contatos em Jost) */
.doc { max-width: 820px; margin: 24px auto; background: #fff; padding: 40px 48px; border: 1px solid var(--borda); display: flex; flex-direction: column; gap: 4px; }
.doc h1 { font-size: 22px; font-weight: 400; }
.doc .bloco { border-top: 1px solid var(--borda); padding-top: 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.doc-cabecalho { background: var(--nevoa); margin: -40px -48px 20px; padding: 22px 48px; display: flex; justify-content: center; }
.doc-cabecalho img { height: 46px; }
.doc-rodape { background: var(--nevoa); border-top: 1px solid var(--azul); margin: 24px -48px -40px; padding: 14px 48px; text-align: center; font: 400 11px/1.6 var(--fonte-apoio); color: var(--azul); }
@media print {
  .nao-imprimir { display: none !important; } body { background: #fff; }
  .doc { border: 0; margin: 0; padding: 0 25mm; }
  .doc-cabecalho, .doc-rodape { margin-left: -25mm; margin-right: -25mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-cabecalho { margin-top: 0; } .doc-rodape { margin-bottom: 0; }
}

/* Fontes da marca também nos controles nativos (botão de arquivo, data e hora) */
button, input, select, textarea { font-family: var(--fonte); }
input[type=file]::file-selector-button { font: 500 13px/1 var(--fonte); color: var(--texto); background: var(--branco); border: 1px solid var(--borda-2); border-radius: var(--raio); padding: 10px 14px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--fundo); }
input[type=date], input[type=datetime-local], input[type=time] { min-height: 44px; padding: 0 12px; border-radius: var(--raio); border: 1px solid var(--borda-2); font: inherit; color: var(--texto); background: var(--branco); }

/* Bolinha do usuário e menu pessoal */
.menu-usuario { position: relative; margin-left: auto; }
.menu-usuario > summary { list-style: none; }
.menu-usuario > summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bruma); color: var(--azul); display: inline-flex; align-items: center; justify-content: center; font: 500 14px/1 var(--fonte); letter-spacing: 0.02em; overflow: hidden; cursor: pointer; border: 2px solid var(--branco); box-shadow: 0 0 0 1px var(--borda); user-select: none; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-usuario[open] > .avatar, .avatar:hover { box-shadow: 0 0 0 2px var(--ceu); }
.avatar.grande { width: 96px; height: 96px; font-size: 30px; font-weight: 300; cursor: default; box-shadow: 0 0 0 1px var(--borda); }
.menu-usuario .menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 260px; background: var(--branco); border: 1px solid var(--borda); border-radius: 10px; box-shadow: 0 12px 32px rgba(34, 49, 63, .14); padding: 6px; display: flex; flex-direction: column; }
.menu-quem { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; border-bottom: 1px solid var(--borda); margin-bottom: 6px; font-size: 13px; color: var(--texto-3); overflow-wrap: anywhere; }
.menu-quem b { font-size: 14px; font-weight: 500; color: var(--texto); }
.menu-usuario .menu a, .menu-usuario .menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 6px; background: none; color: var(--texto-2); font: 400 14px/1.3 var(--fonte); text-decoration: none; cursor: pointer; }
.menu-usuario .menu a:hover, .menu-usuario .menu button:hover { background: var(--fundo); color: var(--texto); }
.menu-usuario .menu form { border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 6px; }
.menu-usuario .menu button { color: var(--vermelho); }
.conta-foto { display: flex; align-items: center; gap: 16px; }
@media (max-width: 900px) { .topo .in { gap: 10px 16px; } .menu-usuario { order: 2; } .nav { order: 3; flex-basis: 100%; } }
@media (max-width: 640px) { .marca span { display: none; } .nav a { padding: 8px 10px; } }
.btn { white-space: nowrap; }

/* Legenda de fieldset em cartão: fica dentro do quadro, não em cima da borda */
fieldset.card > legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset.card > legend + * { clear: both; }

/* Termo de recebimento: título centralizado em negrito, corpo justificado, lista de itens alinhada à esquerda */
.termo p { margin: 0 0 10px; white-space: pre-line; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.termo p:last-child { margin-bottom: 0; }
.termo .termo-titulo { text-align: center; font-weight: 600; color: var(--texto); letter-spacing: 0.04em; margin-bottom: 12px; }
.termo .termo-lista { text-align: left; hyphens: manual; }

/* Pop-up de arquivos */
.visualizador { width: min(1000px, calc(100vw - 24px)); height: min(92vh, 1100px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 12px; background: var(--branco); box-shadow: 0 24px 64px rgba(34, 49, 63, .35); overflow: hidden; }
.visualizador[open] { display: flex; flex-direction: column; }
.visualizador::backdrop { background: rgba(34, 49, 63, .55); }
.vis-cab { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--borda); }
.vis-cab b { margin-right: auto; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-corpo { flex: 1; min-height: 0; background: var(--nevoa); display: flex; align-items: center; justify-content: center; }
.vis-corpo iframe { width: 100%; height: 100%; border: 0; background: var(--branco); }
.vis-corpo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
/* Arquivos: miniaturas na lista e galeria no comprovante */
.lista-anexos li { gap: 12px; }
.anexo-linha { display: flex; align-items: center; gap: 10px; min-width: 0; }
.anexo-mini { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--borda); background: var(--fundo); }
.anexo-mini.doc { display: inline-flex; align-items: center; justify-content: center; font: 500 10px/1 var(--fonte-apoio); letter-spacing: .06em; color: var(--azul); background: var(--bruma); border-color: var(--bruma); }
.galeria-anexos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 6px; }
.anexo-card { margin: 0; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; break-inside: avoid; }
.anexo-miniatura { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--fundo); text-decoration: none; }
.anexo-miniatura img { width: 100%; height: 100%; object-fit: contain; display: block; }
.anexo-miniatura.doc { flex-direction: column; gap: 8px; }
.anexo-icone { font: 500 20px/1 var(--fonte-apoio); letter-spacing: .08em; color: var(--azul); background: var(--bruma); border-radius: 8px; padding: 18px 20px; }
.anexo-card figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--texto-3); border-top: 1px solid var(--borda); }
.anexo-card figcaption b { font-size: 13px; font-weight: 500; color: var(--texto); }
@media print { .galeria-anexos { grid-template-columns: repeat(2, 1fr); } .anexo-miniatura { height: 230px; } }

/* Modalidade de envio com ícones (moto, envelope, caminhão, pessoa) */
.opcoes-envio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opcao-envio { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 8px; border: 1px solid var(--borda-2); border-radius: var(--raio); background: var(--branco); color: var(--texto-2); font-size: 13px; font-weight: 400; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opcao-envio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcao-envio svg { width: 30px; height: 30px; color: var(--texto-3); }
.opcao-envio:hover { border-color: var(--ceu); }
.opcao-envio:has(input:checked) { border: 2px solid var(--azul); background: var(--bruma); color: var(--azul); font-weight: 500; }
.opcao-envio:has(input:checked) svg { color: var(--azul); }
.opcao-envio:has(input:focus-visible) { outline: 3px solid var(--ceu); outline-offset: 1px; }

/* Dossiê de entrega: várias folhas A4 */
.dossie-barra { position: sticky; top: 0; z-index: 10; max-width: 820px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 10px; background: var(--fundo); }
.dossie-barra .suave { margin-right: auto; }
.pagina-dossie { margin: 0 auto 28px; }
.doc.pagina-dossie { display: flex; flex-direction: column; min-height: 1160px; box-shadow: 0 2px 10px rgba(34, 49, 63, .08); }
.doc.pagina-dossie > .doc-rodape { margin-top: auto; }
.pagina-danfe { max-width: 820px; background: var(--branco); border: 1px solid var(--borda); padding: 16px 0 8px; box-shadow: 0 2px 10px rgba(34, 49, 63, .08); }
.pagina-danfe .dossie-cab { margin: 0 24px 10px; }
.dossie-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--borda); }
.dossie-cab span { font: 500 11px/1.3 var(--fonte-apoio); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); text-align: right; }
.sumario { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: pag; }
.sumario a { display: flex; align-items: baseline; gap: 8px; color: var(--texto); text-decoration: none; font-size: 14px; padding: 3px 0; }
.sumario a:hover { color: var(--azul); }
.sumario .pont { flex: 1; border-bottom: 1px dotted var(--borda-2); transform: translateY(-3px); }
.anexo-grande { flex: 1; display: flex; align-items: center; justify-content: center; margin: 16px 0; min-height: 520px; background: var(--fundo); border: 1px solid var(--borda); border-radius: 8px; padding: 12px; }
.anexo-grande a { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
.anexo-grande img { width: 100%; height: auto; max-height: 900px; object-fit: contain; display: block; }
.anexo-pdf { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 420px; color: var(--texto-2); }
@media print {
  @page { size: A4 portrait; margin: 12mm 0; }
  body.dossie { background: #fff; }
  .pagina-dossie { break-after: page; page-break-after: always; margin: 0; box-shadow: none; }
  .pagina-dossie:last-of-type { break-after: auto; page-break-after: auto; }
  .doc.pagina-dossie { min-height: 272mm; border: 0; font-size: 12px; }
  /* Resumo compacto para caber numa folha */
  #resumo h1 { font-size: 20px; margin-top: 8px !important; }
  #resumo .doc-cabecalho { padding: 12px 25mm; margin-bottom: 12px; }
  #resumo .doc-cabecalho img { height: 36px; width: auto; }
  #resumo .bloco { padding-top: 8px; margin-top: 8px; gap: 3px; }
  #resumo .bloco h3 { font-size: 13px; }
  #resumo p { font-size: 12px; line-height: 1.4; }
  #resumo table { font-size: 11.5px; }
  #resumo th, #resumo td { padding: 6px 10px; }
  #resumo .sumario a { font-size: 12px; padding: 1px 0; }
  .pagina-dossie .doc-rodape { padding: 10px 25mm; font-size: 10px; }
  .pagina-danfe { border: 0; padding: 0 5mm; max-width: none; }
  .pagina-danfe .dnf { padding: 0; width: 100%; }
  .anexo-grande { min-height: 0; background: none; border: 0; padding: 0; }
  .anexo-grande img { max-height: 190mm; }
  .dossie-cab span { color: #444; }
}

/* Aviso de campo (ex.: e-mail com formato errado) */
.aviso-campo { font-size: 12px; color: var(--vermelho); }
input[aria-invalid="true"] { border-color: var(--vermelho); }

/* Assinatura D4Sign */
.btn.grande { white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.passos-d4 { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; color: var(--texto); }
.passos-d4 li::marker { color: var(--express); font-weight: 600; }
.cfg-segredo { font-family: var(--mono, ui-monospace, monospace); }
.estado-d4 { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.estado-d4::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--borda-2); }
.estado-d4.on::before { background: var(--verde); }
.termo p { overflow-wrap: anywhere; }
