/* Detalhe Recebíveis (Execução / Alvará): interface limpa na identidade violeta */
.detalhe-verbas {
  --exec-purple: #7c3aed;
  --exec-purple-dark: #4c1d95;
  --exec-purple-soft: #f3efff;
  --exec-border: #e7e4ee;
}

.detalhe-verbas .exec-detalhe-modal {
  overflow: hidden;
  max-height: 90vh;
  border: 1px solid var(--exec-border);
  border-radius: 16px;
  background: #f8f7fa;
  box-shadow: 0 26px 70px rgba(30, 8, 54, 0.24);
}

.detalhe-verbas .exec-detalhe-topbar {
  padding: 18px 22px;
  border-color: var(--exec-border);
}

.detalhe-verbas .exec-detalhe-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--exec-purple-soft);
  color: var(--exec-purple-dark);
  box-shadow: none;
}

.detalhe-verbas .exec-detalhe-topbar-title {
  font-size: 17px;
}

.detalhe-verbas .exec-detalhe-topbar-sub {
  color: #747b89;
  font-size: 11px;
}

.exec-detalhe-save,
.exec-detalhe-cancel {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font: 700 11px/1 var(--font-sans);
  cursor: pointer;
}

.exec-detalhe-save {
  padding: 0 17px;
  border: 1px solid var(--exec-purple, #7c3aed);
  background: var(--exec-purple, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.2);
}

.exec-detalhe-save:hover {
  border-color: #6d28d9;
  background: #6d28d9;
}

.exec-detalhe-cancel {
  padding: 0 17px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4c1d95;
  box-shadow: none;
}

.exec-detalhe-cancel:hover {
  border-color: #c4c9d4;
  background: #fafafa;
  color: #4c1d95;
  text-decoration: none;
}

.detalhe-verbas .exec-detalhe-layout {
  gap: 18px;
  padding: 20px 22px;
  background: #f8f7fa;
}

#modal-execucao-detalhe .exec-detalhe-layout,
#modal-alvara-detalhe .exec-detalhe-layout,
#modal-acordo-detalhes .exec-detalhe-layout {
  grid-template-columns: minmax(0, 1fr);
}

.detalhe-verbas .exec-card {
  padding: 18px;
  border-color: var(--exec-border);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(46, 16, 101, 0.035);
}

.detalhe-verbas .exec-card-title {
  gap: 8px;
  margin-bottom: 15px;
  padding-left: 9px;
  border-left-color: var(--exec-purple);
  color: #30273d;
  font-size: 13px;
}

.detalhe-verbas .exec-card-title i {
  color: var(--exec-purple);
}

.detalhe-verbas .exec-field {
  gap: 6px;
}

.detalhe-verbas .exec-field > label {
  color: #565e6d;
  font-size: var(--text-meta);
  font-weight: 750;
}

.detalhe-verbas .exec-input-wrap {
  display: block;
}

.detalhe-verbas .exec-input-wrap input,
.detalhe-verbas .exec-input-wrap select,
.detalhe-verbas .exec-slot select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe1e9;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  outline: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025);
}

.detalhe-verbas .exec-input-wrap input:focus,
.detalhe-verbas .exec-input-wrap select:focus,
.detalhe-verbas .exec-slot select:focus {
  border-color: var(--exec-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.11);
}

.detalhe-verbas .exec-valores-grid {
  align-items: end;
  grid-template-columns: minmax(0, 1.15fr) 68px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.detalhe-verbas .exec-valores-grid--completo {
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(0, 1.1fr)
    minmax(108px, 118px)
    minmax(0, 1fr)
    minmax(118px, 128px)
    minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .detalhe-verbas .exec-valores-grid--completo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(108px, 118px) minmax(0, 1fr);
  }
}

.detalhe-verbas .exec-valores-grid--reduzido {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

/* Cada campo da linha de Valores tem a largura do próprio título: o controle é
   retirado do cálculo intrínseco (width: 0) e depois preenche o campo inteiro
   (min-width: 100%), de modo que input e label fiquem sempre alinhados. */
.detalhe-verbas .exec-valores-grid--reduzido .exec-field {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}

.detalhe-verbas .exec-valores-grid--reduzido .exec-field > label {
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
}

.detalhe-verbas .exec-valores-grid--reduzido .exec-input-wrap {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.detalhe-verbas .exec-valores-grid--reduzido .exec-input-wrap input,
.detalhe-verbas .exec-valores-grid--reduzido .exec-input-wrap select {
  flex: 1 1 auto;
  width: 0;
  min-width: 100%;
  max-width: none;
}

.detalhe-verbas .exec-valores-grid--reduzido .exec-input-wrap select {
  padding-right: 28px;
}

/* O título alterna entre "Valor Bruto" e "Valor Bruto com Correção"; o piso
   evita que o campo encolha abaixo do necessário para exibir o valor. */
.detalhe-verbas .exec-valores-grid--reduzido .exec-field--bruto {
  min-width: 7rem;
}

.detalhe-verbas .exec-valores-grid--reduzido .exec-field--modalidade {
  min-width: 14rem;
}

/* Informações adicionais: fruto de busca + Status/Tentativa/IDPJ/Med. atípica em uma única linha */
.detalhe-verbas .exec-grid--info-linha {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.detalhe-verbas .exec-detalhe-info-contents {
  display: contents;
}

.detalhe-verbas .exec-detalhe-info-contents[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .detalhe-verbas .exec-valores-grid--reduzido {
    flex-wrap: wrap;
  }
  .detalhe-verbas .exec-grid--info-linha {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.detalhe-verbas .exec-valores-grid .exec-field--pct {
  flex: 0 0 auto;
}

.detalhe-verbas .exec-valores-grid--reduzido .exec-field--pct input {
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.detalhe-verbas .exec-grid--busca-q {
  grid-template-columns: minmax(220px, 360px);
  gap: 10px;
}

.detalhe-verbas .exec-busca-parcial-bloco {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--exec-border);
}

.detalhe-verbas .exec-busca-parcial-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
  gap: 12px;
}

.detalhe-verbas .exec-busca-parcial-grid > .exec-field[hidden] {
  display: none !important;
}

.detalhe-verbas .exec-busca-parcial-grid #exec-busca-tipo-fgts-wrap {
  min-width: 220px;
}

.detalhe-verbas .exec-busca-parcial-acoes {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.detalhe-verbas .exec-busca-parcial-acoes .exec-detalhe-save {
  min-height: 42px;
  white-space: nowrap;
}

.detalhe-verbas .exec-busca-saldo {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: 9px;
  background: var(--exec-purple-soft);
  color: #3b3350;
  font-size: 12px;
  line-height: 1.55;
}

.detalhe-verbas .exec-busca-saldo strong {
  color: var(--exec-purple-dark);
}

.detalhe-verbas .exec-busca-vencimentos-preview {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f4f5f8;
  color: #4a5160;
  font-size: 12px;
  line-height: 1.45;
}

.detalhe-verbas .exec-busca-vencimentos-preview strong {
  color: #2f3642;
}

.detalhe-verbas .exec-grid--info {
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detalhe-verbas .exec-grid--info .exec-field > label {
  font-size: var(--text-meta);
}

.detalhe-verbas .exec-grid--info .exec-input-wrap input,
.detalhe-verbas .exec-grid--info .exec-input-wrap select,
.detalhe-verbas .exec-grid--info .exec-slot select {
  min-height: 36px;
  padding: 0 8px;
  font-size: var(--text-meta);
  border-radius: 8px;
}

.detalhe-verbas [data-exec-honorarios],
.detalhe-verbas [data-alvara-honorarios] {
  color: var(--text);
  cursor: default;
  background: var(--surface);
}

.detalhe-verbas .exec-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #51465f;
  cursor: pointer;
  user-select: none;
}

.detalhe-verbas .exec-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--exec-purple);
  cursor: pointer;
}

.detalhe-verbas .exec-sucumbencias-parcela {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--exec-border);
}

.detalhe-verbas .exec-descricao-conteudo {
  display: grid;
  gap: 12px;
}

.detalhe-verbas .exec-descricao-bloco {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detalhe-verbas .exec-descricao-item {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--exec-border, #e7e4ee);
  border-radius: 9px;
  background: #fafafe;
  color: #3a3348;
  font-size: 12px;
  line-height: 1.55;
}

.detalhe-verbas .exec-descricao-btn-nova {
  flex-shrink: 0;
  white-space: nowrap;
}

.detalhe-verbas .exec-descricao-btn-nova[hidden] {
  display: none !important;
}

.detalhe-verbas .exec-descricao-vazio {
  margin: 0;
  color: #9299a7;
  font-size: 12px;
}

.detalhe-verbas .exec-pag-venc {
  color: #737b8a;
  font-size: var(--text-meta);
  font-weight: 600;
  white-space: nowrap;
}

.detalhe-verbas .exec-pag-pago {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.detalhe-verbas .exec-pag-pago .execucao-cell-input {
  width: auto;
  flex: 0 0 auto;
  max-width: 170px;
}

.detalhe-verbas .exec-pag-pago .tag {
  flex: 0 0 auto;
}

.detalhe-verbas .exec-pagamentos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detalhe-verbas .exec-pagamentos-head .exec-detalhe-pagamentos-titulo {
  margin: 0;
}

.detalhe-verbas .exec-incluir-pagamento {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--exec-border);
  border-radius: 11px;
  background: #fafafe;
}

.detalhe-verbas .exec-incluir-bloco + .exec-incluir-bloco {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--exec-border);
}

.detalhe-verbas .exec-incluir-bloco-titulo {
  margin-bottom: 10px;
  color: #30273d;
  font-size: 11px;
  font-weight: 800;
}

.detalhe-verbas .exec-incluir-acoes {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detalhe-verbas .exec-incluir-escolha-hint {
  margin: 0 0 12px;
  color: var(--text-light);
  font-size: 12px;
}

.detalhe-verbas .exec-incluir-escolha-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detalhe-verbas .exec-incluir-escolha-acoes .btn {
  flex: 1 1 220px;
  justify-content: center;
}

.detalhe-verbas .exec-incluir-saldo {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--exec-border);
  border-radius: 8px;
  background: #fff;
  color: #30273d;
  font-size: 12px;
}

.detalhe-verbas .exec-incluir-saldo strong {
  color: var(--exec-purple, #7c3aed);
}

.detalhe-verbas .exec-detalhe-side {
  padding: 18px;
  border: 1px solid var(--exec-border);
  border-left: 2px solid #c4b5fd;
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(46, 16, 101, 0.035);
}

.detalhe-verbas .exec-side-title {
  color: #30273d;
  font-size: 13px;
}

.detalhe-verbas .exec-side-list {
  gap: 13px;
}

.detalhe-verbas .exec-side-ic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--exec-purple-soft);
  color: #51465f;
  font-size: 11px;
}

.detalhe-verbas .exec-side-label {
  color: #7c8390;
  font-size: var(--text-meta);
}

.detalhe-verbas .exec-side-value {
  font-size: 11px;
}

/* Pagamentos registrados */
.detalhe-verbas .exec-detalhe-pagamentos-titulo {
  color: #30273d;
  font-size: 13px;
}

.detalhe-verbas .exec-detalhe-pagamentos-titulo i {
  color: var(--exec-purple);
}

.detalhe-verbas .exec-detalhe-pagamentos-vazio {
  color: #8d94a1;
  font-size: var(--text-meta);
}

.detalhe-verbas .exec-detalhe-pagamentos-wrap {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--exec-border);
  border-radius: 10px;
  background: var(--surface);
}

.detalhe-verbas .exec-detalhe-pagamentos-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.detalhe-verbas .exec-detalhe-pagamentos-table thead th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--exec-border);
  background: #fafafe;
  color: #554a67;
  font-size: var(--text-meta);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detalhe-verbas .exec-detalhe-pagamentos-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #ececf3;
  color: #344054;
  font-size: var(--text-meta);
}

.detalhe-verbas .exec-detalhe-pagamentos-table tbody tr:last-child td {
  border-bottom: 0;
}

.detalhe-verbas .exec-detalhe-pagamentos-total {
  color: #4e5666;
  font-size: var(--text-meta);
}

.detalhe-verbas .exec-detalhe-saldo-box {
  margin: 16px 0 2px;
  padding: 0;
  border: 1px solid #e7e4ee;
  border-radius: 16px;
  background: #fff;
  color: #3b3350;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
}

.detalhe-verbas .exec-valores-resumo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.detalhe-verbas .exec-valores-resumo-card {
  padding: 14px 16px;
  border: 1px solid #ece9f3;
  border-radius: 12px;
  background: #fff;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante {
  border-top: 3px solid #7c3aed;
}

.detalhe-verbas .exec-valores-resumo-card--advogado {
  border-top: 3px solid #16a34a;
}

.detalhe-verbas .exec-valores-resumo-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.detalhe-verbas .exec-valores-resumo-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-icon {
  background: #f3efff;
  color: #7c3aed;
}

.detalhe-verbas .exec-valores-resumo-card--advogado .exec-valores-resumo-icon {
  background: #ecfdf3;
  color: #16a34a;
}

.detalhe-verbas .exec-valores-resumo-title {
  color: #30273d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-title {
  color: #6d28d9;
}

.detalhe-verbas .exec-valores-resumo-card--advogado .exec-valores-resumo-title {
  color: #15803d;
}

.detalhe-verbas .exec-valores-resumo-sub {
  margin-top: 2px;
  color: #8b93a1;
  font-size: 11px;
  line-height: 1.35;
}

.detalhe-verbas .exec-valores-resumo-table {
  min-width: 0;
}

.detalhe-verbas .exec-valores-resumo-cols-head,
.detalhe-verbas .exec-valores-resumo-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(72px, 0.68fr) 1px minmax(72px, 0.68fr);
  align-items: center;
  column-gap: 6px;
}

.detalhe-verbas .exec-valores-resumo-cols-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ece9f3;
}

.detalhe-verbas .exec-valores-resumo-col-head {
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detalhe-verbas .exec-valores-resumo-col-head--receber {
  color: #000;
}

.detalhe-verbas .exec-valores-resumo-col-head--saldo {
  color: #7c3aed;
}

.detalhe-verbas .exec-valores-resumo-cols-vdiv,
.detalhe-verbas .exec-valores-resumo-row-vdiv {
  width: 1px;
  align-self: stretch;
  min-height: 22px;
  background: #cbd5e1;
  opacity: 0.55;
  justify-self: center;
}

.detalhe-verbas .exec-valores-resumo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.detalhe-verbas .exec-valores-resumo-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detalhe-verbas .exec-valores-resumo-row {
  gap: 8px 10px;
}

.detalhe-verbas .exec-valores-resumo-row-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row-ic {
  background: #f3efff;
  color: #7c3aed;
}

.detalhe-verbas .exec-valores-resumo-card--advogado .exec-valores-resumo-row-ic {
  background: #ecfdf3;
  color: #16a34a;
}

.detalhe-verbas .exec-valores-resumo-row-ic--fgts {
  font-size: 8px;
  letter-spacing: -0.02em;
}

.detalhe-verbas .exec-valores-resumo-label {
  color: #4a5160;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.detalhe-verbas .exec-valores-resumo-dots {
  display: none;
}

.detalhe-verbas .exec-valores-resumo-val {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.detalhe-verbas .exec-valores-resumo-val--col {
  display: block;
  width: 100%;
  text-align: center;
  justify-self: center;
}

.detalhe-verbas .exec-valores-resumo-val--receber {
  color: #000;
}

.detalhe-verbas .exec-detalhe-saldo-box .exec-valores-resumo-val--receber {
  color: #000;
}

.detalhe-verbas .exec-valores-resumo-val--saldo {
  color: #7c3aed;
}

.detalhe-verbas .exec-valores-resumo-row--spacer {
  min-height: 32px;
  visibility: hidden;
  pointer-events: none;
}

.detalhe-verbas .exec-valores-resumo-row--total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma {
  display: grid;
  gap: 0;
  margin-top: 2px;
  list-style: none;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma-parcelas {
  display: grid;
  gap: 0;
  padding: 6px 8px 8px;
  border: 1px solid #f3d56a;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fffbeb;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row--soma-a,
.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row--soma-b {
  padding: 4px 0;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row--soma-op {
  min-height: 18px;
  padding: 0;
  gap: 8px 10px;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma-sinal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: #facc15;
  color: #713f12;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-val--soma-parcela {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fde047;
  color: #713f12;
  box-shadow: inset 0 0 0 1px #eab308;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row--soma-total {
  margin-top: 0;
  padding: 8px;
  border: 1px solid #4ade80;
  border-radius: 0 0 10px 10px;
  background: #ecfdf3;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-total-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma-hint {
  color: #15803d;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-val--soma-total-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #22c55e;
  color: #fff;
  box-shadow: inset 0 0 0 1px #16a34a;
}

.detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row--soma-total .exec-valores-resumo-row-ic--total {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.detalhe-verbas .exec-valores-resumo-label--total,
.detalhe-verbas .exec-valores-resumo-val--total {
  font-weight: 800;
}

.detalhe-verbas .exec-valores-resumo-row-ic--total {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.detalhe-verbas .exec-valores-saldo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0 20px;
  align-items: center;
  margin: 0 14px 14px;
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.detalhe-verbas .exec-valores-saldo-divider {
  width: 1px;
  align-self: stretch;
  min-height: 72px;
  background: #94a3b8;
  opacity: 0.45;
}

.detalhe-verbas .exec-valores-saldo-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.detalhe-verbas .exec-valores-saldo-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  font-size: 18px;
}

.detalhe-verbas .exec-valores-saldo-title {
  color: #1e40af;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.detalhe-verbas .exec-valores-saldo-desc {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.detalhe-verbas .exec-valores-saldo-calc {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.detalhe-verbas .exec-valores-saldo-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #0f172a;
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.detalhe-verbas .exec-valores-saldo-breakdown li {
  margin: 0;
  color: #0f172a;
}

.detalhe-verbas .exec-valores-saldo-breakdown li.is-minus {
  color: #0f172a;
}

.detalhe-verbas .exec-valores-resumo-nota {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid #e7e4ee;
  background: #f8fbff;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.detalhe-verbas .exec-valores-resumo-nota i {
  margin-top: 2px;
  color: #3b82f6;
}

@media (max-width: 900px) {
  .detalhe-verbas .exec-valores-resumo-grid,
  .detalhe-verbas .exec-valores-saldo-card {
    grid-template-columns: 1fr;
  }

  .detalhe-verbas .exec-valores-saldo-divider {
    display: none;
  }

  .detalhe-verbas .exec-valores-saldo-calc {
    justify-content: center;
  }
}

.detalhe-verbas .exec-detalhe-saldo-box strong {
  color: var(--recebiveis-purple, #7c3aed);
  font-weight: 800;
}

.detalhe-verbas .exec-detalhe-saldo-restante {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e7e4ee;
  color: #5b6475;
  font-size: 12.5px;
  line-height: 1.45;
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-saldo-box {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--text);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card {
  background: var(--bg);
  border-color: var(--border);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-title,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-label {
  color: var(--text);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-saldo-box .exec-valores-resumo-val--receber,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-col-head--receber {
  color: var(--text);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-saldo-card {
  background: var(--bg);
  border-color: var(--border);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma-parcelas {
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.45);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-val--soma-parcela {
  background: #eab308;
  color: #1c1917;
  box-shadow: inset 0 0 0 1px #ca8a04;
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma-sinal {
  background: #eab308;
  color: #1c1917;
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-row--soma-total {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(74, 222, 128, 0.5);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-soma-hint {
  color: #86efac;
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-card--reclamante .exec-valores-resumo-val--soma-total-val {
  background: #16a34a;
  color: #fff;
  box-shadow: inset 0 0 0 1px #22c55e;
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-valores-resumo-nota {
  background: var(--bg-secondary);
  border-top-color: var(--border);
  color: var(--text-light);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-saldo-restante {
  border-top-color: var(--border);
  color: var(--text-light);
}

:is([data-theme="dark"], [data-theme="blue"]) .exec-detalhe-cancel {
  background: var(--bg-secondary);
  border-color: var(--border);
  color: var(--text-light);
}

:is([data-theme="dark"], [data-theme="blue"]) .exec-detalhe-cancel:hover {
  background: var(--bg);
  border-color: var(--accent-light);
  color: var(--primary-light);
}

.detalhe-verbas .exec-pag-excluir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 0;
}

.detalhe-verbas .exec-pag-excluir.btn-icon-trash {
  border: 0;
  background: transparent;
  color: inherit;
}

.detalhe-verbas .exec-pag-excluir .icon-trash-img {
  width: 28px;
  height: 28px;
}

.detalhe-verbas .exec-detalhe-footer {
  justify-content: flex-start;
  padding: 4px 22px 20px;
  border: 0;
  background: #f8f7fa;
}

.exec-detalhe-delete {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #dc2626;
  font: 700 11px/1 var(--font-sans);
  cursor: pointer;
}

.exec-detalhe-delete:hover {
  border-color: #fca5a5;
  background: #feecec;
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-modal,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-layout,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-footer {
  background: var(--bg);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-card-title,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-side-title,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-detalhe-pagamentos-titulo,
:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-field > label {
  color: var(--text);
}

:is([data-theme="dark"], [data-theme="blue"]) .detalhe-verbas .exec-descricao-item {
  background: var(--bg-secondary);
  color: var(--text);
}

@media (max-width: 860px) {
  .detalhe-verbas .exec-detalhe-topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exec-detalhe-save,
  .exec-detalhe-cancel,
  .exec-detalhe-delete {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .detalhe-verbas .exec-detalhe-topbar,
  .detalhe-verbas .exec-detalhe-layout {
    padding-right: 15px;
    padding-left: 15px;
  }

  .detalhe-verbas .exec-detalhe-topbar-actions {
    grid-template-columns: 1fr;
  }

  .detalhe-verbas .exec-detalhe-footer {
    padding-right: 15px;
    padding-left: 15px;
  }
}

.exec-tentativa-bases {
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-light, #6b7280);
  font-size: 12px;
  line-height: 1.45;
}

.exec-tentativa-datas-bloco {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border, #e5e7eb);
}

.exec-tentativa-datas-titulo {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text, #1f2937);
}

.exec-tentativa-datas-hint {
  font-weight: 500;
  color: var(--text-light, #6b7280);
}

.exec-tentativa-datas-lista {
  display: grid;
  gap: 8px;
}

.exec-tentativa-data-item {
  display: grid;
  grid-template-columns: 72px minmax(120px, 1fr) minmax(110px, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--text-light, #6b7280);
}

.exec-tentativa-data-item input[type="date"],
.exec-tentativa-data-item input[type="text"] {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  background: var(--surface, #fff);
  color: var(--text, #1f2937);
  font-size: 12px;
}

@media (max-width: 860px) {
  .detalhe-verbas .exec-descricao-bloco {
    flex-direction: column;
  }

  .detalhe-verbas .exec-descricao-btn-nova {
    align-self: flex-end;
  }
}

  .exec-tentativa-data-item {
    grid-template-columns: 1fr 1fr;
  }

  .exec-tentativa-data-item > span {
    grid-column: 1 / -1;
  }
}
