
/* Colonne Jeu plus large */
#estimates-table td:nth-child(2),
#estimates-table th:nth-child(2) {
    min-width: 320px !important;
    width: 320px !important;
    max-width: 450px !important;
    white-space: normal !important;
}


/* Meilleure gestion du défilement dans les modales (mobile) */
.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS: permet le défilement dans le contenu de la modale */
    touch-action: pan-y; /* Indique que le geste vertical sert à défiler */
}


/* Miniatures BoardGameGeek dans la liste des demandes de prix (page utilisateur) */
.estimate-image-wrapper {
    position: relative;
    display: inline-block;
}

.estimate-image-thumb {
    width: auto !important;
    height: auto !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: center center !important;
    cursor: zoom-in;
}

/* Aperçu plein format au survol */
.estimate-image-full {
    display: none;
    position: absolute;
    top: 0;
    left: 105%;
    width: auto !important;
    height: auto !important;
    max-width: 320px !important;
    max-height: 320px !important;
    object-fit: contain !important;
    object-position: center center !important;
    z-index: 1100;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
    background-color: #ffffff;
    padding: 4px;
}

.estimate-image-wrapper:hover .estimate-image-full {
    display: block;
}


/* Demandes de prix - Suggestions popup */
.ludo-suggest-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: .375rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  margin-top: .25rem;
  max-height: 360px;
  overflow-y: auto;
}

.ludo-suggest-popup .list-group-item {
  border-left: 0;
  border-right: 0;
}

/* Ligne meta suggestions (date · prix · langue) */
.ludo-suggest-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ludo-locked-select {
  pointer-events: none;
  background-color: rgba(0,0,0,.03);
}


/* Demandes de prix - Image placeholder cliquable (BGG) */
.estimate-image-placeholder {
  width: 60px;
  height: 60px;
  border: 1px dashed rgba(0, 0, 0, 0.35);
  border-radius: .375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  line-height: 1.1;
}

.estimate-image-placeholder:hover {
  background: rgba(0, 0, 0, 0.03);
}

.bgg-modal-results .list-group-item {
  cursor: pointer;
}
