/* Modais do auditório (Detalhes do lote / Histórico de lances), carregados via #ajax-modal.
   Mesmo padrão visual das telas de conta: cantos arredondados, título forte, ícone em círculo laranja. */

.page-auditorium #ajax-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(18, 55, 64, .25);
}

/* Cabeçalho */
.lot-modal__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(160deg, var(--primary, #123740) 0%, #0b242b 100%);
  color: #fff;
}
.lot-modal__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(254, 93, 5, .18);
  color: var(--secondary, #fe5d05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.lot-modal__heading { flex: 1; min-width: 0; }
.lot-modal__title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.lot-modal__subtitle {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  margin-top: .15rem;
}
.lot-modal__close {
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s;
}
.lot-modal__close:hover { background: rgba(255, 255, 255, .18); }

/* Corpo */
.lot-modal__body {
  padding: 1.5rem;
  color: #1d2b2e;
}
.lot-modal__lot-title {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary, #123740);
  margin-bottom: 1.25rem;
}
.lot-modal__lot-title i { font-size: .8rem; margin-left: .35rem; color: var(--secondary, #fe5d05); }
.lot-modal__lot-title:hover { color: var(--secondary, #fe5d05); text-decoration: none; }

.lot-modal__section {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a979a;
  margin: 1.75rem 0 .75rem;
}
.lot-modal__section:first-child { margin-top: 0; }

/* Blocos de destaque (lote, leilão, datas...) */
.lot-modal__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.lot-modal__facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lot-modal__fact {
  background: #f4f6f7;
  border-radius: 10px;
  padding: .75rem 1rem;
}
.lot-modal__fact span {
  display: block;
  font-size: .75rem;
  color: #6c757d;
}
.lot-modal__fact b {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary, #123740);
  overflow-wrap: anywhere;
}
.lot-modal__fact--accent { background: #fff6f0; }
.lot-modal__fact--accent b { color: var(--secondary, #fe5d05); }

/* Lista rótulo/valor */
.lot-modal__list { margin: 0; }
.lot-modal__row {
  display: flex;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid #eceff1;
}
.lot-modal__row:last-child { border-bottom: 0; }
.lot-modal__row dt {
  width: 190px;
  flex-shrink: 0;
  font-weight: 600;
  color: #6c757d;
}
.lot-modal__row dd {
  flex: 1;
  margin: 0;
  overflow-wrap: anywhere;
}

.lot-modal__description {
  background: #f9fafb;
  border: 1px solid #eceff1;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lot-modal__description > :last-child { margin-bottom: 0; }

/* Tabelas do histórico de lances */
.lot-modal__table-wrap {
  border: 1px solid #eceff1;
  border-radius: 10px;
  overflow: hidden;
  overflow-x: auto;
}
.lot-modal__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.lot-modal__table th {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a979a;
  background: #f4f6f7;
  padding: .6rem .9rem;
  white-space: nowrap;
}
.lot-modal__table td {
  padding: .6rem .9rem;
  border-top: 1px solid #eceff1;
  white-space: nowrap;
}
.lot-modal__table tr:nth-child(even) td { background: #fafbfb; }
.lot-modal__table .is-value { font-weight: 700; color: var(--primary, #123740); }
.lot-modal__table--winner td { background: #f3fbf4 !important; }
.lot-modal__table--winner .is-value { color: #257a30; }
.lot-modal__tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  padding: .1rem .4rem;
  border-radius: 4px;
  background: #e6eef0;
  color: var(--primary, #123740);
  vertical-align: 1px;
}

.lot-modal__empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #6c757d;
}
.lot-modal__empty i {
  display: block;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  font-size: 2rem;
  color: #c9d3d5;
  margin-bottom: .75rem;
}

/* Rodapé */
.lot-modal__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eceff1;
  background: #fff;
}
.lot-modal__footer .btn {
  height: 44px;
  padding: 0 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.lot-modal__footer .btn-link-lot {
  color: var(--secondary, #fe5d05);
  border: 1px solid #f3d3c0;
  background: #fff;
}
.lot-modal__footer .btn-link-lot:hover { background: #fff6f0; }

@media (max-width: 767.98px) {
  .lot-modal__header, .lot-modal__body, .lot-modal__footer { padding-left: 1rem; padding-right: 1rem; }
  .lot-modal__title { font-size: 1.2rem; }
  .lot-modal__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lot-modal__row { flex-direction: column; gap: .15rem; }
  .lot-modal__row dt { width: auto; }
  .lot-modal__footer .btn { flex: 1; justify-content: center; padding: 0 .75rem; font-size: .9rem; white-space: nowrap; }
}
