/* =====================================================================
   Modo tablet — chão de fábrica

   Regras que guiaram este CSS, todas vindas do uso real:

   - Alvo mínimo de 56px. Dedo de luva não acerta botão de 32px, e errar o
     alvo numa tela de assinatura é pior do que a tela ser feia.
   - Contraste alto. O galpão tem luz forte e a tela vive com respingo.
   - Nada de hover como única pista: em touch não existe hover.
   - Fonte grande por padrão (17px base). Quem opera a máquina nem sempre
     está com os óculos de leitura.
   ===================================================================== */

:root {
    --roxo:        #2b1a56;
    --roxo-claro:  #3d2673;
    --texto:       #16181d;
    --texto-fraco: #5b6270;
    --borda:       #d4d8e0;
    --fundo:       #eef0f4;
    --branco:      #fff;

    --ok:      #16a34a;
    --alerta:  #f59e0b;
    --perigo:  #dc2626;
    --info:    #0891b2;

    --alvo: 56px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 17px; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.45;
}

/* ---------- Topo ---------- */
.t-topo {
    background: var(--roxo);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.t-marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.t-marca img { height: 32px; width: auto; }
.t-topo-dir { display: flex; align-items: center; gap: 12px; }
.t-aparelho { font-size: .82rem; opacity: .75; }

/* Qual das duas telas está aberta. De longe os dois modos são parecidos, e
   quem está de pé na máquina precisa saber num relance se aquele aparelho
   executa OS ou só abre chamado. */
.t-modo {
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
    background: rgba(255,255,255,.18); white-space: nowrap;
}
.t-modo-man { background: #f59e0b; color: #1f2937; }
.t-quem { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.t-quem small { opacity: .75; font-size: .75rem; }
.t-btn-sair {
    background: rgba(255,255,255,.16); color: #fff; text-decoration: none;
    padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: .9rem;
}

/* ---------- Flash ---------- */
.t-flash { padding: 14px 18px; font-weight: 600; font-size: 1rem; }
.t-flash-success { background: #dcfce7; color: #14532d; border-bottom: 3px solid var(--ok); }
.t-flash-error   { background: #fee2e2; color: #7f1d1d; border-bottom: 3px solid var(--perigo); }
.t-flash-info    { background: #cffafe; color: #164e63; border-bottom: 3px solid var(--info); }

.t-conteudo { padding: 16px; max-width: 900px; margin: 0 auto; }

/* ---------- Cartões ---------- */
.t-card {
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}
.t-card h2 { margin: 0 0 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .4px; color: var(--roxo); }
.t-card h3 { margin: 18px 0 8px; font-size: .98rem; }

/* Faixa das seções, igual à do formulário de papel */
.t-faixa {
    background: var(--roxo); color: #fff; text-align: center;
    font-weight: 700; letter-spacing: .5px; font-size: .85rem;
    padding: 8px; border-radius: 8px 8px 0 0; margin: 0;
}

/* ---------- Fila de OS ---------- */
.t-os-item {
    display: block;
    background: var(--branco);
    border: 1px solid var(--borda);
    border-left: 8px solid var(--borda);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    min-height: var(--alvo);
}
.t-os-item:active { background: #f3f4f8; }
.t-os-item.prio-A { border-left-color: var(--perigo); }
.t-os-item.prio-B { border-left-color: var(--alerta); }
.t-os-item.prio-C { border-left-color: var(--texto-fraco); }

.t-os-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.t-os-num { font-weight: 800; font-size: 1.25rem; color: var(--roxo); }
.t-os-equip { font-weight: 700; margin: 4px 0; font-size: 1.05rem; }
.t-os-desc { color: var(--texto-fraco); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-os-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- Etiquetas ---------- */
.t-tag {
    display: inline-block; padding: 5px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 700; background: #e7e9ef; color: var(--texto-fraco);
    white-space: nowrap;
}
.t-tag-parada  { background: #fee2e2; color: #991b1b; }
.t-tag-prio-A  { background: #fee2e2; color: #991b1b; }
.t-tag-prio-B  { background: #fef3c7; color: #92400e; }
.t-tag-status  { color: #fff; }

/* ---------- Botões ---------- */
.t-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: var(--alvo);
    padding: 14px 22px;
    border: none; border-radius: 10px;
    font-size: 1.05rem; font-weight: 700;
    cursor: pointer; text-decoration: none;
    background: #e3e6ec; color: var(--texto);
}
.t-btn:active { transform: translateY(1px); }
.t-btn[disabled], .t-enviando { opacity: .55; }

.t-btn-primario { background: var(--roxo); color: #fff; }
.t-btn-ok       { background: var(--ok); color: #fff; }
.t-btn-perigo   { background: var(--perigo); color: #fff; }
.t-btn-bloco    { display: flex; width: 100%; }
.t-btn-grande   { min-height: 76px; font-size: 1.2rem; }

.t-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.t-acoes > * { flex: 1 1 200px; }

/* ---------- Formulário ---------- */
.t-campo { margin-bottom: 16px; }
.t-campo label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.t-campo .t-dica { font-weight: 400; color: var(--texto-fraco); font-size: .85rem; display: block; margin-top: 2px; }

.t-campo input[type=text],
.t-campo input[type=number],
.t-campo input[type=password],
/* date/datetime: sem isto o navegador desenha a caixa no tamanho do
   conteudo -- alvo de toque pequeno demais para dedo com luva. */
.t-campo input[type=date],
.t-campo input[type=datetime-local],
.t-campo select,
.t-campo textarea {
    width: 100%;
    min-height: var(--alvo);
    padding: 12px 14px;
    border: 2px solid var(--borda);
    border-radius: 10px;
    font-size: 1.05rem;
    font-family: inherit;
    background: var(--branco);
    color: var(--texto);
}
.t-campo textarea { min-height: 110px; resize: vertical; }
.t-campo input:focus, .t-campo select:focus, .t-campo textarea:focus {
    outline: none; border-color: var(--roxo-claro);
}

/* Sim / Não / N/A — os três quadrinhos do papel, em tamanho de dedo.
   O rádio some e o rótulo inteiro vira o alvo.

   Quem pinta é o <span>, não o <label>: assim o destaque depende só de
   `input:checked + span`, que funciona em qualquer navegador. Depender de
   :has() aqui seria arriscado -- tablet de fábrica costuma ser aparelho
   antigo, e sem :has() o operador não veria NADA marcado ao tocar. */
.t-tri { display: flex; gap: 8px; }
.t-tri label {
    flex: 1;
    display: flex;
    margin: 0;
    cursor: pointer;
}
.t-tri input { position: absolute; opacity: 0; width: 0; height: 0; }
.t-tri label span {
    flex: 1;
    min-height: var(--alvo);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--borda); border-radius: 10px;
    background: var(--branco); color: var(--texto);
    font-weight: 700;
}

/* Marcado: roxo por padrão. Serve para qualquer par de opções (inclusive
   "máquina parada", cujos valores são 1/0). */
.t-tri input:checked + span {
    background: var(--roxo); border-color: var(--roxo); color: #fff;
}
/* As três respostas do formulário ganham a cor que já significa algo no chão
   de fábrica: verde conforme, vermelho não conforme, cinza não se aplica. */
.t-tri input[value=sim]:checked + span { background: var(--ok);          border-color: var(--ok); }
.t-tri input[value=nao]:checked + span { background: var(--perigo);      border-color: var(--perigo); }
.t-tri input[value=na]:checked  + span { background: var(--texto-fraco); border-color: var(--texto-fraco); }

.t-pergunta {
    padding: 14px 0;
    border-bottom: 1px solid var(--borda);
}
.t-pergunta:last-child { border-bottom: none; }
.t-pergunta p { margin: 0 0 10px; font-weight: 600; }

/* ---------- Lista de nomes (Produção, sem PIN) ----------
   O operador toca no próprio nome. Cada nome é um alvo cheio, do tamanho de
   botão — não um item de lista com um radio minúsculo do lado, que em tela
   de fábrica ninguém acerta. O radio some e o rótulo inteiro vira o alvo. */
.t-pessoas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.t-pessoas label { display: flex; margin: 0; cursor: pointer; }
.t-pessoas input { position: absolute; opacity: 0; width: 0; height: 0; }

/* Mesmo motivo do .t-tri: quem pinta é o <span>, para não depender de :has(). */
.t-pessoas label span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: var(--alvo);
    padding: 12px 14px;
    border: 2px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
    color: var(--texto);
    font-weight: 700;
    font-size: 1rem;
}
.t-pessoas input:checked + span {
    background: var(--roxo);
    border-color: var(--roxo);
    color: #fff;
}

/* Equipamento lido da etiqueta QR: confirmação visual de que o aparelho
   entendeu a máquina certa antes de a pessoa descrever o problema. */
.t-equip-lido {
    border: 2px solid var(--ok);
    background: #f0fdf4;
    border-radius: 10px;
    padding: 14px 16px;
}
.t-equip-lido strong { display: block; font-size: 1.3rem; color: var(--roxo); }
.t-equip-lido span   { display: block; font-size: 1rem; margin-top: 2px; }
.t-equip-lido small  { display: block; margin-top: 6px; color: var(--ok); font-weight: 700; text-transform: uppercase; font-size: .72rem; }

/* ---------- Teclado numérico do PIN ---------- */
.t-pin-campo {
    width: 100%; text-align: center; letter-spacing: .5em;
    font-size: 1.8rem; font-weight: 700;
}
.t-teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.t-teclado button { min-height: 66px; font-size: 1.4rem; font-weight: 700; border-radius: 10px; border: 2px solid var(--borda); background: var(--branco); }
.t-teclado button:active { background: #e3e6ec; }

/* ---------- Checklist ---------- */
.t-tarefa {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--borda);
}
.t-tarefa:last-child { border-bottom: none; }
.t-tarefa-texto { flex: 1; }
.t-tarefa-feita .t-tarefa-texto { color: var(--texto-fraco); text-decoration: line-through; }
.t-tarefa-botoes { display: flex; gap: 6px; }
.t-tarefa-botoes button { min-width: 54px; min-height: 48px; border-radius: 8px; border: 2px solid var(--borda); background: var(--branco); font-weight: 700; }

/* ---------- Cronômetro ---------- */
.t-relogio {
    text-align: center; padding: 18px;
    background: #fef3c7; border: 2px solid var(--alerta); border-radius: 12px;
    margin-bottom: 14px;
}
.t-relogio-tempo { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #92400e; }
.t-relogio small { color: #92400e; font-weight: 600; }

/* ---------- Dados em linha ---------- */
.t-dados { width: 100%; border-collapse: collapse; }
.t-dados th, .t-dados td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--borda); vertical-align: top; }
.t-dados th { width: 42%; color: var(--texto-fraco); font-weight: 600; font-size: .9rem; }

.t-vazio { text-align: center; padding: 40px 20px; color: var(--texto-fraco); }
.t-aviso {
    background: #fef3c7; border-left: 6px solid var(--alerta);
    padding: 14px 16px; border-radius: 8px; margin-bottom: 14px;
}
.t-aviso ul { margin: 8px 0 0; padding-left: 20px; }

.t-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.t-fotos img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda); }

/* Telas pequenas: empilha o que estava lado a lado */
@media (max-width: 600px) {
    html { font-size: 16px; }
    .t-acoes > * { flex: 1 1 100%; }
    .t-quem { display: none; }
}

/* ---------- Medição no checklist ----------
   Tarefa que pede valor não tem botão "OK": marcar sem medir seria o mesmo
   vício do papel, onde "passei lá" virava registro. */
.t-medicao-form { margin-top: 10px; }
.t-medicao-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.t-medicao-form label small { display: block; font-weight: 400; color: var(--texto-fraco); font-size: .8rem; }
.t-medicao-form input {
    flex: 1; min-height: var(--alvo); padding: 12px 14px;
    border: 2px solid var(--borda); border-radius: 10px;
    font-size: 1.1rem; font-family: inherit; background: var(--branco);
}
.t-medicao-valor {
    margin-top: 8px; padding: 10px 14px; border-radius: 10px;
    font-size: 1.2rem; font-weight: 800;
}
.t-medicao-valor.t-dentro { background: #dcfce7; color: #14532d; }
.t-medicao-valor.t-fora   { background: #fee2e2; color: #7f1d1d; }
.t-medicao-valor span {
    display: block; font-size: .75rem; letter-spacing: .5px; margin-top: 2px;
}

/* ---------- Aviso de conexão ---------- */
.t-offline {
    background: var(--perigo); color: #fff;
    padding: 10px 16px; font-weight: 700; font-size: .92rem; text-align: center;
}
.t-offline.t-online { background: var(--ok); }

/* ============ "SEUS CHAMADOS" ============ */
/* Borda lateral roxa para o bloco se distinguir da fila geral numa olhada --
   e a diferenca entre "o que EU pedi" e "o que a Manutencao tem para fazer". */
.t-meus {
    border-left: 5px solid var(--roxo);
}
.t-meus h2 small { color: var(--texto-fraco); }
.t-tag-ok { background: #d1fae5; color: #065f46; }

/* ============ BOTÃO DE ABRIR CHAMADO ============ */
/* A frase inteira num botão centralizado quebrava em duas linhas e a segunda
   saía desalinhada: justify-content centraliza a CAIXA, não o texto dentro
   dela. Aqui o rótulo cabe numa linha e o resto virou subtítulo. */
.t-abrir {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 76px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--roxo);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(43, 26, 86, .28);
}
.t-abrir:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(43,26,86,.3); }

.t-abrir-icone {
    flex: 0 0 48px;
    height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 400; line-height: 1;
    background: rgba(255, 255, 255, .16);
    border-radius: 50%;
}
.t-abrir-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.t-abrir-txt strong { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.t-abrir-txt small  { font-size: .85rem; font-weight: 400; opacity: .78; line-height: 1.3; }

/* ============ MEUS CHAMADOS ============ */
/* Nome como link (não radio): aqui tocar já navega, não há formulário para
   enviar depois. Mesma aparência do .t-pessoas para não parecer outra coisa. */
.t-pessoa-link {
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    min-height: var(--alvo);
    padding: 12px 14px;
    border: 2px solid var(--borda);
    border-radius: 10px;
    background: var(--branco);
    color: var(--texto);
    font-weight: 700;
    text-decoration: none;
}
.t-pessoa-link:active { border-color: var(--roxo); background: #f5f3fa; }

.t-filtro { display: flex; gap: 8px; margin-bottom: 14px; }
.t-filtro a {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    min-height: 48px;
    border: 2px solid var(--borda); border-radius: 10px;
    background: var(--branco); color: var(--texto-fraco);
    font-weight: 700; font-size: .92rem; text-decoration: none;
}
.t-filtro a.ativo { background: var(--roxo); border-color: var(--roxo); color: #fff; }

/* Atalho para o histórico, na tela inicial. Discreto de propósito: a ação
   principal continua sendo abrir chamado. */
.t-meus-link {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 54px;
    margin-bottom: 16px;
    border: 2px solid var(--borda); border-radius: 10px;
    background: var(--branco); color: var(--roxo);
    font-weight: 700; text-decoration: none;
}
.t-meus-link:active { background: #f5f3fa; }

/* Aviso de escolha obrigatória não feita (ver o validador no layout). */
.t-exige {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    font-size: .9rem;
}

/* Formulário que é só um botão de ação (iniciar/parar execução). Sem isto ele
   fica colado na faixa seguinte e os dois parecem um bloco só — o botão
   verde parecia o topo do "PARA USO DA MANUTENÇÃO". */
.t-acao { margin: 0 0 14px; }

/* O seletor de arquivo nativo é um botão de ~20px de altura: num tablet, com
   luva, é o menor alvo da tela inteira, logo ao lado de botões de 76px.
   Aqui ele vira um alvo do mesmo tamanho dos outros. */
.t-campo input[type=file] {
    width: 100%;
    min-height: var(--alvo);
    padding: 14px;
    border: 2px dashed var(--borda);
    border-radius: 10px;
    background: var(--branco);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}
.t-campo input[type=file]::file-selector-button {
    min-height: 44px;
    margin-right: 12px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--roxo);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    font-family: inherit;
    cursor: pointer;
}

/* A faixa encosta no cartão de baixo: os raios precisam bater, senão sobra
   um degrau de 4px no encontro. */
.t-faixa { border-radius: 12px 12px 0 0; }

/* ---------- "Sou da Manutenção" (bloco recolhido) ---------- */
/* O <summary> é o alvo de toque: tem que ter o mesmo porte dos outros botões
   da tela, senão vira um link de 14px no meio de botões de 76px. */
.t-abrir-exec { margin-bottom: 14px; }
.t-abrir-exec > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--alvo);
    padding: 14px 18px;
    border: 2px solid var(--roxo);
    border-radius: 12px;
    background: var(--branco);
    color: var(--roxo);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}
.t-abrir-exec > summary::-webkit-details-marker { display: none; }
.t-abrir-exec > summary::after { content: '▾'; font-size: 1.1rem; }
.t-abrir-exec[open] > summary {
    border-radius: 12px 12px 0 0;
    background: var(--roxo);
    color: #fff;
}
.t-abrir-exec[open] > summary::after { content: '▴'; }

/* ---------- Notas da pesquisa de satisfação ---------- */
/* Cinco alvos grandes lado a lado: dois toques fecham a pesquisa, sem teclado
   e sem rolar. Pesquisa que dá trabalho não é respondida. */
.t-notas { display: flex; gap: 8px; }
.t-notas label { flex: 1; display: flex; margin: 0; cursor: pointer; }
.t-notas input { position: absolute; opacity: 0; width: 0; height: 0; }
.t-notas label span {
    flex: 1;
    min-height: var(--alvo);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--borda); border-radius: 10px;
    background: var(--branco);
    font-size: 1.3rem; font-weight: 800;
}
.t-notas input:checked + span { background: var(--roxo); border-color: var(--roxo); color: #fff; }

/* ---------- O que está sendo feito (visão do operador) ---------- */
.t-andamento { border-left: 5px solid var(--roxo); }
.t-andamento-linha { margin: 0 0 6px; font-size: 1.05rem; }

/* Texto da Manutenção em leitura dentro do bloco de recebimento.
   Fundo diferente do formulário porque não é campo: é o que o operador
   está aceitando ao assinar. */
.t-leitura {
    margin: 4px 0 0;
    padding: 12px 14px;
    background: #f3f4f6;
    border-left: 4px solid var(--roxo, #2e1065);
    border-radius: 6px;
    line-height: 1.45;
}

/* ---------- Material utilizado ---------- */
.t-material {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid #e5e7eb;
}
.t-material:last-of-type { border-bottom: 0; }
.t-material-txt { flex: 1; min-width: 0; }
.t-material-txt strong { display: block; line-height: 1.3; }
.t-material-txt small { color: #6b7280; font-size: .85rem; }
/* "Tirar" é exceção, não fluxo: botão discreto e menor que os de ação. Em
   vermelho cheio ele dominava a lista e ainda convidava o toque errado. */
.t-tirar {
    padding: 10px 16px; font-size: .9rem; font-weight: 700;
    border: 2px solid #e5e7eb; border-radius: 8px;
    background: #fff; color: #b91c1c; white-space: nowrap;
}
.t-tirar:active { background: #fee2e2; border-color: #fca5a5; }

.t-material-total {
    margin: 14px 0 22px; padding-top: 12px; border-top: 2px solid #e5e7eb;
    font-size: 1.05rem;
}

/* Atalhos de quantidade: inteiro pequeno sem abrir o teclado do sistema. */
.t-qtd { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.t-qtd button {
    flex: 1 1 0; min-width: 56px; min-height: 52px;
    border: 2px solid #d1d5db; border-radius: 10px;
    background: #fff; font-size: 1.15rem; font-weight: 700; color: inherit;
}
.t-qtd button:active { background: #e5e7eb; }

/* Saldo que ficou negativo precisa de uma cor própria: não é sucesso nem
   erro -- o lançamento deu certo, mas alguém tem que ir contar o item. */
.t-flash-warning { background: #fef3c7; color: #78350f; border-bottom: 3px solid #f59e0b; }
/* ---------- Atendimento: tudo num bloco só ---------- */

/* O relógio agora mora DENTRO do card do atendimento, e não solto acima
   dele. Perde a margem externa e ganha respiro embaixo. */
.t-relogio-dentro { margin: 0 0 18px; }

/* Separa as ações finais do último campo: sem a linha, "Salvar atendimento"
   parecia pertencer ao campo de observações. */
.t-acoes-fim {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* "Entregar para a Produção": mesmo desenho da porta de identificação --
   botão fechado que abre o bloco. Verde porque é o fim feliz da OS, e não
   uma ação da Manutenção. */
.t-entregar { margin-bottom: 14px; }
.t-entregar > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--alvo);
    padding: 14px 18px;
    border: 2px solid var(--ok);
    border-radius: 12px;
    background: var(--branco);
    color: #15803d;
    font-weight: 700;
    font-size: 1.05rem;
    list-style: none;
    cursor: pointer;
}
.t-entregar > summary::-webkit-details-marker { display: none; }
.t-entregar > summary::after { content: '▾'; font-size: 1.1rem; }
.t-entregar[open] > summary {
    border-radius: 12px 12px 0 0;
    background: var(--ok);
    color: #fff;
}
.t-entregar[open] > summary::after { content: '▴'; }