/* V3.305 — correções visuais exclusivas do tema claro.
   Mantém o dark intacto e neutraliza regras hard-coded de fundo/cor escuros. */

/* Sidebar: evita SVG branco sobre fundo claro no hover e melhora contraste padrão. */
body[data-theme=light].system-pro-v3 .sb-v228-rail-btn,
body[data-theme=light].system-pro-v3 .sb-v228-bottom-btn {
  color:#66707c!important;
}
body[data-theme=light].system-pro-v3 .sb-v228-rail-btn:hover,
body[data-theme=light].system-pro-v3 .sb-v228-bottom-btn:hover {
  color:#24292f!important;
  background:#eef1f4!important;
  border-color:#d9dee5!important;
}
body[data-theme=light].system-pro-v3 .sb-v228-rail-btn svg,
body[data-theme=light].system-pro-v3 .sb-v228-bottom-btn svg {
  color:inherit!important;
  stroke:currentColor!important;
}

/* Drawer de Acordos: remove blocos e ações pretas herdadas do dark. */
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-avatar {
  background:#f1f3f5!important;
  border-color:#d9dee5!important;
  color:#5d6773!important;
}
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-notes-v103 {
  background:#f8f9fb!important;
  border-color:#dfe3e8!important;
}
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-notes-v103 textarea.fs {
  background:#fff!important;
  border-color:#d9dee5!important;
  color:#303740!important;
}
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-notes-v103 textarea.fs::placeholder {
  color:#8b949e!important;
}
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-agreement-actions button:not(.primary),
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-open-parcelas {
  background:#f3f5f7!important;
  border-color:#d7dde4!important;
  color:#404a56!important;
}
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-agreement-actions button:not(.primary):hover,
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-drawer-open-parcelas:hover {
  background:#e9edf1!important;
  border-color:#c8d0d9!important;
  color:#1f242a!important;
}
body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-history-count {
  background:#f1f3f5!important;
  border-color:#d9dee5!important;
  color:#5f6975!important;
}

/* Botão de retorno de Parcelamentos fica no cabeçalho, fora de #cobPanelParcelamentos. */
body[data-theme=light].system-pro-v3 .cob-parcelas-page-context .cob-parcelas-back-btn {
  background:#fff!important;
  border-color:#dce1e7!important;
  color:#4f5966!important;
}
body[data-theme=light].system-pro-v3 .cob-parcelas-page-context .cob-parcelas-back-btn:hover {
  background:#f2f4f6!important;
  border-color:#cbd2da!important;
  color:#24292f!important;
}

/* Configurações > Avisos: o select é convertido em .csel-trigger pelo JS. */
body[data-theme=light].system-pro-v3 #page-configuracoes .cfg-notice-card .csel-trigger {
  background:#f5f5f5!important;
  border-color:#d9dee5!important;
  color:#303740!important;
}
body[data-theme=light].system-pro-v3 #page-configuracoes .cfg-notice-card .csel-panel {
  background:#fff!important;
  border-color:#d9dee5!important;
  box-shadow:0 12px 28px rgba(17,24,39,.12)!important;
}
body[data-theme=light].system-pro-v3 #page-configuracoes .cfg-notice-card .csel-option:hover {
  background:#f2f4f6!important;
  color:#20242a!important;
}

/* Configurações > Criar tag: inputs estavam recebendo o .fs escuro da tela. */
body[data-theme=light].system-pro-v3 #cobConfigTagFormOverlay .fs {
  background:#f5f6f8!important;
  border-color:#d9dee5!important;
  color:#303740!important;
}
body[data-theme=light].system-pro-v3 #cobConfigTagFormOverlay .fs:hover {
  border-color:#cbd2da!important;
}
body[data-theme=light].system-pro-v3 #cobConfigTagFormOverlay .fs::placeholder {
  color:#8d96a1!important;
}
body[data-theme=light].system-pro-v3 #cobConfigTagFormOverlay .cfg-tag-form-head {
  border-bottom-color:#e5e7eb!important;
}

/* Adicionar pessoa: ícones de seção, cancelar e dropdown seguem o tema claro. */
body[data-theme=light].system-pro-v3 #cobNovaPessoaOverlay .cob-np-section-icon {
  background:#f2f4f7!important;
  border-color:#dde2e8!important;
  color:#64707d!important;
}
body[data-theme=light].system-pro-v3 #cobNovaPessoaOverlay .cob-np-cancel {
  background:#fff!important;
  border-color:#d5dbe3!important;
  color:#4a5562!important;
}
body[data-theme=light].system-pro-v3 #cobNovaPessoaOverlay .cob-np-cancel:hover:not(:disabled) {
  background:#f2f4f6!important;
  border-color:#cbd2da!important;
  color:#24292f!important;
}
body[data-theme=light].system-pro-v3 #cobNovaPessoaOverlay .csel-panel {
  background:#fff!important;
  border-color:#d9dee5!important;
  box-shadow:0 14px 32px rgba(17,24,39,.14)!important;
}
body[data-theme=light].system-pro-v3 #cobNovaPessoaOverlay .csel-option {
  color:#404a56!important;
}
body[data-theme=light].system-pro-v3 #cobNovaPessoaOverlay .csel-option:hover {
  background:#f2f4f6!important;
  color:#20242a!important;
}

/* Cobranças > Drawer > Acordos do aluno.
   Reforça o light com especificidade maior que os blocos legados do drawer. */
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-card,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-node.active .cob-reneg-card {
  background:#fff!important;
  border-color:#dfe3e8!important;
  box-shadow:none!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-node.active .cob-reneg-card {
  border-color:#b9dfc5!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-history-title,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-card-title {
  color:#27313b!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-history-sub,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-summary-item span,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-finance span {
  color:#6f7a86!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-summary-item strong,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-finance strong {
  color:#3d4854!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-finance {
  border-top-color:#e3e7eb!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-finance > div {
  border-right-color:#e3e7eb!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-line {
  background:#dfe4e9!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-badge.active {
  background:#eaf8ef!important;
  color:#15803d!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-badge.replaced {
  background:#eef1f4!important;
  color:#66717d!important;
}

/* Ações do histórico: compactas e proporcionais em ambos os temas. */
body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-card .fbtn {
  width:auto!important;
  min-width:0!important;
  height:28px!important;
  min-height:28px!important;
  padding:0 10px!important;
  border-radius:7px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:650!important;
  white-space:nowrap!important;
}
body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-payment-actions {
  display:inline-flex!important;
  margin-top:8px!important;
  margin-right:6px!important;
  gap:6px!important;
  vertical-align:top!important;
}
body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-payment-actions + div[style*="margin-top:8px"] {
  display:inline-flex!important;
  margin-top:8px!important;
  vertical-align:top!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-card .fbtn {
  background:#f7f8fa!important;
  border-color:#d5dbe2!important;
  color:#3e4853!important;
}
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-card .fbtn:hover:not(:disabled) {
  background:#eef1f4!important;
  border-color:#c5cdd6!important;
  color:#20262d!important;
}

/* Exclusão de acordo: mantém uma área de clique confortável, mas visualmente exibe somente o X. */
html body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-delete-btn {
  top:9px!important;
  right:11px!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#dc2626!important;
  font-size:16px!important;
  line-height:1!important;
}
html body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-delete-btn:hover,
html body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-delete-btn:focus,
html body.system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-delete-btn:focus-visible,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-delete-btn:hover,
html body[data-theme=light].system-pro-v3 #cobAcordoDrawerOverlay .cob-reneg-delete-btn:focus-visible {
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#b91c1c!important;
  outline:none!important;
}
