/**
 * ═══════════════════════════════════════════════
 * MM Suporte — App do Técnico
 * Design System exclusivo (dark)
 *
 * Mesma arquitetura do Portal do Membro do AD Lidera, com a identidade MM
 * e três ajustes pensados para o campo: alvos maiores (uso com luva),
 * contraste mais alto (sol na tela) e ícones pequenos com rótulo sempre
 * visível (o técnico não decora ícone).
 * ═══════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700;9..40,800&display=swap');

:root {
  /* Superfícies */
  --t-bg: #080d19;
  --t-surface: #0f1629;
  --t-surface-light: #151d35;
  --t-surface-hover: #1a2340;
  /* Bordas */
  --t-border: rgba(0, 200, 255, .10);
  --t-border-light: rgba(0, 200, 255, .16);
  --t-border-focus: rgba(0, 242, 254, .38);
  /* Acento: o ciano da MM */
  --t-accent: #00d4f0;
  --t-accent-light: #4ce4fb;
  --t-accent-dim: rgba(0, 212, 240, .11);
  --t-accent-glow: rgba(0, 212, 240, .26);
  /* Semânticas */
  --t-green: #34d399;   --t-green-dim: rgba(52, 211, 153, .11);
  --t-amber: #fbbf24;   --t-amber-dim: rgba(251, 191, 36, .11);
  --t-red: #f87171;     --t-red-dim: rgba(248, 113, 113, .11);
  --t-purple: #a78bfa;  --t-purple-dim: rgba(167, 139, 250, .11);
  /* Texto */
  --t-text: #edf1fa;
  --t-text2: #b0bdd6;
  --t-text3: #8291ad;
  /* Formas */
  --t-radius: 14px;
  --t-radius-sm: 10px;
  --t-radius-xs: 6px;
  --t-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-safe-bottom: env(safe-area-inset-bottom, 0px);
  --t-header-h: 60px;
  --t-nav-h: 66px;
}

/* ─── Base ─────────────────────────────────── */
body.tec-body {
  font-family: var(--t-font);
  background: var(--t-bg);
  color: var(--t-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--t-nav-h) + var(--t-safe-bottom));
  overscroll-behavior-y: contain;
}

/* ─── Header ───────────────────────────────── */
.t-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 13, 25, .88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--t-border);
  padding: 10px 16px 11px;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--t-header-h);
}
.t-header-menu {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--t-surface-light); border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm); color: var(--t-text2);
  cursor: pointer; transition: all .15s;
}
.t-header-menu:active { background: var(--t-surface-hover); transform: scale(.94); }
.t-header-info { flex: 1; min-width: 0; }
.t-header-name {
  font-size: 13.5px; font-weight: 600; color: var(--t-text);
  letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-header-sub {
  font-size: 11px; color: var(--t-text3); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 5px;
}
.t-header-actions { display: flex; gap: 7px; flex-shrink: 0; }
.t-header-btn {
  width: 34px; height: 34px; border-radius: var(--t-radius-sm);
  background: var(--t-surface-light); border: 1px solid var(--t-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--t-text2); cursor: pointer; position: relative;
  transition: all .15s; text-decoration: none;
}
.t-header-btn:active { background: var(--t-surface-hover); transform: scale(.94); }
.t-header-btn i { font-size: 15px; }
.t-avatar {
  width: 34px; height: 34px; border-radius: var(--t-radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, #00c6fb, #00f2fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #04121f;
}

/* Pontinho de pendência de sincronização */
.t-badge-dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--t-amber); color: #1a1300;
  font-size: 9.5px; font-weight: 800; line-height: 16px; text-align: center;
  border: 2px solid var(--t-bg);
}

/* ─── Conteúdo ─────────────────────────────── */
.t-content { padding: 14px 16px; max-width: 560px; margin: 0 auto; }

/* ─── Barra inferior ───────────────────────── */
.t-nav {
  position: relative; z-index: 90;
  background: rgba(15, 22, 41, .94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--t-border);
  display: flex; padding-bottom: var(--t-safe-bottom);
}
.t-nav button, .t-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 6px 8px; background: none; border: 0;
  font-family: inherit; font-size: 10px; font-weight: 600;
  color: var(--t-text2); text-decoration: none; cursor: pointer;
  transition: color .18s; position: relative;
}
.t-nav i { font-size: 19px; }
.t-nav .ativo { color: var(--t-accent); }
.t-nav .ativo::before {
  content: ''; position: absolute; top: 0; left: 22%; right: 22%;
  height: 2px; background: var(--t-accent); border-radius: 0 0 3px 3px;
}

/* ─── Drawer ───────────────────────────────── */
.t-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 276px; z-index: 9000;
  background: linear-gradient(180deg, #0f1629 0%, #080d19 100%);
  border-right: 1px solid var(--t-border);
  display: flex; flex-direction: column;
  transform: translateX(-100%); visibility: hidden;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.t-drawer.aberto { transform: translateX(0); visibility: visible; }
.t-drawer-fundo {
  position: fixed; inset: 0; z-index: 8999; background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
.t-drawer-fundo.aberto { opacity: 1; visibility: visible; }

.t-drawer-topo {
  padding: 16px; border-bottom: 1px solid var(--t-border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.t-drawer-topo .t-avatar { width: 44px; height: 44px; font-size: 15px; border-radius: 12px; }
.t-drawer-nome { font-size: 14px; font-weight: 700; color: var(--t-text); }
.t-drawer-cargo { font-size: 11.5px; color: var(--t-text3); margin-top: 1px; }

.t-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }
.t-drawer-secao {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--t-text3); padding: 12px 18px 6px;
}
.t-drawer-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 18px; background: none; border: 0; border-left: 2.5px solid transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--t-text2); text-align: left; cursor: pointer; transition: all .15s;
}
.t-drawer-item i { font-size: 17px; width: 20px; flex-shrink: 0; opacity: .85; }
.t-drawer-item:active { background: var(--t-surface-hover); }
.t-drawer-item.ativo {
  background: var(--t-accent-dim); color: var(--t-accent);
  border-left-color: var(--t-accent); font-weight: 600;
}
.t-drawer-item.ativo i { opacity: 1; }
.t-drawer-item.breve { opacity: .45; }
.t-drawer-tag {
  margin-left: auto; font-size: 8.5px; font-weight: 800; padding: 2px 6px;
  border-radius: 5px; background: rgba(148, 163, 184, .18); color: var(--t-text3);
  text-transform: uppercase; letter-spacing: .05em;
}
.t-drawer-rodape { border-top: 1px solid var(--t-border); padding: 10px; flex-shrink: 0; }
.t-drawer-sair {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px; border: 0; border-radius: var(--t-radius-sm);
  background: var(--t-red-dim); color: var(--t-red);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.t-drawer-versao { text-align: center; font-size: 10px; color: var(--t-text3); margin-top: 8px; }

/* ─── Cartões ──────────────────────────────── */
.t-card {
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--t-radius); padding: 14px; margin-bottom: 10px;
  transition: border-color .15s;
}
.t-card:active { border-color: var(--t-border-light); }

/* Cartão de OS: o elemento mais tocado do app */
.t-os {
  display: block; width: 100%; text-align: left;
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-left: 3px solid var(--t-accent);
  border-radius: var(--t-radius); padding: 13px 14px; margin-bottom: 10px;
  cursor: pointer; transition: all .15s; font-family: inherit; color: inherit;
}
.t-os:active { transform: scale(.985); background: var(--t-surface-light); }
.t-os.andamento { border-left-color: var(--t-amber); }
.t-os.concluida { border-left-color: var(--t-green); opacity: .78; }
.t-os-topo { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.t-os-num { font-size: 12px; font-weight: 700; color: var(--t-accent); }
.t-os-cliente {
  font-size: 14px; font-weight: 600; color: var(--t-text); line-height: 1.25;
  margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.t-os-end { font-size: 11.5px; color: var(--t-text3); line-height: 1.35; }
.t-os-rodape {
  display: flex; align-items: center; gap: 8px; margin-top: 9px;
  padding-top: 9px; border-top: 1px solid var(--t-border);
  font-size: 10.5px; color: var(--t-text3);
}

/* ─── Selos ────────────────────────────────── */
.t-selo {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
  background: var(--t-surface-light); color: var(--t-text2);
}
.t-selo.ciano { background: var(--t-accent-dim); color: var(--t-accent); }
.t-selo.verde { background: var(--t-green-dim); color: var(--t-green); }
.t-selo.ambar { background: var(--t-amber-dim); color: var(--t-amber); }
.t-selo.vermelho { background: var(--t-red-dim); color: var(--t-red); }
.t-selo.roxo { background: var(--t-purple-dim); color: var(--t-purple); }

/* ─── Alternador (Minhas / Equipe) ─────────── */
.t-alternador {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 12px;
  background: var(--t-surface); border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm);
}
.t-alternador button {
  flex: 1; padding: 9px 8px; border: 0; border-radius: var(--t-radius-xs);
  background: none; color: var(--t-text3);
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .18s; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.t-alternador button i { font-size: 14px; }
.t-alternador button.ativo { background: var(--t-accent-dim); color: var(--t-accent); }

/* ─── Botões ───────────────────────────────── */
.t-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 13px 16px;
  border: 0; border-radius: var(--t-radius-sm);
  font-family: inherit; font-size: 14.5px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.t-btn:active { transform: scale(.98); }
.t-btn-principal { background: linear-gradient(135deg, #00c6fb, #00f2fe); color: #04121f; }
.t-btn-verde { background: var(--t-green); color: #052e20; }
.t-btn-contorno {
  background: var(--t-surface-light); border: 1px solid var(--t-border-light); color: var(--t-text);
}
.t-btn-fantasma { background: none; color: var(--t-text3); font-weight: 600; min-height: 42px; }
.t-btn:disabled { opacity: .55; }

/* ─── Campos ───────────────────────────────── */
.t-campo { margin-bottom: 14px; }
.t-rotulo {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--t-text2); margin-bottom: 6px;
}
.t-input, .t-select, .t-textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--t-surface-light); border: 1px solid var(--t-border);
  border-radius: var(--t-radius-sm); color: var(--t-text);
  font-family: inherit; font-size: 16px;   /* 16px evita o zoom do iOS */
  transition: border-color .15s;
}
.t-textarea { min-height: 96px; resize: vertical; }
.t-input:focus, .t-select:focus, .t-textarea:focus {
  outline: 0; border-color: var(--t-border-focus);
  box-shadow: 0 0 0 3px var(--t-accent-dim);
}
.t-input::placeholder, .t-textarea::placeholder { color: var(--t-text3); }

/* ─── Estados ──────────────────────────────── */
.t-vazio { text-align: center; padding: 44px 20px; color: var(--t-text3); }
.t-vazio i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: 12px; }
.t-vazio p { font-size: 13.5px; margin: 0; }
.t-carregando {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 36px; color: var(--t-text3); font-size: 13px;
}
.t-spin {
  width: 17px; height: 17px; border: 2px solid var(--t-border-light);
  border-top-color: var(--t-accent); border-radius: 50%;
  animation: tspin .7s linear infinite;
}
@keyframes tspin { to { transform: rotate(360deg); } }

/* Faixa de aviso (sem conexão, pendências) */
.t-faixa {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 12px;
  border-radius: var(--t-radius-sm); font-size: 12px; font-weight: 500;
}
.t-faixa i { font-size: 15px; flex-shrink: 0; }
.t-faixa.ambar { background: var(--t-amber-dim); color: var(--t-amber); border: 1px solid rgba(251,191,36,.25); }
.t-faixa.verde { background: var(--t-green-dim); color: var(--t-green); border: 1px solid rgba(52,211,153,.25); }
.t-faixa.ciano { background: var(--t-accent-dim); color: var(--t-accent); border: 1px solid var(--t-border-light); }

/* Título de seção */
.t-secao {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 10px;
}
.t-secao h2 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--t-text3); margin: 0;
}
.t-secao span { font-size: 11.5px; color: var(--t-text3); }


/* A faixa de status ficava fixa no canto superior direito, exatamente onde o
   header novo tem o botão de sincronizar. Agora ela entra no fluxo, logo
   abaixo do header, sem cobrir nada. */
.tec-body .offline-status {
  position: static; display: none; margin: 10px 16px 0;
  max-width: none; width: calc(100% - 32px);
  justify-content: center; border-radius: var(--t-radius-sm);
  background: var(--t-surface-light); border-color: var(--t-border);
  color: var(--t-text2); box-shadow: none; backdrop-filter: none;
  font-size: .74rem; padding: 8px 12px;
}
.tec-body .offline-status.visible { display: flex; }
.tec-body .offline-status button { color: var(--t-accent); }


/* Qualquer filho do alternador divide a largura — vale mesmo se o JS trocar as
   classes do botão por classes do Bootstrap. */
.t-alternador > * {
  flex: 1 1 0; min-width: 0; padding: 9px 8px;
  border: 0; border-radius: var(--t-radius-xs);
  background: none; color: var(--t-text3);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .18s; box-shadow: none;
}
.t-alternador > *.ativo,
.t-alternador > *.active {
  background: var(--t-accent-dim); color: var(--t-accent);
}
.t-alternador > *.btn-primary { background: var(--t-accent-dim); color: var(--t-accent); }


/* O Bootstrap aplica width/flex nos .btn e .btn-group. Como o app.js ainda
   pode recolocar essas classes, aqui vale !important: dentro do alternador,
   todo filho divide a largura, sempre. */
.t-alternador { display: flex !important; width: 100%; }
.t-alternador > * {
  flex: 1 1 0 !important; width: auto !important; min-width: 0 !important;
  margin: 0 !important; border: 0 !important; box-shadow: none !important;
}
.t-alternador > *.btn { border-radius: var(--t-radius-xs) !important; }


/* ═══ Largura estável ═══
   .screen é flex column: os filhos herdam align-items:stretch, mas
   max-width + margin auto faz o bloco encolher quando o conteúdo é curto
   (lista vazia). Fixar width e align-self mantém a tela sempre cheia. */
.t-content {
  width: 100% !important;
  align-self: stretch !important;
  box-sizing: border-box;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.scroll-content.t-content { flex: 1 1 auto !important; }

/* Os blocos internos também ocupam a largura toda, independentemente do que
   há dentro deles. */
.t-alternador,
.t-content > .t-campo,
.t-content > #os-list,
.t-content > div[style*="grid-template-columns"] { width: 100% !important; }
.t-content > * { max-width: 100%; }


/* ═══ RODAPÉ FIXO ═══
   .screen já é uma coluna que ocupa a tela inteira. Então o header não rola,
   o conteúdo rola no meio e a barra fica presa embaixo — sem position:fixed,
   que nesse contexto (dentro de position:absolute) sai do lugar em aparelhos
   com barra de gestos. */
.screen {
  display: flex; flex-direction: column;
  height: 100%; max-height: 100%; overflow: hidden;
}

.t-header { flex: 0 0 auto; position: relative; top: auto; }

.screen > .scroll-content,
.screen > .t-content {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;   /* a barra não flutua mais: não precisa de folga */
}

.t-nav {
  flex: 0 0 auto;
  padding-bottom: var(--t-safe-bottom);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
}

/* O corpo não precisa mais reservar espaço para a barra flutuante. */
body.tec-body { padding-bottom: 0; }

/* A faixa de status offline acompanha o header, sem empurrar o conteúdo. */
.tec-body .offline-status { flex: 0 0 auto; }


/* ═══ ALTURA REAL DA TELA ═══
   100vh no celular inclui a barra do navegador e a de gestos: o app fica mais
   alto que a área visível e o rodapé cai fora. dvh é a altura que sobra de
   verdade e acompanha a barra aparecendo/sumindo. */
html, body { height: 100%; height: 100dvh; overflow: hidden; }

#app {
  height: 100vh;              /* reserva para navegador sem dvh */
  height: 100dvh;
  height: var(--altura-app, 100dvh);   /* medida em JS, se necessário */
  max-height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.screen {
  height: 100%; max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
}

/* A barra encosta no fim da área visível, respeitando a faixa do iPhone. */
.t-nav {
  flex: 0 0 auto;
  padding-bottom: max(var(--t-safe-bottom), 6px);
}


/* ═══ BARRA DE NAVEGAÇÃO DO SISTEMA ═══
   No Android com os três botões, a barra do app ficava atrás deles: o
   env(safe-area-inset-bottom) devolve 0 (ele só cobre a faixa do iPhone).
   Aqui a barra ganha altura própria e um recuo medido em JS. */
.t-nav {
  flex: 0 0 auto;
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: calc(6px + var(--vao-inferior, 0px) + var(--t-safe-bottom));
  align-items: stretch;
}
.t-nav button, .t-nav a {
  padding: 6px 6px 4px;
  justify-content: center;
}
.t-nav i { font-size: 20px; line-height: 1; }
.t-nav span { font-size: 10px; line-height: 1.2; }

/* Em telas baixas o conteúdo é que cede espaço, nunca a barra. */
@media (max-height: 640px) {
  .t-nav { min-height: 52px; }
  .t-nav i { font-size: 18px; }
}


/* ═══ BARRA PRESA NA JANELA ═══
   Ancorar a barra dentro do .screen (que é position:absolute) não segurava
   em todos os aparelhos. Presa na janela, como no portal do membro, ela fica
   sempre visível — e o conteúdo reserva o espaço dela embaixo. */
.t-nav {
  position: fixed !important;
  left: 0; right: 0; bottom: 0; z-index: 900;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
  background: rgba(15, 22, 41, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--t-border);
}

/* O conteúdo rola por baixo dela e termina antes, sem ficar escondido. */
.screen > .scroll-content,
.screen > .t-content {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Telas sem barra (detalhe da OS) não precisam da folga. */
#screen-detail > .scroll-content { padding-bottom: 24px !important; }

/* Cartão de OS já iniciada: filete âmbar e fundo levemente quente, para o
   técnico achar de relance o que está em andamento. */
.t-os.andamento {
  border-left-color: var(--t-amber);
  background: linear-gradient(90deg, rgba(251,191,36,.07), var(--t-surface) 45%);
}


/* ═══ BARRA ÚNICA ═══
   Fora de #app e das telas: sem ancestral com transform, o fixed funciona
   como deveria e a barra fica presa na janela em qualquer aparelho. */
#barra-app {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: flex; min-height: 56px;
  padding-top: 6px;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
  background: rgba(15, 22, 41, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--t-border);
}
/* Só aparece nas telas que a usam — no login e no bloqueio não faz sentido. */
#barra-app { display: none; }
body.com-barra #barra-app { display: flex; }

/* O conteúdo termina antes da barra. */
body.com-barra .screen > .scroll-content,
body.com-barra .screen > .t-content {
  padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
}
body.com-barra #screen-detail > .scroll-content { padding-bottom: 28px !important; }


/* ═══ ESPAÇO DO BOTÃO DE FECHAR ═══
   No detalhe não há barra inferior, mas o botão de fechar precisa caber
   inteiro com folga para o dedo — 28px deixava ele cortado. */
#screen-detail > .scroll-content,
body.com-barra #screen-detail > .scroll-content {
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important;
}
#btn-fechar { margin-bottom: 8px; }

/* O subtítulo do header não pode empurrar o título. */
#detail-os-sub { font-size: 11px; }


/* ═══ Ações da foto ═══
   Baixar e compartilhar ficam sobre a imagem, ao alcance do polegar. */
.foto-acoes {
  position: fixed; left: 0; right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: center; gap: 12px; z-index: 10;
}
.foto-acao {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 24px;
  background: rgba(15, 22, 41, .92); color: var(--t-text);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--t-border-light);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.foto-acao i { font-size: 17px; }
.foto-acao:active { transform: scale(.96); }
#btn-foto-compartilhar { background: rgba(37, 211, 102, .92); color: #06281a; border-color: transparent; }
#btn-foto-compartilhar i { font-size: 18px; }


/* Campo obrigatório em falta: pisca em âmbar quando o técnico tenta avançar. */
.wz-falta { animation: wzFalta 2.4s ease; border-radius: 10px; }
@keyframes wzFalta {
  0%, 100% { background: transparent; }
  15%, 60% { background: rgba(251, 191, 36, .16); }
}
.wz-falta .t-input, .wz-falta .form-control { border-color: var(--t-amber) !important; }
