/* Colors CSS - Cores específicas para os componentes */

/* Booking Summary Cards Colors - apenas para cards genéricos que não têm cor específica */
.booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card):not(.booking-document-budget-card):not(
    .booking-document-contract-card
  ):not(.booking-document-voucher-card):not(.booking-document-invoice-card):not(.booking-document-other-card) {
  background-color: #f5f5f9 !important;
}

/* Booking Payment Progress - cantos mais arredondados e cor de fundo */
.booking-payment-progress {
  border-radius: 15px !important;
  background-color: #e9ecef !important;
}

/* Progress específico */
.progress.booking-payment-progress {
  border-radius: 15px !important;
  background-color: #e9ecef !important;
}

/* Progress bar interna também com cantos arredondados */
.booking-payment-progress .progress-bar,
.progress.booking-payment-progress .progress-bar {
  border-radius: 15px !important;
}

/* Theme Specific Colors */
[data-theme='dark']
  .booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card):not(.booking-document-budget-card):not(
    .booking-document-contract-card
  ):not(.booking-document-voucher-card):not(.booking-document-invoice-card):not(.booking-document-other-card),
[data-bs-theme='dark']
  .booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card):not(.booking-document-budget-card):not(
    .booking-document-contract-card
  ):not(.booking-document-voucher-card):not(.booking-document-invoice-card):not(.booking-document-other-card) {
  background-color: #2a3847 !important;
}

[data-theme='light']
  .booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card):not(.booking-document-budget-card):not(
    .booking-document-contract-card
  ):not(.booking-document-voucher-card):not(.booking-document-invoice-card):not(.booking-document-other-card),
[data-bs-theme='light']
  .booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card):not(.booking-document-budget-card):not(
    .booking-document-contract-card
  ):not(.booking-document-voucher-card):not(.booking-document-invoice-card):not(.booking-document-other-card) {
  background-color: #f5f5f9 !important;
}

/* Progress bar background for dark theme */
[data-theme='dark'] .booking-payment-progress,
[data-bs-theme='dark'] .booking-payment-progress,
[data-theme='dark'] .progress.booking-payment-progress,
[data-bs-theme='dark'] .progress.booking-payment-progress {
  background-color: #3a4857 !important;
}

/* Ainda mais específico para garantir */
.card.booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card) {
  background-color: #f5f5f9 !important;
}

.row
  .col-md-4
  .card.booking-summary-card:not(.booking-valor-card):not(.booking-custo-card):not(.booking-lucro-card):not(
    .booking-margin-card
  ):not(.booking-recebimento-valor-card):not(.booking-recebimento-recebido-card):not(
    .booking-recebimento-pendente-card
  ):not(.booking-recebimento-progresso-card),
.row .col-md-3 .card.booking-summary-card {
  background-color: #f5f5f9 !important;
}

[data-theme='dark'] .card.booking-summary-card,
[data-bs-theme='dark'] .card.booking-summary-card {
  background-color: #2a3847 !important;
}

[data-theme='dark'] .row .col-md-4 .card.booking-summary-card,
[data-bs-theme='dark'] .row .col-md-4 .card.booking-summary-card,
[data-theme='dark'] .row .col-md-3 .card.booking-summary-card,
[data-bs-theme='dark'] .row .col-md-3 .card.booking-summary-card {
  background-color: #2a3847 !important;
}

/* Cards principais de resumo financeiro - seguindo mesmo padrão */

/* Card Valor Total - Azul claro */
.card.text-center.booking-summary-card.booking-valor-card,
.booking-valor-card.card,
.col-md-3 .booking-valor-card {
  background-color: #e3f2fd !important;
  border: none !important;
}

.booking-valor-card .text-muted,
.card.booking-valor-card .text-muted {
  color: #1976d2 !important;
}

[data-theme='dark'] .card.text-center.booking-summary-card.booking-valor-card,
[data-bs-theme='dark'] .card.text-center.booking-summary-card.booking-valor-card,
[data-theme='dark'] .booking-valor-card.card,
[data-bs-theme='dark'] .booking-valor-card.card,
[data-theme='dark'] .col-md-3 .booking-valor-card,
[data-bs-theme='dark'] .col-md-3 .booking-valor-card {
  background-color: #1e3a5f !important;
  border: none !important;
}

[data-theme='dark'] .booking-valor-card .text-muted,
[data-bs-theme='dark'] .card.booking-valor-card .text-muted {
  color: #90caf9 !important;
}

/* Card Custo Total - Laranja claro */
.card.text-center.booking-summary-card.booking-custo-card,
.booking-custo-card.card,
.col-md-3 .booking-custo-card {
  background-color: #fff3e0 !important;
  border: none !important;
}

.booking-custo-card .text-muted,
.card.booking-custo-card .text-muted {
  color: #f57c00 !important;
}

[data-theme='dark'] .card.text-center.booking-summary-card.booking-custo-card,
[data-bs-theme='dark'] .card.text-center.booking-summary-card.booking-custo-card,
[data-theme='dark'] .booking-custo-card.card,
[data-bs-theme='dark'] .booking-custo-card.card,
[data-theme='dark'] .col-md-3 .booking-custo-card,
[data-bs-theme='dark'] .col-md-3 .booking-custo-card {
  background-color: #4a3a2a !important;
  border: none !important;
}

[data-theme='dark'] .booking-custo-card .text-muted,
[data-bs-theme='dark'] .card.booking-custo-card .text-muted {
  color: #ffb74d !important;
}

/* Card Lucro Bruto - Verde claro */
.card.text-center.booking-summary-card.booking-lucro-card,
.booking-lucro-card.card,
.col-md-3 .booking-lucro-card {
  background-color: #e8f5e8 !important;
  border: none !important;
}

.booking-lucro-card .text-muted,
.card.booking-lucro-card .text-muted {
  color: #388e3c !important;
}

[data-theme='dark'] .card.text-center.booking-summary-card.booking-lucro-card,
[data-bs-theme='dark'] .card.text-center.booking-summary-card.booking-lucro-card,
[data-theme='dark'] .booking-lucro-card.card,
[data-bs-theme='dark'] .booking-lucro-card.card,
[data-theme='dark'] .col-md-3 .booking-lucro-card,
[data-bs-theme='dark'] .col-md-3 .booking-lucro-card {
  background-color: #2a4a3a !important;
  border: none !important;
}

[data-theme='dark'] .booking-lucro-card .text-muted,
[data-bs-theme='dark'] .card.booking-lucro-card .text-muted {
  color: #81c784 !important;
}

/* Margem de Lucro Card - Rosa pastel muito claro - MAIS ESPECÍFICO */
.card.text-center.booking-summary-card.booking-margin-card,
.booking-margin-card.card,
.col-md-3 .booking-margin-card {
  background-color: #fce4ec !important;
  border: none !important;
}

.booking-margin-card .text-muted,
.card.booking-margin-card .text-muted {
  color: #c2185b !important;
}

/* Dark theme para Margem de Lucro - mais claro e específico */
[data-theme='dark'] .card.text-center.booking-summary-card.booking-margin-card,
[data-bs-theme='dark'] .card.text-center.booking-summary-card.booking-margin-card,
[data-theme='dark'] .booking-margin-card.card,
[data-bs-theme='dark'] .booking-margin-card.card,
[data-theme='dark'] .col-md-3 .booking-margin-card,
[data-bs-theme='dark'] .col-md-3 .booking-margin-card {
  background-color: #4a3544 !important;
  border: none !important;
}

[data-theme='dark'] .booking-margin-card .text-muted,
[data-bs-theme='dark'] .card.booking-margin-card .text-muted {
  color: #f48fb1 !important;
}

/* Cards de Recebimentos - NO FINAL para máxima prioridade */

/* Card Recebimento Valor Total - Azul claro - PRIORIDADE MÁXIMA */
#tab-payments .card.booking-summary-card.booking-recebimento-valor-card,
.tab-pane .card.booking-summary-card.booking-recebimento-valor-card,
.booking-recebimento-valor-card.card.booking-summary-card {
  background-color: #e3f2fd !important;
  border: none !important;
}

.booking-recebimento-valor-card .text-muted {
  color: #1976d2 !important;
}

/* Card Recebimento Recebido - Verde claro - PRIORIDADE MÁXIMA */
#tab-payments .card.booking-summary-card.booking-recebimento-recebido-card,
.tab-pane .card.booking-summary-card.booking-recebimento-recebido-card,
.booking-recebimento-recebido-card.card.booking-summary-card {
  background-color: #e8f5e8 !important;
  border: none !important;
}

.booking-recebimento-recebido-card .text-muted {
  color: #388e3c !important;
}

/* Card Recebimento Pendente - Laranja claro - PRIORIDADE MÁXIMA */
#tab-payments .card.booking-summary-card.booking-recebimento-pendente-card,
.tab-pane .card.booking-summary-card.booking-recebimento-pendente-card,
.booking-recebimento-pendente-card.card.booking-summary-card {
  background-color: #fff3e0 !important;
  border: none !important;
}

.booking-recebimento-pendente-card .text-muted {
  color: #f57c00 !important;
}

/* Card Recebimento Progresso - Rosa claro - PRIORIDADE MÁXIMA */
#tab-payments .card.booking-summary-card.booking-recebimento-progresso-card,
.tab-pane .card.booking-summary-card.booking-recebimento-progresso-card,
.booking-recebimento-progresso-card.card.booking-summary-card {
  background-color: #fce4ec !important;
  border: none !important;
}

.booking-recebimento-progresso-card .text-muted {
  color: #c2185b !important;
}

/* Dark theme para cards de recebimentos */
[data-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-valor-card,
[data-bs-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-valor-card,
[data-theme='dark'] .booking-recebimento-valor-card.card.booking-summary-card,
[data-bs-theme='dark'] .booking-recebimento-valor-card.card.booking-summary-card {
  background-color: #1e3a5f !important;
}

[data-theme='dark'] .booking-recebimento-valor-card .text-muted,
[data-bs-theme='dark'] .booking-recebimento-valor-card .text-muted {
  color: #90caf9 !important;
}

[data-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-recebido-card,
[data-bs-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-recebido-card,
[data-theme='dark'] .booking-recebimento-recebido-card.card.booking-summary-card,
[data-bs-theme='dark'] .booking-recebimento-recebido-card.card.booking-summary-card {
  background-color: #2a4a3a !important;
}

[data-theme='dark'] .booking-recebimento-recebido-card .text-muted,
[data-bs-theme='dark'] .booking-recebimento-recebido-card .text-muted {
  color: #81c784 !important;
}

[data-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-pendente-card,
[data-bs-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-pendente-card,
[data-theme='dark'] .booking-recebimento-pendente-card.card.booking-summary-card,
[data-bs-theme='dark'] .booking-recebimento-pendente-card.card.booking-summary-card {
  background-color: #4a3a2a !important;
}

[data-theme='dark'] .booking-recebimento-pendente-card .text-muted,
[data-bs-theme='dark'] .booking-recebimento-pendente-card .text-muted {
  color: #ffb74d !important;
}

[data-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-progresso-card,
[data-bs-theme='dark'] #tab-payments .card.booking-summary-card.booking-recebimento-progresso-card,
[data-theme='dark'] .booking-recebimento-progresso-card.card.booking-summary-card,
[data-bs-theme='dark'] .booking-recebimento-progresso-card.card.booking-summary-card {
  background-color: #4a3544 !important;
}

[data-theme='dark'] .booking-recebimento-progresso-card .text-muted,
[data-bs-theme='dark'] .booking-recebimento-progresso-card .text-muted {
  color: #f48fb1 !important;
}

/* ========== DOCUMENT CARDS COLORS ========== */

/* Orçamento - Verde */
.booking-document-budget-card {
  background-color: #e8f5e8 !important;
}

.card.booking-document-budget-card {
  background-color: #e8f5e8 !important;
}

.booking-document-budget-card .text-muted {
  color: #2e7d32 !important;
}

[data-theme='dark'] .booking-document-budget-card,
[data-bs-theme='dark'] .booking-document-budget-card,
[data-theme='dark'] .card.booking-document-budget-card,
[data-bs-theme='dark'] .card.booking-document-budget-card {
  background-color: #2d4a2d !important;
}

[data-theme='dark'] .booking-document-budget-card .text-muted,
[data-bs-theme='dark'] .booking-document-budget-card .text-muted {
  color: #81c784 !important;
}

/* Contrato - Azul */
.booking-document-contract-card {
  background-color: #e3f2fd !important;
}

.card.booking-document-contract-card {
  background-color: #e3f2fd !important;
}

.booking-document-contract-card .text-muted {
  color: #1565c0 !important;
}

[data-theme='dark'] .booking-document-contract-card,
[data-bs-theme='dark'] .booking-document-contract-card,
[data-theme='dark'] .card.booking-document-contract-card,
[data-bs-theme='dark'] .card.booking-document-contract-card {
  background-color: #2a3f5f !important;
}

[data-theme='dark'] .booking-document-contract-card .text-muted,
[data-bs-theme='dark'] .booking-document-contract-card .text-muted {
  color: #64b5f6 !important;
}

/* Voucher - Amarelo */
.booking-document-voucher-card {
  background-color: #fffde7 !important;
}

.card.booking-document-voucher-card {
  background-color: #fffde7 !important;
}

.booking-document-voucher-card .text-muted {
  color: #f57f17 !important;
}

[data-theme='dark'] .booking-document-voucher-card,
[data-bs-theme='dark'] .booking-document-voucher-card,
[data-theme='dark'] .card.booking-document-voucher-card,
[data-bs-theme='dark'] .card.booking-document-voucher-card {
  background-color: #4a4537 !important;
}

[data-theme='dark'] .booking-document-voucher-card .text-muted,
[data-bs-theme='dark'] .booking-document-voucher-card .text-muted {
  color: #fff176 !important;
}

/* Fatura - Ciano */
.booking-document-invoice-card {
  background-color: #e0f2f1 !important;
}

.card.booking-document-invoice-card {
  background-color: #e0f2f1 !important;
}

.booking-document-invoice-card .text-muted {
  color: #00695c !important;
}

[data-theme='dark'] .booking-document-invoice-card,
[data-bs-theme='dark'] .booking-document-invoice-card,
[data-theme='dark'] .card.booking-document-invoice-card,
[data-bs-theme='dark'] .card.booking-document-invoice-card {
  background-color: #2d4544 !important;
}

[data-theme='dark'] .booking-document-invoice-card .text-muted,
[data-bs-theme='dark'] .booking-document-invoice-card .text-muted {
  color: #4db6ac !important;
}

/* Outros - Cinzento */
.booking-document-other-card {
  background-color: #f5f5f5 !important;
}

.card.booking-document-other-card {
  background-color: #f5f5f5 !important;
}

.booking-document-other-card .text-muted {
  color: #424242 !important;
}

[data-theme='dark'] .booking-document-other-card,
[data-bs-theme='dark'] .booking-document-other-card,
[data-theme='dark'] .card.booking-document-other-card,
[data-bs-theme='dark'] .card.booking-document-other-card {
  background-color: #3a3a3a !important;
}

[data-theme='dark'] .booking-document-other-card .text-muted,
[data-bs-theme='dark'] .booking-document-other-card .text-muted {
  color: #bdbdbd !important;
}
