/* ==========================================================================
   Acesso mobile da Expedição (ts/modules/expedicao/expedicao-app.ts). Tudo com prefixo ex-. Feito para o celular em pé.
   ========================================================================== */
#dashboardExpedicao { background: #f4f2ec; }
.ex-topo { background: #fff; color: #152e50; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(21,46,80,.05); display: flex; align-items: center; gap: 12px; flex: none; }
.ex-logo { width: 36px; height: 36px; border-radius: 12px; background: #152e50; color: #fac043; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.ex-fill { flex: 1; }
.ex-bt { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #152e50; font-size: 18px; flex: none; cursor: pointer; } .ex-bt:active { background: rgba(21,46,80,.08); }
.ex-ponto { position: absolute; top: 6px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: #e11d48; border: 2px solid #fff; }
#expedicaoConteudo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ex-dica { font-size: 11.5px; color: #64748b; font-weight: 600; padding: 8px 14px 2px; flex: none; }
.ex-erro { margin: 4px 12px 0; padding: 8px 12px; border-radius: 12px; background: #fffbeb; color: #92400e; font-size: 12px; font-weight: 700; flex: none; }
.ex-lista { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 12px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.ex-card { background: #fff; border: 1.5px solid #e1dacb; border-left: 7px solid var(--k); border-radius: 16px; padding: 12px 14px; flex: none; }
.ex-t1 { display: flex; align-items: baseline; gap: 8px; }
.ex-t1 b { font-size: 16px; color: #152e50; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-t1 span { margin-left: auto; font-size: 18px; font-weight: 900; color: #152e50; font-variant-numeric: tabular-nums; }
.ex-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 7px; font-size: 12.5px; color: #64748b; font-weight: 700; }
.ex-tag { color: #fff; border-radius: 7px; padding: 2px 9px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.ex-chip { background: #efeadf; border-radius: 8px; padding: 3px 9px; font-size: 12px; }
.ex-chip.ex-atr { background: #fef2f2; color: #b91c1c; } .ex-chip.ex-ok { background: #ecfdf5; color: #047857; } .ex-chip.ex-liv { background: #eff6ff; color: #1d4ed8; } .ex-chip.ex-mudo { color: #94a3b8; }
.ex-tempo { margin-top: 8px; font-size: 28px; font-weight: 900; color: #152e50; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 9px; }
.ex-tempo small { font-size: 12px; color: #64748b; font-weight: 700; }
.ex-tempo i { width: 11px; height: 11px; border-radius: 50%; background: #f59e0b; animation: ex-p 1.6s infinite; }
@keyframes ex-p { 50% { opacity: .35; } }
.ex-obs { margin: 8px 0 0; padding: 7px 10px; background: #f8fafc; border-radius: 10px; font-size: 12.5px; color: #475569; font-weight: 600; }
.ex-btn { margin-top: 10px; width: 100%; height: 52px; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; cursor: pointer; }
.ex-btn:disabled { background: #e2e8f0 !important; color: #64748b !important; border-color: transparent !important; cursor: default; }
.ex-ini { background: #152e50; color: #fac043; } .ex-fim { background: #15803d; } .ex-vol { background: #fff; color: #152e50; border: 1.5px solid #e1dacb; height: 46px; font-size: 14px; }
.ex-duplo { display: flex; gap: 8px; margin-top: 10px; } .ex-duplo .ex-btn { margin: 0; }
.ex-peq { width: 52px; flex: none; background: #fff; border: 1.5px solid #e1dacb; color: #152e50; }
.ex-itens-bt { margin-top: 10px; width: 100%; background: transparent; border: 0; color: #475569; font: inherit; font-weight: 800; font-size: 13px; padding: 8px 0 2px; cursor: pointer; }
.ex-itens { border-top: 1.5px solid #efeadf; margin-top: 4px; padding-top: 6px; font-size: 13px; font-weight: 700; color: #152e50; }
.ex-itens div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #efeadf; } .ex-itens b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ex-vazio { text-align: center; padding: 48px 16px; color: #94a3b8; font-weight: 700; font-size: 14px; } .ex-vazio i { display: block; font-size: 26px; margin-bottom: 8px; }
.ex-fundo { position: fixed; inset: 0; z-index: 9500; background: rgba(15,23,42,.5); display: flex; align-items: flex-end; justify-content: center; }
.ex-folha { width: 100%; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(15,23,42,.25); }
.ex-folha h3 { margin: 0 0 4px; font-size: 17px; color: #152e50; } .ex-folha p { margin: 0 0 6px; font-size: 12.5px; color: #64748b; font-weight: 600; }
.ex-folha label { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; color: #475569; margin: 12px 0 5px; }
.ex-campo { width: 100%; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; font-weight: 600; color: #334155; outline: none; resize: none; }
.ex-campo:focus { border-color: #152e50; }
.ex-nota { margin-top: 8px !important; font-size: 12px !important; }
.ex-cancelar { width: 100%; margin-top: 8px; height: 44px; background: transparent; border: 0; color: #64748b; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.ex-ola { margin: 10px 12px 0; background: #152e50; color: #fff; border-radius: 16px; padding: 14px; flex: none; }
.ex-ola small { display: block; color: #fac043; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ex-ola b { display: block; font-size: 16px; margin-top: 2px; }
.ex-nav { flex: none; background: #fff; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-around; padding: 10px 0 max(14px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 12px rgba(0,0,0,.05); }
.ex-nav button { position: relative; border: 0; background: none; min-width: 0; flex: 1; padding: 0 2px; display: flex; flex-direction: column; align-items: center; gap: 5px; font: inherit; font-size: 12px; font-weight: 600; color: #94a3b8; cursor: pointer; }
.ex-nav button i { font-size: 20px; }
.ex-nav button[aria-selected="true"] { color: #152e50; font-weight: 800; } .ex-nav button[aria-selected="true"] i { color: #fac043; }
.ex-nav em { position: absolute; top: -6px; left: 50%; margin-left: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e11d48; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ex-nav em.hidden { display: none; }

/* ===== App da Expedição v2 (SQL 105): pausa, troca de equipe, conferência, fotos, alertas e menu na barra de baixo ===== */
.ex-nav { padding-left: max(4px, env(safe-area-inset-left)); padding-right: max(4px, env(safe-area-inset-right)); }
.ex-nav button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ex-nav .ex-ponto { top: -4px; right: calc(50% - 18px); }
.ex-nav em.ex-em-alerta { background: #e11d48; }
.ex-equipe { display: flex; align-items: center; margin-top: 7px; font-size: 12px; font-weight: 800; color: #475569; min-width: 0; }
.ex-equipe > span:last-child { margin-left: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-av { width: 26px; height: 26px; border-radius: 50%; background: #152e50; color: #fac043; font-size: 10px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; flex: none; }
.ex-av.b { background: #475569; color: #fff; margin-left: -8px; }
.ex-chip.ex-amb { background: #fef3c7; color: #b45309; } .ex-chip.ex-novo { background: #e11d48; color: #fff; }
.ex-card-pausa { border-color: #fcd34d; background: #fffdf5; }
.ex-tempo b { font-size: 28px; line-height: 1; }
.ex-tempo small { line-height: 1.35; }
.ex-tempo > i { width: auto; height: auto; border-radius: 0; background: none; color: #f59e0b; font-size: 18px; animation: ex-p 1.6s infinite; }
.ex-tempo { background: #f1f5f9; border-radius: 14px; padding: 10px 12px; font-size: inherit; }
.ex-tempo.ex-pausa { background: #fef3c7; } .ex-tempo.ex-pausa b { color: #b45309; } .ex-tempo.ex-pausa > i { color: #b45309; animation: none; }
.ex-prog { margin-top: 10px; } .ex-prog span { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #475569; margin-bottom: 4px; } .ex-prog em { font-style: normal; }
.ex-barra { height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; } .ex-barra i { display: block; height: 100%; background: #059669; border-radius: 99px; transition: width .3s; }
.ex-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ex-acao { min-height: 54px; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 10px; cursor: pointer; text-align: left; line-height: 1.15; }
.ex-acao > i { font-size: 16px; flex: none; }
.ex-acao span { display: flex; flex-direction: column; min-width: 0; }
.ex-acao small { font-size: 11px; font-weight: 700; opacity: .8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-acao:active { transform: scale(.98); }
.ex-largo { grid-column: 1 / -1; }
.ex-a-ini { background: #152e50; color: #fac043; } .ex-a-fim { background: #15803d; color: #fff; min-height: 56px; font-size: 15.5px; }
.ex-a-pau { background: #fef3c7; color: #92400e; border: 1.5px solid #fcd34d; } .ex-a-ret { background: #15803d; color: #fff; }
.ex-a-tro { background: #dbeafe; color: #1e40af; border: 1.5px solid #93c5fd; } .ex-a-sec { background: #fff; color: #152e50; border: 1.5px solid #cbd5e1; }
.ex-link { display: block; margin: 10px auto 0; background: none; border: 0; color: #64748b; font: inherit; font-size: 12.5px; font-weight: 800; padding: 6px 10px; cursor: pointer; }
.ex-faixa { margin: -2px -4px 10px; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.ex-faixa b { display: block; font-size: 13px; } .ex-faixa > span { display: block; margin-top: 2px; }
.ex-f-azul { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1e3a8a; } .ex-f-verm { background: #fff1f2; border: 1.5px solid #fda4af; color: #9f1239; }
.ex-faixa-bt { display: flex; gap: 8px; margin-top: 8px; } .ex-faixa-bt button { flex: 1; min-height: 40px; border-radius: 10px; border: 1.5px solid currentColor; background: #fff; color: inherit; font: inherit; font-weight: 900; font-size: 13px; cursor: pointer; }
.ex-faixa-bt .ex-f-pri { background: currentColor; } .ex-f-azul .ex-f-pri { background: #1d4ed8; border-color: #1d4ed8; color: #fff; } .ex-f-verm .ex-f-pri { background: #be123c; border-color: #be123c; color: #fff; }
.ex-quando { font-size: 12px !important; color: #64748b !important; font-weight: 700 !important; }
.ex-lido { opacity: .72; }
.ex-alerta-txt { margin: 8px 0 0; font-size: 13.5px; font-weight: 800; color: #1e293b; line-height: 1.4; }
.ex-itens div { align-items: center; } .ex-itens span:not(.ex-sel) { min-width: 0; }
.ex-sel { font-size: 10px; font-weight: 900; border-radius: 6px; padding: 2px 6px; color: #fff; white-space: nowrap; flex: none; }
.ex-s-novo { background: #be123c; } .ex-s-mais { background: #b45309; } .ex-s-saiu { background: #475569; }
/* janelas que sobem de baixo */
.ex-folha { max-height: 92vh; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ex-folha.ex-alta { height: 88vh; }
/* Folha em coluna: os filhos não encolhem (o botão e a observação ficavam espremidos); quem sobra rola. */
.ex-folha > * { flex-shrink: 0; }
.ex-alca { width: 42px; height: 5px; border-radius: 9px; background: #cbd5e1; margin: -6px auto 10px; flex: none; }
.ex-aviso { margin: 8px 0 0 !important; padding: 8px 10px; border-radius: 10px; background: #fff7ed; color: #9a3412 !important; font-size: 12.5px !important; font-weight: 700 !important; }
.ex-motivos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ex-motivos button { min-height: 50px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; font: inherit; font-size: 13.5px; font-weight: 800; color: #334155; cursor: pointer; padding: 6px; }
.ex-motivos button[aria-checked="true"] { border-color: #f59e0b; background: #fffbeb; color: #92400e; box-shadow: 0 0 0 2px #fde68a; }
.ex-pau { background: #f59e0b; color: #fff; } .ex-tro { background: #1d4ed8; color: #fff; }
.ex-resumo { background: #f1f5f9; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: #334155; line-height: 1.55; margin-top: 8px; }
.ex-pessoas { display: flex; flex-direction: column; gap: 7px; }
.ex-pessoas button, .ex-pessoa { display: flex; align-items: center; gap: 10px; min-height: 54px; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; font: inherit; text-align: left; padding: 7px 12px; cursor: pointer; color: #1e293b; }
.ex-pessoa { cursor: default; }
.ex-pessoas button[aria-checked="true"] { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px #bfdbfe; }
.ex-pessoas b, .ex-pessoa b { display: block; font-size: 14px; } .ex-pessoas small, .ex-pessoa small { display: block; font-size: 12px; color: #64748b; font-weight: 600; margin-top: 1px; }
.ex-pessoas .ex-av, .ex-pessoa .ex-av { width: 34px; height: 34px; font-size: 12px; border: 0; }
.ex-cab { flex: none; } .ex-cab b { color: #152e50; }
.ex-itens-lista { flex: 1; min-height: 0; overflow-y: auto; margin: 10px -4px 0; padding: 0 4px; display: flex; flex-direction: column; gap: 7px; -webkit-overflow-scrolling: touch; }
.ex-item { display: flex; align-items: center; gap: 10px; min-height: 52px; width: 100%; border-radius: 12px; border: 1.5px solid #e2e8f0; background: #fff; font: inherit; text-align: left; padding: 8px 12px; cursor: pointer; color: #1e293b; }
.ex-item:disabled { cursor: default; opacity: 1; }
.ex-item b { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #152e50; }
.ex-i-nome { min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.ex-ck { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #94a3b8; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.ex-i-ok { background: #f0fdf4; border-color: #86efac; } .ex-i-ok .ex-ck { background: #059669; border-color: #059669; }
.ex-i-mudou { border-color: #fda4af; } .ex-i-mudou.ex-i-ok { border-color: #86efac; }
.ex-i-saiu { background: #f8fafc; color: #94a3b8; cursor: default; } .ex-i-saiu .ex-i-nome { text-decoration: line-through; } .ex-i-saiu b { color: #94a3b8; }
.ex-rodape { flex: none; padding-top: 4px; } .ex-rodape .ex-vol { height: 50px; }
.ex-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; flex: 1; min-height: 0; overflow-y: auto; align-content: start; }
.ex-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: #f1f5f9; }
.ex-fotos .ex-vazio { grid-column: 1 / -1; }
.ex-foto-bt { flex: none; } .ex-foto-bt.ex-ocupado { opacity: .6; pointer-events: none; }
.ex-mn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 6px; border: 0; border-bottom: 1px solid #eef2f6; background: none; font: inherit; text-align: left; color: #1e293b; cursor: pointer; }
.ex-mn > i { width: 22px; text-align: center; font-size: 18px; color: #152e50; flex: none; }
.ex-mn b { display: block; font-size: 14.5px; } .ex-mn small { display: block; font-size: 12px; color: #64748b; font-weight: 600; margin-top: 1px; }
.ex-mn em { margin-left: auto; font-style: normal; background: #e11d48; color: #fff; font-size: 11px; font-weight: 900; border-radius: 99px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.ex-hist { flex: 1; min-height: 0; overflow-y: auto; margin-top: 8px; display: flex; flex-direction: column; }
.ex-h { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid #eef2f6; }
.ex-h > i { width: 30px; height: 30px; border-radius: 50%; background: #f1f5f9; color: #152e50; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.ex-h b { display: block; font-size: 13.5px; color: #1e293b; } .ex-h small { display: block; font-size: 12px; color: #64748b; font-weight: 600; margin-top: 2px; line-height: 1.4; }
.ex-h-meu > i { background: #152e50; color: #fac043; }
/* tablet e telas largas: janelas no centro e a lista em duas colunas */
@media (min-width: 700px) {
  .ex-fundo { align-items: center; padding: 24px; }
  .ex-folha { border-radius: 24px; max-width: 560px; }
  .ex-folha.ex-alta { height: min(80vh, 760px); }
  .ex-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; padding-left: 20px; padding-right: 20px; gap: 14px; }
  .ex-lista > .ex-vazio { grid-column: 1 / -1; }
  .ex-ola, .ex-dica, .ex-erro { margin-left: 20px; margin-right: 20px; }
  .ex-dica { padding-left: 0; padding-right: 0; }
  .ex-nav { justify-content: center; } .ex-nav button { max-width: 150px; font-size: 13px; }
}
@media (min-width: 1200px) { .ex-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ex-folha h3 { font-weight: 900; }
.ex-itens b { white-space: nowrap; }
/* Ajustes visuais: título longo quebra em até 2 linhas, avatares sem esconder as iniciais, badge ao lado do ícone da barra. */
.ex-t1 { align-items: flex-start; }
.ex-t1 b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.ex-t1 span { flex: none; line-height: 1.2; }
.ex-av.b { margin-left: -4px; }
.ex-nav button i { position: relative; }
.ex-nav em { left: calc(50% + 4px); margin-left: 0; top: -7px; }

/* Equipes e ajudantes, confirmações de cancelamento e desempenho do funcionário */
.ex-seg { display: flex; gap: 4px; padding: 3px; background: #f1f5f9; border-radius: 12px; margin: 8px 0 10px; }
.ex-seg button { flex: 1; min-height: 38px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; font-weight: 800; color: #64748b; cursor: pointer; padding: 0 4px; }
.ex-seg button[aria-selected="true"] { background: #fff; color: #152e50; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.ex-seg button:disabled { opacity: .45; }
.ex-seg4 button { font-size: 12.5px; }
.ex-eq { border: 1.5px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 10px 12px; margin-top: 8px; }
.ex-eq b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #152e50; }
.ex-eq small { display: block; font-size: 12px; color: #64748b; font-weight: 600; margin-top: 2px; }
.ex-eq-on { border-color: #15803d; background: #f0fdf4; }
.ex-tag-on { background: #15803d; color: #fff; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 99px; }
.ex-eq-acoes { display: flex; gap: 6px; margin-top: 8px; }
.ex-eq-acoes button { flex: 1; min-height: 38px; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #fff; font: inherit; font-size: 12.5px; font-weight: 800; color: #152e50; cursor: pointer; }
.ex-eq-acoes .ex-vermelho { color: #b91c1c; border-color: #fecaca; }
.ex-pl { width: 100%; }
.ex-pl-on { border-color: #2563eb !important; background: #eff6ff !important; }
.ex-pl > .fa-pen { margin-left: auto; color: #94a3b8; font-size: 13px; }
.ex-pl .ex-ck { width: 22px; height: 22px; border-radius: 7px; border-color: #cbd5e1; font-size: 12px; background: #fff; }
.ex-pl .ex-ck.on { background: #2563eb; border-color: #2563eb; }
.ex-av.aj { background: #fef3c7; color: #92400e; }
.ex-perigo { background: #b91c1c; color: #fff; }
.ex-perigo:disabled { background: #e2e8f0; color: #94a3b8; opacity: 1; }
.ex-h3-verm { color: #b91c1c; }
.ex-lista-apaga { margin: 8px 0 0; padding: 10px 12px 10px 28px; background: #fef2f2; border-radius: 12px; color: #991b1b; font-size: 13px; font-weight: 700; line-height: 1.5; }
.ex-manter { background: #f1f5f9; border-radius: 14px; color: #152e50; height: 48px; }
.ex-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-kpis div { background: #f1f5f9; border-radius: 12px; padding: 10px 12px; }
.ex-kpis b { display: block; font-size: 20px; color: #152e50; font-variant-numeric: tabular-nums; }
.ex-kpis small { font-size: 11.5px; color: #64748b; font-weight: 700; }
.ex-pessoas-ativar { margin-top: 10px; }

/* Movimento: a folha sobe de baixo no celular (centralizada com zoom leve no tablet), desce ao fechar; a lista aparece suave ao trocar de aba. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ex-sobe { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes ex-desce { from { transform: none; } to { transform: translateY(100%); } }
  @keyframes ex-aparece { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .ex-fundo.mov-entrando[data-mov="modal"] > .ex-folha { animation: ex-sobe var(--mov-lenta) var(--mov-entrada); }
  .ex-fundo.mov-saindo[data-mov="modal"] > .ex-folha { animation: ex-desce var(--mov-normal) var(--mov-saida) forwards !important; }
  .ex-lista.ex-troca > * { animation: ex-aparece 220ms var(--mov-entrada) backwards; }
  @media (min-width: 700px) {
    .ex-fundo.mov-entrando[data-mov="modal"] > .ex-folha { animation: mov-janela 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
    .ex-fundo.mov-saindo[data-mov="modal"] > .ex-folha { animation: mov-janela-sai var(--mov-rapida) var(--mov-saida) forwards !important; }
  }
}

/* Iniciar em etapas (escolherInicio): pergunta, botão secundário e a hora escolhida na janela da equipe. */
.ex-pergunta { margin: 10px 0 8px !important; font-size: 15px !important; font-weight: 800 !important; color: #152e50 !important; }
.ex-btn-sec { background: #fff !important; color: #152e50 !important; border: 1.5px solid #152e50 !important; margin-top: 8px; }
.ex-inicio-escolhido { background: #eff6ff; color: #1e3a8a !important; border-radius: 10px; padding: 8px 10px; font-weight: 700 !important; }

/* Jornada (SQL 127): tela de "ligação" das chamadas, botões redondos. Fica abaixo das folhas (.ex-fundo 9500) para o
   "Pausar por hoje" e o "Continuar a carga" abrirem por cima. */
.ex-lig { position: fixed; inset: 0; z-index: 9400; background: radial-gradient(120% 80% at 50% 0%, #1f3d68 0%, #0d1c33 70%); color: #fff; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(30px + env(safe-area-inset-top)) 20px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; animation: ex-lig-entra .25s ease-out; }
.ex-lig h3 { margin: 6px 0 2px; font-size: 23px; font-weight: 900; }
.ex-lig-de { font-size: 11px; letter-spacing: .14em; color: #fac043; font-weight: 900; }
.ex-lig-sub { font-size: 13px; color: #b8c7de; }
.ex-lig-anel { margin: 26px auto 18px; width: 116px; height: 116px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 42px; color: #152e50; background: #fac043; position: relative; flex: none; animation: ex-lig-treme .5s ease-in-out infinite; }
.ex-lig-anel::before, .ex-lig-anel::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(250,192,67,.6); animation: ex-lig-onda 1.6s ease-out infinite; }
.ex-lig-anel::after { animation-delay: .8s; }
.ex-lig-anel.verde { background: #34d399; } .ex-lig-anel.verde::before, .ex-lig-anel.verde::after { border-color: rgba(52,211,153,.6); }
.ex-lig-anel.azul { background: #93c5fd; } .ex-lig-anel.azul::before, .ex-lig-anel.azul::after { border-color: rgba(147,197,253,.6); }
.ex-lig-msg { margin: 0 0 4px; font-size: 15px; font-weight: 800; line-height: 1.35; max-width: 340px; }
.ex-lig-carga { margin: 0 0 6px; font-size: 13px; font-weight: 900; color: #e2e8f0; }
.ex-lig-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 360px; }
.ex-lig-chip { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 99px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; }
.ex-lig-recado { margin: 10px 0 0; max-width: 340px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; color: #e2e8f0; text-align: left; }
.ex-lig-recado i { color: #fac043; }
.ex-lig-vibra { margin-top: 10px; font-size: 11.5px; color: #fac043; font-weight: 800; }
.ex-lig-vibra i { animation: ex-lig-treme .3s infinite; }
.ex-lig-bts { margin-top: auto; padding-top: 22px; width: 100%; max-width: 380px; display: flex; justify-content: space-around; gap: 10px; }
.ex-lig-bt { background: none; border: 0; color: #fff; font: inherit; font-size: 12px; font-weight: 800; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.ex-lig-bt span { width: 66px; height: 66px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .12s ease; }
.ex-lig-bt:active span { transform: scale(.92); }
.ex-lig-bt .cinza { background: rgba(255,255,255,.14); } .ex-lig-bt .verde { background: #059669; } .ex-lig-bt .ouro { background: #fac043; color: #152e50; }
.ex-lig-ouro { background: #fac043 !important; color: #152e50 !important; }
@keyframes ex-lig-onda { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes ex-lig-treme { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes ex-lig-entra { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ex-lig, .ex-lig-anel, .ex-lig-anel::before, .ex-lig-anel::after, .ex-lig-vibra i { animation: none; } }

/* ===== Pílulas Hoje · Amanhã · Semana (no lugar da barra azul com o nome) e cargas dos próximos dias (SQL 131) ===== */
.ex-pils { display: flex; gap: 4px; background: #ebe6da; padding: 4px; border-radius: 14px; margin: 10px 12px 0; flex: none; }
.ex-pils button { flex: 1; border: 0; background: transparent; padding: 9px 2px; border-radius: 11px; font: inherit; font-size: 13.5px; font-weight: 800; color: #64748b; white-space: nowrap; cursor: pointer; }
.ex-pils button[aria-selected="true"] { background: #152e50; color: #fac043; box-shadow: 0 2px 6px rgba(21,46,80,.25); }
.ex-pils i { font-style: normal; display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: rgba(100,116,139,.18); font-size: 11px; }
.ex-pils button[aria-selected="true"] i { background: rgba(250,192,67,.25); }
.ex-t1 .ex-num { margin-left: 0; flex: none; font-size: 12px; font-weight: 800; color: #64748b; background: #efeadf; border-radius: 6px; padding: 1px 6px; }
.ex-dia { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 0; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #152e50; flex: none; }
.ex-dia span { color: #64748b; font-weight: 800; }
.ex-mini { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1.5px solid #e1dacb; border-left: 6px solid var(--k); border-radius: 14px; padding: 9px 12px; font: inherit; color: #64748b; cursor: pointer; flex: none; }
.ex-mini-h { width: 44px; flex: none; font-weight: 900; color: #152e50; font-size: 14px; font-variant-numeric: tabular-nums; }
.ex-mini-m { flex: 1; min-width: 0; } .ex-mini-m b { display: block; color: #152e50; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ex-mini-m small { font-weight: 700; font-size: 11.5px; }
.ex-perfil { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 6px; border-radius: 16px; background: #f8f6f1; border: 1.5px solid #e1dacb; }
.ex-perfil .ex-av { width: 42px; height: 42px; font-size: 14px; }
.ex-perfil small { display: block; color: #b45309; font-weight: 900; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; } .ex-perfil b { display: block; color: #152e50; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .ex-pils button { transition: none; } }
