/* CJ Ventes – inventaires, ventes aux enchères, salle de vente. */

/* Champs de saisie (mêmes réglages que les formulaires du Noyau, pour tous les formulaires du module). */
.cj-champ :is(input[type=text], input[type=date], input[type=time], input[type=number], input[type=tel], input[type=email], input[type=search], select, textarea) {
	width: 100%; max-width: 100%; min-height: 40px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 6px 10px; font-size: 14px; font-family: inherit; background: #fff; color: inherit;
}
.cj-champ :is(input, select, textarea):focus { border-color: #23417a; box-shadow: 0 0 0 2px rgba(35, 65, 122, .15); outline: none; }
.cj-champ input[type=file] { max-width: 100%; }
.cjv-liste-simple { list-style: none; margin: 0; padding: 0; }
.cjv-liste-simple li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.cjv-liste-simple a { color: #14284b; text-decoration: none; }

/* Listes de ventes */
.cjv-cartes { list-style: none; margin: 0; padding: 0; }
.cjv-cartes li a { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid #eef1f5; color: inherit; text-decoration: none; }
.cjv-cartes li a:hover { background: #f6f8fb; }
.cjv-cartes .dashicons { color: #b8892b; font-size: 24px; width: 24px; height: 24px; flex: none; }
.cjv-date { flex: none; width: 62px; text-align: center; border: 2px solid #14284b; border-radius: 9px; padding: 4px 0; color: #14284b; line-height: 1.15; font-size: 11.5px; }
.cjv-date strong { display: block; font-size: 22px; }
.cjv-c-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cjv-c-txt strong { color: #14284b; }
.cjv-cartes-compactes li a { padding: 9px 0; }

/* Création */
.cjv-natures { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cjv-nature { position: relative; cursor: pointer; }
.cjv-nature input { position: absolute; opacity: 0; }
.cjv-nature > span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 2px solid #dfe4ec; border-radius: 10px; background: #fff; }
.cjv-nature > span > .dashicons { color: #b8892b; font-size: 26px; width: 26px; height: 26px; }
.cjv-nature strong { color: #14284b; font-size: 16px; }
.cjv-nature input:checked + span { border-color: #14284b; background: #f3f6fb; box-shadow: 0 0 0 3px rgba(20, 40, 75, .12); }
.cjv-nature input:focus-visible + span { outline: 3px solid #b8892b; outline-offset: 2px; }
.cjv-choix-biens { list-style: none; margin: 0 0 14px; padding: 0; columns: 2 280px; }
.cjv-choix-biens li { padding: 4px 0; break-inside: avoid; }

/* En-tête de fiche */
.cjv-tete { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.cjv-tete p { margin: 0 0 6px; }
.cjv-tete-g { flex: 1 1 320px; min-width: 0; }
.cjv-quand { font-size: 17px; font-weight: 600; color: #14284b; }
.cjv-lieu { color: #3b4352; }
.cjv-quand .dashicons, .cjv-lieu .dashicons { color: #b8892b; }
.cjv-chiffres { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.cjv-chiffres > div { background: #f6f8fb; border-radius: 9px; padding: 8px 14px; min-width: 110px; }
.cjv-chiffres dt { font-size: 12px; color: #5a6270; }
.cjv-chiffres dd { margin: 0; font-size: 17px; font-weight: 700; color: #14284b; white-space: nowrap; }
.cjv-tete-act { flex: 1 1 100%; }
.cjv-onglets { flex-wrap: wrap; }
.cjv-grille { align-items: start; }
.cjv-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Étapes */
.cjv-etapes { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: e; }
.cjv-etapes li { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: #5a6270; }
.cjv-et-num { width: 26px; height: 26px; border-radius: 50%; background: #d6dbe4; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex: none; }
.cjv-etapes .fait { color: #1e6b45; }
.cjv-etapes .fait .cjv-et-num { background: #1e8a55; }
.cjv-etapes .actuel { color: #14284b; font-weight: 600; }
.cjv-etapes .actuel .cjv-et-num { background: #14284b; box-shadow: 0 0 0 4px rgba(20, 40, 75, .15); }
.cjv-docs { list-style: none; margin: 0; padding: 0; }
.cjv-docs li { padding: 6px 0; }
.cjv-docs a { color: #14284b; text-decoration: none; font-weight: 500; }
.cjv-docs .dashicons { color: #b8892b; }
.cjv-annuler > summary { list-style: none; }
.cjv-annuler > summary::-webkit-details-marker { display: none; }
.cjv-annuler form { margin-top: 10px; }

/* Lots */
.cjv-ajouts { margin-bottom: 14px; }
.cjv-ajout { width: 100%; }
.cjv-ajout > summary { list-style: none; display: inline-flex; margin-bottom: 12px; }
.cjv-ajout > summary::-webkit-details-marker { display: none; }
.cjv-edition, .cjv-form-bien { border-left: 4px solid #b8892b; }
.cjv-reprise h3 { margin-top: 0; }
.cjv-lots { list-style: none; margin: 0; padding: 0; }
.cjv-lots > li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.cjv-num { flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; background: #14284b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cjv-photo { flex: none; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; background: #f3f5f9; display: flex; align-items: center; justify-content: center; border: 1px solid #dfe4ec; }
.cjv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cjv-photo .dashicons { color: #c3cbd8; font-size: 30px; width: 30px; height: 30px; }
.cjv-lot-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cjv-lot-txt strong { color: #14284b; }
.cjv-lot-val { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.cjv-lot-val strong { white-space: nowrap; }
.cjv-lot-actions { display: flex; gap: 2px; margin-top: 4px; }
.cjv-lot-adjuge .cjv-num { background: #1e8a55; }
.cjv-lot-invendu { opacity: .72; }
.cjv-lot-invendu .cjv-num { background: #8a93a3; }
.cjv-resultat { color: #1e6b45; font-weight: 600; margin-top: 2px; }
.cjv-resultat a { color: inherit; }
.cjv-non { color: #7a5410; }
.cjv-manque { color: #b9770e; font-style: normal; }
.cjv-total-lots { text-align: right; margin: 12px 0 0; color: #3b4352; }
.cjv-coche { flex: none; padding-top: 6px; }
.cjv-coche input { width: 20px; height: 20px; }
.cjv-barre-vendre { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; background: #f6f8fb; padding: 12px; border-radius: 9px; }
.cjv-barre-vendre select { min-height: 40px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 6px 10px; font: inherit; max-width: 100%; }
.cjv-vignettes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cjv-vignettes figure { position: relative; margin: 0; }
.cjv-vignettes img { width: 86px; height: 86px; object-fit: cover; border-radius: 7px; border: 1px solid #dfe4ec; display: block; }
.cjv-vignettes form { position: absolute; top: -6px; right: -6px; }
.cjv-x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: #c0392b; color: #fff; font-size: 16px; line-height: 22px; cursor: pointer; padding: 0; }
.cjv-montant { text-align: right; font-variant-numeric: tabular-nums; }
.cjv-infos-inv > summary { cursor: pointer; }
.cjv-infos-inv form { margin-top: 12px; }

/* Publicité */
.cjv-avis { width: 100%; font: 13px/1.5 inherit; font-family: inherit; border: 1px solid #c3cbd8; border-radius: 8px; padding: 10px; background: #fbfcfe; margin-bottom: 10px; resize: vertical; }
.cjv-pubs { list-style: none; margin: 0 0 14px; padding: 0; }
.cjv-pubs li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef1f5; flex-wrap: wrap; }
.cjv-pub-txt { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.cjv-pub-act { display: flex; gap: 2px; align-items: center; }

/* Enchérisseurs */
.cjv-encs { list-style: none; margin: 0; padding: 0; }
.cjv-encs > li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef1f5; flex-wrap: wrap; }
.cjv-encs-choix > li { padding: 0; }
.cjv-encs-choix > li > a { display: flex; gap: 12px; align-items: center; padding: 10px 6px; color: inherit; text-decoration: none; width: 100%; border-radius: 8px; }
.cjv-encs-choix > li > a:hover, .cjv-encs-choix > li.cjv-courant > a { background: #f3f6fb; }
.cjv-encs-choix > li.cjv-courant > a { box-shadow: inset 3px 0 0 #b8892b; }
.cjv-paddle { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #b8892b; color: #fff; font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.cjv-enc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cjv-enc-txt strong { color: #14284b; }
.cjv-enc-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Salle de vente */
.cjv-gros { min-height: 52px; font-size: 16px; padding: 0 22px; }
.cjv-salle { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.cjv-crie { border-top: 4px solid #b8892b; }
.cjv-crie-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cjv-crie-num { font-size: 22px; font-weight: 800; color: #14284b; }
.cjv-crie-corps { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.cjv-crie-corps h2 { margin: 0 0 6px; font-size: 20px; }
.cjv-crie-corps p { margin: 0 0 6px; }
.cjv-crie-photo { flex: none; width: 170px; }
.cjv-crie-photo img { width: 170px; height: 170px; object-fit: cover; border-radius: 10px; border: 1px solid #dfe4ec; display: block; }
.cjv-offre { display: flex; flex-direction: column; align-items: center; background: #14284b; color: #fff; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.cjv-offre span { font-size: 13px; opacity: .85; }
.cjv-offre strong { font-size: 32px; letter-spacing: .5px; color: #f1d58f; font-variant-numeric: tabular-nums; }
.cjv-saisie { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cjv-saisie select, .cjv-gros-champ { min-height: 48px; font-size: 18px !important; }
.cjv-paliers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.cjv-paliers .cj-bouton { min-height: 36px; padding: 0 12px; }
.cjv-adjuger { min-height: 48px; font-size: 16px; }
.cjv-bids { margin: 12px 0; padding-left: 22px; max-height: 220px; overflow: auto; }
.cjv-bids li { padding: 3px 0; }
.cjv-bids li:first-child { color: #1e6b45; }
.cjv-autres { margin-top: 10px; background: #f6f8fb; border-radius: 8px; padding: 10px 12px; }
.cjv-autres > summary { cursor: pointer; font-weight: 600; color: #14284b; }
.cjv-ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.cjv-ligne input[type=text] { min-height: 38px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 4px 10px; font: inherit; flex: 1 1 160px; min-width: 0; }
.cjv-ligne label { font-weight: 500; }
.cjv-inscr-rapide > summary { list-style: none; display: inline-flex; }
.cjv-inscr-rapide > summary::-webkit-details-marker { display: none; }
.cjv-inscr-rapide[open] > summary { margin-bottom: 12px; }
.cjv-salle-d h3 { margin-top: 0; }
.cjv-mini-lots { list-style: none; margin: 0 0 12px; padding: 0; max-height: 460px; overflow: auto; }
.cjv-mini-lots a { display: flex; gap: 8px; align-items: center; padding: 6px 4px; color: inherit; text-decoration: none; border-radius: 6px; font-size: 13px; }
.cjv-mini-lots a:hover { background: #f3f6fb; }
.cjv-mini-lots .cjv-num { min-width: 28px; height: 28px; font-size: 12.5px; }
.cjv-mini-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cjv-mini-val { flex: none; font-variant-numeric: tabular-nums; color: #3b4352; }
.cjv-courant > a { background: #fdf3e1 !important; font-weight: 600; }
.cjv-total-salle { border-top: 1px solid #dfe4ec; padding-top: 10px; }

/* Adjudicataires */
.cjv-adj { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.cjv-somme { width: 100%; max-width: 420px; margin: 12px 0 0 auto; border-collapse: collapse; }
.cjv-somme-large { max-width: none; }
.cjv-somme td { padding: 6px 4px; border-bottom: 1px solid #eef1f5; }
.cjv-somme td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cjv-somme .cjv-fort td { border-top: 2px solid #14284b; font-weight: 700; color: #14284b; font-size: 15px; }
.cjv-somme .cjv-reste td { color: #b9770e; }
.cjv-somme .cjv-solde td { color: #1e6b45; }
.cjv-regs { list-style: none; margin: 0; padding: 0; }
.cjv-regs li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.cjv-regs li > span { flex: 1 1 220px; }
.cjv-mt { white-space: nowrap; }
.cjv-annule { opacity: .6; }
.cjv-annule .cjv-mt { text-decoration: line-through; }
.cjv-annul-reg > summary { list-style: none; }
.cjv-annul-reg > summary::-webkit-details-marker { display: none; }
.cjv-annul-reg[open] { flex: 1 1 100%; }

@media (max-width: 980px) {
	.cjv-salle, .cjv-adj { grid-template-columns: 1fr; }
	.cjv-mini-lots { max-height: 180px; }
}
@media (max-width: 760px) {
	.cjv-grille { grid-template-columns: minmax(0, 1fr) !important; }
	.cj-champ :is(input, select, textarea) { font-size: 16px; }
	.cjv-table thead { display: none; }
	.cjv-table, .cjv-table tbody, .cjv-table tr, .cjv-table td { display: block; width: 100%; }
	.cjv-table tr { padding: 10px 0; border-bottom: 1px solid #dde3ec; }
	.cjv-table td { border: 0; padding: 2px 0; text-align: left !important; }
	.cjv-lots > li { flex-wrap: wrap; }
	.cjv-photo { width: 60px; height: 60px; }
	.cjv-lot-txt { flex: 1 1 calc(100% - 120px); }
	.cjv-lot-val { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
	.cjv-crie-corps { flex-direction: column; }
	.cjv-crie-photo, .cjv-crie-photo img { width: 100%; height: auto; max-height: 260px; }
	.cjv-saisie { grid-template-columns: 1fr; }
	.cjv-offre strong { font-size: 28px; }
	.cjv-chiffres > div { flex: 1 1 40%; min-width: 0; }
	.cjv-date { width: 54px; }
	.cjv-cartes li a { flex-wrap: wrap; }
	.cjv-cartes .cj-statut { margin-left: 68px; }
}
