/* Painel de lances do auditório: mesma linguagem visual dos cards
   (auditorium-cards-1.0.0.css). Prefixo body.page-auditorium porque o
   main.css do tema carrega depois deste arquivo.
   O painel divide a coluna com o logo, então cada bloco é o mais raso possível:
   lote, último lance e formulário em três faixas curtas. */

body.page-auditorium #panel-bid.bid-panel,
body.page-auditorium #panel-left .bid-panel--empty {
  --st: #9aa5a8;          /* cor do status */
  --st-dark: #7d888b;     /* faixa do topo */
  --st-tint: #f1f3f3;     /* fundo dos blocos tingidos */
  --st-text: #5d6b6e;

  display: block;
  margin: 0;
  background: #fff;
  /* borda discreta e sem sombra: quem colore o painel e a faixa do topo */
  border: 1px solid #dfe4e5;
  border-radius: .5rem .5rem 0 0;
  overflow: hidden;
  box-shadow: none;
  color: #1d2b2e;
}

/* Cores por status, iguais às dos cards */
body.page-auditorium #panel-bid.bid-panel.waiting   { --st: #123740; --st-dark: #123740; --st-tint: #e6eef0; --st-text: #123740; }
body.page-auditorium #panel-bid.bid-panel.open      { --st: #41ba4d; --st-dark: #34943d; --st-tint: #e7f6e9; --st-text: #257a30; }
body.page-auditorium #panel-bid.bid-panel.subjudice { --st: #ffa700; --st-dark: #e08f00; --st-tint: #fff3d9; --st-text: #9a6500; }
body.page-auditorium #panel-bid.bid-panel.finalized,
body.page-auditorium #panel-bid.bid-panel.halted    { --st: #9aa5a8; --st-dark: #7d888b; --st-tint: #f1f3f3; --st-text: #5d6b6e; }
/* Fim do prazo: as duas classes convivem com .open, entao vem depois dela */
body.page-auditorium #panel-bid.bid-panel.closing-3 { --st: #ffa700; --st-dark: #e08f00; --st-tint: #fff3d9; --st-text: #9a6500; }
body.page-auditorium #panel-bid.bid-panel.closing-1 { --st: #ff0000; --st-dark: #cc0000; --st-tint: #fde6e6; --st-text: #c00000; }

/* Faixa do topo */
body.page-auditorium #panel-bid .bid-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: var(--primary, #123740);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
body.page-auditorium #panel-bid .bid-panel__header-title { white-space: nowrap; }
body.page-auditorium #panel-bid .bid-panel__header-status {
  min-width: 0;
  padding: 1px 8px;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .18);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rótulos pequenos */
body.page-auditorium #panel-bid .bid-panel__label {
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #5d6b6e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Identificação do lote */
body.page-auditorium #panel-bid .bid-panel__lot { padding: 9px 12px 0; }
body.page-auditorium #panel-bid .batch-title {
  height: auto;
  max-height: 36px;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: #1d2b2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.page-auditorium #panel-bid .bid-panel__meta {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
  color: #5d6b6e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-auditorium #panel-bid .bid-panel__meta b { color: #1d2b2e; font-weight: 800; }

/* Último lance */
body.page-auditorium #panel-bid .bid-panel__current {
  margin: 8px 12px 0;
  padding: 6px 10px 7px;
  border-radius: .5rem;
  background: var(--st-tint);
  color: var(--st-text);
  cursor: default;
}
body.page-auditorium #panel-bid .bid-panel__current-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
body.page-auditorium #panel-bid .bid-panel__current .bid-panel__label { color: inherit; opacity: .9; }
body.page-auditorium #panel-bid .bid-panel__bids { flex: none; opacity: .75; }
/* login do vencedor sai do caixa-alta do rótulo: nome é nome */
body.page-auditorium #panel-bid .bid-panel__bidder { font-size: 11px; text-transform: none; }
body.page-auditorium #panel-bid .bid-panel__current-value {
  margin-top: 1px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-auditorium #panel-bid .bid-panel__current-empty {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}
body.page-auditorium #panel-bid .bid-panel__commission {
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
}
body.page-auditorium #panel-bid .bid-panel__next { margin-top: 4px; }
body.page-auditorium #panel-bid .bid-panel__next-value {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Formulário */
body.page-auditorium #panel-bid .bid-panel__form { padding: 9px 12px 12px; }
body.page-auditorium #panel-bid .bid-panel__field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}
body.page-auditorium #panel-bid .bid-panel__label--field { margin: 0; flex: none; }
body.page-auditorium #panel-bid input#bid_value {
  width: 100%;
  height: auto;
  padding: 6px 10px;
  border: 2px solid #dfe4e5;
  border-radius: .5rem;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  color: #1d2b2e;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
body.page-auditorium #panel-bid input#bid_value:focus {
  border-color: #123740;
  box-shadow: 0 0 0 3px rgba(18, 55, 64, .12);
  outline: 0;
}
body.page-auditorium #panel-bid input#bid_value:disabled {
  background: #f1f3f3;
  color: #7c8a8d;
}

/* Lance automático ativo */
body.page-auditorium #panel-bid .bid-panel__auto {
  margin-top: 6px;
  padding: 5px 8px;
  border: 1px solid #ffd6bf;
  border-radius: .5rem;
  background: #fff1e9;
  color: #c44503;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

/* Parcelado / À vista */
body.page-auditorium #panel-bid .bid-panel__types {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
body.page-auditorium #panel-bid .bid-panel__type { flex: 1 1 0; min-width: 0; }
body.page-auditorium #panel-bid .bid-panel__type input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}
body.page-auditorium #panel-bid .bid-panel__type label {
  display: block;
  margin: 0;
  padding: 6px;
  border: 1px solid #dfe4e5;
  border-radius: .5rem;
  background: #fff;
  color: #5d6b6e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .3px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
body.page-auditorium #panel-bid .bid-panel__type input:checked + label {
  border-color: #123740;
  background: #123740;
  color: #fff;
}
body.page-auditorium #panel-bid .bid-panel__type input:disabled + label { opacity: .55; cursor: not-allowed; }
body.page-auditorium #panel-bid .bid-panel__type input:focus + label { box-shadow: 0 0 0 3px rgba(18, 55, 64, .15); }

/* Sinal e parcelas */
body.page-auditorium #panel-bid #bid-type-form.bid-panel__installments {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding: 5px 10px 6px;
  border: 1px solid #e8ecec;
  border-radius: .5rem;
  background: #f7f8f8;
}
body.page-auditorium #panel-bid .bid-panel__installment { flex: 1 1 0; min-width: 0; }
body.page-auditorium #panel-bid .bid-panel__installment select {
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  color: #1d2b2e;
}

/* Lote sem parcelamento */
body.page-auditorium #panel-bid .bid-panel__closed {
  margin: 12px;
  padding: 8px;
  border-radius: .5rem;
  background: #f1f3f3;
  color: #5d6b6e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

body.page-auditorium #panel-bid .bid-panel__no-installments {
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: .5rem;
  background: #f1f3f3;
  color: #5d6b6e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

/* Botão principal */
body.page-auditorium #panel-bid .bid-panel__cta {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 0;
  border-radius: .5rem;
  background: var(--st-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .4px;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
  transition: background .2s, transform .1s, box-shadow .1s;
}
body.page-auditorium #panel-bid .bid-panel__cta:hover { background: #17724a; color: #fff; }
body.page-auditorium #panel-bid .bid-panel__cta:active { transform: translateY(2px); box-shadow: none; }
body.page-auditorium #panel-bid .bid-panel__cta:disabled {
  background: #dfe4e5;
  color: #7c8a8d;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
body.page-auditorium #panel-bid .bid-panel__cta--enable { background: var(--secondary, #fe5d05); }
body.page-auditorium #panel-bid .bid-panel__cta--enable:hover { background: #d94d02; }
body.page-auditorium #panel-bid .bid-panel__cta--soon,
body.page-auditorium #panel-bid .bid-panel__cta--soon:disabled {
  background: #eef2f2;
  color: #7c8a8d;
  box-shadow: none;
}

/* Nenhum lote selecionado */
body.page-auditorium #panel-left .bid-panel--empty {
  padding: 14px 16px;
  text-align: center;
  color: #5d6b6e;
}
body.page-auditorium #panel-left .bid-panel--empty .bid-panel__empty-icon {
  margin-bottom: 4px;
  font-size: 20px;
  color: #9aa5a8;
}
body.page-auditorium #panel-left .bid-panel--empty .bid-panel__empty-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #123740;
}

/* No celular o painel é uma gaveta no rodapé: só o essencial para dar o lance */
@media (max-width: 575.98px) {
  body.page-auditorium #panel-bid .bid-panel__lot,
  body.page-auditorium #panel-bid .bid-panel__current { display: none; }
  body.page-auditorium #panel-bid .bid-panel__header { padding: 5px 12px; }
  body.page-auditorium #panel-bid .bid-panel__form { padding: 8px 12px 10px; }
  body.page-auditorium #panel-bid input#bid_value { font-size: 20px; }
  body.page-auditorium #panel-bid .bid-panel__cta { padding: 9px 10px; }
  body.page-auditorium #panel-left .bid-panel--empty { padding: 10px 16px; }
}

@media (min-width: 576px) {
  body.page-auditorium #panel-bid.bid-panel,
  body.page-auditorium #panel-left .bid-panel--empty {
    border-radius: .5rem;
  }
}
