.campo-filtros {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-direction: row;
    gap: 1rem;
}

.painel-pin {
    display: none;
    justify-content: center;
    align-items: end;
    flex-direction: column;
    gap: 10px
}

.painel-senha {
    display: none;
}

.caixa-filtros {
    padding: 5px;
    background-color: #d2d2d2;
    border-radius: 5px;
    border: solid 1px #222;
    min-width: 120px;
}

.caixa-opcoes {
    border: solid 1px #b1b1b1;
    background-color: #f3f3f3;
    max-height: 200px;
    overflow-y: auto;
    flex-direction: column;
}

.caixa-opcao {
    gap: 5px;
    text-align: center;
    display: flex;
    justify-content: start;
    align-items: center;
}

.caixa-opcao input {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.tag-especialidade {
    display: inline-block;
    padding: 3px 1vw;
    border: solid 1px #d52000;
    border-radius: 20px;
    background-color: #ff4e2f8f;
}

.local-cidades {
    max-width: 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.campo-funcoes {
    width: stretch;
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    gap: 5px;
}

.interruptor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px
}

.interruptor input {
    display: none
}

.trilho {
    position: relative;
    width: 38px;
    height: 20px;
    border-radius: 20px;
    background: #b0b0b0;
    transition: .2s
}

.trilho::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    transition: .2s
}

.interruptor input:checked + .trilho {
    background: #d32f2f
}

.interruptor input:checked + .trilho::after {
    transform: translateX(18px)
}

.tag-obra {
    display: inline-block;
    padding: 3px 1vw;
    border: solid 1px #d52000;
    border-radius: 20px;
    background-color: #ff4e2f8f;
}

.bloco-form-epi {
    width: stretch;
    border-radius: 5px;
    padding: 0.5rem;
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-cidade {
    color: white;
    background: linear-gradient(45deg, #7f6a5b, #393532);
    padding: 3px 1rem;
    border-radius: 20px;
}

.input-colaboradores {
    width: 25px;
    height: 25px;
}

.tooltip-colaboradores {
    border: solid 1px #222;
    background-color: #ffffffe6;
    padding: 1rem;
    border-radius: 5px;
    text-align: left;
}

@media (orientation: portrait) {

    .campo-filtros {
        flex-direction: column;
    }

}
.campo-filtros:has(.regiao-painel) { display: block; width: 100%; min-width: 0; }
.regiao-painel { border: 1px solid #cbd2d8; border-radius: 8px; background: #f4f6f7; color: #45535f; overflow: hidden; width: 100%; box-sizing: border-box; }
.regiao-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid #dce1e5; background: #e9edf0; }
.regiao-toolbar .regiao-busca { flex: 1 1 180px; width: 0; min-width: 140px; border: 1px solid #cbd4db; background: #fff; color: #45535f; border-radius: 5px; padding: 8px; font: inherit; font-size: 11px; box-sizing: border-box; }
.regiao-toolbar button,.regiao-linha .regiao-expandir { margin: 0; border: 1px solid #ccd4db; background: #fff; color: #51616e; box-shadow: none; transform: none; border-radius: 4px; padding: 6px 8px; font: inherit; font-size: 10px; }
.regiao-toolbar button:hover,.regiao-linha .regiao-expandir:hover { background: #dae2e8; box-shadow: none; transform: none; }
.regiao-resumo { position: sticky; top: 0; z-index: 1; padding: 8px 12px; color: #657480; font-size: 10px; background: #f4f6f7; border-bottom: 1px solid #e0e5e8; }
.regiao-arvore { max-height: 340px; overflow: auto; padding: 8px; }
.regiao-linha { display: flex; align-items: center; gap: 5px; border-radius: 5px; min-height: 36px; }
.regiao-linha:hover { background: #e7ecf0; }
.regiao-linha:has(> label > input:checked) { background: #dce6ed; }
.regiao-linha .regiao-expandir { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; padding: 0; flex: none; font-size: 20px; border-color: transparent; background: transparent; }
.regiao-expandir[aria-expanded=true] { rotate: 90deg; }
.regiao-espaco { width: 25px; flex: none; }
.regiao-painel .regiao-opcao { display: flex; align-items: center; gap: 8px; flex: 1; margin: 0; padding: 8px 6px; cursor: pointer; font-size: 12px; color: #45535f; min-width: 0; }
.regiao-opcao input { width: 16px; height: 16px; margin: 0; padding: 0; flex: none; accent-color: #526877; cursor: pointer; }
.regiao-opcao span { overflow-wrap: anywhere; }
.regiao-painel .regiao-indisponivel { opacity: .5; cursor: default; }.regiao-indisponivel input { cursor: default; }
.regiao-contexto { padding: 8px 6px; font-size: 12px; color: #73818a; }
.regiao-parcial { margin-right: 8px; padding: 2px 5px; border-radius: 4px; background: #f1e8d5; color: #89703e; font-size: 9px; }
.regiao-filhos { margin-left: 18px; padding-left: 9px; border-left: 1px solid #d1d9df; }
.regiao-cidades { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 8px 10px; }
.regiao-cidade { border-radius: 4px; padding: 3px 6px; background: #e6ebef; font-size: 10px; color: #647480; }
.regiao-obras { padding: 10px; border-top: 1px solid #dce1e5; max-height: 220px; overflow: auto; }
.regiao-obras h4 { margin: 0 0 7px; font-size: 12px; font-weight: 600; }
.regiao-obras .regiao-opcao:hover { background: #e7ecf0; border-radius: 5px; }.regiao-obras .regiao-opcao:has(input:checked) { background: #dce6ed; border-radius: 5px; }
.regiao-painel [hidden] { display: none !important; }
.regiao-painel button:focus-visible,.regiao-painel input:focus-visible { outline: 2px solid #526877; outline-offset: 2px; }
/* Foto do colaborador: círculo grande no topo do formulário, borda em gradiente (marrom do app → cinza-azulado). */
.linha-padrao:has(> .colaborador-foto) { justify-content: center; }
.colaborador-foto { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 4px; text-align: center; }
.colaborador-foto [hidden] { display: none !important; }
.popup .colaborador-avatar { position: relative; display: block; width: 172px; height: 172px; flex: none; margin: 0; padding: 5px; border: 0; border-radius: 50%;
    background: linear-gradient(135deg, #b98a5e 0%, #7f6a5b 38%, #5b707f 72%, #8fb3c9 100%); box-shadow: 0 8px 22px rgba(31, 42, 49, .22); cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease; }
.popup .colaborador-avatar:hover:not(:disabled) { background: linear-gradient(135deg, #c99a6c 0%, #8b7565 38%, #677d8d 72%, #9fc2d6 100%); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(31, 42, 49, .28); }
.popup .colaborador-avatar:focus-visible { outline: 3px solid #5b707f; outline-offset: 3px; }
.colaborador-avatar-circulo { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border: 4px solid #fff; border-radius: 50%; box-sizing: border-box;
    background: #e5eaee url("../imagens/avatar-generico.svg") center / cover no-repeat; }
.colaborador-avatar-circulo img, .colaborador-avatar-circulo video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; background: #e5eaee; }
.colaborador-avatar-circulo img:not([src]) { display: none; }
.colaborador-foto.camera-ativa .colaborador-avatar-circulo img { display: none; }
.colaborador-avatar-circulo video { transform: scaleX(-1); } /* prévia em espelho, como um espelho comum */
.colaborador-avatar-editar { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid #fff; border-radius: 50%; background: #414b55; color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.colaborador-foto.camera-ativa .colaborador-avatar { cursor: default; }
.colaborador-foto.camera-ativa .colaborador-avatar-editar { display: none; }
.colaborador-foto-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; background: #fff; border: 1px solid #d8dee4; border-radius: 12px; box-shadow: 0 6px 18px rgba(31, 42, 49, .12); }
.colaborador-foto-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.colaborador-foto-acoes:not(:has(button:not([hidden]))) { display: none; }
.colaborador-foto-acoes [data-camera-capturar] { background: #414b55; border-color: #414b55; color: #fff; }
.colaborador-foto-acoes [data-camera-capturar]:hover { background: #55616d; }
.colaborador-foto-status { margin: 0; font-size: 12.5px; line-height: 1.5; color: #5a6875; }

/* Miniatura na tabela de colaboradores (mesmo estilo, bem menor). */
.colaborador-mini { position: relative; display: block; width: 38px; height: 38px; margin: auto; padding: 2px; box-sizing: border-box; border-radius: 50%;
    background: linear-gradient(135deg, #b98a5e 0%, #7f6a5b 38%, #5b707f 72%, #8fb3c9 100%); }
.colaborador-mini::before { content: ''; position: absolute; inset: 2px; border: 2px solid #fff; border-radius: 50%; background: #e5eaee url("../imagens/avatar-generico.svg") center / cover no-repeat; }
.colaborador-mini img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; margin: 0; padding: 0; border-radius: 50%; object-fit: cover; }
