/* ==== visual limpo (2026-10-21) — a mesma camada do STAGE.TP (limpo.css de 2026-10-19), adaptada as classes do PRODUCTION.TP ==== */

/* 0. cores iguais ao STAGE.TP */
:root {
  --border: #4a5b58; --text: #e6edf2; --text-muted: #b4c2bf; --text-faint: #93a39f;
  --verde: #3f665f; --verde-2: #6a948b;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-tema="claro"] { --border: #dde5e1; --text: #16222d; --text-muted: #55655f; --verde-2: #3f665f; }

/* 1. texto mais legivel; maiusculas so nos titulos */
html, body { font-size: 14.5px; line-height: 1.45; }
.topbar-title { font-family: var(--font-body); font-size: 22px; font-weight: 750; text-transform: uppercase; letter-spacing: -.01em; }
.card-title, .card h2, .card h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-label { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.stat-value { font-family: var(--font-body); font-weight: 750; }
.field label { font-size: 12.5px; font-weight: 600; opacity: .85; color: var(--text); }
th { text-transform: none; letter-spacing: 0; font-size: 12px; }
.tab, .abas button, .saltos a { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }
.tab.active, .saltos a.on { font-weight: 700; }
.sub-titulo { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.navitem { font-size: 14.5px; font-weight: 500; border-radius: 8px; }
.navitem.active { font-weight: 700; background: rgba(255,255,255,.14); }

/* 2. cartoes limpos */
.card, .stat-card { border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(22,34,45,.04), 0 4px 14px rgba(22,34,45,.04); }
.row-card { border-radius: 12px; }

/* 3. botoes: o principal cheio, o secundario discreto */
.btn { background: var(--verde-2); border-radius: 9px; height: auto; min-height: 38px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; }
.btn:hover { background: var(--verde); color: #fff; }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-ghost { background: rgba(255,255,255,.08); color: #cfe3dc; border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
html[data-tema="claro"] .btn-ghost { background: rgba(22,34,45,.06); color: #3f665f; }
html[data-tema="claro"] .btn-ghost:hover { background: rgba(22,34,45,.11); color: #16222d; }

/* campos */
.field input, .field select, .field textarea { border-radius: 9px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--verde-2); box-shadow: 0 0 0 3px rgba(86,127,119,.35); }

/* 4. separadores numa linha e sempre visiveis */
.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }

/* 5. avisos: verde quando correu bem, vermelho quando falhou; somem sozinhos */
.flash { cursor: pointer; transition: opacity .4s, transform .4s; }
.flash.ok { background: rgba(116,215,173,.14); border-color: rgba(116,215,173,.45); color: var(--mint); }
html[data-tema="claro"] .flash.ok { color: #0f6b5e; }
.flash.a-sair { opacity: 0; transform: translateY(-6px); }

/* 6. cartoes que recolhem (clicar no titulo) */
.rc-tit { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
.rc-seta { margin-left: auto; width: 18px; height: 18px; opacity: .55; transition: transform .2s; flex-shrink: 0; }
.card.recolhido .rc-seta { transform: rotate(-90deg); }
.card.recolhido > :not(.rc-cab) { display: none !important; }
.card.recolhido { padding-bottom: 16px; padding-top: 16px; }
.card.recolhido .rc-cab { margin-bottom: 0; }

/* 7. icones: roda = editar, caixote vermelho = apagar */
.ic-bt { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0 !important;
  min-height: 0 !important; border-radius: 8px; background: transparent !important; border: 0 !important; color: var(--text-muted) !important; cursor: pointer; }
.ic-bt:hover { background: rgba(255,255,255,.1) !important; color: var(--text) !important; }
.ic-bt.ic-apagar { color: #e0585a !important; }
.ic-bt.ic-apagar:hover { background: rgba(214,54,56,.14) !important; color: #ff6b6d !important; }
html[data-tema="claro"] .ic-bt:hover { background: rgba(22,34,45,.07) !important; }

/* 8. menu: grupos com um pequeno espaco, como no STAGE.TP */
.nav-sep { height: 1px; background: rgba(255,255,255,.14); margin: 8px 10px; }

/* 9. DATAS e HOJE (2026-10-21) */
.dt-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dt-vistas { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.dt-vistas a { color: var(--text-muted); padding: 6px 14px; border-radius: 7px; font-size: 13.5px; }
.dt-vistas a.on { background: var(--verde-2); color: #fff; font-weight: 600; }
.dt-extra { margin-left: auto; font-size: 13px; color: var(--text-faint); }
.dt-linha { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.dt-linha:last-child { border-bottom: 0; }
.dt-linha:hover .dt-t { color: var(--mint); }
.dt-meio { flex: 1; min-width: 0; }
.dt-t { font-weight: 600; }
.dt-s { color: var(--text-faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-falta { background: rgba(201,162,39,.18); color: #e6c35a; }
html[data-tema="claro"] .dt-falta { color: #8a6a00; }
.dt-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dt-cab { font-size: 12px; color: var(--text-faint); text-align: center; padding: 2px 0; }
.dt-cel { min-height: 92px; background: var(--surface-2); border-radius: 10px; padding: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dt-cel.vazia { background: transparent; }
.dt-cel.hoje { outline: 2px solid var(--verde-2); }
.dt-cel b { color: var(--text-faint); font-weight: 600; }
.dt-ev { display: block; background: var(--verde-2); color: #fff; border-radius: 6px; padding: 3px 6px; font-size: 11.5px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-ev span { display: block; font-weight: 400; opacity: .85; }
.dt-ev.pendente { background: #8a7a3a; }
.dt-ev:hover { color: #fff; filter: brightness(1.1); }
@media (max-width: 700px) { .dt-cel { min-height: 60px; } .dt-ev span { display: none; } .dt-extra { margin-left: 0; } }
.hj-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hj-numeros .stat-card { color: inherit; text-decoration: none; }
.hj-numeros .stat-card:hover { border-color: var(--verde-2); }
.hj-numeros .stat-value { font-size: 32px; }
.hj-amarelo { color: #e6c35a; }
html[data-tema="claro"] .hj-amarelo { color: #8a6a00; }
@media (max-width: 700px) { .hj-numeros { grid-template-columns: 1fr; } }
.hj-linha { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.hj-linha:last-child { border-bottom: 0; }
.hj-meio { flex: 1; min-width: 0; }
.hj-t { font-weight: 600; }
.hj-s { color: var(--text-faint); font-size: 13px; font-weight: 400; }

/* 10. pagina da data: o que falta + saltos */
.of-cartao { border-color: rgba(201,162,39,.45); }
.of-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.of-lista a { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,162,39,.14); color: #e6c35a; border-radius: 100px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
html[data-tema="claro"] .of-lista a { color: #6b5200; }
.of-ok { color: var(--mint); font-weight: 600; }
.saltos { position: sticky; top: 0; z-index: 6; background: var(--bg); }

/* 11. estado da data numa escolha (2026-10-23) */
.estado-form { margin: 0; }
.estado-sel { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 28px 6px 12px; border-radius: 100px; min-height: 32px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2393a39f' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text-muted); }
.estado-sel.est-confirmado { background-color: rgba(116,215,173,.15); color: var(--mint); }
.estado-sel.est-em_advance { background-color: rgba(107,184,149,.16); color: var(--accent); }
.estado-sel.est-pendente { background-color: rgba(214,54,56,.16); color: #ef7d7f; }
.estado-sel.est-cancelado { background-color: rgba(147,163,159,.18); color: var(--text-faint); text-decoration: line-through; }
html[data-tema="claro"] .estado-sel.est-pendente { color: #b3282a; }
.estado-sel option { color: #16222d; background: #fff; text-decoration: none; }
.chip-cancelado { background: rgba(147,163,159,.18); color: var(--text-faint); text-decoration: line-through; }
.dt-abrir { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.dt-abrir:hover .dt-t { color: var(--mint); }
.dt-cancelada .dt-abrir { opacity: .5; }
.dt-cancelada .dt-t { text-decoration: line-through; }
.dt-vazio { visibility: hidden; }
a.dt-falta:hover { filter: brightness(1.15); }
.dt-ev.cancelado { background: #5a6664; text-decoration: line-through; opacity: .6; }

/* 12. quadro financeiro da data (2026-10-24) */
.q-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .q-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .q-resumo { grid-template-columns: 1fr; } }
.q-de { font-size: 15px; color: var(--text-faint); font-weight: 500; }
.q-nota { font-size: 12.5px; color: var(--text-faint); }
.q-vir { font-size: 13px; margin-top: 4px; }
.q-vir b { font-size: 17px; }
.q-neg { color: #ef7d7f !important; }
html[data-tema="claro"] .q-neg { color: #b3282a !important; }
.q-graf { width: 100%; max-width: 900px; height: auto; display: block; }
.q-linha { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.q-ponto { fill: var(--mint); }
.q-ref { stroke: var(--text-faint); stroke-dasharray: 5 5; stroke-width: 1; opacity: .7; }
.q-rot { fill: var(--text-faint); font-size: 11px; }
.q-hist { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-faint); margin-top: 8px; }
.q-hist b { color: var(--text); }
.q-tab { min-width: 640px; }
.q-tab th { text-align: right; font-size: 13px; color: var(--text); font-weight: 700; }
.q-tab th small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-faint); }
.q-tab td { text-align: right; padding: 8px 22px 8px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-tab td:first-child, .q-tab th:first-child { text-align: left; padding-left: 22px; white-space: normal; }
.q-tab .q-at { background: rgba(116,215,173,.06); }
.q-tab .q-menos td { color: var(--text-muted); }
.q-tab .q-sub td { font-weight: 700; }
.q-tab .q-total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--border); }
.q-tab .q-pequeno td { font-size: 12.5px; color: var(--text-faint); }
.q-acerto { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 900px) { .q-acerto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.q-acerto div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.q-acerto span { display: block; font-size: 12.5px; color: var(--text-faint); }
.q-acerto b { font-size: 17px; font-variant-numeric: tabular-nums; }
.q-acerto .q-saldo { background: rgba(116,215,173,.14); }
.q-ed { min-width: 720px; }
.q-ed th { font-size: 12px; text-transform: none; letter-spacing: 0; }
.q-ed td { padding: 4px 6px; border-bottom: 0; }
.q-in { width: 100%; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; color: var(--text); font: inherit; font-size: 13.5px; }
.q-in:focus { outline: none; border-color: var(--verde-2); box-shadow: 0 0 0 3px rgba(86,127,119,.3); }
.q-n { text-align: right; font-variant-numeric: tabular-nums; }
.q-lab { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; min-width: 150px; }
.q-guardar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); display: flex; justify-content: flex-end; z-index: 4; }
.q-ed td:first-child select { min-width: 118px; }

/* 13. resumo das bilheteiras (2026-10-24) */
.bl-tab { min-width: 860px; }
.bl-tab td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.bl-tab td:nth-child(n+5) { white-space: nowrap; }
.bl-sobe { color: var(--mint); font-weight: 700; }
.q-break { border-color: rgba(201,162,39,.5); }
.q-break .stat-label { color: #e6c35a; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.q-ed td:nth-child(2) input[name=d_nome] { min-width: 240px; }

/* 14. bilheteiras em lista, como as datas (2026-10-24) */
.bl-linha { gap: 18px; }
.bl-vend { width: 190px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.bl-vend .progress { margin-top: 6px; }
.bl-vend .bl-sobe { font-size: 12.5px; margin-left: 6px; }
.bl-val { width: 200px; flex-shrink: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.bl-val div { display: flex; justify-content: space-between; gap: 10px; }
.bl-val span { color: var(--text-faint); }
.bl-sit { width: 130px; flex-shrink: 0; text-align: right; }
@media (max-width: 900px) {
  .bl-linha { flex-wrap: wrap; }
  .bl-linha .dt-abrir { flex: 1 1 100%; }
  .bl-vend, .bl-val { width: auto; flex: 1 1 140px; }
  .bl-sit { width: auto; }
}

/* 15. venda (cachet fixo) ou bilheteira; contas da Trupe (2026-10-24) */
.q-esconde { display: none !important; }
.q-modo .dt-vistas label { color: var(--text-muted); padding: 7px 14px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.q-modo .dt-vistas label.on { background: var(--verde-2); color: #fff; font-weight: 600; }
.q-modo .dt-vistas input { position: absolute; opacity: 0; pointer-events: none; }
.q-tab small.q-nota { font-weight: 400; font-size: 11.5px; }
#q-trupe input[name=ct_nome] { min-width: 210px; }
.eq-cachet { max-width: 120px; margin-left: auto; display: block; }
/* 16. contas da data, vindas do quadro */
.ct-linhas { display: flex; flex-direction: column; }
.ct-linhas > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.ct-linhas > div:last-child { border-bottom: 0; }
.ct-linhas span { color: var(--text-muted); }
.ct-linhas .ct-res b { font-size: 16px; }
#q-trupe input[name=ct_prev], #q-trupe input[name=ct_real] { min-width: 110px; }
/* 17. formato do espetaculo (2026-10-24) */
.fmt-sel { background-color: var(--surface-2); color: var(--text); font-weight: 500; }
.dt-linha .fmt-sel { min-width: 118px; }
.dt-linha .estado-sel:not(.fmt-sel) { min-width: 140px; }
.dt-linha .dt-vazio { min-width: 52px; visibility: hidden; }
/* 18. folhas do promotor no quadro (2026-10-25) */
.anx-linha { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.anx-linha a { color: var(--mint); font-weight: 600; text-decoration: none; }
.anx-linha a:hover { text-decoration: underline; }
.bl-conta { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 100px; background: rgba(214,170,60,.22); color: #e2c26b; font-size: 11.5px; font-weight: 700; text-align: center; }
/* 19. o que fica a nosso cargo (2026-10-25) */
.cargo-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.cargo-lista a { padding: 6px 12px; border-radius: 8px; font-size: 13px; text-decoration: none; }
.cargo-falta { background: rgba(214,170,60,.16); color: #e2c26b; }
.cargo-ok { background: rgba(116,215,173,.13); color: var(--mint); }
html[data-tema="claro"] .cargo-falta { color: #8a6a12; }
#q-trupe .q-ed td { vertical-align: top; }
/* 20. apagar linha no quadro (2026-10-25) */
.q-apagar { width: 34px; text-align: center; }
.q-apagar button { background: none; border: 0; cursor: pointer; color: #e07a7a; padding: 6px; border-radius: 6px; opacity: .75; }
.q-apagar button:hover { opacity: 1; background: rgba(214,54,56,.14); }
/* 21. filtro de artista no topo (2026-10-25) */
.filtro-sel { background-color: var(--surface-2); color: var(--text); font-weight: 600; min-width: 170px; }
.art-nome { color: inherit; text-decoration: none; }
.art-nome:hover { color: var(--mint); text-decoration: underline; }
.eq-cachet.eq-ok { border-color: var(--mint) !important; box-shadow: 0 0 0 2px rgba(116,215,173,.25); }
.eq-cachet.eq-erro { border-color: #e07a7a !important; }
/* 22. ficha do artista arrumada (2026-10-25) */
.fa-topo { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.fa-foto-form { margin: 0; }
.fa-foto { position: relative; width: 84px; height: 84px; border-radius: 14px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.fa-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fa-ini { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-muted); }
.fa-troca { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 10.5px; padding: 3px 0; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .15s; }
.fa-foto:hover .fa-troca { opacity: 1; }
.fa-meio { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 10px; }
.fa-nome { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.fa-genero { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--surface-2); padding: 3px 9px; border-radius: 100px; margin-left: 6px; vertical-align: middle; }
.fa-numeros { display: flex; gap: 26px; flex-wrap: wrap; }
.fa-numeros span { display: block; font-size: 11.5px; color: var(--text-faint); }
.fa-numeros b { font-size: 15px; }
.fa-numeros a { color: var(--mint); text-decoration: none; }
.fa-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; }
.fa-links a { color: var(--accent); }
.fa-atualiza { background: none; border: 0; color: var(--text-faint); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.fa-extra { flex: 0 1 380px; min-width: 260px; display: flex; flex-direction: column; gap: 16px; padding-left: 22px; border-left: 1px solid var(--border); }
@media (max-width: 900px) { .fa-extra { flex-basis: 100%; padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--border); } }
.fa-lab { font-size: 11.5px; color: var(--text-faint); margin-bottom: 8px; }
.fa-lanc { display: flex; flex-direction: column; gap: 8px; }
.fa-lanc a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 12.5px; font-weight: 600; }
.fa-lanc img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.fa-lanc small { display: block; font-weight: 400; font-size: 11px; color: var(--text-faint); }
.fa-conc { font-size: 12.5px; margin-bottom: 3px; }
.fa-conc span { color: var(--text-faint); margin-right: 6px; }
.fa-eq { width: 100%; }
.fa-eq .fa-grupo td { background: var(--surface-2); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-top: 9px; padding-bottom: 9px; }
.fa-eq .fa-grupo span { color: var(--text-faint); font-weight: 600; margin-left: 4px; }
.fa-pessoa { font-weight: 600; }
.fa-pessoa a { color: var(--text); text-decoration: none; }
.fa-pessoa a:hover { color: var(--mint); }
.fa-pessoa small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-faint); }
.fa-funcao { color: var(--text-muted); }
.fa-eq .eq-cachet { max-width: 110px; margin-left: auto; display: block; }
.fa-total td { font-weight: 700; font-size: 14px; border-top: 2px solid var(--border); }
.fa-add { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px 8px; }
.fa-add input { flex: 1; min-width: 120px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); }
.fa-add input[name=cachet] { max-width: 120px; text-align: right; }
.fa-add-sem { padding: 0 0 10px; }
.fa-dados summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
.fa-dados summary::-webkit-details-marker { display: none; }
.fa-dados summary::after { content: "▾"; margin-left: auto; color: var(--text-faint); }
.fa-dados[open] summary { margin-bottom: 14px; }
.fa-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.fa-sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.fa-sub small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-faint); }
.fa-tarefa { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.fa-tarefa small { display: block; font-size: 11.5px; color: var(--text-faint); }
.fa-tarefa.feita span { color: var(--text-faint); text-decoration: line-through; }
.fa-check { width: 20px; height: 20px; border-radius: 5px; border: 1px solid var(--border); background: none; color: var(--accent-ink, #fff); cursor: pointer; padding: 0; font-size: 12px; }
.fa-tarefa.feita .fa-check { background: var(--accent); border-color: var(--accent); }
.fa-nota { padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.fa-nota small { font-size: 11.5px; color: var(--text-faint); }
/* 23. formacoes na equipa (2026-10-25) */
.fa-eq th.fo-col, .fa-eq td.fo-col { text-align: center; width: 104px; }
.fo-nome { display: block; font-size: 11.5px; line-height: 1.25; white-space: normal; }
.fo-tira { display: inline; margin: 0; }
.fo-tira button { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 14px; padding: 0 2px; }
.fo-tira button:hover { color: #e07a7a; }
.fo-vai { display: inline-flex; cursor: pointer; }
.fo-vai input { position: absolute; opacity: 0; width: 0; height: 0; }
.fo-vai span { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; transition: background .12s; }
.fo-vai input:checked + span { background: var(--accent); border-color: var(--accent); }
.fo-vai input:checked + span::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; }
.fo-vai input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.fo-tot b { display: block; font-size: 13px; }
.fo-tot small { font-size: 11px; font-weight: 400; color: var(--text-faint); }
.fo-in { width: 84px; text-align: right; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; color: var(--text); font-size: 13px; }
.fo-in:placeholder-shown { background: transparent; border-style: dashed; }
.fo-in.fo-dif { border-color: #d7a93f; color: #e2c26b; background: rgba(214,170,60,.10); }
.fo-in.eq-ok { border-color: var(--mint); }
.fo-nova input { width: 96px; background: transparent; border: 1px dashed var(--border); border-radius: 7px; padding: 5px 7px; color: var(--text); font-size: 12px; }

/* 24. riders por formacao (2026-10-25) — o mesmo desenho do STAGE.TP */
.rd-topo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.rd-etiq { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 6px; background: var(--verde); color: #fff; }
.rd-erro { border-color: #8a7a3c; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rd-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.rd-chip span { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: rgba(0,0,0,.22); }
.rd-chip:hover { border-color: var(--verde-2); color: var(--text); }
.rd-chip.on { background: var(--verde); border-color: var(--verde-2); color: #fff; font-weight: 700; }
.rd-chip.rd-geral { border-style: dashed; }
.rd-chip.rd-mais { background: transparent; border: 1px dashed var(--verde-2); color: var(--text-muted); }
.rd-grelha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .rd-grelha { grid-template-columns: minmax(0, 1fr); } }
.rd-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rd-cab .card-title { margin: 0; }
.rd-caixas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .rd-caixas { grid-template-columns: minmax(0, 1fr); } }
.rd-caixa { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(0,0,0,.06); }
.rd-caixa-t { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.rd-doc { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; background: var(--surface-2); color: var(--text-muted); }
.rd-doc form { margin: 0; }
.rd-doc-n { flex: 1; min-width: 0; color: var(--text); font-size: 13px; }
.rd-doc-n > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-tira { background: none; border: 0; cursor: pointer; color: #e07a7a; padding: 7px; border-radius: 6px; opacity: .75; display: flex; }
.rd-tira:hover { opacity: 1; background: rgba(214,54,56,.14); }
.rd-vazio { font-style: italic; padding: 2px 0; }
.rd-carregar { margin: 0; }
.rd-mais-btn { display: inline-block; cursor: pointer; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 7px 11px;
  border-radius: 8px; border: 1px dashed var(--verde-2); color: var(--text-muted); }
.rd-mais-btn:hover { color: var(--text); background: rgba(255,255,255,.05); }
.rd-mais-btn input { display: none; }
.rd-lado { display: flex; flex-direction: column; gap: 14px; }
.rd-data { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: 13px; }
.rd-data:last-of-type { border-bottom: 0; }
.rd-arrumar { border-color: #8a7a3c; }
.rd-mover { display: flex; gap: 6px; align-items: center; margin: 8px 0 2px; flex-wrap: wrap; }
.rd-mover select { flex: 1; min-width: 0; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; font-size: 12.5px; }
.rd-esc { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); width: 100%; }
.rd-link { background: none; border: 0; padding: 0; color: var(--text-faint); font-size: 12px; cursor: pointer; text-decoration: underline; }
.rd-sep { align-self: center; font-size: 11.5px; color: var(--text-faint); margin-left: 8px; }
.rd-chip.rd-solto { border-style: dashed; color: var(--text-muted); }
.rd-ligar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px solid #8a7a3c; border-radius: 10px; font-size: 13px; }
.rd-ligar > span { width: 100%; }
.rd-ligar select { flex: 1; min-width: 200px; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 7px 8px; }
.rd-completo { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 12px;
  padding: 12px 14px; border: 1px dashed var(--verde-2); border-radius: 10px; background: rgba(0,0,0,.06); }
.rd-completo > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 240px; font-size: 13px; }
.rd-completo b { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; }
.q-auto { margin: 0 0 10px; padding: 9px 12px; border: 1px solid #8a7a3c; border-radius: 8px; font-size: 12.5px; }

/* 25. despesas por grupo e cachet (2026-10-25) */
.dp-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dp-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.dp-cab .card-title { margin-bottom: 4px; }
.dp-tots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; }
@media (max-width: 700px) { .dp-tots { grid-template-columns: minmax(0, 1fr); } }
.dp-tots > div { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.dp-tots span { font-size: 12px; color: var(--text-faint); }
.dp-tots b { font-size: 19px; font-variant-numeric: tabular-nums; }
.dp-tots small { font-size: 11.5px; color: var(--text-faint); }
.dp-tots .dp-tot-t { background: rgba(116,215,173,.12); }
.dp-sec { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 6px 0 6px; }
.dp-tab { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 18px; }
.dp-tab th { font-size: 12px; font-weight: 600; color: var(--text-faint); text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.dp-tab .dp-num { text-align: right; }
.dp-tab td { padding: 4px 8px; vertical-align: middle; border-bottom: 0; }
.dp-tab .q-in { padding: 6px 9px; }
.dp-g td { padding-top: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted);
  border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.dp-g td.dp-num { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.dp-g span { font-weight: 600; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.08); margin-left: 4px; }
.dp-l td:first-child { overflow: hidden; }
.dp-nome { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-f { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-l .q-in[name=ct_prev]::placeholder { color: var(--text-faint); font-size: 12px; }
.dp-x { background: none; border: 0; cursor: pointer; color: #e07a7a; padding: 8px; border-radius: 6px; opacity: .7; display: flex; }
.dp-x:hover { opacity: 1; background: rgba(214,54,56,.14); }
@media (max-width: 640px) { .dp-tab col:nth-child(2), .dp-tab col:nth-child(3) { width: 96px !important; } }
.dp-real::placeholder { color: var(--text-faint); opacity: .75; }
.dp-explica { margin: -4px 0 12px; }
.dp-copiar { background: none; border: 0; padding: 0; color: var(--verde-2); font: inherit; text-decoration: underline; cursor: pointer; }
html:not([data-tema="claro"]) .dp-copiar { color: #9fd0c2; }
.dp-g td { border-top: 1px solid var(--border); }   /* linha por cima de cada grupo, como em Artistas */
.dp-tab tbody + tbody .dp-g td { padding-top: 14px; }
.dp-tab tbody:not(:first-of-type) tr.dp-g td { border-top: 1px solid var(--border); }
.dp-tab tbody .dp-l:last-child td { padding-bottom: 12px; }
.dp-sec-l { display: flex; align-items: baseline; gap: 12px; }
.dp-sec-l .dp-copiar { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; }
.dp-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 14px;
  background: #1f2a28; color: #e6edf2; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.dp-toast[hidden] { display: none; }
.dp-toast button { background: var(--verde-2); color: #fff; border: 0; border-radius: 7px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.dp-nomecx { display: flex; align-items: center; gap: 8px; }
.dp-nomecx .q-in { flex: 1; min-width: 0; }
.dp-tag { flex: none; font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid #8a7a3c; color: #e8d9a0; white-space: nowrap; }
.dp-tab td { height: 46px; }
.dp-par { align-items: stretch; }
.dp-par > .card { margin-bottom: 0; }
.q-eur { font-size: 15px; font-weight: 650; color: var(--text-muted); font-variant-numeric: tabular-nums; margin-top: -2px; }
.q-eur-s { display: block; font-size: 12px; color: var(--text-faint); font-weight: 500; }
.q-eur-cab td { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding-top: 16px !important; }
.dp-moeda { flex: none; width: 76px !important; padding-right: 4px; }
.dp-nomecx .dp-moeda { flex: 0 0 86px; width: 86px; }

/* 26. grafico da evolucao das vendas (2026-10-25) */
.q-graf { width: 100%; max-width: none; height: auto; display: block; overflow: visible; }
.q-grelha { stroke: var(--border); stroke-width: 1; opacity: .55; }
.q-eixo { stroke: var(--text-faint); stroke-width: 1; opacity: .8; }
.q-tick { fill: var(--text-faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.q-tick-f { fill: var(--text-muted); font-weight: 600; }
.q-hoje { stroke: var(--text-faint); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.q-show { stroke: var(--text-muted); stroke-width: 1.5; opacity: .8; }
.q-ref { stroke: var(--text-faint); stroke-width: 1; stroke-dasharray: 6 5; opacity: .75; }
.q-ref-lot { stroke-dasharray: none; opacity: .5; }
.q-ref-guia { stroke: var(--text-faint); stroke-width: 1; opacity: .5; }
.q-ref-t { fill: var(--text-muted); font-size: 12.5px; }
.q-ref-n { fill: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.q-ref-ok { fill: #74d7ad; font-weight: 700; }
.q-area-a { stop-color: #74d7ad; stop-opacity: .28; }
.q-area-b { stop-color: #74d7ad; stop-opacity: 0; }
.q-linha { fill: none; stroke: #74d7ad; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.q-ponto { fill: #74d7ad; stroke: var(--surface); stroke-width: 2; }
.q-pt-alvo { fill: transparent; cursor: default; }
.q-pt:hover .q-ponto { r: 5; }
.q-ult { fill: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
html[data-tema="claro"] .q-linha, html[data-tema="claro"] .q-ponto { stroke-color: #3f665f; }
html[data-tema="claro"] .q-linha { stroke: #3f665f; }
html[data-tema="claro"] .q-ponto { fill: #3f665f; }
html[data-tema="claro"] .q-area-a, html[data-tema="claro"] .q-area-b { stop-color: #3f665f; }
html[data-tema="claro"] .q-ref-ok { fill: #3f665f; }
.q-graf-cx { overflow-x: auto; } .q-graf-cx .q-graf { min-width: 680px; }

/* 27. extrato do Dinheiro (2026-10-25) */
.ex-abrir { margin-left: auto; }
.ex-painel[hidden] { display: none; }
.ex-linha { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.ex-linha .q-lab { min-width: 200px; }
.ex-per { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ex-per legend { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.ex-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; cursor: pointer; }
.ex-chip:has(input:checked) { background: var(--verde); border-color: var(--verde-2); color: #fff; }
.ex-chip input { accent-color: var(--verde-2); margin: 0; }
.ex-botoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* 28. Fatura no InvoiceXpress (2026-10-25) */
.ct-fatura { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.ct-fatura form { margin:0; }

/* 29. Contrato da data (2026-10-25) */
.ct-form { display:flex; flex-direction:column; gap:16px; max-width:900px; }
.ct-cab { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.ct-art { font-family:var(--font-display); font-size:20px; font-weight:700; text-transform:uppercase; }
.ct-sub { color:var(--text-faint); font-size:13px; margin-top:2px; }
.ct-acoes { display:flex; gap:8px; flex-wrap:wrap; }
.ct-ler { display:flex; gap:8px; margin-top:10px; justify-content:flex-end; }
.ct-grelha { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:4px 14px; }
.ct-grelha .ct-largo { grid-column:1 / -1; }
.ct-form textarea { width:100%; }

/* 30. Dados do fecho (2026-10-25) */
dialog.fx { width:min(920px, calc(100vw - 32px)); max-height:calc(100vh - 48px); padding:22px 24px; border:1px solid var(--border);
  border-radius:14px; background:var(--surface); color:var(--text); }
dialog.fx::backdrop { background:rgba(10,16,13,0.62); }
.fx-cab { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:6px; }
.fx-tit { font-family:var(--font-display); font-size:18px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; }
.fx-sub { color:var(--text-faint); font-size:13px; margin-top:2px; }
.fx-x { background:none; border:0; color:var(--text-faint); font-size:26px; line-height:1; cursor:pointer; }
.fx-nota { color:var(--text-muted); font-size:13px; line-height:1.55; margin:8px 0 12px; }
.fx-falta-txt { color:#d7a93f; }
dialog.fx select, dialog.fx textarea, dialog.fx input:not([type=checkbox]):not([type=file]) { width:100%; background:var(--surface-2); border:1px solid var(--border);
  border-radius:8px; padding:8px 10px; color:var(--text); font:inherit; font-size:13.5px; }
.fx-grupo { border-top:1px solid var(--border); padding:12px 0 6px; }
.fx-gtit { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; margin-bottom:8px; }
.fx-gtit span { font-weight:400; text-transform:none; letter-spacing:0; color:var(--text-faint); margin-left:6px; }
.fx-grelha { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:8px 12px; }
.fx-campo { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--text-faint); }
.fx-campo em { color:#d7a93f; font-style:normal; }
.fx-largo { grid-column:1 / -1; }
.fx-falta input { border-color:#b48a2f !important; }
.fx-pe { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:14px; }
.fx-conf { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); }

/* 31. Anexos do email do contrato (2026-10-25) */
.ax-lista { display:flex; flex-direction:column; gap:6px; }
.ax-linha { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); cursor:pointer; }
.ax-linha input[type=checkbox] { width:16px; height:16px; accent-color:#5E9C80; }
.ax-ok { color:#74d7ad; font-weight:700; width:16px; text-align:center; }
.ax-nome { flex:1; min-width:0; font-size:13.5px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ax-meta { font-size:12px; color:var(--text-faint); white-space:nowrap; }
.ax-vazio { font-size:12.5px; color:var(--text-faint); padding:4px 2px; }
.ax-mais { background:none; border-style:dashed; }

/* 32. Emails enviados (2026-10-26) */
.em-cab { display:flex; flex-direction:column; gap:6px; font-size:13.5px; color:var(--text); }
.em-cab span { display:inline-block; width:78px; color:var(--text-faint); font-size:12px; text-transform:uppercase; letter-spacing:.4px; }
.em-lista { margin-top:12px; padding-top:10px; border-top:1px solid var(--border); }
.em-lista .em-tit { font-size:11px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.5px; margin-bottom:6px; }
.em-linha { display:flex; align-items:center; gap:10px; padding:6px 0; font-size:13px; }
.em-linha .em-quando { color:var(--text-faint); white-space:nowrap; }
.em-linha .em-o { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 33. Leitura da folha do promotor (2026-10-26) */
.fl-leitura { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px;
  font-size: 13.5px; border: 1px solid var(--border); background: var(--surface-2); }
.fl-leitura.fl-ok { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.fl-leitura.fl-erro { border-color: color-mix(in srgb, #d98b6a 60%, var(--border)); }
.fl-roda { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border);
  border-top-color: var(--accent); animation: fl-gira .8s linear infinite; }
@keyframes fl-gira { to { transform: rotate(360deg); } }

/* 34. Resumo do contrato (2026-10-27) */
.rz { margin: 8px 0 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); font-size: 13.5px; line-height: 1.5; }
.rz-a_ler { display: flex; align-items: center; gap: 10px; }
.rz-erro { border-color: color-mix(in srgb, #d98b6a 60%, var(--border)); }
.rz summary { cursor: pointer; list-style: none; }
.rz summary::-webkit-details-marker { display: none; }
.rz-tit { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--accent); }
.rz-partes { margin: 6px 0 4px; color: var(--text-muted); }
.rz-pontos { margin: 6px 0 0; padding-left: 18px; }
.rz-pontos li { margin: 3px 0; }
.rz-atencao { margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: color-mix(in srgb, #e0b44c 12%, transparent); border: 1px solid color-mix(in srgb, #e0b44c 40%, transparent); }
.rz-atit { font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #d9a93a; margin-bottom: 2px; }
.rz-atencao ul { margin: 0; padding-left: 18px; }

/* 35. Quem vai: acrescentar pessoa e diferencas com o STAGE.TP (2026-10-27) */
.cm-juntar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.cm-juntar select { max-width: 420px; }
.cm-dif { border-color: color-mix(in srgb, #e0b44c 45%, var(--border)) !important; }

/* 36. Pessoas da empresa e datas na ficha (2026-10-27) */
.cp-linha { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cp-linha form { margin: 0; }
.cp-quem { flex: 1; min-width: 200px; }
.cp-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.cp-tag { margin-left: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.cp-mais { margin-top: 12px; }
.cp-mais summary { list-style: none; display: inline-block; }
.cp-mais summary::-webkit-details-marker { display: none; }
.cp-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-width: 640px; }
.cp-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-faint); }
.cp-form label.cp-check { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.cp-ou { font-size: 12px; color: var(--text-faint); }
.cp-grelha { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .cp-grelha { grid-template-columns: 1fr; } }

/* 37. Nome da comitiva editavel na Equipa (2026-10-27) */
.fo-nome { cursor: text; border-bottom: 1px dashed transparent; }
.fo-nome:hover { border-bottom-color: var(--text-faint); }
.fo-renomear input { width: 100%; min-width: 90px; font: inherit; font-size: 12px; padding: 3px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--accent); color: var(--text); text-align: center; }

/* 38. Caixas sem estilo proprio ficam como as outras; listas com procura (2026-10-27) */
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]), select, textarea) {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; color: var(--text); font: inherit; font-size: 14px; line-height: 1.3;
}
:where(input, select, textarea):focus { outline: none; border-color: var(--accent); }
:where(input, textarea)::placeholder { color: var(--text-faint); }
.pq { position: relative; display: inline-block; vertical-align: middle; max-width: 100%; }
.pq.pq-largo { display: block; width: 100%; }
.pq .pq-campo { width: 100%; padding-right: 30px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a8a0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.pq .pq-campo:focus { cursor: text; }
.pq-escondido { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important;
  height: 1px !important; left: 0; bottom: 0; }
.pq-lista { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); min-width: 220px; max-height: 280px;
  overflow-y: auto; padding: 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.pq-op { padding: 8px 10px; border-radius: 7px; font-size: 13.5px; cursor: pointer; color: var(--text); }
.pq-op.pq-nada { color: var(--text-faint); }
.pq-op.pq-sel { font-weight: 600; color: var(--accent); }
.pq-op.pq-ativo, .pq-op:hover { background: var(--surface-2); }
.pq-vazio { padding: 8px 10px; font-size: 13px; color: var(--text-faint); }

/* 39. Vendas de bilhetes na lista de datas (2026-10-27) */
.dt-venda { width: 150px; flex-shrink: 0; font-size: 12.5px; color: var(--text-muted); }
.dt-venda-n b { color: var(--text); font-weight: 600; }
.dt-venda-n span { color: var(--mint, var(--accent)); font-weight: 600; margin-left: 2px; }
.dt-venda-barra { height: 5px; margin-top: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dt-venda-barra i { display: block; height: 100%; border-radius: 3px; background: var(--verde-2, var(--accent)); }
.dt-venda-fraca .dt-venda-n span { color: #e6c35a; }
.dt-venda-fraca .dt-venda-barra i { background: #c9a227; }
@media (max-width: 760px) { .dt-venda { width: 96px; } }

/* 40. Cash: sinais do contrato e da fatura em cada data (2026-10-27) */
.bl-docs { display: flex; gap: 6px; flex-shrink: 0; }
.bl-doc { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.bl-doc svg { width: 17px; height: 17px; }
.bl-doc.bl-verm { background: rgba(217, 112, 95, .16); color: #e08573; }
.bl-doc.bl-amar { background: rgba(201, 162, 39, .18); color: #e6c35a; }
.bl-doc.bl-verde { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--mint, var(--accent)); }
html[data-tema="claro"] .bl-doc.bl-verm { color: #b2452f; }
html[data-tema="claro"] .bl-doc.bl-amar { color: #8a6a00; }

/* 41. Comitiva na pagina da data (2026-10-27) */
.cm-n { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-faint); margin-left: 6px; }
.cm-grupo { margin: 10px 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cm-grupo span { color: var(--text-faint); font-weight: 500; margin-left: 4px; }
.cm-linha { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; flex-wrap: wrap; }
.cm-linha:last-child { border-bottom: 0; }
.cm-nome { font-weight: 600; min-width: 170px; }
.cm-f { flex: 1; color: var(--text-faint); font-size: 12.5px; }
.cm-tel { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

/* 42. Pagina da data com separadores: Resumo, Logistica, Negocio (2026-10-27) */
.dd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 18px; overflow-x: auto; scrollbar-width: none; }
.dd-tabs::-webkit-scrollbar { display: none; }
.dd-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font: inherit; font-weight: 600;
  font-size: 14.5px; color: var(--text-faint); cursor: pointer; white-space: nowrap; }
.dd-tab small { font-weight: 500; font-size: 12px; margin-left: 4px; }
.dd-tab:hover { color: var(--text); }
.dd-tab.on { color: var(--text); border-bottom-color: var(--mint, var(--accent)); }
.dd-pane[hidden] { display: none; }
.dd-grid { align-items: start; }
.dd-l { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dd-l:last-of-type { border-bottom: 0; }
.dd-k { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-faint); padding-top: 2px; }
.dd-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.dd-sub a { color: inherit; }
.dd-hs { display: flex; gap: 22px; flex-wrap: wrap; }
.dd-hs span { display: block; font-size: 11.5px; color: var(--text-faint); }
.dd-hs b { font-size: 16px; font-variant-numeric: tabular-nums; }
.dd-ir { font-size: 12.5px; margin-left: 6px; }
.dd-num { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dd-box { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.dd-box-l { grid-column: 1 / -1; }
.dd-box span { font-size: 12px; color: var(--text-faint); display: block; }
.dd-box b { display: block; font-size: 21px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.dd-box b small { font-size: 13px; color: var(--text-faint); font-weight: 500; }
.dd-barra { height: 6px; border-radius: 4px; background: var(--bg); margin-top: 8px; overflow: hidden; }
.dd-barra i { display: block; height: 100%; border-radius: 4px; }
.dd-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dd-doc { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 12.5px; text-decoration: none; }
.dd-doc b { display: block; font-size: 13.5px; color: var(--text); }
.dd-doc.bl-verm { background: rgba(217, 112, 95, .14); color: #e08573; }
.dd-doc.bl-amar { background: rgba(201, 162, 39, .16); color: #e6c35a; }
.dd-doc.bl-verde { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--mint, var(--accent)); }
html[data-tema="claro"] .dd-doc.bl-verm { color: #b2452f; }
html[data-tema="claro"] .dd-doc.bl-amar { color: #8a6a00; }
.dd-ic { font-size: 16px; width: 20px; text-align: center; }
.dd-mais { display: flex; gap: 8px; flex-wrap: wrap; }
.dd-mais a { border: 1px dashed var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--text-muted); text-decoration: none; }
.dd-mais a:hover { border-color: var(--accent); color: var(--text); }
.dd-ok { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--mint, var(--accent));
  font-weight: 700; cursor: pointer; }
.dd-ok:hover { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .dd-l { grid-template-columns: 1fr; gap: 4px; } .dd-docs { grid-template-columns: 1fr; } }

/* 43. Quadro financeiro com separadores (2026-10-27) */
.qt-fora { display: none !important; }
.dp-par { display: block; }

/* 44. Quadro: gravar sozinho, modo no topo, a nosso cargo editavel, despesas do promotor por grupo (2026-10-27) */
.q-modo-mini { margin-left: auto; }
.q-modo-mini label { cursor: pointer; padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--text-muted); }
.q-modo-mini label.on { background: var(--verde-2, var(--accent)); color: #fff; font-weight: 600; }
.q-modo-mini input { display: none; }
.q-guardar { align-items: center; gap: 12px; }
.q-gravado { font-size: 13px; color: var(--text-faint); }
.q-gravado.ok { color: var(--mint, var(--accent)); }
.q-gravado.a { color: #e6c35a; }
.q-gravado.erro { color: #e08573; }
.cargo-ed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cargo-l { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.cargo-l.cargo-falta { background: rgba(201, 162, 39, .14); color: #e6c35a; }
.cargo-l.cargo-ok { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--mint, var(--accent)); }
.cargo-l input { width: 100%; }
.qv-vazio { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 12px 0;
  padding: 16px 18px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #e0b44c 55%, var(--border));
  background: rgba(201, 162, 39, .08); font-size: 13.5px; }
.pd-g td { padding: 0 !important; }
.pd-g button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 8px; background: var(--surface-2); border: 0;
  border-radius: 8px; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; margin-top: 6px; }
.pd-seta { width: 12px; color: var(--text-faint); }
.pd-n { color: var(--text-faint); font-size: 12.5px; }
.pd-t { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
tr.pd-fech { display: none; }

/* 45. Listas de Datas e Cash mais limpas (2026-10-27) */
.dt-pais { color: var(--text-faint); font-weight: 500; }
.bl-val2 { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.bl-val2 b { font-size: 16px; font-variant-numeric: tabular-nums; }
.bl-val2 small { font-size: 12px; color: var(--text-faint); }

/* 46. Separador por mes, estado em bolinha, o que falta por extenso; Contactos (2026-10-27) */
.dt-mes { display: flex; align-items: baseline; gap: 10px; padding: 18px 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--mint, var(--accent)); border-bottom: 1px solid var(--border); }
.dt-mes:first-child { padding-top: 12px; }
.dt-mes span { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--text-faint); }
.dt-est { display: inline-flex; align-items: center; gap: 7px; width: 112px; flex-shrink: 0; font-size: 13px; font-weight: 600; }
.dt-est i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--text-faint); }
.dt-est.est-confirmado i { background: var(--mint, #7fd1a6); }
.dt-est.est-em_advance { color: var(--accent); } .dt-est.est-em_advance i { background: var(--accent); }
.dt-est.est-pendente { color: #ef7d7f; } .dt-est.est-pendente i { background: #e05a5c; }
.dt-est.est-cancelado { color: var(--text-faint); }
html[data-tema="claro"] .dt-est.est-pendente { color: #b3282a; }
.dt-falta-w { width: 170px; flex-shrink: 0; text-align: right; }
.dt-falta-w .chip { white-space: nowrap; }
.bl-pct { font-size: 12.5px; font-weight: 600; color: var(--mint, var(--accent)); margin-left: 4px; }
.bl-dica { margin-top: 5px; font-size: 11.5px; color: #e6c35a; }
.bl-dica-ok { color: var(--mint, var(--accent)); }
html[data-tema="claro"] .bl-dica { color: #8a6a00; }
.bl-vend { width: 230px; }
.ct-topo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.ct-topo input { flex: 1 1 280px; max-width: 520px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: inherit; font-size: 14px; }
.ct-tab .ct-nome { font-weight: 600; }
.ct-tab .ct-p { margin-left: 8px; font-size: 10.5px; }
.ct-tab .ct-tipo, .ct-tab .ct-cont { color: var(--text-faint); }
.ct-tab .ct-cont b { color: var(--text-muted); font-weight: 500; }
@media (max-width: 760px) { .dt-falta-w { width: auto; } .dt-est { width: auto; } }

/* 47. HOJE como painel do dia (2026-10-27) */
.hj-vermelho { color: #ef7d7f; }
html[data-tema="claro"] .hj-vermelho { color: #b3282a; }
.hj-quando { font-size: 13px; font-weight: 600; color: var(--mint, var(--accent)); white-space: nowrap; }
.hj-nada { padding: 10px 0; color: var(--text-faint); font-size: 14px; }
.hj-grelha { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hj-grupo { margin: 16px 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.hj-grupo:first-of-type { margin-top: 4px; }
.hj-g-atr { color: #ef7d7f; }
.hj-falta { color: #e6c35a; }
html[data-tema="claro"] .hj-falta { color: #8a6a00; }
.hj-mais { border-bottom: 1px solid var(--border); }
.hj-mais summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; font-weight: 600; font-size: 14px; }
.hj-mais summary::-webkit-details-marker { display: none; }
.hj-mais summary span { flex: 1; }
.hj-mais summary i { font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--mint, var(--accent)); }
.hj-mais[open] summary i { visibility: hidden; }
.hj-sub { display: flex; align-items: center; gap: 12px; padding: 7px 0 7px 12px; border-left: 2px solid var(--border); margin-left: 4px; font-size: 13.5px; }
.hj-sub > a:first-child { flex: 1; color: inherit; }
.hj-sub .hj-s { white-space: nowrap; }
.hj-sub form { margin: 0; }
.hj-sub .dd-ok { width: 30px; height: 30px; }
.hj-venda { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.hj-venda:last-child { border-bottom: 0; }
.hj-venda:hover b { color: var(--mint, var(--accent)); }
.hj-venda-t { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; font-size: 14px; }
.hj-venda-n { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hj-venda-n span { color: var(--text-faint); font-weight: 500; }
.hj-venda-n em { font-style: normal; color: var(--mint, var(--accent)); margin-left: 4px; }
.hj-venda-n em.fraca { color: #e6c35a; }
.hj-sobe { margin-top: 4px; color: var(--mint, var(--accent)); }
.hj-din { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 14px; }
.hj-din b { font-size: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hj-grelha { grid-template-columns: 1fr; } }
.hj-grelha > div > .card + .card { margin-top: 16px; }

/* 48. Artista: separador Vender (propostas + programas e cachets) (2026-10-27) */
.vd-nav { display: flex; gap: 8px; margin-bottom: 14px; }
.vd-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); text-decoration: none; }
.vd-nav a:hover { color: var(--text); border-color: var(--accent); }
.vd-sep { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; }
.vd-sep span { margin-left: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-faint); }

/* 49. Campanha: carregar num artista/seccao mostra quem abriu (2026-10-27) */
.cp-col { flex: 1 1 320px; max-width: 520px; }
.cp-dica { margin-left: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-faint); }
.cp-quem { border-bottom: 1px solid var(--border); }
.cp-quem summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; cursor: pointer; }
.cp-quem summary::-webkit-details-marker { display: none; }
.cp-quem summary span::before { content: "›"; display: inline-block; width: 14px; color: var(--text-faint); transition: transform .15s; }
.cp-quem[open] summary span::before { transform: rotate(90deg); }
.cp-quem summary:hover span { color: var(--mint, var(--accent)); }
.cp-q { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 6px 0 6px 14px;
  border-left: 2px solid var(--border); margin-left: 4px; font-size: 13px; }
.cp-q b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-q span { color: var(--text-faint); font-size: 12px; }
.cp-q i { font-style: normal; color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.cp-quem[open] { padding-bottom: 8px; }

/* 50. Revisao geral (2026-10-27): tabelas largas deslizam no telemovel em vez de alargar a pagina */
@media (max-width: 760px) {
  .card:has(> table), .card:has(> .tabela) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card > table { min-width: 520px; }
}

/* 51. Pedidos por WhatsApp: a conversa em baloes e a resposta (2026-10-27) */
.wa-num { margin-left: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-faint); }
.wa-conv { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow: auto; padding: 10px 2px; }
.wa-msg { max-width: 82%; padding: 8px 11px 5px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; }
.wa-msg span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--text-faint); text-align: right; }
.wa-in { align-self: flex-start; background: var(--surface-2); border-top-left-radius: 4px; }
.wa-out { align-self: flex-end; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); border-top-right-radius: 4px; }
.wa-form textarea { width: 100%; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.5; }
.wa-bts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; }
.wa-bts label { margin-right: auto; display: flex; gap: 6px; align-items: center; }
.chip-wa { background: rgba(37, 211, 102, .14); color: #6fdc98; }

/* 53. Topo como no FINANCE.TP (2026-11-02): icone num quadrado claro, nome maior, linha por baixo.
   PRODUCTION e mais comprido que FINANCE: letra estreita da casa para caber ao lado do icone */
.ico-entrada { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.18); color: #fff; flex: 0 0 auto; }
.ico-entrada svg { width: 22px; height: 22px; }
.brand { gap: 10px; padding: 6px 2px 18px 2px; flex-wrap: wrap; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.brand-linha { flex: 1 1 100%; height: 1px; background: rgba(255,255,255,.2); margin-top: 16px; }
.brand-botoes { margin-top: 16px; }
.auth-logo .ico-entrada { background: var(--surface-2); color: var(--text); }
.brand-tag { margin-top: 5px; font-size: 8.5px; letter-spacing: 2.4px; color: rgba(255,255,255,.62); }

/* ==== mais leitura nos dois modos, como no STAGE.TP (2026-11-02) ==== */
/* escuro: textos secundarios e linhas mais claros */
:root { --text-muted: #c3d0cd; --text-faint: #aebcb9; --border: #566a66; }
/* claro: fundo um pouco mais escuro, cartoes brancos, textos secundarios e linhas mais fortes */
html[data-tema="claro"] {
  --bg: #dfe8e4; --surface: #ffffff; --surface-2: #f1f5f3; --border: #c6d4ce;
  --text-muted: #46564f; --text-faint: #56656f;
}

/* 54. Envio do contrato: riders por link ou em anexo (2026-11-03) */
.ax-como { display: flex; align-items: center; gap: 14px; margin: 6px 0 2px; }
.ax-como .ax-como-t { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--text); flex-shrink: 0; }
.ax-como .ax-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.ax-como label.ax-op { display: block; margin: 0; padding: 0; cursor: pointer; grid-template-columns: none; }
.ax-como label.ax-op input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.ax-como .ax-op-c { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); color: var(--text-faint); transition: all .15s; }
.ax-como .ax-op-c b { display: block; font-size: 14px; color: var(--text); font-weight: 600; }
.ax-como .ax-op-c small { display: block; font-size: 12px; color: var(--text-faint); margin-top: 1px; }
.ax-como .ax-op-c svg { flex-shrink: 0; }
.ax-como label.ax-op:hover .ax-op-c { border-color: #8FB8A5; }
.ax-como label.ax-op input:checked + .ax-op-c { border-color: #5E9C80; background: color-mix(in srgb, #5E9C80 12%, var(--surface)); color: #417271;
  box-shadow: inset 0 0 0 1px #5E9C80; }
.ax-como label.ax-op input:focus-visible + .ax-op-c { outline: 2px solid #5E9C80; outline-offset: 2px; }
@media (max-width: 600px) { .ax-como { flex-direction: column; align-items: stretch; gap: 8px; } }

/* 55. Filtro do topo com varios artistas (2026-11-03) */
.fa-multi { position: relative; }
.fa-multi > summary { list-style: none; display: inline-flex; align-items: center; user-select: none; }
.fa-multi > summary::-webkit-details-marker { display: none; }
.fa-multi-caixa { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 260px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: 8px; }
.fa-multi-todos { font-size: 13px; font-weight: 600; color: var(--accent); padding: 4px 6px; }
.fa-multi-lista { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; }
.fa-multi-lista label { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.fa-multi-lista label:hover { background: var(--surface-2); }
.fa-multi-lista input { accent-color: #5E9C80; width: 15px; height: 15px; }
.fa-multi-caixa .btn { align-self: flex-end; }

/* 56. Uma cor por artista quando se veem varios (2026-11-03) */
.dt-cor .data-bloco { border-color: color-mix(in srgb, var(--cor-art) 45%, transparent);
  background: color-mix(in srgb, var(--cor-art) 10%, var(--surface)); }
.dt-cor .data-bloco strong, .dt-cor .data-bloco .dsem { color: var(--cor-art); }
.dt-cor .dt-t { color: var(--cor-art); }

/* 57. Comitiva da data: o nome abre a ficha da pessoa (2026-11-10) */
a.cm-nome-lig { color: inherit; text-decoration: none; }
a.cm-nome-lig:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.cm-sem-ficha { margin: 0; }
.cm-sem-ficha button { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; text-align: left; }
.cm-sem-ficha button small { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--accent); opacity: .7; }
.cm-sem-ficha button:hover { color: var(--accent); }
.cm-sem-ficha button:hover small { opacity: 1; }

/* 58. Caixas de ficheiro iguais em todas as paginas (2026-11-10) */
.fich-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.fich-btn.fich-ok { border-color: #5E9C80; color: #417271; }
.fich-nome { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
