/* Ecrã de escolha e reativação de contactos. Usa os tokens de painel.css */
:root { --aviso: #A36100; --aviso-bg: rgba(224, 138, 44, .14); }

/* Início: escolha entre reativação e dashboards */
.inicio { min-height: 100vh; }
.hero-inicio { margin-top: 0; padding-bottom: 150px; }
.hero-inicio .hero-main { margin-top: 28px; }
.escolha { position: relative; z-index: 2; margin-top: calc(-1 * var(--gap) - 104px); padding-inline: clamp(12px, 2vw, 28px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 16px; }
.opcao { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 26px 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); color: var(--fg); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.opcao:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.opcao:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.opcao-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--hero); color: #fff; box-shadow: 0 10px 22px -10px rgba(36, 64, 179, .8); }
.opcao-ico svg { width: 24px; height: 24px; }
.opcao-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opcao-txt b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); }
.opcao-txt span { font-size: 13.5px; color: var(--muted); }
.opcao-seta { font-size: 22px; color: var(--brand); transition: transform .45s var(--ease); }
.opcao:hover .opcao-seta { transform: translateX(4px); }

/* Cabeçalho da reativação */
.hero-reat { padding-bottom: 150px; }
.hero-reat .hero-main { margin-top: 26px; }
.ver-como { gap: 8px; }
.ver-como select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: #fff; font: 600 12.5px var(--font); cursor: pointer; padding-right: 2px; }
.ver-como select option { color: var(--fg); }
.vista[hidden] { display: none !important; }
.vista { display: flex; flex-direction: column; gap: 16px; }
.sec-h-claro { padding-inline: clamp(20px, 3vw, 40px); justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 16px; }
.sec-h-claro h2 { color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.sec-h-claro p { color: rgba(255, 255, 255, .72); }
.sec-h-claro .periodo { box-shadow: none; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #14246E, var(--brand) 60%, var(--brand-2)); color: #fff; font: 600 14px var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(36, 64, 179, .8); transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(36, 64, 179, .9); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible, .op:focus-visible, .copiar:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-sec { background: #fff; color: var(--navy); border: 1px solid rgba(14, 26, 79, .14); box-shadow: none; }
.btn-sec:hover { box-shadow: 0 6px 16px -8px rgba(14, 26, 79, .35); }
.btn-grande { width: 100%; max-width: 22rem; padding: 16px 28px; font-size: 16px; }

/* Quota do dia */
.quota { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px; }
.q-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.q-item > span { font-size: 12.5px; color: var(--muted); }
.q-item > b { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; color: var(--navy); line-height: 1.1; }
.q-item > b small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.q-item > small { font-size: 12px; color: var(--muted); }
.q-obj .obj-tr { margin: 6px 0 8px; }
.q-obj .selo { align-self: flex-start; }

/* Cartão do contacto */
.fila-palco { display: grid; place-items: center; padding: 8px 0 20px; }
.contacto { width: min(100%, 36rem); padding: 36px 32px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.contacto.entra { opacity: 1; transform: none; }
.contacto.sai { opacity: 0; transform: translateX(-40px) scale(.98); transition-duration: .3s; }
.c-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badge { padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 12.5px; font-weight: 600; }
.badge-novo { background: var(--ok-bg); color: var(--ok); }
.badge-sub { background: rgba(14, 26, 79, .05); color: var(--muted); font-weight: 500; }
.c-nome { margin: 6px 0 0; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.035em; color: var(--navy); line-height: 1.1; }
.c-tel { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tel { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; letter-spacing: .01em; text-decoration: none; transition: background .3s var(--ease); }
.tel:hover { background: rgba(36, 64, 179, .15); }
.tel svg { width: 20px; height: 20px; }
.copiar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(14, 26, 79, .12); background: #fff; color: var(--muted); cursor: pointer; transition: color .3s, border-color .3s; }
.copiar:hover { color: var(--brand); border-color: rgba(36, 64, 179, .4); }
.copiar svg { width: 17px; height: 17px; }
.fila-vazia { width: min(100%, 36rem); text-align: center; }
.fila-vazia h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.fila-vazia p { margin: 0 0 16px; color: var(--muted); }

/* Folha de resultados e confirmação */
.folha[hidden] { display: none; }
.folha { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.folha-fundo { position: absolute; inset: 0; background: rgba(11, 20, 64, .42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s var(--ease); }
.folha-caixa { position: relative; width: min(100%, 40rem); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px 24px; border-radius: var(--r-lg); background: #FAFBFE; box-shadow: 0 30px 70px -20px rgba(11, 20, 64, .6); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .22s var(--ease), transform .3s var(--ease); }
.folha.on .folha-fundo, .folha.on .folha-caixa { opacity: 1; transform: none; }
.folha-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.folha-h h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); letter-spacing: -0.015em; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(14, 26, 79, .06); color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; }
.folha-corpo { display: flex; flex-direction: column; gap: 16px; }
.op-grupo { display: flex; flex-direction: column; gap: 8px; }
.op-g { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.op-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 8px; }
.op { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(14, 26, 79, .1); background: #fff; color: var(--fg); font: 500 14px/1.3 var(--font); text-align: left; cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
.op:hover { border-color: rgba(36, 64, 179, .45); background: #F2F5FD; transform: translateY(-1px); }
.op-na { width: 100%; padding: 15px; text-align: center; font-weight: 600; background: var(--navy); color: #fff; border-color: transparent; }
.op-na:hover { background: #14246E; color: #fff; }
.voltar-op { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: var(--brand); font: 500 13.5px var(--font); cursor: pointer; }
.outro-f { display: flex; flex-direction: column; gap: 8px; }
.outro-f label { font-size: 13.5px; font-weight: 500; color: var(--navy); }
.outro-f textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(14, 26, 79, .16); font: 400 14.5px/1.4 var(--font); resize: vertical; }
.outro-f textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.outro-f small { align-self: flex-end; color: var(--muted); font-size: 12px; }
.outro-f .btn { align-self: flex-end; }
.conf { display: flex; flex-direction: column; gap: 12px; }
.conf-q { margin: 0; color: var(--muted); }
.conf-q b { color: var(--navy); }
.conf-r { padding: 14px 16px; border-radius: 14px; background: var(--soft); color: var(--navy); font-size: 16px; font-weight: 600; }
.conf-l { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--fg); }
.conf-l code { padding: 1px 7px; border-radius: 6px; background: rgba(14, 26, 79, .06); font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); }
.conf-ac { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 70; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 13.5px; box-shadow: 0 14px 30px -10px rgba(11, 20, 64, .6); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Objetivo e estados */
.obj-tr { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.obj-tr i { display: block; height: 100%; border-radius: 999px; transition: width 1.2s var(--ease); }
.obj-ok { background: var(--ok); }
.obj-aviso { background: #E08A2C; }
.obj-mau { background: var(--bad); }
.obj-neutro { background: #AEBDF2; }
.selo { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.selo svg { width: 13px; height: 13px; }
.selo-ok { background: var(--ok-bg); color: var(--ok); }
.selo-aviso { background: var(--aviso-bg); color: var(--aviso); }
.selo-mau { background: var(--bad-bg); color: var(--bad); }
.selo-neutro { background: rgba(14, 26, 79, .06); color: var(--muted); }

/* Período (botões segmentados) */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); flex-wrap: wrap; }
.seg button { padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .85); font: 500 13px var(--font); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: var(--navy); }

/* KPIs da reativação */
.kpi-r { padding: 18px 20px; }
.kpi-r .val { margin: 12px 0 6px; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.95rem); }
.kpi-r .sub { font-size: 12.5px; color: var(--muted); }
.kpi-accent .sub { color: rgba(255, 255, 255, .75); }

/* Barra empilhada do estado da base */
.empilhada { display: flex; gap: 2px; height: 26px; border-radius: 9px; overflow: hidden; }
.empilhada i { min-width: 3px; transition: opacity .3s; cursor: default; }
.empilhada:hover i:not(:hover) { opacity: .6; }
.leg-linha { margin-top: 14px; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
.leg-linha li { flex: 1 1 14rem; }

/* Cartão por caller */
.caller { display: flex; flex-direction: column; gap: 16px; }
.caller-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.caller-h h3 { margin: 0 auto 0 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.ponto { width: 12px; height: 12px; border-radius: 50%; }
.obj-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.obj-h b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--navy); }
.obj-h b small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 8px; }
.mi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(14, 26, 79, .035); }
.mi span { font-size: 12px; color: var(--muted); }
.mi b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.mi small { font-size: 11.5px; color: var(--muted); }
.det { display: flex; flex-direction: column; gap: 6px; }
.det-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.det-r { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr 2.6rem; gap: 10px; align-items: center; font-size: 13px; }
.det-r b { text-align: right; color: var(--navy); }
.det-tr { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.det-tr i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.det-r-lg { grid-template-columns: minmax(10rem, 22rem) 1fr 3rem; padding: 6px 0; }
.caller-rod { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Gráficos */
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grelha { stroke: var(--line); stroke-width: 1; }
.meta { stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .7; }
.tick-meta { fill: var(--navy); font-weight: 600; }
.tick-v { fill: var(--fg); font-weight: 600; }
.barra { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1s var(--ease) calc(var(--i) * 40ms + .1s); }
.in .barra { transform: scaleY(1); }
.l-real { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.l-plano { fill: none; stroke: #8A90A8; stroke-width: 2; stroke-dasharray: 6 5; }
.p-real { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.leg-callers { display: flex; gap: 16px; margin-bottom: 10px; font-size: 13px; color: var(--fg); }
.leg-callers span { display: inline-flex; align-items: center; gap: 7px; }
.leg-callers i { width: 10px; height: 10px; border-radius: 3px; }
.leg-callers .li-real { height: 3px; width: 16px; border-radius: 2px; background: var(--brand); }
.leg-callers .li-plano { height: 0; width: 16px; border-top: 2px dashed #8A90A8; border-radius: 0; }

/* Tabelas da reativação */
.tbl td.forte { font-weight: 600; color: var(--navy); }
.minibarra { display: inline-block; width: 52px; height: 6px; margin-right: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; vertical-align: middle; }
.minibarra i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.calor td { text-align: center !important; }
.calor td:not(:first-child) { background: rgba(36, 64, 179, calc(var(--a, 0) * .55)); }
.calor td b { display: block; font-weight: 600; color: var(--navy); }
.calor td small { font-size: 11px; color: var(--muted); }
.calor td.vazio { background: transparent; color: #A6ACC4; }
.calor tbody tr:hover td:not(:first-child) { background: rgba(36, 64, 179, calc(var(--a, 0) * .55)); }
.calor th { text-align: center; }
.tbl .esq { text-align: left; }
.tbl td.texto { white-space: normal; min-width: 16rem; }

/* Definições */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 18px 22px; }
.defs label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--navy); }
.defs input { padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(14, 26, 79, .16); background: #fff; font: 400 14.5px var(--font); color: var(--fg); }
.defs input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.defs small { font-weight: 400; font-size: 12px; color: var(--muted); }
.defs-blocos { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--fg); }
.defs-blocos b { color: var(--navy); font-weight: 500; }
.defs-acoes { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.defs-acoes .btn-sec { margin-left: auto; }
.defs-ok { color: var(--ok); font-weight: 600; font-size: 13.5px; }

@media (max-width: 640px) {
  .hero-inicio, .hero-reat { padding-bottom: 170px; }
  .escolha { margin-top: calc(-1 * var(--gap) - 130px); padding-inline: 0; }
  .reat .sec-overlap { margin-top: calc(-1 * var(--gap) - 150px); }
  .contacto { padding: 28px 18px; }
  .det-r { grid-template-columns: minmax(7rem, 1fr) 1fr 2.4rem; }
  .det-r-lg { grid-template-columns: 1fr 5rem 2.4rem; }
  .hero-reat .hero-top { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
@media (max-width: 640px) {
  .quota { grid-template-columns: 1fr 1fr; gap: 8px; }
  .q-item { padding: 12px 14px; }
  .q-item > b { font-size: 22px; }
}

/* Contacto em pipeline e negócio fechado */
.c-pipe { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(224, 138, 44, .12); border: 1px solid rgba(224, 138, 44, .35); color: #7A4A0B; font-size: 13.5px; }
.c-pipe svg { width: 15px; height: 15px; flex: 0 0 auto; }
.c-pipe b { font-weight: 600; }
.contacto-ganho { border: 2px solid #12805C; box-shadow: 0 0 0 6px rgba(18, 128, 92, .12), var(--shadow); padding-top: 0; overflow: hidden; }
.c-ganho { align-self: stretch; margin: 0 -32px 6px; padding: 18px 24px; display: flex; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(135deg, #0B5E43, #12805C 55%, #22A877); color: #fff; text-align: left; }
.c-ganho svg { width: 38px; height: 38px; flex: 0 0 auto; }
.c-ganho b { display: block; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.c-ganho span { display: block; margin-top: 3px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }

/* Detalhes da chamada */
.folha-caixa { width: min(100%, 46rem); }
.det-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.det-sec h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.det-sec .det-h2 { margin-top: 6px; }
.det-h3 { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips.off { opacity: .45; }
.chip-op { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(14, 26, 79, .14); background: #fff; color: var(--fg); font: 500 13.5px var(--font); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s; }
.chip-op:hover:not(:disabled) { border-color: rgba(36, 64, 179, .45); }
.chip-op.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-op.chip-nao { border-style: dashed; color: var(--muted); }
.chip-op.chip-nao.on { background: #6B7393; border-color: #6B7393; color: #fff; }
.chip-op:disabled { cursor: not-allowed; }
.chip-op:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.det-in { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(14, 26, 79, .16); font: 400 14px var(--font); }
.det-in:focus, .det-nota:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.det-sel { padding-top: 8px; padding-bottom: 8px; box-shadow: none; }
.det-dica, .det-info { margin: 0; font-size: 12.5px; color: var(--muted); }
.btn-agenda { align-self: flex-start; }
.btn-agenda svg, .visita-ok svg { width: 16px; height: 16px; }
.visita { display: flex; flex-direction: column; gap: 8px; }
.visita-ok { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; }
.visita-ok b { font-weight: 600; }
.visita-ok i { font-style: normal; }
.visita-ok .voltar-op { margin-left: auto; }
.det-auto-l { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.det-auto { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(14, 26, 79, .04); font-size: 13.5px; color: var(--fg); }
.det-nota { width: 100%; min-height: 6.5rem; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(14, 26, 79, .16); font: 400 14.5px/1.5 var(--font); resize: vertical; white-space: pre-wrap; }
.conf-nota { list-style: none; margin-left: -18px; }
.conf-nota-t { margin-top: 4px; padding: 10px 14px; border-radius: 12px; background: rgba(14, 26, 79, .04); white-space: pre-wrap; }
.mi-mau { background: var(--bad-bg); }
.mi-mau b { color: var(--bad); }
.mi-aviso { background: var(--aviso-bg); }
.tbl tr.linha-alerta td { color: var(--bad); }

/* Fila: contacto e notas lado a lado */
.fila-palco { grid-template-columns: minmax(0, 36rem) minmax(0, 26rem); justify-content: center; align-items: start; gap: 16px; }
.fila-palco > .fila-vazia { grid-column: 1 / -1; justify-self: center; }
.notas { width: 100%; max-height: 32rem; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease) .08s, transform .5s var(--ease) .08s; }
.notas.entra { opacity: 1; transform: none; }
.notas-h { display: flex; align-items: center; gap: 8px; }
.notas-h h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.notas-l { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.nota { padding: 10px 12px; border-radius: 12px; background: rgba(14, 26, 79, .04); }
.nota-m { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.nota p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; color: var(--fg); }
.c-fu { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(124, 92, 230, .12); border: 1px solid rgba(124, 92, 230, .4); color: #4B2FA8; font-size: 13.5px; }
.c-fu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.c-fu-atraso { background: var(--bad-bg); border-color: rgba(194, 50, 31, .4); color: var(--bad); }
@media (max-width: 980px) { .fila-palco { grid-template-columns: minmax(0, 36rem); } .notas { max-height: 22rem; } }

/* Modal largo e compacto (detalhes, follow-ups) */
.folha-caixa.folha-larga { width: min(100%, 62rem); padding: 18px 22px 18px; }
.folha-larga .folha-h { margin-bottom: 8px; }
.folha-larga .folha-corpo { gap: 12px; }
.det-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; }
.det-grid-1 { grid-template-columns: minmax(0, 1fr); }
.det-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.det-col .det-sec:first-child { border-top: 0; padding-top: 0; }
.det-sec { gap: 6px; padding-top: 10px; }
.det-sec h4 { font-size: 13.5px; }
.det-sec h4 small { font-weight: 400; color: var(--muted); }
.det-grid + .det-sec-nota { border-top: 1px solid var(--line); }
.chip-op { padding: 6px 12px; font-size: 13px; }
.det-nota { min-height: 0; height: 4.2rem; resize: none; }
.det-ac { justify-content: space-between; align-items: center; margin-top: 0; }
.quando { display: flex; flex-direction: column; gap: 8px; }
.quando-l { display: flex; gap: 8px; }
.det-data { flex: 1 1 9rem; }
.det-hora { flex: 0 1 7rem; }
.fu-lista { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.fu-linha { display: grid; grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(14, 26, 79, .035); }
.fu-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.fu-info b { font-size: 14px; color: var(--navy); }
.fu-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 8px; margin-bottom: 14px; }
.fu-ok b { color: var(--ok); }
.fu-aviso b { color: var(--aviso); }
.fu-mau b { color: var(--bad); }
#c-fu .btn-sec { margin-top: 14px; }
.fu-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fu-tbl { max-height: 62vh; overflow: auto; }
@media (max-width: 760px) {
  .det-grid { grid-template-columns: minmax(0, 1fr); }
  .det-col .det-sec:first-child { border-top: 1px solid var(--line); padding-top: 10px; }
  .fu-linha { grid-template-columns: 1fr; }
}
.fu-tbl table { font-size: 12.5px; }
.fu-tbl td, .fu-tbl th { padding-left: 8px; padding-right: 8px; }
.fu-tbl td:last-child { white-space: normal; min-width: 9rem; }

/* Chamadas por dia: números nas barras e histórico */
.tick-barra { font-size: 10.5px; font-weight: 600; fill: var(--fg); }
.g-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.g-topo .leg-callers { margin-bottom: 0; }
.btn-hist { padding: 7px 14px; font-size: 13px; }
.hist tr.hist-mes { cursor: pointer; }
.hist tr.hist-mes td { font-weight: 600; color: var(--navy); background: rgba(36, 64, 179, .05); }
.hist tr.hist-mes td:first-child { background: #EEF1FA; }
.hist tr.hist-dia td { font-size: 12.5px; color: var(--muted); }
.hist tr.hist-dia td:first-child { padding-left: 26px; font-weight: 500; color: var(--fg); }
.hist tr.hist-total td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--line); }
.hist-seta { color: var(--brand); }

/* Reunião de equipa */
.modo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modo-op { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid rgba(14, 26, 79, .12); background: #fff; text-align: left; cursor: pointer; font: inherit; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.modo-op:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(36, 64, 179, .5); border-color: rgba(36, 64, 179, .4); }
.modo-op:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.modo-reu { border-color: rgba(18, 128, 92, .45); background: rgba(18, 128, 92, .05); }
.modo-t { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 14.5px; }
.modo-t svg { width: 16px; height: 16px; }
.modo-d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.reu-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 13.5px; color: var(--navy); }
.reu-barra.reu-on { position: sticky; top: 70px; z-index: 20; background: rgba(240, 250, 245, .92); border-color: rgba(18, 128, 92, .35); }
.reu-barra .live { background: #12805C; }
.reu-rel { flex: 1 1 14rem; color: var(--muted); }
.btn-peq-b { padding: 8px 16px; font-size: 13px; }
.reu-agenda { display: flex; gap: 6px; flex-wrap: wrap; }
.reu-agenda a { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(14, 26, 79, .08); color: var(--navy); font-size: 13px; font-weight: 500; text-decoration: none; }
.reu-agenda a:hover { background: #fff; }
#reu-corpo { display: flex; flex-direction: column; gap: 16px; }
.reu-periodo { margin: 0; font-size: 13px; color: var(--muted); }
.reu-sec { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 140px; }
.reu-h { display: flex; gap: 12px; align-items: flex-start; }
.reu-h .num { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600; }
.reu-h h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.reu-h p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.reu-owners { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-owner { padding: 5px 12px; border-radius: 999px; background: rgba(14, 26, 79, .05); font-size: 12.5px; color: var(--muted); }
.chip-owner b { color: var(--navy); }
.reu-todos { display: flex; flex-direction: column; gap: 8px; }
.reu-todo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(14, 26, 79, .035); }
.reu-todo-i { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 18rem; }
.reu-todo-i b { font-size: 14px; font-weight: 600; color: var(--navy); }
.reu-todo-i span { font-size: 12.5px; color: var(--muted); }
.reu-ganhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 10px; }
.ganho { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--ok-bg); }
.ganho b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--ok); }
.ganho span { font-size: 12.5px; color: #0E5E44; }
.reu-ta { height: 4.6rem; }
.reu-sis { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; }
.reu-sis-c { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(14, 26, 79, .035); border: 1px solid transparent; }
.reu-sis-c.com-sinal, .sin-l.com-sinal { border-color: rgba(224, 138, 44, .45); background: var(--aviso-bg); }
.reu-sis-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.reu-sis-c > b { font-size: 18px; font-weight: 600; color: var(--navy); }
.reu-sis-c p { margin: 0; font-size: 12.5px; color: var(--fg); line-height: 1.45; flex: 1; }
.sinal { padding: 2px 9px; border-radius: 999px; background: rgba(224, 138, 44, .2); color: var(--aviso); font-size: 11.5px; font-weight: 600; }
.reu-mini { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(36, 64, 179, .45); background: transparent; color: var(--brand); font: 500 12.5px var(--font); cursor: pointer; }
.reu-mini svg { width: 12px; height: 12px; }
.reu-mini:hover { background: rgba(36, 64, 179, .06); }
.seg-claro { background: rgba(14, 26, 79, .05); border-color: transparent; align-self: flex-start; }
.seg-claro button { color: var(--muted); }
.seg-claro button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -4px rgba(14, 26, 79, .3); }
.reu-caller { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; }
.reu-caller h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.reu-obj { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; }
.reu-obj-h { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.reu-obj > b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--navy); }
.reu-obj > small { font-size: 13px; color: var(--muted); }
.reu-dias { display: flex; gap: 6px; align-items: flex-end; height: 120px; margin-top: 10px; }
.reu-dia { flex: 1 1 0; max-width: 64px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.reu-dia i { width: 100%; border-radius: 6px 6px 3px 3px; background: #AEBDF2; order: 1; }
.reu-dia.ok i { background: var(--brand); }
.reu-dia b { order: 0; font-size: 11.5px; color: var(--navy); }
.reu-dia span { order: 2; white-space: nowrap; }
.dec-l { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr 3.4rem; gap: 10px; align-items: center; font-size: 13px; padding: 3px 0; }
.dec-l b { text-align: right; color: var(--navy); }
.dec-tr { height: 12px; border-radius: 999px; background: rgba(14, 26, 79, .05); overflow: hidden; }
.dec-tr i { display: block; height: 100%; border-radius: 999px; }
.dec-base i { background: var(--navy); }
.dec-base span:first-child { font-weight: 600; color: var(--navy); }
.dec-menos i { background: #E0A15C; }
.dec-mais i { background: #5BB592; }
.mot-l { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mot-chip { padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 12.5px; font-weight: 500; text-align: right; }
.mot-vazio { background: rgba(14, 26, 79, .05); color: var(--muted); }
.reu-sinais { display: flex; flex-direction: column; gap: 8px; }
.sin-l { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: rgba(14, 26, 79, .03); }
.sin-t { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.sin-t span:first-child { flex: 1; color: var(--fg); }
.sin-t b { color: var(--navy); }
.sin-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sin-a .periodo { padding-top: 6px; padding-bottom: 6px; box-shadow: none; }
.reu-notas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reu-notas label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.reu-lbl { margin: 4px 0 0; font-size: 13px; color: var(--navy); }
.reu-todo-fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; padding: 13px 20px; box-shadow: 0 14px 30px -10px rgba(36, 64, 179, .9); }
.reu-todo-fab[hidden] { display: none; }
.reu-todo-fab svg, #reu-5 .btn-sec svg { width: 16px; height: 16px; }
#reu-5 > .btn-sec { align-self: flex-start; }
@media (max-width: 860px) { .reu-caller, .reu-notas, .modo { grid-template-columns: 1fr; } .dec-l { grid-template-columns: 1fr 5rem 3rem; } }
.reu-resumo-s { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.reu-resumo-s a.sinal { text-decoration: none; padding: 4px 11px; font-size: 12.5px; }
.reu-resumo-s a.sinal:hover { background: rgba(224, 138, 44, .3); }
.sinal-tab { margin-left: 6px; font-size: 10.5px; }
