/* Trustena KYC Avocats — styles produit (complète le design system du socle). */
.frm { display: grid; gap: 1rem; }
.frm label { font-weight: 600; font-size: .92rem; color: var(--navy); display: block; margin-bottom: .3rem; }
.frm select, .frm input[type=text], .frm input[type=date], .frm input[type=email], .frm input[type=password], .frm input[type=number] {
  width: 100%; border: 1px solid #d2dded; border-radius: 10px; padding: .7rem .8rem; font-size: .92rem;
  background: #fbfdfe; color: var(--ink); font-family: var(--font);
}
.frm .opts { display: grid; gap: .45rem; }
.frm .opts label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: var(--ink); }
.frm .opts input { margin-top: .2rem; width: auto; }
.two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.three { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.btnrow { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .8rem; align-items: center; }
input[type=password] { width: 100%; border: 1px solid #d2dded; border-radius: 10px; padding: .7rem .8rem; font-size: .92rem; background: #fbfdfe; }

table.just { width: 100%; border-collapse: collapse; font-size: .86rem; margin: .6rem 0; }
table.just th, table.just td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.just th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.pts { font-weight: 700; color: var(--navy); white-space: nowrap; }
.ref { color: var(--muted); font-size: .8rem; }
.muted { color: var(--muted); font-size: .9rem; }

.range-row { display: grid; grid-template-columns: 1fr 4rem; gap: .8rem; align-items: center; padding: .3rem 0; }
.range-row input[type=range] { width: 100%; accent-color: var(--teal); }
.range-val { font-weight: 700; color: var(--navy); text-align: center; }

.deadline { display: flex; gap: .8rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.deadline .when { min-width: 7.5rem; font-weight: 700; color: var(--teal); }

/* Tableau de bord */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 1.2rem; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; }
.stat .n { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .n.warn { color: var(--warn); } .stat .n.ko { color: var(--ko); } .stat .n.ok { color: var(--ok); }
.stat .l { color: var(--muted); font-size: .82rem; }

/* Registre */
table.reg { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.reg th, table.reg td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
table.reg th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
table.reg tr.click { cursor: pointer; } table.reg tr.click:hover { background: #f2f7fb; }
.tag { font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; white-space: nowrap; }
.tag.ok { background: #e9f7ee; color: #23794a; } .tag.exp { background: #fdf3e0; color: var(--warn); }
.tag.ko { background: #fbeaec; color: var(--ko); } .tag.mut { background: #eef1f5; color: #6a7c90; }

/* Listes dynamiques (mandataires, BE) */
.dynrow { display: grid; grid-template-columns: 2fr 5rem 5.5rem 2.2rem; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.dynrow.mand { grid-template-columns: 1fr 2.2rem; }
.dynrow .del { border: 0; background: #fbeaec; color: var(--ko); border-radius: 8px; height: 2.2rem; cursor: pointer; font-weight: 700; }
.screen-pill { font-size: .74rem; border-radius: 999px; padding: .18rem .55rem; font-weight: 600; }
.screen-pill.clear { background: #e9f7ee; color: #23794a; } .screen-pill.hit { background: #fbeaec; color: var(--ko); }
.screen-pill.pending { background: #eef1f5; color: #6a7c90; }

/* Pièce d'identité */
.piece-box { border: 2px dashed #d2dded; border-radius: 12px; padding: 1.1rem; text-align: center; background: #fbfdfe; }
.piece-box.ok { border-color: var(--ok); background: #f4fbf7; }
.piece-box.ko { border-color: var(--ko); background: #fdf6f7; }

/* Toast */
#toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; border-radius: 10px; padding: .7rem 1.2rem; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.ko.show { background: var(--ko); }

/* Impression : seule la zone print-zone sort */
#print-zone { display: none; }
@media print {
  header.ts, footer.ts, main.ts, #toast { display: none !important; }
  #print-zone { display: block; padding: 1rem; font-size: 11pt; }
  #print-zone h1 { font-size: 15pt; margin-bottom: .3rem; }
  #print-zone h2 { font-size: 12.5pt; margin: 1rem 0 .3rem; color: #0b2440; }
  #print-zone table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  #print-zone th, #print-zone td { border: 1px solid #bbb; padding: .3rem .45rem; text-align: left; }
  #print-zone .sig { margin-top: 2.2rem; display: flex; justify-content: space-between; gap: 2rem; }
  #print-zone .sig div { border-top: 1px solid #333; padding-top: .3rem; width: 16rem; font-size: 9.5pt; }
  #print-zone .foot { margin-top: 1.4rem; font-size: 8.5pt; color: #555; }
}
