/* CJ Comptabilité – fonds de tiers (bleu) et compte de l'étude (or) toujours distingués. */
.cj-champ :is(input[type=text], input[type=date], input[type=number], 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; }
.cjf-onglets { flex-wrap: wrap; }
.cjf-actions { margin-bottom: 14px; }
.cjf-deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.cjf-deux > .cj-carte { margin: 0; }
.cjf-fonds h2 .dashicons { vertical-align: -3px; }
.cjf-fonds-tiers { border-top: 4px solid #23417a; }
.cjf-fonds-tiers h2 .dashicons { color: #23417a; }
.cjf-fonds-etude { border-top: 4px solid #b8892b; }
.cjf-fonds-etude h2 .dashicons { color: #b8892b; }
.cjf-somme { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.cjf-somme td { padding: 7px 4px; border-bottom: 1px solid #eef1f5; }
.cjf-somme td:last-child { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cjf-somme a { color: #14284b; text-decoration: none; }
.cjf-fort td { border-top: 2px solid #14284b; font-weight: 700; color: #14284b; }
.cjf-controle { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.cjf-controle.ok { background: #e7f5ed; color: #1e6b45; }
.cjf-controle.ko { background: #fbeaea; color: #922b21; }
.cjf-liste-simple { list-style: none; margin: 0; padding: 0; }
.cjf-liste-simple li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef1f5; }
.cjf-liste-simple a { color: #14284b; text-decoration: none; }
.cjf-alertes { border-left: 4px solid #c0392b; }
.cjf-alertes h2 .dashicons { color: #c0392b; }
.cjf-anomalies { border-left: 4px solid #b9770e; }
.cjf-table td { vertical-align: top; }
.cjf-table .cjf-e { color: #1e6b45; }
.cjf-table .cjf-s { color: #922b21; }
.cjf-annulee td { color: #8a93a3; }
.cjf-annulee td:nth-child(3) { text-decoration: line-through; }
.cjf-act { white-space: nowrap; }
.cjf-annul > summary { list-style: none; display: inline-flex; }
.cjf-annul > summary::-webkit-details-marker { display: none; }
.cjf-annul[open] { white-space: normal; }
.cjf-ligne { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.cjf-ligne input[type=text] { min-height: 36px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 4px 10px; font: inherit; flex: 1 1 180px; }
.cjf-fonds-tiers-pastille, .cjf-fonds-etude-pastille { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.cjf-fonds-tiers-pastille { background: #e8eef9; color: #23417a; }
.cjf-fonds-etude-pastille { background: #fdf3e1; color: #7a5410; }
.cjf-revs { list-style: none; margin: 0; padding: 0; }
.cjf-revs a { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #eef1f5; color: inherit; text-decoration: none; flex-wrap: wrap; }
.cjf-revs a:hover { background: #f6f8fb; }
.cjf-rev-txt { flex: 1 1 260px; display: flex; flex-direction: column; }
.cjf-rev-txt strong { color: #14284b; }
.cjf-rev-mt { font-weight: 700; white-space: nowrap; }
.cjf-comptes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cjf-compte { display: flex; flex-direction: column; padding: 8px 14px; border: 2px solid #dfe4ec; border-radius: 10px; background: #fff; color: #14284b; text-decoration: none; min-width: 170px; }
.cjf-compte span { font-size: 12.5px; color: #5a6270; }
.cjf-compte.cjf-c-tiers { border-left: 5px solid #23417a; }
.cjf-compte.cjf-c-etude { border-left: 5px solid #b8892b; }
.cjf-compte.actif { border-color: #14284b; box-shadow: 0 0 0 3px rgba(20, 40, 75, .1); }
.cjf-periode { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.cjf-periode input { min-height: 38px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 4px 8px; font: inherit; }
.cjf-report { text-align: right; margin: 6px 0; }
.cjf-virement > summary, .cjf-debours > summary { cursor: pointer; }
.cjf-virement form, .cjf-debours form { margin-top: 12px; }
.cjf-somme-rappro { max-width: 460px; margin: 12px 0 12px auto; }
.cjf-ok { color: #1e6b45; font-weight: 700; }
.cjf-ko { color: #c0392b; font-weight: 700; }
.cjf-natures { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.cjf-nat { position: relative; cursor: pointer; }
.cjf-nat input { position: absolute; opacity: 0; }
.cjf-nat span { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 12px; border: 2px solid #dfe4ec; border-radius: 10px; background: #fff; color: #14284b; font-weight: 600; }
.cjf-nat small { font-weight: 400; color: #5a6270; }
.cjf-nat input:checked + span { border-color: #14284b; background: #f3f6fb; box-shadow: 0 0 0 3px rgba(20, 40, 75, .1); }
.cjf-nat input:focus-visible + span { outline: 3px solid #b8892b; outline-offset: 2px; }
.cjf-gros { font-size: 18px !important; min-height: 48px !important; }
.cjf-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.cjf-chiffres { display: flex; gap: 10px; margin: 0; flex-wrap: wrap; }
.cjf-chiffres > div { background: #f6f8fb; border-radius: 9px; padding: 8px 14px; min-width: 120px; }
.cjf-chiffres dt { font-size: 12px; color: #5a6270; }
.cjf-chiffres dd { margin: 0; font-size: 17px; font-weight: 700; color: #14284b; white-space: nowrap; }
.cjf-chiffres .cjf-detenu { background: #e8eef9; }
.cjf-dispo { font-size: 15px; }
.cjf-retenues { display: grid; gap: 6px; margin-bottom: 12px; }
.cjf-retenue { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 8px; }
.cjf-retenue input { min-height: 40px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 6px 10px; font: inherit; }
.cjf-reste { font-weight: 600; }
.cjf-etapes { margin: 12px 0; padding-left: 22px; color: #5a6270; }
.cjf-etapes li { padding: 3px 0; }
.cjf-etapes .fait { color: #1e6b45; }
.cjf-rejet > summary { list-style: none; display: inline-flex; margin-top: 8px; }
.cjf-rejet > summary::-webkit-details-marker { display: none; }
.cjf-ordre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cjf-ordre select { min-height: 40px; border: 1px solid #c3cbd8; border-radius: 7px; padding: 6px; font: inherit; }
.cjf-compte-form { margin-top: 16px; background: #f6f8fb; padding: 14px; border-radius: 10px; }
.cjf-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cjf-editions > .cj-carte { margin: 0; }
.cjf-grille { align-items: start; }

@media (max-width: 860px) {
	.cjf-deux, .cjf-editions, .cjf-grille { grid-template-columns: minmax(0, 1fr) !important; }
	.cjf-ordre { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.cj-champ :is(input, select, textarea) { font-size: 16px; }
	.cjf-table thead { display: none; }
	.cjf-table, .cjf-table tbody, .cjf-table tfoot, .cjf-table tr, .cjf-table td { display: block; width: 100%; }
	.cjf-table tr { padding: 10px 0; border-bottom: 1px solid #dde3ec; }
	.cjf-table td { border: 0; padding: 2px 0; text-align: left !important; }
	.cjf-table td[data-label="Entrée"]:not(:empty)::before { content: "Entrée : "; color: #5a6270; }
	.cjf-table td[data-label="Sortie"]:not(:empty)::before { content: "Sortie : "; color: #5a6270; }
	.cjf-table td[data-label="Solde"]::before { content: "Solde : "; color: #5a6270; }
	.cjf-retenue { grid-template-columns: 1fr 120px; }
	.cjf-compte { flex: 1 1 45%; min-width: 0; }
}
