/* Aplik Serviços · app do técnico (celular, uma mão, sol forte) e indicadores offline */

/* ---------- indicador offline (vale para qualquer tela) ---------- */
.off-pill { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; font: 700 12.5px/1 var(--fonte); border: 0; white-space: nowrap; }
.off-pill.off { background: #ffe1e1; color: #8f1c1c; }
.off-pill.pend { background: #ffe9b8; color: #6b3b00; cursor: pointer; }
.off-pill.falha { background: #8f1c1c; color: #fff; cursor: pointer; }
.off-gira { width: 11px; height: 11px; border: 2px solid rgba(107, 59, 0, .3); border-top-color: #6b3b00; border-radius: 50%; animation: gira .7s linear infinite; }
#off-flut { position: fixed; right: 12px; bottom: 12px; z-index: 150; display: flex; gap: 6px; box-shadow: var(--sombra2); border-radius: 999px; }
.off-lista { list-style: none; margin: 0; padding: 0; }
.off-lista li { padding: 10px 0; border-bottom: 1px solid var(--borda2); display: flex; flex-direction: column; }
.off-lista.erro b { color: var(--perigo); }

/* ---------- base do modo técnico ---------- */
body.modo-tec { background: #e9eeeb; font-size: 16px; color: #0f1a14; overscroll-behavior-y: contain; }
body.modo-tec .muted { color: #44534b; }
#tec { min-height: 100vh; max-width: 640px; margin: 0 auto; background: #eef2ef; position: relative; }
.t-main { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); }
body.t-com-acao .t-main { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
.modo-tec .ic { width: 20px; height: 20px; flex: none; }
.modo-tec .obr { color: var(--perigo); }

/* topo */
.t-topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; min-height: 56px; background: var(--escuro); color: #fff; }
.t-topo-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t-topo-id b { display: block; font-size: 16px; line-height: 1.2; }
.t-topo-id small { display: block; color: #a9c2b4; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.t-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #39d47a, var(--verde-esc)); display: grid; place-items: center; color: #fff; flex: none; }
.t-logo .ic { width: 22px; height: 22px; }
.t-ind { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* navegação inferior */
.t-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid #cfd9d3; padding-bottom: env(safe-area-inset-bottom); max-width: 640px; margin: 0 auto; }
.t-nav a, .t-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; color: #46564d; text-decoration: none; font: 600 12.5px var(--fonte); background: none; border: 0; cursor: pointer; }
.t-nav .ic { width: 25px; height: 25px; }
.t-nav a.ativo { color: var(--verde-esc); }
.t-nav a { position: relative; }
.t-nav a.ativo::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; margin-left: -20px; height: 3px; border-radius: 0 0 3px 3px; background: var(--verde); }

/* barra de ação fixa (acima da navegação) */
.t-acao { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 35; padding: 10px 12px 10px; background: linear-gradient(to top, #eef2ef 75%, rgba(238, 242, 239, 0)); max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.t-acao-dica { text-align: center; color: #44534b; font-size: 12.5px; }
.t-acao-linha { display: flex; gap: 8px; }
.t-acao-linha .t-btn-grande { flex: 1; }
.t-acao .t-btn-pausa { flex: none; width: 76px; margin: 0; flex-direction: column; gap: 0 !important; font-size: 12px !important; min-height: 60px !important; }

/* botões grandes */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid transparent; background: var(--verde); color: #fff; font: 700 16px var(--fonte); cursor: pointer; text-decoration: none; margin-top: 10px; -webkit-tap-highlight-color: transparent; transition: transform .06s, background .15s; }
.t-btn:active { transform: scale(.98); }
.t-btn:disabled { opacity: .6; }
.t-btn.sec { background: #fff; color: #0f1a14; border-color: #b9c8bf; }
.t-btn.ghost { background: transparent; color: var(--verde-esc); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.t-btn.azul { background: #1d4ed8; }
.t-btn.peq { width: auto; min-height: 42px; font-size: 14.5px; margin-top: 6px; }
.t-btn-grande { min-height: 60px; font-size: 18px; margin: 0; box-shadow: 0 6px 18px rgba(12, 60, 32, .25); }
.t-btn.carregando { color: transparent !important; position: relative; pointer-events: none; }
.t-btn.carregando::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: gira .7s linear infinite; }
.t-btn.sec.carregando::after { border-color: rgba(0, 0, 0, .15); border-top-color: var(--verde); }

/* cartões */
.t-card { background: #fff; border: 1px solid #d3ddd7; border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(16, 32, 24, .05); }
.t-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 10px; }
.t-sec h2 .ic { color: var(--verde-esc); }
.t-dica { color: #44534b; font-size: 14px; margin: 6px 0; }
.t-dica.centro { text-align: center; margin-top: 14px; }
.t-sub-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2px 0 8px; }
.t-sub-cab h2 { margin: 0; }
.t-sub-cab h3 { font-size: 15px; margin: 0; }
.t-sub-cab small { color: #55655c; font-size: 12.5px; }
.t-salvo.ok { color: var(--verde-esc); font-weight: 600; }
.t-salvo.pend { color: #8a4b00; font-weight: 600; }
.t-salvo.erro { color: var(--perigo); font-weight: 600; }
.t-verde { color: var(--verde-esc); }
.t-laranja { color: #b45309; }
.t-tag-pend { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #ffe9b8; color: #6b3b00; font-size: 12px; font-weight: 700; }
.t-tag-campo { color: #1d4ed8; font-weight: 600; }
.t-aviso-cache { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff1d6; color: #6b3b00; font-size: 14px; font-weight: 600; margin-bottom: 12px; border: 1px solid #f1d18e; }
.t-aviso-pend { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; background: #fff1d6; color: #5a3200; border: 1px solid #f1d18e; font: 14px var(--fonte); margin-bottom: 12px; cursor: pointer; }

/* ---------- hoje ---------- */
.t-hoje-cab { margin: 2px 0 12px; }
.t-saud { margin: 4px 2px 8px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.t-dia { display: flex; align-items: stretch; gap: 8px; }
.t-dia-seta { width: 52px; flex: none; border-radius: 12px; border: 1.5px solid #b9c8bf; background: #fff; display: grid; place-items: center; cursor: pointer; color: #0f1a14; }
.t-dia-seta:disabled { opacity: .35; }
.t-dia-seta.dir .ic { transform: rotate(180deg); }
.t-dia-txt { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 56px; background: #fff; border: 1.5px solid #b9c8bf; border-radius: 12px; cursor: pointer; padding: 4px 8px; }
.t-dia-txt b { font-size: 17px; }
.t-dia-txt span { font-size: 13px; color: #44534b; }
.t-dia-txt input[type=date] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; min-height: 0; border: 0; padding: 0; }
.t-link-hoje { display: inline-block; margin: 8px 2px 0; font-weight: 700; }
.t-ponto { display: flex; flex-direction: column; gap: 4px; }
.t-ponto-txt { display: flex; gap: 10px; align-items: center; }
.t-ponto-txt .ic { width: 28px; height: 28px; color: #46564d; }
.t-ponto-txt b { display: block; font-size: 16px; }
.t-ponto-txt small { color: #44534b; font-size: 13.5px; }
.t-ponto.on { border-color: #9fd9b6; background: #f3fbf6; }
.t-ponto.on .ic { color: var(--verde-esc); }
.t-btn-ponto { margin-top: 8px; }
.t-resumo { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 8px; }
.t-resumo b { font-size: 17px; }
.t-resumo span { color: #44534b; font-size: 14px; }
.t-lista-os { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.t-os { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 14px; background: #fff; border: 1px solid #d3ddd7; border-left: 6px solid #94a3b8; border-radius: 16px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.t-os:active { background: #f6f9f7; }
.t-os.prox { border-color: #8db8f7; border-left-color: #1d4ed8; box-shadow: 0 0 0 3px #dbe7ff; }
.st-b-agendada { border-left-color: #1d4ed8; }
.st-b-a_caminho { border-left-color: #6d28d9; }
.st-b-em_execucao { border-left-color: #d97706; }
.st-b-pausada { border-left-color: #c2410c; }
.st-b-concluida, .st-b-faturada { border-left-color: var(--verde); opacity: .78; }
.t-os-hora { flex: none; width: 58px; text-align: center; }
.t-os-hora b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.t-os-hora small { color: #55655c; font-size: 12px; }
.t-os-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t-os-cli { font-size: 17px; line-height: 1.25; }
.t-os-end { color: #2c3a33; font-size: 14px; }
.t-os-meta { color: #55655c; font-size: 13px; }
.t-os-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.t-os-chev { color: #8a9a91; }
.t-prox { align-self: flex-start; background: #1d4ed8; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; margin-bottom: 2px; }
.t-vazio { text-align: center; padding: 30px 18px; color: #44534b; }
.t-vazio b { display: block; color: #0f1a14; font-size: 17px; margin: 6px 0 4px; }
.t-vazio .ic-vazio { width: 46px; height: 46px; color: #9fb2a7; }
.t-estoque summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; min-height: 32px; }
.t-estoque summary::-webkit-details-marker { display: none; }
.t-estoque summary b { flex: 1; font-size: 16px; }
.t-estoque[open] .t-sum-chev { transform: rotate(180deg); }
.t-badge { min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: #e3ebe6; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.t-estoque ul { list-style: none; margin: 10px 0 0; padding: 0; }
.t-estoque li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1ef; font-size: 15px; }
.t-zero { color: var(--perigo); }

/* ---------- OS ---------- */
.t-voltar { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; font-weight: 700; text-decoration: none; color: var(--verde-esc); min-height: 36px; }
.t-os-topo h1 { font-size: 22px; line-height: 1.2; margin: 6px 0 8px; letter-spacing: -.01em; }
.t-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-num { font-size: 13.5px; font-weight: 700; color: #44534b; }
.t-end, .t-meta { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 15px; color: #1d2a23; }
.t-end .ic, .t-meta .ic { width: 18px; height: 18px; margin-top: 2px; color: #55655c; }
.t-contatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.t-ct { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: 12px; background: #f1f5f3; border: 1px solid #d3ddd7; color: #0f1a14; font-size: 12.5px; font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.t-ct .ic { width: 24px; height: 24px; }
.t-ct.wa { background: #e6f7ec; border-color: #a8dcbb; color: #0a5a2c; }
.t-ct.off { opacity: .4; }
.t-ct:active { transform: scale(.97); }
.t-problema { background: #fffbea; border-color: #f1df9a; }
.t-problema.acesso { background: #eef4ff; border-color: #c9d7fb; }
.t-problema small { font-weight: 700; color: #6b5300; text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; }
.t-problema.acesso small { color: #1e3a8a; }
.t-problema p { margin: 4px 0 0; font-size: 15.5px; }
.t-sucesso { display: flex; gap: 12px; align-items: center; background: #e3f6ea; border-color: #9fd9b6; }
.t-sucesso > .ic { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--verde); color: #fff; }
.t-sucesso b { font-size: 17px; }
.t-sucesso p { margin: 2px 0 0; font-size: 14px; color: #0a5a2c; }
.t-etapas { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 0 0 12px; }
.t-etapas li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #fff; border: 1px solid #d3ddd7; color: #55655c; font-size: 12.5px; }
.t-etapas b { font-size: 12.5px; }
.t-etapas small { font-size: 12px; min-height: 14px; }
.t-bola { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e3ebe6; font-weight: 800; color: #46564d; }
.t-bola .ic { width: 15px; height: 15px; }
.t-etapas li.feito { color: #0a5a2c; background: #f3fbf6; border-color: #b6e2c7; }
.t-etapas li.feito .t-bola { background: var(--verde); color: #fff; }
.t-etapas li.atual { color: #1e3a8a; border-color: #8db8f7; background: #f1f6ff; }
.t-etapas li.atual .t-bola { background: #1d4ed8; color: #fff; }
.t-etapas li.pausa { color: #9a3412; border-color: #f6c39c; background: #fff5ed; }
.t-etapas li.pausa .t-bola { background: #c2410c; color: #fff; }
.t-trava { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 2px dashed #b9c8bf; color: #2c3a33; margin-bottom: 12px; }
.t-trava .ic { width: 30px; height: 30px; color: var(--verde-esc); }
.t-trava p { margin: 0; font-size: 15px; }
.t-eq-lista { list-style: none; margin: 0; padding: 0; }
.t-eq-lista li { padding: 9px 0; border-top: 1px solid #edf1ef; display: flex; flex-direction: column; }
.t-eq-lista li:first-child { border-top: 0; }
.t-eq-lista small { color: #55655c; font-size: 13.5px; }

/* aparelho (sanfona) */
.t-eq { padding: 0; overflow: hidden; }
.t-eq-cab { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.t-eq-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: #e6f7ec; color: var(--verde-esc); display: grid; place-items: center; }
.t-eq-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-eq-tit b { font-size: 17px; }
.t-eq-tit small { color: #55655c; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-prog { flex: none; font-size: 12.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #fff1d6; color: #8a4b00; }
.t-prog.ok { background: #e3f6ea; color: #0a5a2c; }
.t-prog:empty { display: none; }
.t-eq-chev { color: #6b7b72; transition: transform .15s; }
.t-eq.aberto .t-eq-chev { transform: rotate(180deg); }
.t-eq-corpo { display: none; padding: 0 14px 14px; border-top: 1px solid #edf1ef; }
.t-eq.aberto .t-eq-corpo { display: block; }
.t-chk { margin-top: 14px; }
.t-chk-grupo { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #55655c; margin: 12px 0 4px; }
.t-q { padding: 12px 0; border-top: 1px solid #edf1ef; }
.t-q-p { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; }
.t-q.obrig:not(.feito) .t-q-p::after { content: "obrigatório"; margin-left: 6px; font-size: 11px; font-weight: 700; color: #8a4b00; background: #fff1d6; border-radius: 5px; padding: 1px 6px; vertical-align: 2px; }
.t-q .obr { display: none; }
.t-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t-seg.t-ops { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.t-seg button { min-height: 50px; border-radius: 12px; border: 1.5px solid #b9c8bf; background: #fff; font: 700 16px var(--fonte); color: #0f1a14; cursor: pointer; padding: 6px 8px; -webkit-tap-highlight-color: transparent; }
.t-seg button.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.t-seg button.on.sim { background: var(--verde); border-color: var(--verde); }
.t-seg button.on.nao { background: #b91c1c; border-color: #b91c1c; }
.t-seg button:disabled { cursor: default; }
.t-seg button:disabled:not(.on) { opacity: .5; }
.t-numin { display: flex; align-items: stretch; }
.t-numin input { font-size: 20px !important; font-weight: 700; min-height: 52px !important; border-radius: 12px 0 0 12px !important; border-width: 1.5px !important; border-color: #b9c8bf !important; }
.t-numin span { display: grid; place-items: center; min-width: 58px; padding: 0 10px; border: 1.5px solid #b9c8bf; border-left: 0; border-radius: 0 12px 12px 0; background: #f1f5f3; font-weight: 700; color: #2c3a33; }
.t-numin input:only-child { border-radius: 12px !important; }
.t-q textarea, .t-obs-eq textarea, #t-obs { font-size: 16px; border-width: 1.5px; border-color: #b9c8bf; border-radius: 12px; }
.t-q-foto { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; margin-bottom: 6px; }
.t-q-foto-bt { margin-top: 0; }
.t-obs-eq { margin-top: 14px; }
.t-pisca { animation: t-pisca 1.6s ease; border-radius: 10px; }
@keyframes t-pisca { 0%, 60% { background: #fff1d6; box-shadow: 0 0 0 6px #fff1d6; } 100% { background: transparent; box-shadow: none; } }

/* fotos */
.t-fotos { margin-top: 14px; }
.t-fotos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.t-foto, .t-foto-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1.5px solid #d3ddd7; background: #f1f5f3; padding: 0; cursor: pointer; }
.t-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-foto.pend { border-color: #e0a63a; }
.t-foto-st { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #8a4b00; }
.t-foto-st .ic { width: 16px; height: 16px; }
.t-foto-st .spin { width: 16px; height: 16px; border-width: 2px; }
.t-foto.env img { opacity: .6; }
.t-foto-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-style: dashed; border-color: #8fb3a0; background: #f3fbf6; color: var(--verde-esc); font-weight: 700; font-size: 13px; }
.t-foto-add .ic { width: 28px; height: 28px; }
.t-foto-grande { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; background: #111; }

/* itens */
.t-itens { list-style: none; margin: 0; padding: 0; }
.t-itens li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1ef; }
.t-it-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-it-txt b { font-size: 15px; }
.t-it-txt small { color: #55655c; font-size: 13px; }
.t-it-tot { white-space: nowrap; }
.t-x { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid #f1c4c4; background: #fff; color: var(--perigo); display: grid; place-items: center; cursor: pointer; }
.t-linha-tot { display: flex; justify-content: space-between; padding: 8px 0 0; color: #44534b; }
.t-total { font-size: 17px; color: #0f1a14; }
.t-abas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #eef2ef; border-radius: 12px; margin-bottom: 12px; }
.t-abas button { min-height: 44px; border: 0; border-radius: 9px; background: transparent; font: 700 14.5px var(--fonte); color: #44534b; cursor: pointer; }
.t-abas button.on { background: #fff; color: #0f1a14; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.t-busca { margin-bottom: 8px; min-height: 48px !important; font-size: 16px !important; }
.t-pick-lista { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; }
.t-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #d3ddd7; background: #fff; text-align: left; font: 15px var(--fonte); color: #0f1a14; cursor: pointer; }
.t-pick span { display: flex; flex-direction: column; min-width: 0; }
.t-pick small { color: #55655c; font-size: 13px; }
.t-pick.on { border-color: var(--verde); background: #f3fbf6; box-shadow: 0 0 0 3px rgba(18, 161, 80, .15); }
.t-add-escolha { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf1ef; display: flex; flex-direction: column; gap: 10px; }
.t-add-nome small { display: block; color: #55655c; font-size: 12.5px; }
.t-add-nome b { font-size: 16px; }
.t-add-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-step { display: flex; }
.t-step button { width: 46px; flex: none; border: 1px solid var(--borda); background: #f1f5f3; font-size: 22px; font-weight: 700; cursor: pointer; }
.t-step button:first-child { border-radius: 9px 0 0 9px; }
.t-step button:last-child { border-radius: 0 9px 9px 0; }
.t-step input { border-radius: 0 !important; text-align: center; font-weight: 700; min-width: 0; }

/* assinatura */
.t-ass-quadro { position: relative; margin: 8px 0 12px; border: 2px dashed #8fb3a0; border-radius: 14px; background: #fff; overflow: hidden; }
#t-ass { display: block; width: 100%; height: 210px; touch-action: none; cursor: crosshair; }
.t-ass-linha { position: absolute; left: 18px; right: 18px; bottom: 40px; border-top: 1.5px solid #b9c8bf; padding-top: 4px; font-size: 12px; color: #6b7b72; pointer-events: none; }
.t-ass-limpa { position: absolute; top: 8px; right: 8px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid #d3ddd7; background: #fff; font: 600 13px var(--fonte); cursor: pointer; }
.t-ass-ok { border: 1px solid #b6e2c7; background: #f3fbf6; border-radius: 12px; padding: 10px; }
.t-ass-ok img { display: block; width: 100%; max-height: 150px; object-fit: contain; background: #fff; border-radius: 8px; }
.t-ass-ok p { margin: 8px 0 0; font-size: 14.5px; }
.t-ass-ok.aus { background: #fff8eb; border-color: #f1d18e; }
.t-ass-ok.aus p { margin-top: 4px; }
#sec-ass .campo { margin-top: 10px; }
#sec-ass .campo input { min-height: 50px; font-size: 16px; }

/* pagamento */
.t-pag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.t-pag > div { background: #f6f9f7; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.t-pag small { color: #55655c; font-size: 12.5px; }
.t-pag b { font-size: 16px; }
.t-rot { font-size: 13px; font-weight: 600; color: var(--texto2); margin: 14px 0 6px; }
.t-valor input { font-size: 24px !important; font-weight: 800; min-height: 56px !important; }
.t-formas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t-formas button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; border-radius: 12px; border: 1.5px solid #b9c8bf; background: #fff; font: 700 15.5px var(--fonte); color: #0f1a14; cursor: pointer; }
.t-formas button.on { border-color: var(--verde); background: #e6f7ec; color: #0a5a2c; box-shadow: 0 0 0 3px rgba(18, 161, 80, .18); }
.t-pix { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f1f6ff; border: 1px solid #c9d7fb; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.t-pix small { width: 100%; color: #1e3a8a; font-weight: 600; }
.t-pix b { flex: 1; font-size: 17px; word-break: break-all; }

/* faltas para concluir */
.t-faltas { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.t-faltas button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #f1d18e; background: #fff8eb; text-align: left; font: 600 15px var(--fonte); color: #4a2a00; cursor: pointer; }
.t-faltas button span { flex: 1; }
.t-faltas .ic:first-child { color: #b45309; }

/* produção */
.t-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.t-kpi { background: #fff; border: 1px solid #d3ddd7; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.t-kpi small { color: #44534b; font-size: 13px; font-weight: 600; }
.t-kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.t-kpi b i { font-style: normal; font-size: 14px; color: #55655c; font-weight: 600; margin-left: 2px; }
.t-kpi span { font-size: 13px; color: #44534b; }
.t-kpi.destaque { grid-column: 1 / -1; background: var(--escuro); border-color: var(--escuro); color: #fff; }
.t-kpi.destaque small { color: #a9c2b4; }
.t-kpi.destaque b { font-size: 32px; color: #5ee293; }
.t-kpi.larga { grid-column: 1 / -1; }
.t-kpi.alerta-k { border-color: #f1d18e; background: #fffaf0; }
.t-com { list-style: none; margin: 0; padding: 0; }
.t-com li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1ef; }
.t-com li:first-child { border-top: 0; }
.t-com li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.t-com small { color: #55655c; font-size: 13px; }
.t-com-v { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* menu Mais */
.t-mais-quem { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.t-mais-quem .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; font-weight: 800; }
.t-mais-quem b { display: block; font-size: 16px; }
.t-mais-lista { display: flex; flex-direction: column; gap: 8px; }
.t-mais-lista button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: 12px; border: 1.5px solid #d3ddd7; background: #fff; font: 600 16px var(--fonte); color: #0f1a14; text-align: left; cursor: pointer; }
.t-mais-lista button span { flex: 1; }
.t-mais-lista button.perigo-txt { color: var(--perigo); border-color: #f1c4c4; }

/* modais no celular: viram folha que sobe de baixo */
@media (max-width: 640px) {
  body.modo-tec .modal-ov { align-items: flex-end; padding: 0; }
  body.modo-tec .modal { max-width: 100%; border-radius: 18px 18px 0 0; margin: 0; max-height: 92vh; overflow-y: auto; }
  body.modo-tec .modal-pe { position: sticky; bottom: 0; border-radius: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.modo-tec .modal-pe .btn { flex: 1; min-height: 50px; font-size: 16px; }
  body.modo-tec .modal-pe .btn.esq { flex: 0 0 auto; }
  body.modo-tec #toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .t-contatos { gap: 6px; }
  .t-ct { font-size: 11.5px; }
  .t-pag b { font-size: 14.5px; }
}
@media (min-width: 641px) {
  body.modo-tec { background: #dfe6e2; }
  #tec { box-shadow: 0 0 0 1px #cfd9d3, 0 10px 40px rgba(10, 25, 16, .08); }
}
