.ch-wrap{--ch-azul:#3A6C9C;--ch-roxo:#1BB0ED;--ch-escuro:#214E7D;margin:1em 0;max-width:100%;overflow:visible}
.ch-wrap *{box-sizing:border-box}

body.ch-pagina-limpa #primary{width:100%;max-width:none;float:none}
body.ch-pagina-limpa #content,body.ch-pagina-limpa #content article,body.ch-pagina-limpa .entry-content{width:100%!important;max-width:none!important;float:none!important;margin-left:0!important;margin-right:0!important}
body.ch-pagina-limpa .ch-wrap{box-sizing:border-box;width:100%;max-width:1400px;margin:24px auto 48px!important;padding:0 24px}
@media (max-width:640px){body.ch-pagina-limpa .ch-wrap{padding:0 16px}}

/* Tabela */
.ch-wrap table.ch-tabela{width:100%;margin:0;border-collapse:separate;border-spacing:0;border:0;border-radius:12px;overflow:hidden;background:transparent;font-size:15px;line-height:1.35}
.ch-wrap table.ch-tabela thead th{background:var(--ch-azul);color:#fff;font-weight:700;text-align:center;vertical-align:middle;padding:12px 10px;border:0;border-left:1px solid #5584AE}
.ch-wrap table.ch-tabela thead th:first-child{border-left:0}
.ch-wrap table.ch-tabela tbody td{text-align:center;vertical-align:middle;padding:11px 10px;color:var(--ch-escuro);border:0;border-top:1px solid rgba(33,78,125,.12)}
.ch-wrap table.ch-tabela tbody tr:first-child td{border-top:0}
.ch-wrap table.ch-tabela tbody td{background:#fff}
.ch-wrap table.ch-tabela tbody tr:nth-child(even) td{background:#F2F7FB}
.ch-wrap table.ch-tabela tbody tr:hover td{background:#E3F5FD}
.ch-wrap table.ch-tabela tbody td:first-child{font-weight:700}

/* Títulos (linhas com uma única informação) em destaque */
.ch-wrap table.ch-tabela tr.ch-titulo th,.ch-wrap table.ch-tabela tr.ch-titulo td{background:#214E7D!important;color:#fff!important;font-size:1.05em;font-weight:800;letter-spacing:.04em;text-transform:uppercase;text-align:center;padding:14px 12px;border:0}
.ch-wrap table.ch-tabela tbody tr.ch-titulo td{background:#214E7D!important;color:#fff!important;font-size:1em;letter-spacing:.03em}
.ch-wrap table.ch-tabela tbody tr.ch-titulo:hover td{background:#214E7D!important}

/* Títulos: sozinho = azul-escuro; em par, o de cima azul mais claro e o de baixo azul-escuro */
.ch-wrap table.ch-tabela thead tr.ch-titulo th,.ch-wrap table.ch-tabela tbody tr.ch-titulo td,.ch-wrap table.ch-tabela tbody tr.ch-titulo:hover td{background:#214E7D!important}
.ch-wrap table.ch-tabela thead tr.ch-titulo:has(+ tr.ch-titulo) th,.ch-wrap table.ch-tabela tbody tr.ch-titulo:has(+ tr.ch-titulo) td,.ch-wrap table.ch-tabela tbody tr.ch-titulo:has(+ tr.ch-titulo):hover td{background:#1BB0ED!important}
.ch-wrap table.ch-tabela tbody tr.ch-cab-rep th{background:var(--ch-azul);color:#fff;font-weight:700;text-align:center;padding:12px 10px;border:0}
.ch-wrap table.ch-tabela thead th,.ch-wrap table.ch-tabela tbody tr.ch-cab-rep th{border-left:0!important}
@media (max-width:640px){.ch-wrap table.ch-cartoes tbody tr.ch-cab-rep{display:none}}

/* Linhas finas entre colunas (desktop) */
@media (min-width:641px){
.ch-wrap table.ch-tabela tbody td+td{border-left:1px solid rgba(33,78,125,.14)}
.ch-wrap table.ch-tabela thead tr:not(.ch-titulo) th+th,.ch-wrap table.ch-tabela tbody tr.ch-cab-rep th+th{border-left:1px solid #5584AE!important}
.ch-wrap table.ch-tabela tr.ch-titulo td,.ch-wrap table.ch-tabela tr.ch-titulo th{border-left:0!important}
}

/* Primeira e última colunas ajustadas ao conteúdo; a do meio ocupa o resto */
@media (min-width:641px){
.ch-wrap table.ch-tabela.ch-cartoes{table-layout:auto!important;width:100%!important}
.ch-wrap table.ch-tabela.ch-cartoes tr:not(.ch-titulo) > :first-child,.ch-wrap table.ch-tabela.ch-cartoes tr:not(.ch-titulo) > :last-child{width:1%!important;min-width:0!important;white-space:nowrap!important;padding-left:32px!important;padding-right:32px!important}
}

.ch-wrap .ch-filtro-linha,.ch-wrap .ch-filtro-dia,.ch-wrap .ch-filtro-hora{display:block;width:340px;max-width:100%;height:46px;margin:-8px auto 20px;padding:0 40px 0 20px;font:inherit;font-size:16px;font-weight:500;color:#214E7D;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 16px center;border:1px solid rgba(33,78,125,.2);border-radius:999px;box-shadow:0 6px 18px rgba(33,78,125,.10);outline:none;cursor:pointer;-webkit-appearance:none;appearance:none;text-overflow:ellipsis}
.ch-wrap .ch-filtro-linha:focus,.ch-wrap .ch-filtro-dia:focus,.ch-wrap .ch-filtro-hora:focus{border-color:#3A6C9C;box-shadow:0 0 0 4px rgba(33,78,125,.14)}

.ch-wrap .ch-filtros{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:0 0 20px}
.ch-wrap .ch-filtros .ch-busca,.ch-wrap .ch-filtros .ch-filtro-linha,.ch-wrap .ch-filtros .ch-filtro-dia,.ch-wrap .ch-filtros .ch-filtro-hora{flex:1 1 220px;width:auto;max-width:340px;margin:0;min-width:0}
@media (max-width:640px){.ch-wrap .ch-filtros .ch-busca,.ch-wrap .ch-filtros .ch-filtro-linha,.ch-wrap .ch-filtros .ch-filtro-dia,.ch-wrap .ch-filtros .ch-filtro-hora{flex-basis:100%;max-width:none}}

.ch-wrap .ch-filtros .ch-filtro-linha{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='14' rx='3'/%3E%3Cpath d='M4 11h16M8 20v-3M16 20v-3'/%3E%3Ccircle cx='8.5' cy='14' r='.6'/%3E%3Ccircle cx='15.5' cy='14' r='.6'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:16px center,right 16px center;background-color:#fff;padding-left:46px}
.ch-wrap .ch-filtros .ch-filtro-dia{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:16px center,right 16px center;background-color:#fff;padding-left:46px}

.ch-wrap .ch-filtros .ch-busca,.ch-wrap .ch-filtros .ch-filtro-linha,.ch-wrap .ch-filtros .ch-filtro-dia,.ch-wrap .ch-filtros .ch-filtro-hora{color:#1BB0ED}

.ch-wrap .ch-atualizacao{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 16px;font-size:14px;color:#1BB0ED}
.ch-wrap .ch-atualizacao strong{font-weight:700}
.ch-wrap .ch-atualizacao-icone{width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") no-repeat center}

/* Cantos arredondados em cada bloco de horários */
@media (min-width:641px){
.ch-wrap table.ch-tabela thead tr:first-child>:first-child,.ch-wrap table.ch-tabela tbody tr.ch-espaco+tr>:first-child{border-top-left-radius:14px}
.ch-wrap table.ch-tabela thead tr:first-child>:last-child,.ch-wrap table.ch-tabela tbody tr.ch-espaco+tr>:last-child{border-top-right-radius:14px}
.ch-wrap table.ch-tabela tbody tr:has(+ tr.ch-espaco)>:first-child,.ch-wrap table.ch-tabela tbody tr:last-child>:first-child{border-bottom-left-radius:14px}
.ch-wrap table.ch-tabela tbody tr:has(+ tr.ch-espaco)>:last-child,.ch-wrap table.ch-tabela tbody tr:last-child>:last-child{border-bottom-right-radius:14px}
}

/* Espaço transparente depois da última linha de cada bloco de horários */
.ch-wrap table.ch-tabela tbody tr.ch-espaco td,.ch-wrap table.ch-tabela tbody tr.ch-espaco:hover td{height:48px;padding:0!important;border:0!important;background:transparent!important}
@media (max-width:640px){.ch-wrap table.ch-cartoes tbody tr.ch-espaco{display:block;height:28px;margin:0;border:0;box-shadow:none;background:none!important}.ch-wrap table.ch-cartoes tbody tr.ch-espaco td{display:block;height:28px}}

.ch-wrap .ch-filtros .ch-filtro-hora{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:16px center,right 16px center;background-color:#fff;padding-left:46px}

/* Ícone de relógio antes dos horários */
@media (min-width:641px){
.ch-wrap table.ch-tabela td.ch-hora::before{content:"";display:inline-block;width:15px;height:15px;margin-right:7px;vertical-align:-2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") no-repeat center/contain}
}
@media (max-width:640px){
.ch-wrap table.ch-cartoes tbody td.ch-hora:first-child::before{content:"";display:inline-block;flex:none;width:16px;height:16px;margin-right:8px;vertical-align:-3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") no-repeat center/contain;color:transparent}
}

/* Pesquisa */
.ch-wrap .ch-busca{display:block;width:340px;max-width:100%;height:46px;margin:0 auto 20px;padding:0 18px 0 46px;font-size:16px;font-weight:500;color:var(--ch-escuro);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231BB0ED' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 16px center;border:1px solid rgba(33,78,125,.2);border-radius:999px;box-shadow:0 6px 18px rgba(33,78,125,.10);outline:none;transition:box-shadow .2s,border-color .2s}
.ch-wrap .ch-busca:focus{border-color:var(--ch-azul);box-shadow:0 0 0 4px rgba(33,78,125,.14)}
.ch-wrap .ch-busca::placeholder{color:#1BB0ED;opacity:1}
.ch-wrap mark.ch-achado{padding:1px 3px;margin:0;background:var(--ch-roxo);color:#fff;font-weight:700;border-radius:4px}

/* Celular: cada linha vira um cartão, sem rolagem lateral */
@media (max-width:640px){
.ch-wrap table.ch-cartoes,.ch-wrap table.ch-cartoes tbody{display:block;border:0;border-radius:0;background:none}
.ch-wrap table.ch-cartoes thead{display:block}
.ch-wrap table.ch-cartoes thead tr:not(.ch-titulo){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ch-wrap table.ch-cartoes tr.ch-titulo{display:block;margin:0 0 10px;border-radius:10px;overflow:hidden}
.ch-wrap table.ch-cartoes tr.ch-titulo th,.ch-wrap table.ch-cartoes tr.ch-titulo td{display:block;text-align:center;padding:12px 14px}
.ch-wrap table.ch-cartoes tbody tr.ch-titulo td::before{content:none}
.ch-wrap table.ch-cartoes tbody tr.ch-titulo{box-shadow:none;border:0}
.ch-wrap table.ch-cartoes tbody tr{display:block;margin:0 0 12px;border:1px solid rgba(33,78,125,.18);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 4px 14px rgba(33,78,125,.07)}
.ch-wrap table.ch-cartoes tbody td{display:flex;justify-content:space-between;align-items:baseline;gap:14px;text-align:right;padding:9px 14px;background:none!important;border-top:1px solid rgba(33,78,125,.10)}
.ch-wrap table.ch-cartoes tbody td:first-child{display:block;text-align:left;border-top:0;background:var(--ch-azul)!important;color:#fff;font-size:16px}
.ch-wrap table.ch-cartoes tbody td:first-child::before{content:none}
.ch-wrap table.ch-cartoes tbody td::before{content:attr(data-label);flex:0 0 42%;text-align:left;font-weight:700;color:var(--ch-azul)}
.ch-wrap table.ch-cartoes tbody td:empty{display:none}
}
/* Tabelas com células mescladas (sem rótulos): rolagem lateral */
@media (max-width:640px){
.ch-wrap table.ch-tabela:not(.ch-cartoes){display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Botão voltar ao topo */
.ch-topo{position:fixed;right:28px;bottom:100px;z-index:9990;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:#1BB0ED url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'/%3E%3C/svg%3E") no-repeat center;box-shadow:0 6px 18px rgba(33,78,125,.30);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s,transform .25s,visibility .25s,background-color .2s}
.ch-topo.visivel{opacity:1;visibility:visible;transform:none}
.ch-topo:hover{background-color:#214E7D}
.ch-topo:focus-visible{outline:3px solid #214E7D;outline-offset:3px}
@media (max-width:640px){.ch-topo{right:16px;bottom:88px;width:44px;height:44px}}

/* Tabela desativada: em atualização */
.ch-wrap .ch-indisponivel{max-width:520px;margin:32px auto;padding:36px 28px;text-align:center;background:#fff;border:1px solid rgba(33,78,125,.16);border-radius:16px;box-shadow:0 10px 30px rgba(33,78,125,.10);color:#214E7D}
.ch-wrap .ch-indisponivel-icone{display:block;width:64px;height:64px;margin:0 auto 16px;border-radius:50%;background:#1BB0ED url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16'/%3E%3Cpath d='M3 12a9 9 0 0 1 15.5-6.2L21 8'/%3E%3Cpath d='M21 3v5h-5M3 21v-5h5'/%3E%3C/svg%3E") no-repeat center/30px}
.ch-wrap .ch-indisponivel strong{display:block;font-size:22px;font-weight:800;letter-spacing:.02em;color:#214E7D}
.ch-wrap .ch-indisponivel p{margin:6px 0 0;font-size:16px;color:#3A6C9C}
