/* V1995 — cards de cabeçalho no tamanho padrão (200–260 px, agrupados à direita) e título dos cards em 1 linha */
@media (min-width: 761px) {
  .v2 .hd-cards, .v2 .hd-cards.n3, .v2 .hd-cards.n4 { display: flex; justify-content: flex-end; gap: 10px; }
  .v2 .hd-cards > .hd-c { flex: 1 1 200px; min-width: 200px; max-width: 260px; }
}
.v2 .card-v2-head { overflow-wrap: normal; }
.v2 .card-v2-head-top { min-width: 0; }
.v2 .card-v2-head .card-v2-name { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2 .card-v2-head .k1-cli { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* mesmas regras para os cartões com prefixo de tela (jz-, lz-, rz-, cz-) */
.v2 .pg [class*="card-v2-head"] { overflow-wrap: normal; }
.v2 .pg [class*="card-v2-head-top"] { min-width: 0; }
.v2 .pg [class*="card-v2-name"] { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2 .pg [class~="k1-cli"], .v2 .pg [class$="-k1-cli"] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* V1996 — confirmação de excluir no padrão: botões baixos, vermelho chapado, sem degradê */
html body .excluir-popover-inline .confirmacao-acoes-inline button, html body .v2-conf .v2-conf-ac button { height: 30px !important; min-height: 0 !important; padding: 0 14px !important; font-size: 12px !important; font-weight: 600 !important; border-radius: 999px !important; background-image: none !important; box-shadow: none !important; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
html body .excluir-popover-inline .confirmacao-acoes-inline .btn-action, html body .v2-conf .v2-conf-ac .v2-conf-sim { background: var(--accent-red, #dc2626) !important; border: 1px solid var(--accent-red, #dc2626) !important; color: #fff !important; }
html body .excluir-popover-inline .confirmacao-acoes-inline .btn-secondary-discreto, html body .v2-conf .v2-conf-ac .v2-conf-nao { background: transparent !important; border: 1px solid var(--border-color) !important; color: var(--text-primary) !important; }
/* V1996 — Início: dia de hoje com borda cinza sutil, sem fundo azulado */
.v2 .pg.in.iz .iz-ag-d.iz-hj { background: rgba(255, 255, 255, 0.02); box-shadow: 0 0 0 1px #5d6a80 inset; }
html[data-theme="light"] .v2 .pg.in.iz .iz-ag-d.iz-hj { background: rgba(0, 0, 0, 0.02); box-shadow: 0 0 0 1px #b3bccc inset; }
/* V1996 — faixa dos cards de fornecedores: azul 20% chapado no lugar do degradê */
.v2 .pg.fzp .fz-cap { background: rgba(47, 94, 234, 0.20); color: var(--text-primary); }
.v2 .pg.fzp .fz-cap small { color: var(--text-secondary); opacity: 1; }
/* V1996 — campos do modal de projeto (Dados, Equipe e fornecedores, Financeiro e fechamento) em pílula */
html body [id^="ptab-"] input.input-element:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
html body [id^="ptab-"] select.input-element,
html body [id^="ptab-"] input:not([type]),
html body [id^="ptab-"] input[type="text"],
html body [id^="ptab-"] input[type="number"],
html body [id^="ptab-"] input[type="date"],
html body [id^="ptab-"] input[type="email"],
html body [id^="ptab-"] input[type="tel"],
html body [id^="ptab-"] select { border-radius: 999px !important; padding-left: 18px; padding-right: 18px; }
html body [id^="ptab-"] select.input-element { padding-right: 34px; }
html body [id^="ptab-"] textarea.input-element, html body [id^="ptab-"] textarea { border-radius: 16px !important; padding-left: 18px; padding-right: 18px; }
/* V1997 — cabeçalho: sem sobreposição em janelas estreitas. Com o menu lateral aberto, 3 cards de 200 px não cabem ao lado do título abaixo de ~1440 px de tela (4 cards: ~1680 px); nesse caso os cards descem para baixo do título */
@media (max-width: 1439px) {
  .v2 [class$="hd-in"] { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .v2 [class$="hd-cards"] { justify-content: flex-start !important; }
}
@media (max-width: 1679px) {
  .v2 [class*="in-hd"] [class$="hd-in"] { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  .v2 [class*="in-hd"] [class*="hd-cards"] { justify-content: flex-start !important; }
}
