/* Organizador de Passeios v2 · plataforma no estilo planner, nas cores da ibexGo · modo claro e black */
:root {
  --azul: #14539B; --azul-esc: #0E3A6E; --azul-claro: #EAF1FA; --azul-suave: #F4F7FB;
  --amarelo: #F2B807; --amarelo-suave: #FFF3CC; --amarelo-texto: #7A5300;
  --texto: #0E2A4F; --tit: #0E3A6E; --cinza: #6B7A90; --cinza-2: #A3AEBF; --borda: #E6ECF3;
  --sup: #fff; --pagina: #E9EEF5; --fundo-cel: #F4F7FB;
  --verde: #12B76A; --verde-suave: #E7F8EF; --verde-texto: #067647; --wa: #25D366;
  --laranja-suave: #FFF1E6; --laranja-texto: #B93815; --verm-suave: #FEF3F2; --verm-texto: #B42318;
  --sombra: 0 10px 40px rgba(14, 42, 79, .1);
  --sombra-alta: 0 24px 70px rgba(14, 42, 79, .25);
  color-scheme: light;
}
html[data-tema="black"] {
  --azul: #4C8FE0; --azul-esc: #1B4A85; --azul-claro: #16273D; --azul-suave: #161D28;
  --amarelo: #F2B807; --amarelo-suave: #3A2F0D; --amarelo-texto: #F7D46B;
  --texto: #E7EDF6; --tit: #DCE8F8; --cinza: #95A3B8; --cinza-2: #5F6B7D; --borda: #263142;
  --sup: #10151D; --pagina: #05080C; --fundo-cel: #0A0E14;
  --verde-suave: #0F2C1E; --verde-texto: #4ADE99;
  --laranja-suave: #3A1E10; --laranja-texto: #FFA06B; --verm-suave: #3A1414; --verm-texto: #FF8A80;
  --sombra: 0 10px 40px rgba(0, 0, 0, .5);
  --sombra-alta: 0 24px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: Outfit, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--texto); background: var(--pagina); height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
button, a { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0; }
[hidden] { display: none !important; }
.marca { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.marca b { font-weight: 800; }
.marca span { color: var(--amarelo); font-weight: 800; margin-left: 2px; }
.topo-cel { display: none; }
.sol { display: none; }
html[data-tema="black"] .sol { display: block; } html[data-tema="black"] .lua { display: none; }

/* ── computador: trilho | conteúdo | dia ── */
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 104px 1fr 360px; background: var(--sup); margin: 14px; border-radius: 22px; box-shadow: var(--sombra); overflow: hidden; }
.app.sem-painel { grid-template-columns: 104px 1fr; }
.app.sem-painel .painel { display: none; }
.trilho { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 8px; background: var(--azul-suave); border-right: 1px solid var(--borda); overflow-y: auto; scrollbar-width: none; }
.marca-trilho { color: var(--azul); font-size: 19px; }
.relogio { text-align: center; }
.relogio b { display: block; font-size: 26px; font-weight: 700; color: var(--tit); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.relogio small { font-size: 13px; color: var(--cinza); }
.trilho-menu { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; }
.trilho-menu a, .trilho-pe a, .trilho-pe button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--cinza); width: 100%; transition: background .15s, color .15s; }
.trilho-menu svg, .trilho-pe svg { width: 24px; height: 24px; fill: currentColor; }
.trilho-menu a:hover, .trilho-pe a:hover, .trilho-pe button:hover { background: var(--sup); color: var(--azul); }
.trilho-menu a.on { background: var(--sup); color: var(--azul); box-shadow: 0 4px 14px rgba(20, 83, 155, .12); }
.trilho-pe { margin-top: auto; display: flex; flex-direction: column; gap: 4px; width: 100%; }

.centro { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vista { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 22px 26px 14px; }
.centro-cab { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 18px; }
.centro-cab h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--tit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mes-pilula { display: flex; align-items: center; gap: 6px; background: var(--azul-suave); border-radius: 99px; padding: 4px; }
.mes-pilula b { min-width: 150px; text-align: center; font-size: 16px; font-weight: 700; color: var(--tit); text-transform: capitalize; }
.seta { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.seta:hover { background: var(--sup); }
.seta svg { width: 22px; height: 22px; fill: var(--azul); }
.btn-hoje { justify-self: end; height: 40px; border-radius: 99px; padding: 0 20px; font-weight: 700; font-size: 14.5px; background: var(--azul); color: #fff; }
.btn-hoje:hover { filter: brightness(.92); }
.btn-hoje.some { visibility: hidden; }
.semana-cab { display: grid; grid-template-columns: repeat(7, 1fr); padding-bottom: 8px; border-bottom: 1px solid var(--borda); }
.semana-cab span { text-align: center; font-size: 14px; font-weight: 700; color: var(--texto); }

.meses { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.meses::-webkit-scrollbar { display: none; }
.mes { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; }
.dia { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid var(--borda); padding: 4px; min-height: 0; }
.dia .num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 19px; font-weight: 600; color: var(--texto); transition: background .15s; }
.dia:hover .num { background: var(--azul-suave); }
.dia.fora { pointer-events: none; }
.dia.fora .num { color: var(--cinza-2); opacity: .5; }
.dia.passado .num { color: var(--cinza-2); }
.dia.sel .num { background: var(--azul-claro); color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul); }
.dia.hoje .num { background: var(--azul); color: #fff; border-radius: 50%; box-shadow: 0 6px 16px rgba(20, 83, 155, .3); }
.dia .pontos { display: flex; gap: 4px; height: 7px; }
.dia .pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--cor, var(--azul)); }
.dia .qtd { display: none; }
.dia .num { position: relative; }
.dia .deve-ponto { position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: #F79009; border: 2px solid var(--sup); }

/* painel do dia escolhido */
.painel { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--borda); padding: 22px 18px 14px; }
.painel-cab h2 { margin: 0; font-size: 21px; font-weight: 700; color: var(--tit); }
.painel-cab h2::first-letter { text-transform: uppercase; }
.painel-cab p { margin: 4px 0 14px; font-size: 14px; color: var(--cinza); }
.painel-lista { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px 70px; }

/* grupo de saída (horário + atividade) */
.saida-cab { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; }
.saida-cab:first-child { margin-top: 2px; }
.saida-cab .h { font-weight: 800; font-size: 15px; color: var(--tit); font-variant-numeric: tabular-nums; }
.saida-cab .n { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--cinza); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saida-cab .n i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cor); margin-right: 6px; vertical-align: 1px; }
.saida-cab .vg { font-size: 12px; font-weight: 700; color: var(--cinza); background: var(--azul-suave); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.saida-cab .vg.cheio { background: var(--verm-suave); color: var(--verm-texto); }
.btn-lista { font-size: 12.5px; font-weight: 700; color: var(--azul); padding: 5px 10px; border-radius: 99px; background: var(--azul-claro); white-space: nowrap; }

.tarefa { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--azul-suave); margin-bottom: 8px; border-left: 4px solid var(--cor, var(--azul)); transition: background .15s, box-shadow .15s; }
.tarefa:hover { background: var(--sup); box-shadow: 0 6px 18px rgba(14, 42, 79, .1); }
.tarefa .info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.tarefa .tx { min-width: 0; flex: 1; }
.tarefa .nome { display: block; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tarefa .sub { display: block; font-size: 13.5px; color: var(--cinza); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tarefa.cancelada { opacity: .55; }
.tarefa.cancelada .nome { text-decoration: line-through; }
.wa { width: 42px; height: 42px; border-radius: 50%; background: var(--sup); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 3px 10px rgba(14, 42, 79, .08); }
.wa:hover { background: var(--verde-suave); }
.wa svg { width: 22px; height: 22px; fill: #1FAF5B; }
.wa.sem { opacity: .35; pointer-events: none; }

/* selos de pagamento e situação */
.selo { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.selo.pago { background: var(--verde-suave); color: var(--verde-texto); }
.selo.parcial, .selo.deve { background: var(--laranja-suave); color: var(--laranja-texto); }
.selo.aberto { background: var(--verm-suave); color: var(--verm-texto); }
.selo.pend { background: var(--amarelo-suave); color: var(--amarelo-texto); }
.selo.canc { background: var(--verm-suave); color: var(--verm-texto); }
.selo.cinza { background: var(--azul-suave); color: var(--cinza); }
.vazio { text-align: center; color: var(--cinza); padding: 36px 20px 30px; font-size: 15.5px; }
.vazio b { display: block; color: var(--texto); font-size: 19px; margin-bottom: 4px; }
.vazio .btn { margin-top: 14px; }

.fab { position: fixed; right: 40px; bottom: 36px; width: 62px; height: 62px; border-radius: 50%; background: var(--azul); display: grid; place-items: center; box-shadow: 0 12px 28px rgba(20, 83, 155, .4); z-index: 8; transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 30px; height: 30px; fill: #fff; }
.gaveta, .rodape { display: none; }

/* ── telas (reservas, clientes, atividades, financeiro, ajustes) ── */
.tela { overflow-y: auto; overflow-x: hidden; padding-bottom: 110px; }
.tela-cab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tela-cab h1 { flex: 1; margin: 0; font-size: 26px; font-weight: 700; color: var(--tit); letter-spacing: -.01em; min-width: 0; }
.tela-cab p { width: 100%; margin: -6px 0 0; color: var(--cinza); font-size: 14.5px; }
.tela-sub { font-size: 16px; font-weight: 700; color: var(--tit); margin: 22px 2px 10px; display: flex; align-items: center; gap: 10px; }
.tela-sub small { font-weight: 500; color: var(--cinza); font-size: 13.5px; }
.tela-sub .btn-mini { margin-left: auto; }
.busca { width: 100%; height: 48px; border: 1.5px solid var(--borda); border-radius: 99px; padding: 0 18px 0 44px; font: inherit; font-size: 16px; color: var(--texto); background: var(--azul-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7A90'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 9.5 16a6.5 6.5 0 0 0 4.2-1.6l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat 16px center / 20px; outline: none; margin-bottom: 12px; }
.busca:focus { border-color: var(--azul); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 600; background: var(--azul-suave); color: var(--cinza); border: 1.5px solid transparent; }
.chip b { font-weight: 800; margin-left: 4px; }
.chip.on { background: var(--azul-claro); color: var(--azul); border-color: var(--azul); }
.btn-mini { height: 38px; padding: 0 16px; border-radius: 99px; font-weight: 700; font-size: 14px; background: var(--azul); color: #fff; white-space: nowrap; }
.btn-mini.sec { background: var(--azul-claro); color: var(--azul); }
.btn-mini.perigo { background: var(--verm-suave); color: var(--verm-texto); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.kpi { background: var(--azul-suave); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.kpi span { display: block; font-size: 13px; font-weight: 600; color: var(--cinza); }
.kpi b { display: block; font-size: 22px; font-weight: 800; color: var(--tit); margin-top: 4px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { display: block; font-size: 12.5px; color: var(--cinza); margin-top: 2px; }
.kpi.destaque { background: var(--azul); }
.kpi.destaque span, .kpi.destaque small { color: rgba(255, 255, 255, .8); }
.kpi.destaque b { color: #fff; }
.kpi.alerta b { color: var(--laranja-texto); }
.kpi.bom b { color: var(--verde-texto); }

/* linha genérica de lista */
.linha { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--azul-suave); margin-bottom: 8px; text-align: left; transition: background .15s, box-shadow .15s; }
button.linha:hover, .linha.clica:hover { background: var(--sup); box-shadow: 0 6px 18px rgba(14, 42, 79, .1); }
.linha .d { width: 48px; height: 48px; border-radius: 14px; background: var(--sup); display: grid; place-content: center; text-align: center; flex-shrink: 0; }
.linha .d b { display: block; font-size: 18px; font-weight: 700; line-height: 1; }
.linha .d small { font-size: 10.5px; color: var(--cinza); text-transform: uppercase; font-weight: 700; }
.linha .av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #0E3A6E; background: linear-gradient(135deg, #FFE8A3, var(--amarelo)); }
.linha .t { flex: 1; min-width: 0; }
.linha .t b { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha .t small { display: block; color: var(--cinza); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha .v { text-align: right; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.linha .v small { display: block; font-weight: 600; font-size: 12px; }
.linha.cor { border-left: 4px solid var(--cor, var(--azul)); }
.linha.apagada { opacity: .55; }
.linha .acao { flex-shrink: 0; }

.barra { display: block; height: 8px; border-radius: 99px; background: var(--borda); overflow: hidden; margin-top: 6px; }
.barra i { display: block; height: 100%; border-radius: 99px; background: var(--cor, var(--azul)); }
.grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cartao { background: var(--azul-suave); border-radius: 20px; padding: 16px 18px; margin-bottom: 12px; }
.cartao h3 { margin: 0 0 4px; font-size: 16.5px; color: var(--tit); }
.cartao p { margin: 0 0 12px; color: var(--cinza); font-size: 14px; line-height: 1.5; }
.cartao .acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.tema-op { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tema-op button { border: 2px solid var(--borda); border-radius: 18px; padding: 12px; text-align: left; font-weight: 700; background: var(--sup); }
.tema-op button.on { border-color: var(--azul); }
.tema-op .amostra { display: block; height: 54px; border-radius: 12px; margin-bottom: 8px; }
.tema-op .claro { background: linear-gradient(135deg, #fff 55%, #EAF1FA 55%); border: 1px solid #E6ECF3; }
.tema-op .escuro { background: linear-gradient(135deg, #10151D 55%, #16273D 55%); }

/* ── janelas ── */
.fundo { position: fixed; inset: 0; background: rgba(5, 15, 30, .38); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 20; }
.fundo.on { opacity: 1; pointer-events: auto; }
.fundo-cli { z-index: 40; }
.folha { position: fixed; z-index: 30; left: 50%; top: 50%; width: min(540px, calc(100vw - 32px)); max-height: min(80vh, 740px); background: var(--sup); border-radius: 28px; box-shadow: var(--sombra-alta);
  display: flex; flex-direction: column; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .18s; }
.folha.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.folha-alca { display: none; }
.folha-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 24px 24px 14px; }
.folha-cab h2 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.folha-cab h2::first-letter { text-transform: uppercase; }
.folha-cab p { margin: 4px 0 0; color: var(--cinza); font-size: 15px; }
.fechar { width: 38px; height: 38px; border-radius: 50%; background: var(--azul-suave); color: var(--cinza); font-size: 15px; flex-shrink: 0; }
.fechar:hover { background: var(--azul-claro); }
.folha-corpo { overflow-y: auto; padding: 0 16px 20px; }

/* cartão do cliente / reserva */
.cartao-cli { position: fixed; z-index: 50; left: 50%; top: 50%; width: min(480px, calc(100vw - 32px)); max-height: min(88vh, 820px); overflow-y: auto; overflow-x: hidden; background: var(--sup); border-radius: 30px; box-shadow: var(--sombra-alta);
  transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .18s; }
.cartao-cli.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.cli-topo { position: relative; text-align: center; padding: 30px 24px 18px; background: linear-gradient(180deg, var(--azul-claro), var(--sup)); }
.cli-topo .fechar { position: absolute; top: 16px; right: 16px; background: var(--sup); }
.cli-topo .voltar { position: absolute; top: 16px; left: 14px; display: none; }
.cli-topo .editar { position: absolute; top: 16px; left: 16px; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--sup); color: var(--azul); font-weight: 700; font-size: 14px; }
.avatar { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 27px; font-weight: 800; color: #0E3A6E; background: linear-gradient(135deg, #FFE8A3, var(--amarelo)); box-shadow: 0 8px 22px rgba(242, 184, 7, .35); }
.cli-topo h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.cli-topo p { margin: 4px 0 0; color: var(--cinza); font-size: 15px; }
.cli-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 22px 18px; }
.cli-acoes a, .cli-acoes button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 99px; font-weight: 600; font-size: 15.5px; }
.cli-acoes .a-wa { background: var(--wa); color: #fff; }
.cli-acoes .a-wa svg { width: 20px; height: 20px; fill: #fff; }
.cli-acoes .a-tel { background: var(--azul-esc); color: #fff; }
.cli-acoes .a-tel svg { width: 18px; height: 18px; fill: #fff; }
.cli-acoes .desliga { opacity: .35; pointer-events: none; }
.cli-resumo { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 0 18px 16px; gap: 8px; }
.cli-resumo div { background: var(--azul-suave); border-radius: 18px; padding: 14px 6px; min-width: 0; }
.cli-resumo b { display: block; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cli-resumo span { font-size: 12.5px; color: var(--cinza); }
.cli-bloco { margin: 0 18px 16px; }
.cli-bloco h4 { margin: 4px 4px 8px; font-size: 16px; font-weight: 700; color: var(--tit); display: flex; align-items: center; gap: 8px; }
.cli-bloco h4 .btn-mini { margin-left: auto; height: 32px; font-size: 13px; padding: 0 12px; }
.cli-lin { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font-size: 15px; background: var(--azul-suave); }
.cli-lin:first-of-type { border-radius: 16px 16px 0 0; }
.cli-lin:last-child { border-radius: 0 0 16px 16px; }
.cli-lin:only-of-type { border-radius: 16px; }
.cli-lin + .cli-lin { border-top: 1px solid var(--sup); }
.cli-lin span { color: var(--cinza); flex-shrink: 0; }
.cli-lin b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cli-res { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--azul-suave); margin-bottom: 8px; width: 100%; text-align: left; }
button.cli-res:hover { background: var(--azul-claro); }
.cli-res.atual { box-shadow: inset 0 0 0 2px var(--azul); }
.cli-res .d { width: 48px; height: 48px; border-radius: 14px; background: var(--sup); display: grid; place-content: center; text-align: center; flex-shrink: 0; }
.cli-res .d b { display: block; font-size: 18px; font-weight: 700; line-height: 1; }
.cli-res .d small { font-size: 10.5px; color: var(--cinza); text-transform: uppercase; font-weight: 700; }
.cli-res .t { flex: 1; min-width: 0; }
.cli-res .t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cli-res .t small { color: var(--cinza); font-size: 13px; }
.cli-res .v { text-align: right; font-size: 14.5px; font-weight: 700; }
.cli-res .v small { display: block; font-weight: 600; font-size: 12px; }
.ok { color: var(--verde-texto); } .deve { color: var(--laranja-texto); } .cinza { color: var(--cinza-2); }

/* ficha da reserva: pagamento */
.pg-caixa { border-radius: 20px; padding: 16px; background: var(--azul-suave); }
.pg-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pg-status .ic-st { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; font-size: 20px; }
.pg-status.pago .ic-st { background: var(--verde-suave); color: var(--verde-texto); }
.pg-status.parcial .ic-st { background: var(--laranja-suave); color: var(--laranja-texto); }
.pg-status.aberto .ic-st { background: var(--verm-suave); color: var(--verm-texto); }
.pg-status.canc .ic-st { background: var(--azul-claro); color: var(--cinza); }
.pg-status b { display: block; font-size: 18px; }
.pg-status small { color: var(--cinza); font-size: 13.5px; }
.pg-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin-bottom: 12px; }
.pg-nums div { background: var(--sup); border-radius: 14px; padding: 10px 4px; min-width: 0; }
.pg-nums span { display: block; font-size: 12px; color: var(--cinza); font-weight: 600; }
.pg-nums b { font-size: 15.5px; white-space: nowrap; }
.pg-lin { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14.5px; border-top: 1px solid var(--borda); }
.pg-lin span { flex: 1; color: var(--cinza); min-width: 0; }
.pg-lin b { white-space: nowrap; }
.pg-lin button { color: var(--cinza-2); width: 30px; height: 30px; border-radius: 50%; }
.pg-lin button:hover { background: var(--verm-suave); color: var(--verm-texto); }
.quitar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.quitar button { height: 44px; border-radius: 14px; background: var(--verde); color: #fff; font-weight: 700; font-size: 14px; }
.quitar-rot { font-size: 13px; font-weight: 600; color: var(--cinza); margin-top: 12px; }
.btn-receber { width: 100%; height: 44px; border-radius: 14px; margin-top: 8px; background: var(--sup); color: var(--azul); font-weight: 700; border: 1.5px dashed var(--azul); }

/* ficha: mensagens e presença */
.msgs { display: grid; gap: 8px; }
.msg-bt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--azul-suave); text-align: left; width: 100%; }
.msg-bt:hover { background: var(--azul-claro); }
.msg-bt .mi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sup); flex-shrink: 0; }
.msg-bt .mi svg { width: 20px; height: 20px; fill: #1FAF5B; }
.msg-bt .mt { flex: 1; min-width: 0; }
.msg-bt .mt b { display: block; font-size: 15px; }
.msg-bt .mt small { color: var(--cinza); font-size: 13px; }
.msg-bt .feito { font-size: 12px; font-weight: 700; color: var(--verde-texto); background: var(--verde-suave); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.msg-bt .falta { font-size: 12px; font-weight: 700; color: var(--amarelo-texto); background: var(--amarelo-suave); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.presenca { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.presenca button { height: 46px; border-radius: 14px; background: var(--azul-suave); font-weight: 700; font-size: 14.5px; color: var(--cinza); border: 2px solid transparent; }
.presenca button.on.veio { background: var(--verde-suave); color: var(--verde-texto); border-color: var(--verde); }
.presenca button.on.faltou { background: var(--verm-suave); color: var(--verm-texto); border-color: #F04438; }
.rodape-ficha { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 18px 22px; }
.rodape-ficha button { flex: 1; min-width: 130px; height: 46px; border-radius: 99px; font-weight: 700; font-size: 14.5px; background: var(--azul-suave); color: var(--azul); }
.rodape-ficha .perigo { background: var(--verm-suave); color: var(--verm-texto); }
.aviso-combo { font-size: 13.5px; color: var(--amarelo-texto); background: var(--amarelo-suave); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }

.aviso { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #0E3A6E; color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 14.5px; z-index: 90; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--sombra-alta); max-width: calc(100vw - 32px); text-align: center; }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

/* ── janela de formulário ── */
.fundo-form { z-index: 54; }
.janela { position: fixed; z-index: 55; left: 50%; top: 50%; width: min(580px, calc(100vw - 32px)); max-height: min(90vh, 860px); background: var(--sup); border-radius: 28px; box-shadow: var(--sombra-alta);
  display: flex; flex-direction: column; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .18s; overflow-x: hidden; }
.janela.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.janela-cab { display: flex; align-items: center; gap: 10px; padding: 20px 22px 12px; }
.janela-cab h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 700; color: var(--tit); }
.voltar-j { display: none; width: 38px; height: 38px; border-radius: 50%; place-items: center; background: var(--azul-suave); }
.voltar-j svg { width: 24px; height: 24px; fill: var(--tit); }
.janela-corpo { overflow-y: auto; overflow-x: hidden; padding: 4px 22px 16px; touch-action: pan-y; overscroll-behavior: contain; }
.janela-corpo * { min-width: 0; max-width: 100%; }
.janela-pe { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--borda); }
.janela-pe:empty { display: none; }
.btn { flex: 1; height: 50px; border-radius: 99px; font-weight: 700; font-size: 16px; padding: 0 22px; }
.btn-pri { background: var(--azul); color: #fff; }
.btn-pri:hover { filter: brightness(.92); }
.btn-sec { background: var(--azul-suave); color: var(--azul); flex: 0 0 auto; }
.btn-perigo { background: #D92D20; color: #fff; }
.btn-verde { background: var(--verde); color: #fff; }
.campo { display: block; margin-bottom: 14px; }
.campo > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--cinza); margin-bottom: 6px; }
.campo input, .campo select, .campo textarea { width: 100%; height: 50px; border: 1.5px solid var(--borda); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--texto); background: var(--sup); outline: none; transition: border-color .15s; }
.campo textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); }
.campo input[type="date"], .campo input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; line-height: 50px; text-align: left; }
.campo input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.campo input::-webkit-datetime-edit { padding: 0; }
.campo small { display: block; color: var(--cinza); font-size: 12.5px; margin-top: 5px; line-height: 1.4; }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duas > * { min-width: 0; }
.sec-tit { font-size: 15px; font-weight: 700; color: var(--tit); margin: 8px 0 10px; }
.contador { display: flex; align-items: center; justify-content: space-between; height: 50px; border: 1.5px solid var(--borda); border-radius: 14px; padding: 0 6px; }
.contador b { font-size: 18px; min-width: 24px; text-align: center; }
.contador button { width: 38px; height: 38px; border-radius: 50%; background: var(--azul-suave); font-size: 20px; font-weight: 700; color: var(--azul); }
.ativs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ativ-op { position: relative; text-align: left; border: 1.5px solid var(--borda); border-radius: 16px; padding: 12px 12px 12px 16px; background: var(--sup); transition: border-color .15s, background .15s; }
.ativ-op::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cor, var(--azul)); }
.ativ-op b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.ativ-op small { color: var(--cinza); font-size: 13px; }
.ativ-op.on { border-color: var(--azul); background: var(--azul-claro); box-shadow: inset 0 0 0 1px var(--azul); }
.vagas-info { font-size: 13.5px; font-weight: 600; border-radius: 12px; padding: 9px 12px; margin: -4px 0 14px; background: var(--verde-suave); color: var(--verde-texto); }
.vagas-info.pouca { background: var(--amarelo-suave); color: var(--amarelo-texto); }
.vagas-info.cheio { background: var(--verm-suave); color: var(--verm-texto); }
.bump { border: 2px dashed #F2B807; background: var(--amarelo-suave); border-radius: 18px; padding: 14px; margin: 6px 0 14px; }
.bump-cab { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bump-cab input { width: 22px; height: 22px; accent-color: var(--azul); flex-shrink: 0; }
.bump-cab b { display: block; font-size: 15.5px; color: var(--tit); }
.bump-cab small { color: var(--amarelo-texto); font-size: 13px; }
.bump-corpo { margin-top: 12px; display: none; }
.bump.on .bump-corpo { display: block; }
.resumo-total { background: var(--azul-suave); border-radius: 18px; padding: 14px 16px; margin-top: 4px; }
.resumo-total div { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--cinza); padding: 3px 0; }
.resumo-total .tot { font-size: 18px; font-weight: 800; color: var(--tit); border-top: 1px solid var(--borda); margin-top: 6px; padding-top: 8px; }
.sugestoes { margin: -8px 0 14px; display: grid; gap: 6px; }
.sugestoes button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border-radius: 14px; background: var(--azul-suave); font-size: 14.5px; }
.sugestoes button b { font-weight: 700; }
.sugestoes button small { color: var(--cinza); margin-left: auto; }
.cli-escolhido { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--azul-claro); margin: -6px 0 14px; font-size: 14px; color: var(--azul); font-weight: 600; }
.cli-escolhido button { margin-left: auto; font-weight: 700; color: var(--cinza); }
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--azul-suave); padding: 4px; border-radius: 14px; }
.segmento label { position: relative; }
.segmento input { position: absolute; opacity: 0; }
.segmento span { display: block; text-align: center; padding: 11px 6px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--cinza); cursor: pointer; }
.segmento input:checked + span { background: var(--sup); color: var(--azul); box-shadow: 0 2px 8px rgba(14, 42, 79, .1); }
.cores { display: flex; gap: 10px; flex-wrap: wrap; }
.cores label input { display: none; }
.cores label span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid var(--sup); box-shadow: 0 0 0 1.5px var(--borda); cursor: pointer; }
.cores label input:checked + span { box-shadow: 0 0 0 2.5px var(--texto); }
.erro { background: var(--verm-suave); color: var(--verm-texto); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.boas-vindas { text-align: center; padding: 10px 6px 6px; }
.boas-vindas b { display: block; font-size: 19px; color: var(--tit); margin-bottom: 6px; }
.boas-vindas p { margin: 0 0 6px; color: var(--cinza); font-size: 15px; line-height: 1.5; }
.lista-emb { counter-reset: n; }
.lista-emb .linha { background: var(--azul-suave); }
.lista-emb .linha::before { counter-increment: n; content: counter(n); width: 26px; font-weight: 800; color: var(--cinza); text-align: center; flex-shrink: 0; }
.escolha { display: block; width: 100%; text-align: left; padding: 16px; border-radius: 18px; border: 2px solid var(--borda); background: var(--sup); margin-bottom: 10px; }
.escolha:hover { border-color: var(--azul); }
.escolha b { display: block; font-size: 16px; margin-bottom: 4px; }
.escolha span { color: var(--cinza); font-size: 14px; line-height: 1.45; }
.escolha em { float: right; font-style: normal; font-size: 12px; font-weight: 700; color: var(--verde-texto); background: var(--verde-suave); padding: 2px 8px; border-radius: 99px; }
.codigo-tr { font-size: 38px; font-weight: 800; letter-spacing: .08em; text-align: center; color: var(--tit); margin: 8px 0; font-variant-numeric: tabular-nums; }
.qr-tr { width: 200px; height: 200px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 8px; }
.qr-tr svg { width: 100%; height: 100%; }
.centro-tx { text-align: center; color: var(--cinza); font-size: 14.5px; line-height: 1.5; }
.input-codigo { text-align: center; font-size: 26px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* confirmação */
.fundo-conf { z-index: 70; }
.conf { position: fixed; z-index: 71; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); background: var(--sup); border-radius: 26px; box-shadow: var(--sombra-alta); padding: 24px 22px 20px; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .2s, opacity .15s; }
.conf.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.conf h3 { margin: 0 0 8px; font-size: 20px; color: var(--tit); }
.conf p { margin: 0 0 18px; color: var(--cinza); font-size: 15px; line-height: 1.5; }
.conf .bts { display: flex; gap: 10px; }

/* ── telas médias ── */
@media (max-width: 1180px) { .app { grid-template-columns: 92px 1fr 300px; } .app.sem-painel { grid-template-columns: 92px 1fr; } .mes-pilula b { min-width: 120px; } }

/* ── celular e tablet em pé ── */
@media (max-width: 900px) {
  body { background: var(--fundo-cel); }
  .topo-cel { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 6px 0 16px; padding-top: env(safe-area-inset-top); background: var(--azul); color: #fff; flex-shrink: 0; }
  html[data-tema="black"] .topo-cel { background: #0D1824; border-bottom: 1px solid var(--borda); }
  .acoes-cel { display: flex; align-items: center; gap: 0; }
  .ic { width: 40px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
  .ic svg { width: 23px; height: 23px; fill: currentColor; }
  .ic:active { background: rgba(255, 255, 255, .14); }
  .app, .app.sem-painel { display: flex; margin: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .trilho, .painel, .fab { display: none; }
  .vista { padding: 14px 10px 96px; }
  .tela { padding: 18px 14px 110px; }
  .tela-cab h1 { font-size: 24px; }
  .centro-cab { grid-template-columns: 1fr auto; margin-bottom: 12px; padding: 0 4px; }
  .centro-cab h1 { display: none; }
  #vAgenda .mes-pilula { background: transparent; padding: 0; justify-self: start; }
  #vAgenda .mes-pilula .seta { display: none; }
  #vAgenda .mes-pilula b { min-width: 0; text-align: left; font-size: 26px; }`n  .tela .mes-pilula b { min-width: 110px; }
  .btn-hoje { height: 36px; padding: 0 16px; font-size: 14px; }
  .semana-cab { border-bottom: 0; }
  .semana-cab span { font-size: 12px; color: var(--cinza); }
  .mes { gap: 4px; padding-bottom: 4px; }
  .dia { border: 0; background: var(--sup); border-radius: 14px; justify-content: flex-start; padding-top: 8px; }
  .dia.fora { background: transparent; }
  .dia .num { width: 34px; height: 34px; font-size: 16px; border-radius: 50%; }
  .dia.sel .num { box-shadow: none; background: transparent; color: var(--texto); }
  .dia.hoje .num { background: var(--azul); color: #fff; }
  .dia .pontos i { width: 6px; height: 6px; }
  .dia .qtd { display: block; font-size: 11px; font-weight: 700; color: var(--azul); }
  .dia .deve-ponto { top: -2px; right: -2px; width: 8px; height: 8px; }
  .grade2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .tela .kpi:not(.destaque), .tela .linha, .tela .cartao, .tela .chip:not(.on) { background-color: var(--sup); }
  .tela .busca { background-color: var(--sup); }
  .tela-sub { flex-wrap: wrap; row-gap: 2px; }
  .tela-sub small { flex-basis: 100%; order: 3; }
  .kpi b { font-size: 19px; }

  .gaveta { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); background: var(--sup); z-index: 45; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); transform: translateX(-100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--sombra-alta); overflow-y: auto; }
  .gaveta.on { transform: translateX(0); }
  .gaveta-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--azul); }
  .gaveta > a { padding: 14px 14px; border-radius: 14px; font-weight: 600; font-size: 17px; color: var(--texto); }
  .gaveta > a.on { background: var(--azul-claro); color: var(--azul); }
  .gaveta-pe { margin-top: auto; border-top: 1px solid var(--borda); padding-top: 10px; display: flex; flex-direction: column; }
  .gaveta-pe button, .gaveta-pe a { text-align: left; padding: 12px 14px; font-size: 15.5px; font-weight: 600; color: var(--cinza); border-radius: 14px; }
  .gaveta-tema { display: flex; align-items: center; justify-content: space-between; }
  .chave { width: 44px; height: 26px; border-radius: 99px; background: var(--borda); position: relative; flex-shrink: 0; transition: background .2s; }
  .chave::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
  html[data-tema="black"] .chave { background: var(--azul); }
  html[data-tema="black"] .chave::after { transform: translateX(18px); }
  #fundoMenu { z-index: 44; }

  .folha { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 88vh; border-radius: 30px 30px 0 0; transform: translateY(100%); opacity: 1; padding-bottom: env(safe-area-inset-bottom); }
  .folha.on { transform: translateY(0); }
  .folha-alca { display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--borda); margin: 10px auto 0; }
  .folha-cab { padding: 14px 20px 10px; }
  .folha-corpo { padding: 0 12px 20px; }

  .cartao-cli { left: 0; top: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; transform: translateX(100%); opacity: 1; padding-bottom: env(safe-area-inset-bottom); }
  .cartao-cli.on { transform: translateX(0); }
  .cli-topo { padding-top: max(56px, calc(env(safe-area-inset-top) + 40px)); }
  .cli-topo .fechar { display: none; }
  .cli-topo .voltar { display: flex; align-items: center; gap: 2px; top: max(12px, env(safe-area-inset-top)); height: 38px; padding: 0 12px 0 4px; border-radius: 99px; background: var(--sup); color: var(--tit); font-weight: 600; font-size: 16px; box-shadow: 0 3px 10px rgba(14, 42, 79, .08); }
  .cli-topo .voltar svg { width: 24px; height: 24px; fill: var(--tit); }
  .cli-topo .editar { left: auto; right: 14px; top: max(12px, env(safe-area-inset-top)); }

  .rodape { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 68px; background: var(--sup); border-radius: 24px; box-shadow: 0 10px 30px rgba(14, 42, 79, .18); z-index: 9; align-items: center; }
  html[data-tema="black"] .rodape { border: 1px solid var(--borda); }
  .rodape a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--cinza-2); }
  html[data-tema="black"] .rodape a { color: var(--cinza); }
  .rodape a svg { width: 24px; height: 24px; fill: currentColor; }
  .rodape a.on { color: var(--azul); }
  .rodape-mais { justify-self: center; width: 60px; height: 60px; border-radius: 50%; background: var(--azul); display: grid; place-items: center; margin-top: -30px; border: 5px solid var(--fundo-cel); box-shadow: 0 10px 22px rgba(20, 83, 155, .35); }
  .rodape-mais svg { width: 28px; height: 28px; fill: #fff; }
  .aviso { bottom: 100px; }
  .janela { left: 0; top: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; transform: translateY(100%); opacity: 1; }
  .janela.on { transform: translateY(0); }
  .janela-cab { padding-top: max(14px, env(safe-area-inset-top)); }
  .janela-cab .fechar { display: none; }
  .voltar-j { display: grid; }
  .janela-pe { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .ativs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .folha, .cartao-cli, .fundo, .aviso, .gaveta, .janela, .conf { transition: none; } }

/* ===== 2.1 · vários passeios, opcionais, CPF, pessoas do grupo ===== */
.sec-tit small { font-weight: 500; color: var(--cinza); font-size: 12.5px; margin-left: 6px; }
.janela .ativs { grid-template-columns: 1fr; gap: 10px; }
.ativ-bloco { position: relative; border: 1.5px solid var(--borda); border-radius: 16px; background: var(--sup); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ativ-bloco::before { content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 44px; border-radius: 0 4px 4px 0; background: var(--cor, var(--azul)); z-index: 1; }
.ativ-bloco .ativ-op { display: block; width: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 13px 54px 13px 16px; background: transparent; }
.ativ-bloco .ativ-op::before { display: none; }
.ativ-bloco.on { border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
.ativ-bloco.on .ativ-op { background: var(--azul-claro); }
.ativ-op .chk { position: absolute; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; border: 2px solid var(--borda); background: var(--sup); transition: background .15s, border-color .15s; }
.ativ-op.on .chk { background: var(--azul); border-color: var(--azul); }
.ativ-op.on .chk::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ativ-bloco.on .ativ-op .chk { top: 25px; margin-top: 0; }
.ativ-det { padding: 14px 14px 2px; border-top: 1px solid var(--borda); }
.opc-tit { font-size: 14px; font-weight: 700; color: var(--tit); margin: 4px 0 10px; }
.opc { margin-bottom: 12px; }
.opc-rot { display: block; font-size: 13.5px; font-weight: 600; color: var(--cinza); margin-bottom: 6px; }
.opc-campo { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--borda); border-radius: 14px; padding: 8px 12px 8px 14px; background: var(--sup); font-size: 16px; color: var(--texto); text-align: left; transition: border-color .15s, box-shadow .15s; }
.opc-campo > span { flex: 1; min-width: 0; }
.opc-campo .ph { color: var(--cinza-2); }
.opc-campo em { font-style: normal; font-weight: 700; color: var(--azul); white-space: nowrap; font-size: 15px; }
.opc-campo em.inc { color: var(--verde-texto); font-weight: 600; }
.opc-campo svg { width: 22px; height: 22px; fill: var(--cinza); flex-shrink: 0; transition: transform .2s; }
.opc.tem .opc-campo { border-color: var(--azul); }
.opc.aberto .opc-campo { border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.opc.aberto .opc-campo svg { transform: rotate(180deg); }
.opc-lista { margin-top: 6px; border: 1.5px solid var(--borda); border-radius: 14px; background: var(--sup); padding: 6px; box-shadow: var(--sombra); animation: opcAbre .16s ease-out; }
@keyframes opcAbre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .opc-lista { animation: none; } }
.opc-lista button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px; border-radius: 10px; font-size: 15.5px; color: var(--texto); text-align: left; }
.opc-lista button span { min-width: 0; }
.opc-lista button b { font-weight: 700; color: var(--tit); white-space: nowrap; font-size: 14.5px; }
.opc-lista button:hover { background: var(--azul-suave); }
.opc-lista button.on { background: var(--azul-claro); font-weight: 700; }
.opc-tag { font-style: normal; font-weight: 500; color: var(--cinza-2); font-size: 12px; }
.cpf-st { min-height: 0; }
.cpf-st.ok { color: var(--verde-texto) !important; font-weight: 600; }
.cpf-st.ruim { color: var(--verm-texto) !important; font-weight: 600; }
.mais-dados, .add-pessoas, .ao-novo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px dashed var(--borda); border-radius: 16px; padding: 12px 14px; margin: -2px 0 14px; background: transparent; color: var(--texto); }
.mais-dados .ic, .add-pessoas .ic, .ao-novo > span:first-child { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--azul-suave); color: var(--azul); font-weight: 800; font-size: 19px; }
.mais-dados .tx, .add-pessoas .tx { min-width: 0; }
.mais-dados b, .add-pessoas b { display: block; font-size: 15px; color: var(--azul); }
.mais-dados small, .add-pessoas small { display: block; font-size: 12.5px; color: var(--cinza); line-height: 1.35; }
.mais-dados.on { border-style: solid; border-color: var(--azul-claro); background: var(--azul-suave); border-radius: 16px 16px 0 0; margin-bottom: 0; }
.completo { padding: 14px 14px 2px; background: var(--azul-suave); border-radius: 0 0 16px 16px; margin: 0 0 14px; border: 1.5px solid var(--azul-claro); border-top: 0; }
.add-pessoas { border-color: var(--azul); border-width: 2px; padding: 14px; margin: 4px 0 16px; }
.pessoa { border: 1.5px solid var(--borda); border-radius: 16px; padding: 14px 14px 2px; margin-bottom: 12px; background: var(--sup); }
.pessoa.titular { padding-bottom: 0; }
.pessoa-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.pessoa-cab b { font-size: 15px; color: var(--tit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pessoa-cab .num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.pessoa-cab .ja { margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--verde-texto); background: var(--verde-suave); padding: 3px 9px; border-radius: 99px; }
.pessoa-cab .ja.azul { color: var(--azul); background: var(--azul-suave); }
.resumo-total .op { font-size: 13.5px; padding-left: 12px; }
.resumo-total small { font-size: 12px; color: var(--cinza-2); }
.resumo-total .vazio-res { justify-content: center; color: var(--cinza); }
/* ficha: pessoas e opcionais */
.cli-bloco h4 small { font-weight: 600; color: var(--cinza); font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.pes-lin { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--borda); color: var(--texto); }
.pes-lin:last-child { border-bottom: 0; }
.pes-lin .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--azul-suave); color: var(--azul); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.pes-lin .t { min-width: 0; }
.pes-lin b { display: block; font-size: 15px; }
.pes-lin small { display: block; color: var(--cinza); font-size: 12.5px; }
.pes-lin em { display: inline-block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--azul); background: var(--azul-suave); border-radius: 8px; padding: 3px 8px; margin: 5px 6px 0 0; }
/* cadastro de atividade: opcionais */
.ao-lista { display: grid; gap: 12px; margin-bottom: 12px; }
.ao-lista:empty { display: none; }
.ao-g { border: 1.5px solid var(--borda); border-radius: 16px; padding: 12px; background: var(--sup); }
.ao-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ao-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--azul); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ao-g input { width: 100%; height: 46px; border: 1.5px solid var(--borda); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--texto); background: var(--sup); outline: none; }
.ao-g input:focus { border-color: var(--azul); }
.ao-cab input { font-weight: 700; }
.ao-escs { display: grid; gap: 8px; padding-left: 34px; }
.ao-esc { display: grid; grid-template-columns: 1fr 108px 34px; gap: 6px; align-items: center; }
.ao-preco { position: relative; display: block; }
.ao-preco i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; font-weight: 700; color: var(--cinza); pointer-events: none; }
.ao-preco input { padding-left: 44px; }
.ao-x { width: 34px; height: 34px; border-radius: 50%; color: var(--cinza); font-size: 14px; flex-shrink: 0; }
.ao-x:hover { background: var(--verm-suave); color: var(--verm-texto); }
.ao-mais { margin: 8px 0 0 34px; font-weight: 700; color: var(--azul); font-size: 14px; padding: 6px 0; }
.ao-novo { margin: 0 0 16px; }
.ao-novo b, .ao-novo { color: var(--azul); font-weight: 700; font-size: 15px; }
.ao-novo small { margin-left: auto; font-weight: 500; color: var(--cinza); font-size: 12.5px; text-align: right; }
@media (max-width: 420px) {
  .ao-escs { padding-left: 0; }
  .ao-mais { margin-left: 0; }
  .ao-esc { grid-template-columns: 1fr 96px 30px; }
  .ao-novo small { display: none; }
}
.mais-dados.on .ic { background: var(--sup); }

/* ===== 2.2 · pop-ups maiores no computador, ficha em 3 colunas ===== */
.busca { height: 56px; font-size: 16.5px; padding-left: 50px; background-position: 19px center; background-size: 22px; }
@media (min-width: 901px) {
  .cartao-cli.on, .cartao-cli { width: min(1200px, calc(100vw - 64px)); max-height: min(90vh, 900px); }
  .cartao-cli { display: grid; grid-template-columns: 340px 1fr; align-items: start; }
  .ficha-lado { position: sticky; top: 0; align-self: start; border-right: 1px solid var(--borda); background: linear-gradient(180deg, var(--azul-claro), var(--sup) 260px); min-height: 100%; padding-bottom: 18px; }
  .ficha-lado .cli-topo { background: none; padding-top: 64px; }
  .ficha-lado .cli-acoes { grid-template-columns: 1fr; }
  .ficha-corpo { columns: 2; column-gap: 18px; padding: 24px 22px 8px; }
  .ficha-corpo > .cli-bloco { break-inside: avoid; margin: 0 0 18px; display: inline-block; width: 100%; }
  .ficha-corpo > .rodape-ficha { column-span: all; margin: 4px 0 18px; }
  .ficha-corpo > div[style*="height"] { display: none; }
  .janela, .janela.on { width: min(900px, calc(100vw - 64px)); max-height: min(92vh, 960px); }
  .janela .ativs { grid-template-columns: 1fr 1fr; align-items: start; }
  .janela-corpo { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .cartao-cli { grid-template-columns: 290px 1fr; }
  .ficha-corpo { columns: 1; }
}@media (min-width: 901px) { .ficha-lado .cli-topo .fechar { position: fixed; top: 16px; right: 16px; z-index: 3; box-shadow: 0 2px 10px rgba(14,42,79,.12); } }

/* ===== 2.2 · início, métricas, visões, menu do +, marca, fundo azul ===== */
/* barra de rolagem: invisível, aparece fininha só ao passar o mouse */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: rgba(107, 122, 144, .32) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; }
*:hover::-webkit-scrollbar-thumb { background: rgba(107, 122, 144, .3); }
.cartao-cli, .janela-corpo, .folha-corpo, .mais-menu { scrollbar-width: none; }
.cartao-cli::-webkit-scrollbar, .janela-corpo::-webkit-scrollbar, .folha-corpo::-webkit-scrollbar { display: none; }

/* fundo azul ibexGo (padrão) */
@media (min-width: 901px) {
  html:not([data-tema="black"]):not([data-fundo="claro"]) body { background: radial-gradient(1100px 700px at 0% 0%, #2169BF 0%, transparent 60%), radial-gradient(900px 600px at 100% 100%, #0E3A6E 0%, transparent 60%), #14539B; }
  html:not([data-tema="black"]):not([data-fundo="claro"]) .app { box-shadow: 0 30px 80px rgba(4, 20, 45, .45); }
  /* pop-ups maiores */
  .cartao-cli, .cartao-cli.on { width: min(1440px, calc(100vw - 48px)); max-height: calc(100vh - 48px); }
  .janela, .janela.on { width: min(1060px, calc(100vw - 48px)); max-height: calc(100vh - 48px); }
  .janela.larga, .janela.larga.on { width: min(1320px, calc(100vw - 48px)); }
  .msgs-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .msgs-grade textarea { min-height: 250px; }
}
@media (min-width: 1500px) { .cartao-cli { grid-template-columns: 380px 1fr; } }

/* marca da agência no menu e ibexGo pequena embaixo */
.marca-cli { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 56px; padding: 4px 2px; border-radius: 14px; text-align: center; }
.marca-cli img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--sup), 0 4px 14px rgba(14, 42, 79, .18); }
.marca-cli .mc-nome { font-size: 14px; font-weight: 800; line-height: 1.15; color: var(--tit); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.marca-cli .mc-nome.peq { font-size: 12px; font-weight: 700; color: var(--cinza); }
.marca-cli .mc-vazia { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--cinza-2); display: grid; place-items: center; color: var(--cinza); font-size: 22px; font-weight: 700; }
.marca-cli:hover { background: var(--sup); }
.marca-ibx { font-size: 13px; color: var(--cinza); text-align: center; margin-top: 6px; opacity: .8; }
.marca-ibx span { color: var(--amarelo); }
.marca-cel { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; text-align: left; }
.marca-cel img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); flex-shrink: 0; }
.marca-cel .mc-nome { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }

/* agenda: botões das visões */
.cab-dir { justify-self: end; display: flex; align-items: center; gap: 10px; }
.cab-dir .btn-hoje { justify-self: auto; }
.visoes { display: flex; gap: 2px; background: var(--azul-suave); padding: 4px; border-radius: 99px; }
.visoes button { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--cinza); }
.visoes svg { width: 18px; height: 18px; fill: currentColor; }
.visoes button.on { background: var(--sup); color: var(--azul); box-shadow: 0 2px 8px rgba(14, 42, 79, .1); }
.visoes button:hover:not(.on) { color: var(--azul); }
.visao-alt { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 2px 90px; }
#vAgenda[data-visao="kanban"] .mes-pilula { visibility: hidden; }
.lista-dia { margin-bottom: 18px; }
.lista-dia-cab { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 4px 8px; border-bottom: 1px solid var(--borda); margin-bottom: 10px; }
.lista-dia-cab b { font-size: 17px; color: var(--tit); text-transform: capitalize; }
.lista-dia-cab small { color: var(--cinza); font-size: 13px; }
.lista-dia.hoje .lista-dia-cab b { color: var(--azul); }
.lista-dia.hoje .lista-dia-cab b::after { content: 'hoje'; margin-left: 8px; font-size: 12px; background: var(--azul); color: #fff; padding: 2px 8px; border-radius: 99px; vertical-align: 2px; }
.lista-dia.passou { opacity: .72; }
.kb-dica { margin: 0 0 12px; color: var(--cinza); font-size: 13.5px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.kb-col { background: var(--azul-suave); border-radius: 18px; padding: 12px; min-height: 200px; transition: box-shadow .15s, background .15s; }
.kb-col.alvo { box-shadow: inset 0 0 0 2px var(--azul); background: var(--azul-claro); }
.kb-col header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 4px 12px; }
.kb-col header b { font-size: 15.5px; color: var(--tit); }
.kb-col header span { background: var(--sup); border-radius: 99px; padding: 1px 9px; font-size: 13px; font-weight: 700; color: var(--azul); }
.kb-col header small { width: 100%; color: var(--cinza); font-size: 12.5px; }
.kb-lista { display: grid; gap: 8px; }
.kb-card { position: relative; background: var(--sup); border-radius: 14px; box-shadow: 0 2px 10px rgba(14, 42, 79, .07); cursor: grab; overflow: hidden; }
.kb-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor); }
.kb-card.arrastando { opacity: .45; }
.kb-abre { display: block; width: 100%; text-align: left; padding: 11px 12px 11px 16px; }
.kb-abre b { display: block; font-size: 15px; }
.kb-abre small { display: block; color: var(--cinza); font-size: 12.5px; line-height: 1.4; }
.kb-abre .kb-at { color: var(--texto); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-selos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.kb-selos .selo { margin: 0; }
.kb-vazio { text-align: center; color: var(--cinza-2); font-size: 13px; margin: 18px 0; }

/* menu do + */
.fundo-mais { z-index: 60; }
.mais-menu { position: fixed; z-index: 61; right: 40px; bottom: 112px; width: 380px; background: var(--sup); border-radius: 24px; box-shadow: var(--sombra-alta); padding: 14px; opacity: 0; transform: translateY(10px) scale(.98); transform-origin: bottom right; pointer-events: none; transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.mais-menu.on { opacity: 1; transform: none; pointer-events: auto; }
.mm-cab { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.mm-cab b { font-size: 16px; color: var(--tit); }
.mm-op { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 11px 10px; border-radius: 16px; transition: background .12s; }
.mm-op:hover { background: var(--azul-suave); }
.mm-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--azul-suave); color: var(--azul); }
.mm-ic svg { width: 22px; height: 22px; fill: currentColor; }
.mm-ic b { font-size: 20px; }
.mm-op.pri .mm-ic { background: var(--azul); color: #fff; }
.mm-op.verde .mm-ic { background: var(--verde-suave); color: var(--verde-texto); }
.mm-op.verm .mm-ic { background: var(--verm-suave); color: var(--verm-texto); }
.mm-tx b { display: block; font-size: 15.5px; }
.mm-tx small { color: var(--cinza); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .mais-menu { transition: none; } }

/* gráficos */
.cartao.graf h3 small, .cartao h3 small { font-weight: 500; color: var(--cinza); font-size: 12.5px; margin-left: 6px; }
.colunas { display: flex; align-items: stretch; gap: 6px; height: 190px; padding-top: 6px; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border-radius: 10px; }
.col-v { font-size: 12px; font-weight: 700; color: var(--tit); visibility: hidden; white-space: nowrap; }
.col.mostra .col-v, .col:hover .col-v { visibility: visible; }
.col-b { flex: 1; width: 100%; max-width: 34px; display: flex; align-items: flex-end; }
.col-b i { display: block; width: 100%; background: var(--azul); opacity: .55; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.col.on .col-b i, .col:hover .col-b i { opacity: 1; }
.col-r { font-size: 12px; color: var(--cinza); font-weight: 600; }
.col-s { font-size: 12px; color: var(--texto); font-weight: 700; margin-top: -4px; }
.col.on .col-r, .col.on .col-s { color: var(--azul); }
.bar-lin { padding: 8px 2px; border-bottom: 1px solid var(--borda); }
.bar-lin:last-child { border-bottom: 0; }
.bar-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.bar-t b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-t span { font-weight: 700; color: var(--tit); white-space: nowrap; }
.bar-lin small { display: block; color: var(--cinza); font-size: 12.5px; margin-top: 2px; }
.bar-lin .barra { display: block; height: 6px; background: var(--sup); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bar-lin .barra i { display: block; height: 100%; background: var(--azul); border-radius: 99px; }
.mapa-caixa { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 18px; align-items: start; margin-top: 10px; }
.mapa-uf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.uf { aspect-ratio: 1; border-radius: 8px; background: var(--sup); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; color: var(--cinza-2); }
.uf b { font-size: 11px; font-weight: 700; }
.uf small { font-size: 11px; font-weight: 800; }
.uf.tem { background: color-mix(in srgb, var(--azul) var(--p), var(--azul-claro)); color: var(--tit); }
.uf.esc { color: #fff; }
.mapa-lado .mini { margin: 8px 2px 0; font-size: 13px; color: var(--cinza); }
@media (max-width: 1100px) { .mapa-caixa { grid-template-columns: 1fr; } .mapa-uf { max-width: 320px; } }

/* início */
button.kpi { text-align: left; width: 100%; cursor: pointer; }
.linha.alerta-l { cursor: pointer; }
.linha.alerta-l .v { color: var(--azul); font-weight: 700; font-size: 14px; }
.ic-l { flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.ic-l.am { background: var(--amarelo-suave); color: var(--amarelo-texto); }
.ic-l.az { background: var(--azul-claro); color: var(--azul); }
.ic-l.vm { background: var(--verm-suave); color: var(--verm-texto); }
.cartao.bom-c { background: var(--verde-suave); }
.cartao.bom-c b { color: var(--verde-texto); }
.linha.clicavel { cursor: pointer; }
.linha.clicavel:hover { box-shadow: inset 0 0 0 1.5px var(--azul-claro); }

/* formulário: campos em grade */
.grade-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grade-campos > .gc { min-width: 0; }
.grade-campos > .gc.larga { grid-column: 1 / -1; }
.duas.cid-uf { grid-template-columns: 1fr 112px; }
.campo-cfg { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.campo-cfg b { display: block; font-size: 15px; }
.campo-cfg small { color: var(--cinza); font-size: 12.5px; }
.campo-cfg .segmento { flex-shrink: 0; width: 340px; max-width: 60%; }
.segmento.tres { grid-template-columns: 1fr 1fr 1fr; }
.segmento.tres span { font-size: 13px; padding: 10px 4px; }
@media (max-width: 600px) { .campo-cfg { flex-direction: column; align-items: stretch; } .campo-cfg .segmento { width: 100%; max-width: none; } }
.tema-op.tres { grid-template-columns: 1fr 1fr 1fr; }
.tema-op .azul { background: linear-gradient(135deg, #14539B 30%, #fff 30%, #fff 70%, #0E3A6E 70%); }
.logo-up { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--azul-suave); border-radius: 18px; margin-bottom: 16px; }
.logo-up b { display: block; font-size: 15px; }
.logo-up small { display: block; color: var(--cinza); font-size: 13px; line-height: 1.45; margin: 2px 0 8px; }
.logo-up .acoes { display: flex; gap: 8px; }
.logo-up label.btn-mini { display: inline-flex; align-items: center; cursor: pointer; }
.logo-prev { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--sup); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--sup), 0 4px 14px rgba(14, 42, 79, .15); }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.logo-prev span { font-size: 26px; font-weight: 800; color: var(--azul); }
.emp-marca { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; }
.emp-marca img, .emp-marca .emp-ini { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.emp-marca .emp-ini { display: grid; place-items: center; background: var(--sup); color: var(--azul); font-weight: 800; }
.emp-marca small { color: var(--cinza); font-size: 13px; }
/* ficha do cliente: dados editáveis */
.dados-cli { background: var(--azul-suave); border-radius: 18px; padding: 14px 14px 4px; margin-top: 8px; }
.dados-cli .campo input, .dados-cli .campo select, .dados-cli .campo textarea { background: var(--sup); }
.salvo-st { margin: 0 2px 12px; font-size: 12.5px; color: var(--cinza); }
.salvo-st .ok { color: var(--verde-texto); font-weight: 700; }

/* celular */
@media (max-width: 900px) {
  .cab-dir { gap: 6px; }
  .visoes button { padding: 0 9px; height: 32px; }
  .visoes button span { display: none; }
  .centro-cab { grid-template-columns: 1fr auto; }
  .kanban { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
  .kb-col { flex: 0 0 82%; scroll-snap-align: start; }
  .visao-alt { padding: 0 4px 120px; }
  .mais-menu { left: 10px; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); width: auto; transform-origin: bottom center; }
  .grade-campos > .gc.larga { grid-column: 1 / -1; }
}
/* ajustes finos 2.2 */
.grade2 > div { min-width: 0; }
.cartao { min-width: 0; }
.colunas, .col-r, .col-s { min-width: 0; }
.trilho { gap: 10px; padding: 14px 8px; }
.trilho-menu { gap: 2px; margin-top: 2px; }
.trilho-menu a, .trilho-pe a, .trilho-pe button { padding: 7px 4px; gap: 3px; }
.trilho-pe { gap: 0; }
.relogio b { font-size: 24px; }
@media (max-height: 820px) and (min-width: 901px) { .relogio { display: none; } .trilho-menu a, .trilho-pe a, .trilho-pe button { padding: 6px 4px; font-size: 12px; } }
@media (max-width: 900px) {
  #vAgenda .mes-pilula b { white-space: nowrap; font-size: 24px; }
  .colunas { gap: 3px; height: 170px; }
  .col-r, .col-s { font-size: 10.5px; }
  .cartao h3 small { display: block; margin: 2px 0 0; }
}@media (max-width: 900px) {
  .btn-hoje.some { display: none; }
  .cab-dir { min-width: 0; }
  .tela .uf:not(.tem) { background: var(--azul-suave); }
  .mapa-uf { max-width: 100%; }
}
/* ===== 2.3 · marcas fixas, mapa do Brasil, início completo, kanban estilo Trello ===== */
/* menu lateral: marca da agência fixa no alto, ibexGo fixa embaixo */
.trilho { position: relative; }
.marca-cli { position: sticky; top: -14px; z-index: 3; background: var(--azul-suave); padding: 10px 2px 8px; margin-top: -4px; }
.marca-cli .mc-ini { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sup); color: var(--azul); font-size: 20px; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 0 0 3px var(--azul-claro), 0 4px 14px rgba(14, 42, 79, .14); }
.marca-ibx { position: sticky; bottom: -14px; z-index: 3; margin: 4px -8px -14px; padding: 12px 6px 14px; background: var(--azul-suave); border-top: 1px solid var(--borda); opacity: 1; font-size: 19px; color: var(--azul); }
.marca-ibx b { font-weight: 800; }
.marca-ibx span { color: var(--amarelo); font-weight: 800; }
html[data-tema="black"] .marca-ibx { color: #fff; }
/* mapa do Brasil (mesmo desenho do PLUS) */
.mapa-br { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
.mapa-br .pais { fill: var(--sup); stroke: var(--cinza-2); stroke-width: 1.2; stroke-linejoin: round; }
.mapa-br .rot { font: 700 9px Outfit, sans-serif; fill: var(--cinza-2); text-anchor: middle; }
.mapa-br .bolha circle { fill: var(--azul); fill-opacity: .26; stroke: var(--azul); stroke-width: 1.5; transition: stroke-width .15s, fill-opacity .15s; cursor: default; }
.mapa-br .bolha:hover circle { stroke-width: 3; fill-opacity: .4; }
.mapa-br .num { font: 800 10px Outfit, sans-serif; fill: var(--tit); text-anchor: middle; pointer-events: none; }
.mapa-caixa { grid-template-columns: minmax(220px, 360px) 1fr; }
.tela .mapa-br .pais { fill: var(--azul-suave); }
.cartao .mapa-br .pais { fill: var(--sup); }
/* início */
.kpis-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis-6 .kpi b { font-size: 21px; }
.ini-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.ini-grade .cartao { margin: 0; }
.ini-grade .larga2 { grid-column: span 2; }
.cartao h3 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cartao h3 .btn-mini { margin-left: auto; height: 30px; font-size: 13px; padding: 0 12px; }
.medidor { text-align: center; padding: 6px 0 4px; }
.medidor svg { width: 100%; max-width: 220px; display: block; margin: 0 auto; }
.medidor path { fill: none; stroke-width: 12; stroke-linecap: round; }
.medidor .trilha { stroke: var(--sup); }
.medidor.bom .valor { stroke: #12B76A; } .medidor.medio .valor { stroke: #F79009; } .medidor.ruim .valor { stroke: #F04438; }
.medidor b { display: block; font-size: 30px; font-weight: 800; color: var(--tit); margin-top: -8px; }
.medidor span { display: block; font-size: 14px; font-weight: 600; color: var(--texto); }
.medidor small { display: block; font-size: 12.5px; color: var(--cinza); margin-top: 2px; }
.rosca { display: flex; align-items: center; gap: 16px; }
.rosca svg { width: 140px; flex-shrink: 0; transform: rotate(-90deg); }
.rosca svg text { transform: rotate(90deg); transform-origin: 50px 50px; text-anchor: middle; font: 800 18px Outfit, sans-serif; fill: var(--tit); }
.rosca svg text.s { font: 600 8.5px Outfit, sans-serif; fill: var(--cinza); }
.rosca circle { fill: none; stroke-width: 14; }
.rosca .fundo-r { stroke: var(--sup); }
.c-pago { stroke: #12B76A; background: #12B76A; } .c-parcial { stroke: #F79009; background: #F79009; } .c-aberto { stroke: #F04438; background: #F04438; } .c-pend { stroke: #A3AEBF; background: #A3AEBF; }
.rosca-leg { display: grid; gap: 8px; flex: 1; min-width: 0; }
.rosca-leg span { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rosca-leg i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.rosca-leg b { margin-left: auto; color: var(--tit); }
.saldo-lin { display: block; width: 100%; text-align: left; padding: 8px 2px; border-bottom: 1px solid var(--borda); }
.saldo-lin:last-child { border-bottom: 0; }
.saldo-lin span { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.saldo-lin em { font-style: normal; font-weight: 800; color: var(--verm-texto); white-space: nowrap; }
.saldo-lin small { display: block; color: var(--cinza); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saldo-lin i { display: block; height: 5px; border-radius: 99px; background: #F04438; opacity: .75; margin-top: 6px; }
.res-lin { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--borda); font-size: 14.5px; }
.res-lin:last-child { border-bottom: 0; }
.res-lin b.az { color: var(--azul); } .res-lin b.ok { color: var(--verde-texto); } .res-lin b.deve { color: var(--laranja-texto); }
.ini-grade .linha { background: var(--sup); }
.bom-c b { color: var(--verde-texto); }
.bom-c p { margin: 4px 0 0; color: var(--cinza); font-size: 14px; }
/* kanban: cada coluna rola por dentro, sem rolagem gigante */
#vAgenda[data-visao="kanban"] .visao-alt { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 6px; }
#vAgenda[data-visao="kanban"] .kanban { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.kb-col { display: flex; flex-direction: column; min-height: 0; max-height: 100%; }
.kb-lista { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 2px 4px 4px 2px; margin-right: -4px; overscroll-behavior: contain; }
.kb-lista::-webkit-scrollbar { width: 6px; }
.kb-mais { width: 100%; padding: 10px; border-radius: 12px; color: var(--azul); font-weight: 700; font-size: 13.5px; }
.kb-mais:hover { background: var(--sup); }
@media (max-width: 1300px) { .kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ini-grade { grid-template-columns: 1fr 1fr; } .ini-grade .larga2 { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .kpis-6 { grid-template-columns: 1fr 1fr; }
  .ini-grade { grid-template-columns: 1fr; }
  .ini-grade .cartao { background: var(--sup); }
  .ini-grade .linha { background: var(--azul-suave); }
  .medidor .trilha, .rosca .fundo-r { stroke: var(--azul-suave); }
  .mapa-caixa { grid-template-columns: 1fr; }
  #vAgenda[data-visao="kanban"] .visao-alt { padding-bottom: 104px; }
  .kb-col { max-height: 100%; }
}
.kb-lista { grid-auto-rows: max-content; align-content: start; }
.kb-card { flex-shrink: 0; }

/* 2.4 · editor do formulário com grupos e campos próprios */
.cfg-conta { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--azul); }
.cfg-grupo { margin-top: 14px; }
.cfg-grupo h4 { margin: 0 0 2px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--cinza); }
.cfg-x { margin-left: 6px; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: var(--cinza); vertical-align: 1px; }
.cfg-x:hover { background: var(--verm-suave); color: var(--verm-texto); }
.cfg-novo { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; margin-top: 10px; padding: 12px; border: 1.5px dashed var(--borda); border-radius: 16px; }
.cfg-novo input, .cfg-novo select { height: 46px; border: 1.5px solid var(--borda); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--texto); background: var(--sup); min-width: 0; }
.cfg-novo .btn-mini { height: 46px; }
@media (max-width: 600px) { .cfg-novo { grid-template-columns: 1fr; } }
/* 2.4.1 · lista branca e ancorada em hoje; kanban de tela cheia no celular */
.lista-dia.passou { opacity: 1; }
.lista-dia.passou .lista-dia-cab b { color: var(--cinza); }
.lista-dia-cab { position: sticky; top: 0; z-index: 2; background: var(--sup); }
.visao-alt .tarefa { background: var(--sup); box-shadow: 0 1px 0 var(--borda), 0 2px 10px rgba(14, 42, 79, .05); }
html[data-tema="black"] .visao-alt .tarefa { box-shadow: 0 1px 0 var(--borda); }
@media (max-width: 900px) {
  #vAgenda[data-visao="lista"] .visao-alt { background: var(--sup); border-radius: 22px; padding: 4px 12px 120px; box-shadow: 0 4px 20px rgba(14, 42, 79, .06); }
  #vAgenda[data-visao="lista"] .visao-alt .tarefa { background: var(--azul-suave); box-shadow: none; }
  /* kanban: colunas até o fim da tela, a última linha passa por baixo do menu */
  #vAgenda[data-visao="kanban"] .mes-pilula { display: none; }
  #vAgenda[data-visao="kanban"] .centro-cab { grid-template-columns: 1fr; }
  #vAgenda[data-visao="kanban"] .visao-alt { padding: 0 0 0; margin: 0 -14px; }
  .kb-dica { display: none; }
  .kanban { gap: 10px; padding: 0 14px; scroll-padding: 0 14px; height: 100%; }
  .kb-col { flex: 0 0 86%; height: 100%; max-height: none; border-radius: 22px 22px 0 0; padding: 12px 10px 0; background: var(--sup); box-shadow: 0 4px 20px rgba(14, 42, 79, .07); }
  .kb-col header { margin: 2px 4px 10px; }
  .kb-lista { padding-bottom: 120px; }
  .kb-card { background: var(--azul-suave); box-shadow: none; }
}
/* 2.4.2 · lista do dia e visão Lista: cartões brancos e iguais */
.folha .tarefa, .visao-alt .tarefa, #vAgenda[data-visao="lista"] .visao-alt .tarefa { background: var(--sup); border: 1px solid var(--borda); border-left: 4px solid var(--cor, var(--azul)); box-shadow: none; }
@media (hover: none) { .tarefa:hover { background: inherit; box-shadow: none; } .folha .tarefa:hover, .visao-alt .tarefa:hover { background: var(--sup); } }
@media (hover: hover) { .folha .tarefa:hover, .visao-alt .tarefa:hover { box-shadow: 0 4px 14px rgba(14, 42, 79, .08); } }
.folha, .folha-corpo { background: var(--sup); }
/* 2.4.3 · buscas nunca espremidas; sem sombra vazando no celular */
.tela > *, .visao-alt > * { flex-shrink: 0; }
.busca, input[type="search"].busca { flex-shrink: 0; min-height: 56px; height: 56px; -webkit-appearance: none; appearance: none; }
@media (max-width: 900px) {
  .cartao-cli, .janela { box-shadow: none; }
  .cartao-cli:not(.on), .janela:not(.on), .gaveta:not(.on) { box-shadow: none; }
  .busca { min-height: 54px; height: 54px; }
}
/* ===== 2.5 · início alinhado e gestão da atividade ===== */
.ini-grade { align-items: stretch; grid-auto-flow: row dense; }
.ini-grade > .cartao { height: 100%; }
.ini-grade .larga3 { grid-column: 1 / -1; }
.ini-ativs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ini-ativ { position: relative; text-align: left; background: var(--sup); border-radius: 16px; padding: 12px 14px 12px 18px; overflow: hidden; transition: box-shadow .15s; }
.ini-ativ::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cor); }
.ini-ativ:hover { box-shadow: 0 6px 18px rgba(14, 42, 79, .1); }
.ini-ativ b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ini-ativ small { display: block; color: var(--cinza); font-size: 12.5px; margin-top: 2px; }
.ini-ativ span { display: flex; gap: 8px; margin-top: 8px; font-size: 12.5px; font-weight: 700; }
.ini-ativ i { font-style: normal; color: var(--azul); }
.ini-ativ em { font-style: normal; color: var(--laranja-texto); }
.voltar-tela { display: inline-flex; align-items: center; gap: 4px; color: var(--azul); font-weight: 700; font-size: 14.5px; margin: 0 0 12px -4px; }
.voltar-tela svg { width: 22px; height: 22px; fill: currentColor; }
.ativ-cab { position: relative; background: linear-gradient(135deg, #14539B, #0E3A6E); color: #fff; border-radius: 24px; padding: 22px 24px; margin-bottom: 16px; overflow: hidden; }
.ativ-cab::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cor); }
html[data-tema="black"] .ativ-cab { background: linear-gradient(135deg, #16273D, #0D1824); }
.ac-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ac-top h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.ac-top p { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.ac-top .ac-prox { color: #FFE08A; }
.ac-top .ac-prox b { color: #fff; }
.ac-bts { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-mini.clara { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-mini.amarela { background: var(--amarelo); color: #0E3A6E; }
.ac-kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ac-kpis div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ac-kpis span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .75); font-weight: 700; }
.ac-kpis b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abas { display: flex; gap: 4px; background: var(--azul-suave); border-radius: 16px; padding: 5px; margin: 4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.abas button { flex-shrink: 0; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--cinza); white-space: nowrap; }
.abas button.on { background: var(--sup); color: var(--azul); box-shadow: 0 2px 8px rgba(14, 42, 79, .08); }
.sd-lin { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--azul-suave); border-radius: 18px; margin-bottom: 8px; }
.sd-d { width: 56px; height: 56px; border-radius: 14px; background: var(--sup); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.sd-d b { font-size: 20px; color: var(--tit); } .sd-d small { font-size: 11px; color: var(--cinza); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.sd-t { min-width: 0; } .sd-t b { display: block; font-size: 15px; text-transform: capitalize; } .sd-t small { display: block; color: var(--cinza); font-size: 13px; }
.sd-barra { display: block; height: 7px; background: var(--sup); border-radius: 99px; margin-top: 7px; overflow: hidden; max-width: 420px; }
.sd-barra i { display: block; height: 100%; background: var(--azul); border-radius: 99px; }
.sd-barra i.cheio { background: #12B76A; }
.sd-v { text-align: right; } .sd-v b { display: block; font-size: 17px; color: var(--tit); } .sd-v small { color: var(--cinza); font-size: 12px; }
.tab-ativ { background: var(--azul-suave); border-radius: 18px; padding: 6px; }
.ta-cab, .ta-lin { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr .7fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 12px; text-align: left; width: 100%; }
.ta-cab { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); font-weight: 700; }
.ta-lin { background: var(--sup); border-radius: 12px; margin-top: 4px; font-size: 14px; }
.ta-lin:hover { box-shadow: 0 4px 14px rgba(14, 42, 79, .08); }
.ta-lin b { display: block; font-size: 15px; } .ta-lin small { display: block; color: var(--cinza); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-lin .ok { color: var(--verde-texto); font-weight: 700; } .ta-lin .deve { color: var(--laranja-texto); font-weight: 700; }
.ta-lin.canc { opacity: .55; }
.res-lin small { display: block; font-size: 12px; color: var(--cinza); font-weight: 500; }
.cartao.emb h3 small { margin-left: 0; }
.emb-lin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--borda); }
.emb-lin:last-child { border-bottom: 0; }
.emb-lin b { font-size: 15px; } .emb-lin small { display: block; color: var(--cinza); font-size: 12.5px; }
.emb-lin em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; }
.presenca.mini { display: flex; gap: 6px; flex-shrink: 0; }
.presenca.mini button { padding: 8px 12px; font-size: 13px; }
@media (max-width: 1200px) { .ac-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ac-top { flex-direction: column; }
  .ac-kpis { grid-template-columns: 1fr 1fr; }
  .ativ-cab { padding: 18px; border-radius: 20px; }
  .ac-top h1 { font-size: 22px; }
  .sd-lin { grid-template-columns: 50px 1fr auto; } .sd-lin > .btn-mini { grid-column: 2 / -1; justify-self: start; }
  .sd-d { width: 50px; height: 50px; }
  .ta-cab { display: none; }
  .ta-lin { grid-template-columns: 1fr auto; } .ta-lin > span:nth-child(3), .ta-lin > span:nth-child(4), .ta-lin > span:nth-child(5) { display: none; }
  .ini-ativs { grid-template-columns: 1fr; }
  .tela .sd-lin, .tela .tab-ativ { background: var(--sup); }
  .tela .sd-d, .tela .ta-lin { background: var(--azul-suave); }
}
/* 2.5.1 · lista de atividades mais completa */
.ativ-lin { position: relative; display: grid; grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 18px; align-items: center; padding: 20px 20px 20px 26px; border-radius: 20px; background: var(--azul-suave); margin-bottom: 10px; cursor: pointer; transition: box-shadow .15s, background .15s; overflow: hidden; }
.ativ-lin::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cor); }
.ativ-lin:hover { background: var(--sup); box-shadow: 0 8px 24px rgba(14, 42, 79, .1); }
.ativ-lin.apagada { opacity: .6; }
.al-info b { display: block; font-size: 17px; font-weight: 700; color: var(--tit); }
.al-info small { display: block; color: var(--cinza); font-size: 13.5px; margin-top: 3px; }
.al-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.al-chips span { font-size: 12px; font-weight: 700; color: var(--azul); background: var(--sup); border-radius: 99px; padding: 4px 10px; }
.al-chips span.pt { color: var(--texto); font-weight: 600; }
.al-chips span.sem { color: var(--cinza-2); font-weight: 600; }
.al-num span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); font-weight: 700; }
.al-num b { display: block; font-size: 17px; color: var(--tit); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-num small { display: block; font-size: 12.5px; color: var(--cinza); margin-top: 1px; }
.al-num small.deve { color: var(--laranja-texto); font-weight: 700; } .al-num small.ok { color: var(--verde-texto); font-weight: 700; }
.al-barra { display: block; height: 6px; border-radius: 99px; background: var(--sup); margin-top: 6px; overflow: hidden; max-width: 140px; }
.al-barra i { display: block; height: 100%; background: var(--azul); border-radius: 99px; }
.ativ-lin .acao { display: flex; gap: 8px; }
@media (max-width: 1200px) { .ativ-lin { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; } .ativ-lin .al-num:nth-of-type(4) { display: none; } }
@media (max-width: 900px) {
  .ativ-lin { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 16px 16px 22px; background: var(--sup); }
  .ativ-lin .al-info { grid-column: 1 / -1; }
  .ativ-lin .al-num:nth-of-type(4) { display: block; }
  .ativ-lin .acao { grid-column: 1 / -1; }
  .ativ-lin .acao .btn-mini { flex: 1; }
  .al-chips span { background: var(--azul-suave); }
}