/* Tawtiq (Sinfobox) : ajustements par-dessus le thème Vuexy (core.css) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/lora-var.woff") format("woff"); }
:root { --np-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Segoe UI Arabic", Tahoma, sans-serif; }
body, .btn, .form-control, .form-select, .table, .menu, .navbar { font-family: var(--np-font); }
html[dir="rtl"] body { font-family: "Segoe UI Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
.num, .money { font-variant-numeric: tabular-nums; }
span.num, span.money, a.num, strong.num, small.num { unicode-bidi: isolate; direction: ltr; display: inline-block; white-space: nowrap; }
td.num, td.money, th.money { unicode-bidi: plaintext; }
.nav-pills .nav-link, .nav-tabs .nav-link { text-transform: none; }
.table .text-money { text-align: end; white-space: nowrap; }
.card-header .card-title { margin-bottom: 0; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; margin-inline-end: .4rem; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.25rem; }
.step-item:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 1.05rem; top: 2.2rem; bottom: 0; width: 2px; background: var(--bs-border-color); }
.step-badge { flex: 0 0 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600; background: var(--bs-secondary-bg); color: var(--bs-body-color); z-index: 1; }
.step-item.done .step-badge { background: var(--bs-success); color: #fff; }
.step-item.current .step-badge { background: var(--bs-primary); color: #fff; box-shadow: 0 0 0 .3rem var(--bs-primary-bg-subtle); }
.step-item.blocked .step-badge { background: var(--bs-danger); color: #fff; }
.step-item.skipped .step-badge { opacity: .5; }
.step-body { flex: 1; min-width: 0; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.board-col { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem; min-height: 10rem; }
.board-card { background: var(--bs-paper-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .65rem .75rem; margin-top: .6rem; }
.perm-table td, .perm-table th { vertical-align: middle; }
.kpi-icon { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: .5rem; }
.row-actions { white-space: nowrap; }
.form-hint { font-size: .8rem; color: var(--bs-secondary-color); }
.login-lang { position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 5; }
@media print { .layout-menu, .layout-navbar, .content-footer, .no-print { display: none !important; } .layout-page { padding: 0 !important; } }
.agenda-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: .75rem; overflow-x: auto; }
.agenda-day { background: var(--bs-paper-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .6rem; min-height: 12rem; }
.agenda-day.is-today { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.agenda-day-head { border-bottom: 1px solid var(--bs-border-color); padding-bottom: .4rem; margin-bottom: .4rem; font-size: .9rem; }
.agenda-item { padding: .4rem .5rem; margin-bottom: .5rem; background: var(--bs-body-bg); border-radius: .35rem; font-size: .88rem; }
.btn-xs { --bs-btn-padding-y: .1rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .75rem; }
@media (max-width: 991px) { .agenda-week { grid-template-columns: 1fr; } }

/* --- v1.3 : logo, fonctionnalités, paramètres --- */
.np-brand-logo { max-height: 34px; max-width: 46px; object-fit: contain; }
.brand-preview { min-height: 120px; border: 1px dashed var(--bs-border-color); border-radius: .5rem; display: flex; align-items: center; justify-content: center; padding: 12px;
  background: repeating-conic-gradient(rgba(127,127,127,.08) 0 25%, transparent 0 50%) 0 0/16px 16px; }
.brand-preview img { max-height: 140px; max-width: 100%; object-fit: contain; }
.feature-card { cursor: pointer; transition: box-shadow .15s, border-color .15s; border: 1px solid transparent; }
.feature-card.is-on { border-color: rgba(var(--bs-primary-rgb), .35); }
.feature-card:hover { box-shadow: var(--bs-box-shadow); }
.menu-header .menu-header-text { letter-spacing: .06em; }

/* --- documents --- */
.np-dropzone { border: 2px dashed var(--bs-border-color); border-radius: .75rem; padding: 26px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s; }
.np-dropzone:hover, .np-dropzone:focus, .np-dropzone.is-over { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .05); outline: none; }
.np-thumb { width: 48px; height: 48px; border-radius: .375rem; object-fit: cover; border: 1px solid var(--bs-border-color); display: inline-flex;
  align-items: center; justify-content: center; background: var(--bs-body-bg); }
.np-thumb-icon i { font-size: 26px; color: var(--bs-secondary-color); }
.np-thumb-icon.is-pdf i { color: #e5484d; }
.np-preview-body { min-height: 70vh; background: #525659; display: flex; align-items: center; justify-content: center; }
.np-preview-frame { width: 100%; height: 78vh; border: 0; background: #fff; }
.np-preview-img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.np-camera { position: relative; background: #111; border-radius: .5rem; overflow: hidden; aspect-ratio: 4 / 3; }
.np-camera video { width: 100%; height: 100%; object-fit: contain; display: block; }
.np-camera-frame { position: absolute; inset: 6% 10%; border: 2px dashed rgba(255,255,255,.55); border-radius: .5rem; pointer-events: none; }
.np-camera-msg { position: absolute; inset: auto 12px 12px 12px; background: rgba(0,0,0,.72); color: #fff; padding: 10px 12px; border-radius: .375rem; font-size: .875rem; }
.np-camera.flash::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: .7; }
.np-pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 46vh; overflow: auto; padding: 2px; }
.np-page { position: relative; border: 1px solid var(--bs-border-color); border-radius: .375rem; overflow: hidden; background: var(--bs-body-bg); }
.np-page img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.np-page-n { position: absolute; top: 4px; inset-inline-start: 4px; background: var(--bs-primary); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; }
.np-page-bar { display: flex; justify-content: space-between; padding: 4px; gap: 2px; }
.np-qr svg { width: 240px; height: 240px; border-radius: .5rem; border: 1px solid var(--bs-border-color); }

/* --- agenda (calendrier) --- */
.np-agenda .np-cal-title { text-transform: capitalize; }
.np-calendar .fc .fc-daygrid-day.fc-day-today, .np-calendar .fc .fc-timegrid-col.fc-day-today { background: rgba(var(--bs-primary-rgb), .06); }
.np-calendar .fc-event { cursor: pointer; border: 0; padding: 1px 4px; }
.np-calendar .fc-event.np-ev-fait { opacity: .6; }
.np-calendar .fc-event.np-ev-annule { opacity: .45; text-decoration: line-through; }
.np-calendar .fc-timegrid-slot { height: 1.9em; }
.np-calendar .fc-col-header-cell-cushion, .np-calendar .fc-list-day-text, .np-calendar .fc-list-day-side-text { text-transform: capitalize; }
.np-view-switch .btn { min-width: 76px; }
.np-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.np-ym { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: 10px 12px; }
.np-ym-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.np-ym-head .btn-link { text-transform: capitalize; color: var(--bs-heading-color); text-decoration: none; }
.np-yg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.np-yh { font-size: 11px; color: var(--bs-secondary-color); }
.np-yd { font-size: 12px; border: 0; border-radius: 6px; padding: 4px 0; background: transparent; color: var(--bs-body-color); }
.np-yd.empty { visibility: hidden; }
.np-yd:hover { outline: 1px solid var(--bs-primary); }
.np-yd.lvl1 { background: rgba(var(--bs-primary-rgb), .16); }
.np-yd.lvl2 { background: rgba(var(--bs-primary-rgb), .38); }
.np-yd.lvl3 { background: var(--bs-primary); color: #fff; }
.np-yd.today { box-shadow: inset 0 0 0 2px var(--bs-warning); font-weight: 700; }
.np-ev-details li { padding: 4px 0; }
.np-toast { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 2000; min-width: 260px; }

/* --- notifications --- */
.np-notif-count { position: absolute; top: -8px; inset-inline-end: -9px; font-size: 10px; min-width: 18px; padding: 3px 5px; }
.np-notif-menu { width: 380px; max-width: 95vw; }
.np-notif-menu [data-notif-list] { max-height: 380px; overflow-y: auto; }
.np-notif-item { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.np-notif-item.unread { background: rgba(var(--bs-primary-rgb), .05); }
.np-notif-item .np-notif-text { font-size: .875rem; line-height: 1.35; }
#np-notif > .nav-link { overflow: visible; }
/* .btn .badge (Bootstrap) remet position: relative : le compteur prenait de la place à côté de la cloche */
#np-notif .nav-link .np-notif-count { position: absolute; top: -6px; inset-inline-end: -10px; line-height: 1; }

/* onglets du cabinet : volets dans le <form> (pas enfants directs de .tab-content) */
.np-settings-tabs .tab-pane:not(.active) { display: none; }

/* --- 1.4 : double authentification ------------------------------------------- */
.np-otp { letter-spacing: .35em; font-variant-numeric: tabular-nums; font-family: var(--bs-font-monospace, monospace); }
.np-qr-box { background: #fff; padding: .5rem; border-radius: .5rem; border: 1px solid var(--bs-border-color); line-height: 0; }
.np-qr-box svg { width: 200px; height: 200px; }
.np-recovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .5rem; }
.np-recovery-grid code { font-size: 1.05rem; padding: .5rem .75rem; border: 1px dashed var(--bs-border-color); border-radius: .375rem; text-align: center; color: var(--bs-heading-color); }
.np-steps-list > li { margin-bottom: 1rem; }
@media print { body.np-print-codes * { visibility: hidden; } body.np-print-codes #recovery-codes, body.np-print-codes #recovery-codes * { visibility: visible; } body.np-print-codes #recovery-codes { position: absolute; inset: 0 auto auto 0; width: 100%; } body.np-print-codes #recovery-codes .btn { display: none; } }


/* --- 1.4 : rapports et guide ----------------------------------------------------- */
.np-kpi > div > small { display: block; }
.np-kpi .np-kpi-val { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-table-tight td, .np-table-tight th { padding: .4rem .6rem; }
.np-bar { height: .45rem; border-radius: 1rem; background: var(--bs-border-color); overflow: hidden; min-width: 4rem; }
.np-bar > span { display: block; height: 100%; background: var(--bs-primary); }
.np-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; align-items: stretch; }
.np-flow .np-flow-box { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem 1rem; position: relative; }
.np-flow .np-flow-box .np-kpi-val { display: block; }
.np-perm-matrix th.rot { white-space: nowrap; font-size: .75rem; }
.np-perm-matrix td, .np-perm-matrix th { text-align: center; vertical-align: middle; }
.np-perm-matrix td:first-child, .np-perm-matrix th:first-child { text-align: start; }
.np-cmd { background: var(--bs-body-tertiary-bg, #f6f6f8); border-radius: .375rem; padding: .5rem .75rem; font-family: var(--bs-font-monospace, monospace); font-size: .85rem; direction: ltr; text-align: left; overflow-x: auto; white-space: pre; }
/* 3.6.1 : commande à copier (Sauvegardes, RAID et NAS) : texte qui passe à la ligne, bouton « Copier » à côté */
.np-cmd.d-flex { white-space: normal; margin-bottom: .4rem; }
.np-cmd.d-flex code { white-space: pre-wrap; word-break: break-all; color: inherit; background: none; padding: 0; }
@media print { .layout-menu, .layout-navbar, .np-no-print, footer { display: none !important; } .layout-page { padding: 0 !important; } .card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd; } }

/* --- 1.5 : éditeur de procédures ---------------------------------------------------- */
.np-step .np-drag { cursor: grab; color: var(--bs-secondary-color); padding: .25rem; }
.np-step.np-dragging { opacity: .45; outline: 2px dashed var(--bs-primary); }
.np-step input[name=title] { max-width: none; }

/* --- 1.5 : numérisations ------------------------------------------------------------- */
.np-scan-drop { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border: 2px dashed var(--bs-border-color); border-radius: .5rem; background: var(--bs-paper-bg, var(--bs-body-bg)); transition: border-color .15s, background .15s; }
.np-scan-drop.over { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); }
.np-scan-drop.busy { opacity: .6; pointer-events: none; }
.np-scan-drop.busy[data-label]::after { content: attr(data-label); margin-inline-start: auto; flex-shrink: 0; font-size: .8125rem; font-weight: 500; color: var(--bs-primary); }
.np-scan-list .list-group-item { cursor: pointer; }
.np-scan-list .list-group-item.active { background: rgba(var(--bs-primary-rgb), .08); color: inherit; border-color: var(--bs-border-color); }
.np-scan-preview { position: sticky; top: 5.5rem; }
.np-scan-frame { width: 100%; height: 62vh; border: 0; border-radius: .375rem; background: #fff; object-fit: contain; display: block; }
#scan-dossier option[hidden] { display: none; }

/* --- 1.6 : identité Tawtiq ------------------------------------------------------ */
:root, [data-bs-theme=light] {
  --np-ink: #1B2F57; --np-brass: #B48A3C; --np-brass-soft: #E9DCC0; --np-paper: #F6F4EF; --np-serif: "Lora", Georgia, "Times New Roman", serif;
  --bs-primary: #1B2F57; --bs-primary-rgb: 27, 47, 87; --bs-primary-text-emphasis: #14223F;
  --bs-primary-bg-subtle: #E3E8F1; --bs-primary-border-subtle: #B7C2D7;
  --bs-link-color: #24427A; --bs-link-color-rgb: 36, 66, 122; --bs-link-hover-color: #1B2F57; --bs-link-hover-color-rgb: 27, 47, 87;
  --bs-font-sans-serif: var(--np-font);
}
[data-bs-theme=dark] {
  --np-ink: #8FA9E8; --np-brass: #D2AE66; --np-brass-soft: #4A3F2A;
  --bs-primary: #5A7BC8; --bs-primary-rgb: 90, 123, 200; --bs-primary-text-emphasis: #B9CAF0;
  --bs-primary-bg-subtle: #2B3557; --bs-primary-border-subtle: #3E4C7A;
  --bs-link-color: #A9BEEE; --bs-link-color-rgb: 169, 190, 238; --bs-link-hover-color: #C9D6F5; --bs-link-hover-color-rgb: 201, 214, 245;
}
.progress { --bs-progress-bar-bg: var(--bs-primary); }
.np-serif { font-family: var(--np-serif); }

/* onglets : la zone .tab-content (padding-top) recouvrait le bas des onglets, qui n'étaient cliquables que sur la moitié haute */
.card-header-tabs, .nav-tabs, .nav-pills { position: relative; z-index: 2; }

/* marque dans le menu */
.np-brand-mark { width: 34px; height: 34px; display: block; }
.np-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.np-brand-word { font-family: var(--np-serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -.01em; color: var(--bs-heading-color); }
.np-brand-office { font-weight: 600; font-size: .95rem; color: var(--bs-heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.np-brand-sub { font-size: .72rem; color: var(--bs-secondary-color); margin-top: 2px; }
html[dir="rtl"] .np-brand-word { font-family: var(--np-serif); }

/* signature de l'éditeur (pied de page) */
.np-signature { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; text-decoration: none; }
.np-signature:hover { color: var(--bs-heading-color) !important; }
.np-signature img { flex: 0 0 auto; }

/* page de connexion */
.np-auth { min-height: 100vh; background: var(--bs-body-bg); }
.np-auth-wrap { display: flex; min-height: 100vh; }
.np-auth-panel { position: relative; flex: 0 0 46%; max-width: 680px; flex-direction: column; padding: 40px 56px 28px; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(27,47,87,0) 0%, rgba(27,47,87,.55) 52%, #1B2F57 82%), url("../brand/zellige.svg") repeat, #1B2F57;
  background-size: auto, 64px 64px, auto; }
.np-auth-logo { height: 52px; width: auto; align-self: flex-start; }
.np-auth-art { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; margin: 12px 0 8px; min-height: 0; }
.np-auth-art img { width: 100%; max-width: 440px; height: auto; max-height: 46vh; }
.np-auth-copy { max-width: 30rem; }
.np-auth-title { font-family: var(--np-serif); font-weight: 600; font-size: clamp(1.6rem, 1.1rem + 1.1vw, 2.15rem); line-height: 1.22; letter-spacing: -.01em; color: #fff; margin: 0 0 .75rem; }
html[dir="rtl"] .np-auth-title { font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Times New Roman", serif; line-height: 1.5; letter-spacing: 0; }
.np-auth-lead { color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 28rem; }
.np-auth-legal { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin: 28px 0 0; font-size: .78rem; color: rgba(255,255,255,.55); }
.np-auth-legal img { opacity: .9; }
.np-auth-side { flex: 1 1 auto; display: flex; flex-direction: column; padding: 20px 24px; min-width: 0; }
.np-auth-bar { display: flex; align-items: center; gap: 1rem; min-height: 44px; }
.np-auth-logo-sm { height: 40px; width: auto; }
.np-auth-box { width: 100%; max-width: 400px; margin: auto; padding: 32px 0; }
.np-auth-office { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; color: var(--bs-heading-color); font-weight: 600; }
.np-auth-office-logo { max-height: 48px; max-width: 120px; object-fit: contain; }
.np-auth-h { font-size: 1.6rem; font-weight: 600; color: var(--bs-heading-color); margin-bottom: .35rem; }
.np-auth-sub { color: var(--bs-secondary-color); margin-bottom: 1.75rem; }
.np-auth .form-control-lg { font-size: 1rem; }
.np-auth-foot { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .78rem; color: var(--bs-secondary-color); margin: 0; }
.np-on-dark { display: none; }
[data-bs-theme=dark] .np-on-dark { display: inline; }
[data-bs-theme=dark] .np-on-light { display: none; }
@media (min-width: 992px) { .np-auth-side { padding: 28px 48px; } }
@media (max-height: 700px) and (min-width: 992px) { .np-auth-art img { max-height: 36vh; } .np-auth-panel { padding-top: 28px; } }

/* listes avec recherche (search-select.js) */
.np-ss { position: relative; min-width: 0; }
.np-ss.w-auto { display: inline-block; }
.np-ss-btn { display: block; width: 100%; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.np-ss.w-auto .np-ss-btn { min-width: 12rem; }
.np-ss-btn.np-ss-placeholder .np-ss-text { color: var(--bs-secondary-color); }
.np-ss-btn:disabled { background-color: var(--bs-secondary-bg); opacity: 1; cursor: default; }
.np-ss.is-open .np-ss-btn { border-color: var(--bs-primary); box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), .15); }
.np-ss-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; z-index: -1; }
.np-ss-panel { position: fixed; z-index: 1090; background: var(--bs-paper-bg, var(--bs-body-bg)); border: 1px solid var(--bs-border-color);
  border-radius: .5rem; box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .16); overflow: hidden; }
.np-ss-search { position: relative; padding: .5rem; border-bottom: 1px solid var(--bs-border-color); }
.np-ss-search .ti { position: absolute; inset-inline-start: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); font-size: 1rem; pointer-events: none; }
.np-ss-search input.form-control { padding-inline-start: 2.1rem !important; }
.np-ss-list, .np-cp-list { list-style: none; margin: 0; padding: .25rem; overflow-y: auto; max-height: 300px; }
.np-ss-opt, .np-cp-opt { display: flex; flex-direction: column; padding: .45rem .65rem; border-radius: .375rem; cursor: pointer; line-height: 1.3; color: var(--bs-body-color); }
.np-ss-opt.is-active, .np-cp-opt.is-active { background: rgba(var(--bs-primary-rgb), .09); color: var(--bs-heading-color); }
.np-ss-opt.is-selected { font-weight: 600; color: var(--bs-primary); }
[data-bs-theme=dark] .np-ss-opt.is-selected { color: var(--bs-primary-text-emphasis); }
.np-ss-opt.np-ss-empty .np-ss-main { color: var(--bs-secondary-color); }
.np-ss-opt.disabled { opacity: .45; cursor: default; }
.np-ss-sub { font-size: .78rem; color: var(--bs-secondary-color); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ss-group { padding: .5rem .65rem .2rem; font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); }
.np-ss-note { padding: .6rem .65rem; font-size: .85rem; color: var(--bs-secondary-color); }
.np-cp-list { position: absolute; z-index: 1080; inset-inline: 0; top: calc(100% + 4px); background: var(--bs-paper-bg, var(--bs-body-bg));
  border: 1px solid var(--bs-border-color); border-radius: .5rem; box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .16); max-height: 280px; }
/* 3.6.1 : n° de dossier tapés (archives, procurations) — suggestions, et chaque n° vérifié sous le champ */
.np-dt-panel { overflow-y: auto; max-height: 300px; }
.np-dt-chip { font-weight: 500; white-space: normal; text-align: start; }

/* simulateur, mise en route */
.np-sim-total { font-family: var(--np-serif); font-weight: 600; font-size: 2.1rem; line-height: 1.15; color: var(--bs-heading-color); }
.np-sim-total small { font-family: var(--np-font); font-size: .9rem; font-weight: 500; color: var(--bs-secondary-color); }
.table-primary-subtle > * { background: rgba(var(--bs-primary-rgb), .07) !important; }
.np-setup { border-inline-start: 3px solid var(--np-brass); }
.np-setup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .25rem 1.5rem; }
.np-setup-list a { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; color: var(--bs-body-color); text-decoration: none; }
.np-setup-list a:hover span { text-decoration: underline; }
.np-setup-list i { font-size: 1.15rem; color: var(--bs-secondary-color); margin-top: .05rem; }
.np-setup-list .is-done a { color: var(--bs-secondary-color); }
.np-setup-list .is-done span { text-decoration: line-through; }
.np-setup-list .is-done i { color: var(--bs-success); }
@media print { .np-sim-total { font-size: 1.6rem; } }

/* --- 1.6.1 : affichage personnalisé et toutes tailles d'écran ----------------------------------------- */
html.np-text-sm { --bs-root-font-size: 14.5px; }
html.np-text-lg { --bs-root-font-size: 17.5px; }

/* bouton « Personnaliser l'affichage » (bord de l'écran) et panneau */
.np-customizer-toggle { position: fixed; inset-inline-end: 0; top: 42%; z-index: 1079; width: 38px; height: 40px; align-items: center; justify-content: center;
  border: 0; border-start-start-radius: .5rem; border-end-start-radius: .5rem; background: var(--bs-primary); color: #fff;
  box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .25); cursor: pointer; }
.np-customizer-toggle:hover { background: color-mix(in sRGB, #000 12%, var(--bs-primary)); }
.np-customizer-toggle .ti { font-size: 1.25rem; }
.np-customizer { --bs-offcanvas-width: 380px; }
.np-customizer .offcanvas-body { padding: 1.25rem 1.5rem; }
.np-cz-group { margin-bottom: 1.6rem; }
.np-cz-group h6 { font-size: .875rem; font-weight: 600; color: var(--bs-heading-color); margin-bottom: .65rem; }
.np-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.np-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-opt { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .7rem .4rem .55rem; border: 1px solid var(--bs-border-color);
  border-radius: .5rem; background: transparent; color: var(--bs-body-color); cursor: pointer; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.np-opt:hover { border-color: rgba(var(--bs-primary-rgb), .55); }
.np-opt:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.np-opt.is-active { border-color: var(--bs-primary); box-shadow: inset 0 0 0 1px var(--bs-primary); color: var(--bs-heading-color); }
.np-opt.is-active .np-opt-art { color: var(--bs-primary); }
[data-bs-theme=dark] .np-opt.is-active .np-opt-art { color: var(--bs-primary-text-emphasis); }
.np-opt-art { display: flex; align-items: center; justify-content: center; height: 46px; color: var(--bs-secondary-color); }
.np-opt-label { font-size: .8125rem; text-align: center; line-height: 1.2; }
.np-aa { font-family: var(--np-serif); font-weight: 600; line-height: 1; }
.np-cz-hint { font-size: .78rem; color: var(--bs-secondary-color); margin: .55rem 0 0; }
@media print { .np-customizer-toggle { display: none !important; } }

/* barres de filtres des listes : s'adaptent à toutes les largeurs */
.np-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.np-filters > .np-f { flex: 1 1 11rem; min-width: 0; }
.np-filters > .np-f-search { flex: 3 1 16rem; }
.np-filters > .np-f-date { flex: 1 1 12.5rem; max-width: 16rem; }
.np-filters > .np-f-btn { flex: 0 0 auto; }
.np-filters .input-group-text { min-width: 2.6rem; justify-content: center; }
@media (max-width: 575.98px) { .np-filters > .np-f-date { max-width: none; } }

/* boutons : jamais écrasés par leur conteneur ; groupes de boutons qui passent à la ligne */
.btn > .icon-base, .btn > .ti { flex-shrink: 0; }
.btn-icon, .np-f-btn > .btn, .card-header .btn, .np-actions .btn { flex-shrink: 0; }
.card-header > .d-flex, .card-header .d-flex.gap-2, .content-wrapper > .container-xxl > .d-flex > .d-flex,
.content-wrapper > .container-fluid > .d-flex > .d-flex { flex-wrap: wrap; }
.card-header .btn, .np-actions .btn { white-space: nowrap; }

/* graphiques : jamais plus larges que leur carte (rotation d'écran, fenêtre réduite) */
.apexcharts-canvas { max-width: 100%; }
[id^="chart-"] { max-width: 100%; overflow: hidden; }

/* tableaux sur petit écran : une ligne par cellule, défilement horizontal dans la carte */
.table-responsive > .table > thead > tr > th { white-space: nowrap; }
@media (max-width: 767.98px) {
  .card-header { padding-inline: 1rem; }
  .container-p-y { padding-top: 1rem !important; }
}

/* agenda : couleurs du calendrier en thème sombre, barre d'outils sur téléphone */
.np-calendar { --fc-page-bg-color: var(--bs-paper-bg, var(--bs-body-bg)); --fc-border-color: var(--bs-border-color);
  --fc-neutral-bg-color: rgba(var(--bs-body-color-rgb), .045); --fc-today-bg-color: rgba(var(--bs-primary-rgb), .07);
  --fc-list-event-hover-bg-color: rgba(var(--bs-primary-rgb), .06); --fc-non-business-color: rgba(var(--bs-body-color-rgb), .035); }
.np-calendar .fc-col-header, .np-calendar .fc-scrollgrid-section-sticky > *, .np-calendar .fc-list-day-cushion { background: var(--fc-page-bg-color) !important; }
.np-calendar .fc-list-day-cushion { background: rgba(var(--bs-body-color-rgb), .04) !important; }
@media (max-width: 575.98px) {
  .np-view-switch { display: flex; width: 100%; }
  .np-view-switch .btn { flex: 1 1 0; padding-inline: .25rem; font-size: .8125rem; }
  .np-agenda .np-cal-title { font-size: 1.1rem; margin-inline-start: 0 !important; width: 100%; }
  .np-agenda [data-cal-new] { width: 100%; }
  .np-calendar .fc-daygrid-event .fc-event-time { display: none; }
}

/* recherche en direct (barre du haut) */
.np-ls { position: relative; }
.np-ls-box { max-width: 460px; align-items: center; }
.np-kbd { align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; margin-inline-start: .25rem; border: 1px solid var(--bs-border-color);
  border-radius: .3rem; background: transparent; color: var(--bs-secondary-color); font: 500 .75rem/1 var(--np-font); box-shadow: none; }
.np-ls-panel { position: absolute; top: calc(100% + .65rem); inset-inline-start: 0; width: min(560px, calc(100vw - 2rem)); max-height: min(70vh, 560px); overflow-y: auto;
  z-index: 1090; background: var(--bs-paper-bg, var(--bs-body-bg)); border: 1px solid var(--bs-border-color); border-radius: .6rem;
  box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .18); padding: .35rem; }
.np-ls-panel.is-loading { opacity: .75; }
.np-ls-group { padding: .55rem .65rem .2rem; font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); }
.np-ls-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .65rem; border-radius: .4rem; color: var(--bs-body-color); text-decoration: none; }
.np-ls-item.is-active, .np-ls-item:hover { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-heading-color); }
.np-ls-icon { flex: 0 0 2rem; height: 2rem; display: grid; place-items: center; border-radius: .4rem; background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
[data-bs-theme=dark] .np-ls-icon { color: var(--bs-primary-text-emphasis); }
.np-ls-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.np-ls-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ls-sub { font-size: .8rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ls-meta { flex: 0 0 auto; font-size: .8rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.np-ls-empty { padding: .9rem .75rem; color: var(--bs-secondary-color); }
.np-ls-all { display: block; margin-top: .25rem; padding: .6rem .65rem; border-top: 1px solid var(--bs-border-color); font-size: .85rem; text-decoration: none; }
@media (max-width: 767.98px) {
  .layout-navbar .np-ls { display: none !important; }
  .layout-navbar.np-search-open .np-ls { display: flex !important; position: absolute; inset: 0; z-index: 6; margin: 0 !important; padding: 0 .75rem;
    background: var(--bs-paper-bg, var(--bs-body-bg)); border-radius: inherit; }
  .layout-navbar.np-search-open .np-ls-box { max-width: none; }
  .np-ls-panel { position: fixed; top: 4.75rem; inset-inline: .75rem; width: auto; }
}
.np-ls input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* dates jj/mm/aaaa et heures 24 h (dates.js) */
.np-date { position: relative; min-width: 0; }
.np-date-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; z-index: -1; }
.np-date-date > .np-date-text { padding-inline-end: 2.5rem; }
/* même taille pendant la saisie et en erreur : le thème y épaissit la bordure (2 px) et remet sa marge intérieure, sans la place du
   bouton calendrier — le champ rétrécissait de 30 px, la ligne (ou le tableau) se recomposait quand il perdait le focus et le clic
   sur « Enregistrer » juste après la saisie tombait à côté du bouton */
.np-date-date > .np-date-text.form-control:is(:focus, .is-invalid) { padding-inline-end: calc(2.5rem - 1px); }
.input-group > .np-date-date > .np-date-text.form-control:is(:focus, .is-invalid) { padding-inline-end: 2.5rem; }
html[dir=rtl] .np-date-text { text-align: right; }
.np-date-btn { position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; display: grid; place-items: center;
  border: 0; border-radius: .3rem; background: transparent; color: var(--bs-secondary-color); cursor: pointer; }
.np-date-btn:hover { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .08); }
.np-date-btn .ti { font-size: 1.1rem; }
.input-group > .np-date { flex: 1 1 auto; width: 1%; }
.input-group > .np-date:not(:first-child) > .np-date-text { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: calc(-1 * var(--bs-border-width)); }
.input-group > .np-date:not(:last-child) > .np-date-text { border-start-end-radius: 0; border-end-end-radius: 0; }
.input-group-merge > .np-date > .np-date-text { border-inline-start: 0; }
.content-wrapper .d-flex.gap-1:has(> .btn), .content-wrapper .d-flex.gap-2:has(> .btn), .content-wrapper .d-flex.gap-3:has(> .btn) { flex-wrap: wrap; }
@media (max-width: 575.98px) {
  .np-agenda > .card-body:first-child > .d-flex > .d-flex { width: 100%; }
  .np-view-switch .btn { white-space: nowrap; }
}
@media (max-width: 575.98px) {
  .np-view-switch .btn { min-width: 0; padding-inline: .15rem; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; }
}
/* liste du calendrier : en-tête caché pour les lecteurs d'écran sans créer de défilement en arabe (RTL) */
.np-calendar .fc-list-table thead { position: absolute; left: 0 !important; right: auto !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.step-item { scroll-margin-top: 6rem; }
.step-item.np-step-focus > .step-body > form { box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .25); }

/* bandeau de licence */
.np-lic-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem 1rem; margin-bottom: 1.25rem; border-radius: .5rem;
  border: 1px solid; font-size: .9rem; }
.np-lic-banner > .ti { font-size: 1.2rem; flex: 0 0 auto; }
.np-lic-banner > span { flex: 1 1 18rem; }
.np-lic-demo { border-color: rgba(180, 138, 60, .45); background: rgba(180, 138, 60, .09); color: var(--bs-heading-color); }
.np-lic-demo > .ti { color: var(--np-brass); }
.np-lic-warn { border-color: rgba(var(--bs-warning-rgb), .45); background: rgba(var(--bs-warning-rgb), .1); color: var(--bs-heading-color); }
.np-lic-warn > .ti { color: var(--bs-warning); }
.np-lic-danger { border-color: rgba(var(--bs-danger-rgb), .45); background: rgba(var(--bs-danger-rgb), .09); color: var(--bs-heading-color); }
.np-lic-danger > .ti { color: var(--bs-danger); }
@media print { .np-lic-banner { display: none !important; } }
.np-lic-dl dt { font-weight: 400; color: var(--bs-secondary-color); margin-bottom: .6rem; }
.np-lic-dl dd { margin-bottom: .6rem; color: var(--bs-heading-color); }
.np-lic-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem; }
.np-lic-mod { display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; border-radius: .4rem; background: rgba(var(--bs-primary-rgb), .06); font-size: .875rem; }
.np-lic-mod .ti { color: var(--bs-primary); font-size: 1.05rem; }
[data-bs-theme=dark] .np-lic-mod .ti { color: var(--bs-primary-text-emphasis); }
.np-lic-mod.is-off { background: transparent; border: 1px dashed var(--bs-border-color); color: var(--bs-secondary-color); }
.np-lic-mod.is-off .ti { color: var(--bs-secondary-color); }
.np-lic-code { font-size: 1.15rem; letter-spacing: .06em; padding: .35rem .7rem; border-radius: .4rem; background: rgba(var(--bs-primary-rgb), .07); color: var(--bs-heading-color); }
.feature-card.is-locked { opacity: .75; }

/* -- 1.8 : lignes déplaçables (lines.js) ----------------------------------------------------------------------------- */
.np-grip { cursor: grab; touch-action: none; color: var(--bs-secondary-color); }
.np-grip:hover, .np-grip:focus-visible { color: var(--bs-primary); }
.np-line-tools { display: inline-flex; gap: .125rem; white-space: nowrap; }
tr.np-line-dragging > td { background: rgba(var(--bs-primary-rgb), .08) !important; }
tr.np-line-dragging { outline: 1px dashed rgba(var(--bs-primary-rgb), .55); outline-offset: -1px; }
body.np-lines-dragging, body.np-lines-dragging * { cursor: grabbing !important; user-select: none; }
tbody[data-lines] > tr > td:first-child { width: 40px; padding-inline: .25rem; }

/* envoi de plusieurs documents : une catégorie par fichier */
.np-staging-table td { vertical-align: middle; }
.np-staging-table td:first-child { max-width: 260px; }

/* numérisations : type et titre sur chaque ligne */
.np-scan-item .np-scan-meta { padding-inline-start: 2.25rem; }
@media (max-width: 575.98px) { .np-scan-item .np-scan-meta { padding-inline-start: 0; } }
.content-wrapper .np-scan-list .np-scan-item > .d-flex.gap-3 { flex-wrap: nowrap; }
.np-scan-coded { margin-bottom: 1.5rem; }
.np-scan-code { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .5rem; padding-inline-start: 2.25rem; font-size: .8125rem; }
.np-scan-code-to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; flex: 1 1 12rem; }
@media (max-width: 575.98px) { .np-scan-code { padding-inline-start: 0; } }
[dir=rtl] .np-flip-rtl { display: inline-block; transform: scaleX(-1); }
.min-w-0 { min-width: 0 !important; }

/* création rapide d'une fiche client depuis un champ « client » */
.np-cp-list .np-cp-create { flex-direction: row; align-items: center; color: var(--bs-primary); font-weight: 500; border-top: 1px solid var(--bs-border-color); }

/* modèles Word : liste des champs */
.np-field-list li { margin-bottom: .2rem; line-height: 1.4; }
.np-field-list .btn { font-size: .78rem; white-space: normal; overflow-wrap: anywhere; text-align: start; max-width: 100%; }
/* onglets d'impression (4 documents) : passent à la ligne sur téléphone */
@media (max-width: 575.98px) { .np-tabs-wrap .nav-link { padding-inline: .6rem; } }

/* -- 1.9 ------------------------------------------------------------------------------------------------------------ */
/* fenêtres avec défilement : un <form> qui enveloppe en-tête, contenu et pied ne doit pas empêcher le défilement */
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-content > form > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

/* confirmation des actions sensibles (confirm.js) */
.np-confirm .modal-dialog { max-width: 32rem; }
.np-confirm .modal-header { align-items: center; gap: .75rem; }
.np-confirm .modal-header .btn-close { margin-inline-start: auto; }
.np-confirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; flex-shrink: 0;
  background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); }
.np-confirm-icon .icon-base { font-size: 1.25rem; }
.np-confirm-danger .np-confirm-icon { background: rgba(var(--bs-danger-rgb), .12); color: var(--bs-danger); }
.np-confirm-warning .np-confirm-icon { background: rgba(var(--bs-warning-rgb), .14); color: var(--bs-warning); }
.np-confirm-success .np-confirm-icon { background: rgba(var(--bs-success-rgb), .12); color: var(--bs-success); }
.np-confirm-msg { font-weight: 500; color: var(--bs-heading-color); }
.np-confirm-dl { margin-top: 1rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; overflow: hidden; }
.np-confirm-row { display: flex; gap: 1rem; justify-content: space-between; padding: .45rem .75rem; }
.np-confirm-row + .np-confirm-row { border-top: 1px solid var(--bs-border-color); }
.np-confirm-row dt { font-weight: 400; color: var(--bs-secondary-color); flex: 0 1 45%; }
.np-confirm-row dd { margin: 0; font-weight: 500; text-align: end; flex: 1 1 55%; overflow-wrap: anywhere; white-space: pre-line; }
.np-confirm-row.text-warning dd, .np-confirm-row.text-danger dd, .np-confirm-row.text-success dd { color: inherit; }
.np-confirm-row.np-total { background: rgba(var(--bs-primary-rgb), .06); }
.np-confirm-row.np-total dd { font-size: 1.05rem; font-weight: 600; }
.np-confirm-row dd .num, .np-confirm-row dd { font-variant-numeric: tabular-nums; }

/* saisie de facture */
.np-inv-table { table-layout: fixed; width: 100%; min-width: 640px; }
.np-inv-table th.np-inv-grip, .np-inv-table td.np-inv-grip { width: 2.25rem; padding-inline: .15rem; }
.np-inv-table th.np-inv-n { width: 2rem; text-align: center; }
.np-inv-table th.np-inv-cat { width: 10rem; }
.np-inv-table th.np-inv-payer { width: 6rem; }
.np-inv-table th.np-inv-amt { width: 8.75rem; }
.np-inv-table th.np-inv-tools, .np-inv-table td.np-inv-tools { width: 4.75rem; padding-inline: .15rem; }
.np-inv-table td { padding: .3rem .35rem; vertical-align: middle; }
.np-inv-table thead th { font-size: .75rem; }
.np-inv-table .form-control-sm, .np-inv-table .form-select-sm { padding-top: .25rem; padding-bottom: .25rem; }
.np-inv-table input[readonly] { background: transparent; border-color: transparent; }
.np-inv-side { position: sticky; top: 5.5rem; }
.np-inv-sum > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.np-inv-sum dt { font-weight: 400; color: var(--bs-secondary-color); }
.np-inv-sum dd { margin: 0; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.np-inv-sum .np-inv-sub { border-top: 1px dashed var(--bs-border-color); }
.np-inv-sum .np-inv-sub dt, .np-inv-sum .np-inv-sub dd { color: var(--bs-heading-color); font-weight: 500; }
.np-inv-sum .np-inv-total { border-top: 2px solid var(--bs-border-color); margin-top: .25rem; padding-top: .6rem; }
.np-inv-sum .np-inv-total dt { color: var(--bs-heading-color); font-weight: 600; }
.np-inv-sum .np-inv-total dd { font-size: 1.35rem; font-weight: 600; color: var(--bs-heading-color); }
.np-inv-rel { padding-top: .75rem; border-top: 1px solid var(--bs-border-color); font-size: .875rem; }
@media (max-width: 1199.98px) { .np-inv-side { position: static; } }
@media (max-width: 575.98px) { .np-inv-table { min-width: 560px; } .np-inv-table th.np-inv-cat { width: 8.5rem; } .np-inv-table th.np-inv-amt { width: 7.5rem; } }
/* facture : détail et historique */
.np-inv-cat-badge { font-size: .7rem; font-weight: 500; }
.np-inv-versions .table td { vertical-align: top; }
/* facture : règlement (reçus du relevé cochés, modes saisis avec leur montant, texte imprimé) */
.np-pay-box { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); padding: .7rem .9rem .8rem; margin: 0; min-width: 0; }
.np-pay-head { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin: 0 0 .45rem; padding: 0;
  font-size: .875rem; line-height: 1.4; font-weight: 500; color: var(--bs-heading-color); }
.np-pay-head + * { clear: left; }
.np-pay-head small { font-size: .8125rem; font-weight: 400; color: var(--bs-secondary-color); }
.np-pay-recu { display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .45rem .35rem; border-top: 1px dashed var(--bs-border-color); cursor: pointer; border-radius: .25rem; }
.np-pay-recu:first-of-type { border-top: 0; }
.np-pay-recu .form-check-input { flex-shrink: 0; margin-top: .2rem; }
.np-pay-recu:has(input:checked) { background: rgba(var(--bs-primary-rgb), .06); }
.np-pay-what { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.np-pay-amt { flex-shrink: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-pay-recu.is-off .np-pay-what > :not(.badge), .np-pay-recu.is-off .np-pay-amt { text-decoration: line-through; color: var(--bs-secondary-color); }
.np-pay-lines:not(:empty) { margin-bottom: .55rem; }
.np-pay-line { display: grid; grid-template-columns: minmax(9rem, 12rem) minmax(7rem, 9.5rem) minmax(0, 1fr) auto; gap: .4rem; align-items: center; margin-bottom: .4rem; }
.np-pay-add { display: flex; flex-wrap: wrap; gap: .35rem; }
.np-pay-add .btn { border-style: dashed; padding: .15rem .6rem; font-size: .8125rem; font-weight: 400; }
.np-pay-add .btn .icon-base { width: .85rem; height: .85rem; font-size: .85rem; }
[data-pay-text] { line-height: 1.6; min-height: 3.6rem; resize: vertical; overflow-y: hidden; }
.np-inv-pay { white-space: pre-line; }
@media (max-width: 575.98px) {
  .np-pay-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .np-pay-line [name=rg_ref] { grid-column: 1 / 3; grid-row: 2; }
}

/* génération d'un document Word : champs modifiables */
.np-gen-table { table-layout: fixed; width: 100%; }
.np-gen-table th.np-gen-key, .np-gen-table td.np-gen-key { width: 38%; }
.np-gen-table td { vertical-align: top; padding-top: .5rem; padding-bottom: .5rem; }
.np-gen-table td.np-gen-key code { overflow-wrap: anywhere; }
.np-gen-table tr.np-gen-missing td { background: rgba(var(--bs-warning-rgb), .07); }
.np-gen-table tr.np-gen-typed td:first-child { box-shadow: inset 3px 0 0 var(--bs-primary); }
[dir=rtl] .np-gen-table tr.np-gen-typed td:first-child { box-shadow: inset -3px 0 0 var(--bs-primary); }
.np-gen-table tr.np-gen-group th { background: var(--bs-tertiary-bg); color: var(--bs-heading-color); font-size: .8125rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; padding-top: .55rem; padding-bottom: .45rem; overflow-wrap: anywhere; }
.np-gen-foot { flex-wrap: wrap; gap: .5rem; }
.np-gen-foot .form-check { flex: 1 1 18rem; max-width: 34rem; }
@media (max-width: 575.98px) { .np-gen-table th.np-gen-key, .np-gen-table td.np-gen-key { width: 42%; } }
@media (max-width: 767.98px) {
  .np-gen-table thead { display: none; }
  .np-gen-table, .np-gen-table tbody, .np-gen-table tr, .np-gen-table td, .np-gen-table tr.np-gen-group th { display: block; width: 100% !important; }
  .np-gen-table tr.np-gen-group { padding: 0; }
  .np-gen-table tr.np-gen-group th { padding: .45rem .5rem !important; border: 0; }
  .np-gen-table tr { border-bottom: 1px solid var(--bs-border-color); padding: .45rem 0; }
  .np-gen-table td { border: 0 !important; padding: .1rem 0 !important; background: none !important; box-shadow: none !important; }
  .np-gen-table tr.np-gen-missing { background: rgba(var(--bs-warning-rgb), .07); }
  .np-gen-foot .form-hint, .np-gen-foot a[href="#parties"] { display: none; }
  .np-gen-foot .form-check { flex-basis: 100%; }
}
/* montants en arabe : chiffres jamais inversés */
.np-confirm-row dd, .np-inv-sum dd { unicode-bidi: plaintext; }
[dir=rtl] .np-confirm-row dd, [dir=rtl] .np-inv-sum dd { text-align: left; }
/* lignes de facture sur téléphone : une carte par ligne (désignation, puis nature / payeur, puis montant) */
@media (max-width: 575.98px) {
  .np-inv-table { min-width: 0; table-layout: auto; }
  .np-inv-table thead { display: none; }
  .np-inv-table > tbody > tr { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr) auto; gap: .35rem .4rem; align-items: center;
    grid-template-areas: "grip desc desc desc" "grip cat cat cat" "grip amt amt tools"; padding: .55rem .75rem .55rem .25rem; border-bottom: 1px solid var(--bs-border-color); }
  .np-inv-table.np-inv-mour > tbody > tr { grid-template-areas: "grip desc desc desc" "grip cat cat payer" "grip amt amt tools"; }
  .np-inv-table > tbody > tr > td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; }
  .np-inv-table td.np-inv-grip { grid-area: grip; align-self: stretch; display: flex; align-items: center; }
  .np-inv-table td[data-inv-num] { display: none; }
  .np-inv-table td.np-inv-c-desc { grid-area: desc; }
  .np-inv-table td.np-inv-c-cat { grid-area: cat; }
  .np-inv-table td.np-inv-c-payer { grid-area: payer; min-width: 6.5rem; }
  .np-inv-table td.np-inv-c-amt { grid-area: amt; }
  .np-inv-table td.np-inv-tools { grid-area: tools; }
}

/* -- 1.9.1 : parties et fiches clients ------------------------------------------------------------------------------- */
.np-cl-status .badge { font-weight: 500; }
.np-cl-status .btn-sm { --bs-btn-padding-y: .2rem; }
.np-cl-toast { position: fixed; inset-inline-end: 1.5rem; bottom: 1.5rem; z-index: 1100; max-width: 26rem; box-shadow: 0 .25rem 1rem rgba(0,0,0,.15); }
.np-gen-people { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .5rem .75rem; }
.np-gen-person { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; padding: .4rem 0; }
.np-gen-person + .np-gen-person { border-top: 1px dashed var(--bs-border-color); }
.np-gen-person .np-gen-pname { font-weight: 500; }
html:not([dir=rtl]) .np-confirm-row dd { text-align: right; }

/* -- 2.0 : mises à jour signalées ---------------------------------------------------------------------------------------- */
.np-updates-list { padding-inline-start: 1rem; }
.np-updates-list li + li { margin-top: .15rem; }
.np-live { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 1090; width: min(26rem, calc(100vw - 2rem));
  border-inline-start: 4px solid var(--bs-primary); }
.np-live-head { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem .25rem; color: var(--bs-heading-color); }
.np-live-head .icon-base { color: var(--bs-primary); }
.np-live-list { list-style: none; margin: 0; padding: .25rem 1rem; max-height: 12rem; overflow-y: auto; font-size: .8125rem; }
.np-live-list li { padding: .25rem 0; border-bottom: 1px dashed var(--bs-border-color); }
.np-live-list li:last-child { border-bottom: 0; }
.np-live-time { color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.np-live-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: .5rem 1rem .75rem; }
.np-live-foot .text-warning { flex: 1 1 100%; }
.np-badge-upd { font-size: .65rem; vertical-align: middle; }
/* lecture de codes-barres par la caméra */
.np-cam { margin-bottom: 1rem; }
.np-cam-video { width: 100%; max-height: 50vh; border-radius: .5rem; background: #000; object-fit: cover; }

/* informations de l'acte (dossier, relevé, fiche client) */
.np-det-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin: .25rem 0 1rem; }
.np-det-group { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem 1rem 1rem; margin-bottom: 1rem; min-width: 0; }
.np-det-legend { float: none; width: auto; font-size: .9375rem; font-weight: 500; padding: 0 .4rem; margin: 0 0 .25rem -.4rem; display: flex; align-items: center; gap: .4rem; }
[dir=rtl] .np-det-legend { margin: 0 -.4rem .25rem 0; }
.np-det-legend .ti { color: var(--bs-primary); }
.np-det-view + .np-det-view { border-top: 1px dashed var(--bs-border-color); margin-top: .75rem; padding-top: .75rem; }
.np-det-view-title { font-weight: 500; margin-bottom: .4rem; }
.np-det-view dd { margin-bottom: .3rem; white-space: pre-line; }
@media (min-width: 992px) { .np-det-cols { column-count: 2; column-gap: 2.5rem; } .np-det-cols .np-det-view { break-inside: avoid; } }
.np-det-cols .np-det-view, .np-det-cols .np-det-view + .np-det-view { border-top: 0; margin: 0 0 1rem; padding-top: 0; }
.np-champs-group { border-bottom: 1px solid var(--bs-border-color); padding: .6rem 0; }
.np-champs-group:last-child { border-bottom: 0; }
.np-champs-group summary { cursor: pointer; font-weight: 500; }
.np-champs-group ul { margin-top: .5rem; }
.np-champs-group li { padding: .2rem 0; }
.np-champs-group code { white-space: nowrap; }

/* assistant « Suggérer des lignes » */
.np-assist-checks { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem 1rem; }
.np-assist-check { display: flex; gap: .5rem; align-items: flex-start; padding: .15rem 0; font-size: .875rem; }
.np-assist-check .ti { margin-top: .15rem; flex-shrink: 0; }
.np-assist-warn .ti { color: var(--bs-warning); }
.np-assist-info .ti { color: var(--bs-info); }
.np-assist-group + .np-assist-group { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--bs-border-color); }
.np-assist-line { display: flex; gap: .75rem; align-items: flex-start; padding: .45rem .25rem; border-radius: .375rem; }
.np-assist-line:hover { background: rgba(var(--bs-primary-rgb), .04); }
.np-assist-line .form-check-input { margin-top: .2rem; flex-shrink: 0; }
.np-assist-line label { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; cursor: pointer; min-width: 0; }
.np-assist-line.is-present label { cursor: default; opacity: .6; }
.np-assist-amount { text-align: end; white-space: nowrap; font-size: .875rem; }
.np-assist-note { grid-column: 1 / -1; color: var(--bs-secondary-color); }
@media (max-width: 575.98px) { .np-assist-line label { grid-template-columns: 1fr; } .np-assist-amount { text-align: start; } }
.np-assist-done summary { cursor: pointer; padding: .2rem .25rem; }

/* lecture des pièces d'identité */
.np-piece-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; height: 100%;
  min-height: 9.5rem; padding: 1.25rem; border: 2px dashed var(--bs-border-color); border-radius: .5rem; cursor: pointer; }
.np-piece-pick:hover, .np-piece-pick:focus-within { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .04); }
.np-piece-file { display: flex; align-items: center; gap: .25rem; padding: .35rem .5rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; margin-bottom: .4rem; min-width: 0; }
.np-piece-previews { display: grid; gap: .75rem; }
.np-piece-img { width: 100%; height: auto; border-radius: .375rem; border: 1px solid var(--bs-border-color); background: #fff; }
/* 3.4 : contrôles des lignes « <<< » et faces concordantes (fenêtre d'une pièce et lecture de plusieurs pièces) */
.np-piece-checks { line-height: 1.9; color: var(--bs-secondary-color); }
.np-piece-checks-title { font-weight: 500; margin-inline-end: .35rem; white-space: nowrap; }
.np-piece-check { display: inline-flex; align-items: center; gap: .2rem; margin-inline-end: .65rem; white-space: nowrap; }
.np-piece-check.is-ok .ti { color: var(--bs-success); }
.np-piece-check.is-ko { color: var(--bs-danger); }
.np-piece-text { font-size: .75rem; max-height: 16rem; overflow: auto; background: var(--bs-tertiary-bg, #f6f6f7); padding: .35rem; border-radius: .375rem; display: flex; flex-direction: column; gap: .1rem; }
/* 2.7 : calque de texte des photos (cliquer un mot → champ choisi) et lignes lues cliquables */
.np-ocr-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--bs-secondary-color); }
.np-ocr-hint { flex: 1 1 12rem; min-width: 0; }
.np-piece-shot { position: relative; overflow: auto; max-height: 70vh; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: #fff; }
.np-piece-stage { position: relative; width: 100%; }
.np-piece-stage .np-piece-img { display: block; width: 100%; border: 0; border-radius: 0; user-select: none; -webkit-user-drag: none; }
.np-ocr-layer { position: absolute; inset: 0; direction: ltr; }
.np-ocr-w { position: absolute; display: block; color: transparent; font-size: 1px; line-height: 1; overflow: hidden; white-space: nowrap; cursor: pointer;
  border-radius: 3px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.np-ocr-w:hover { background: rgba(var(--bs-primary-rgb), .16); box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .55); }
.np-ocr-w.is-sel { background: rgba(var(--bs-primary-rgb), .32); box-shadow: 0 0 0 2px var(--bs-primary); }
.np-ocr-w.is-used { box-shadow: 0 0 0 1px rgba(var(--bs-success-rgb), .7); }
@media (hover: none) { .np-ocr-w { box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), .35); } }
.np-ocr-line { display: block; width: 100%; text-align: start; border: 0; background: none; padding: .15rem .35rem; border-radius: .25rem; font: inherit;
  white-space: pre-wrap; word-break: break-word; color: inherit; }
.np-ocr-line:hover, .np-ocr-line:focus-visible { background: rgba(var(--bs-primary-rgb), .1); }
.np-piece-field.is-target { background: rgba(var(--bs-primary-rgb), .05); box-shadow: inset 3px 0 0 var(--bs-primary); }
[dir="rtl"] .np-piece-field.is-target { box-shadow: inset -3px 0 0 var(--bs-primary); }
.np-piece-addfield { padding: .6rem 0; max-width: 20rem; }
.np-piece-field { display: grid; grid-template-columns: auto minmax(8rem, 13rem) 1fr; gap: .25rem .75rem; align-items: start; padding: .45rem 0; border-bottom: 1px solid var(--bs-border-color); }
.np-piece-field .form-check-input { margin-top: .4rem; }
.np-piece-label { padding-top: .3rem; font-size: .875rem; }
.np-piece-label .badge { font-size: .65rem; vertical-align: middle; }
@media (max-width: 575.98px) { .np-piece-field { grid-template-columns: auto 1fr; } .np-piece-input { grid-column: 2; } }
.np-piece-hint { padding: .6rem .8rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; color: var(--bs-body-color); }
@media (max-width: 991.98px) { .np-piece-previews { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); } }
.np-piece-previews > .np-ocr-bar, .np-piece-previews > .np-ocr-text { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .np-piece-previews { grid-template-columns: 1fr; } .np-piece-shot { max-height: 60vh; } }
/* sources de la pièce : fichiers, appareil photo (téléphone), téléphone par QR code (ordinateur), numérisations reçues */
.np-piece-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; }
.np-piece-src { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .9rem 1rem; text-align: start; font: inherit; color: inherit;
  background: var(--bs-paper-bg, var(--bs-body-bg)); border: 1px solid var(--bs-border-color); border-radius: .5rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.np-piece-src:hover, .np-piece-src:focus-within, .np-piece-src:focus-visible { border-color: var(--bs-primary); }
.np-piece-src:focus-visible { outline: 2px solid rgba(var(--bs-primary-rgb), .45); outline-offset: 2px; }
.np-piece-src[aria-expanded="true"] { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .05); }
.np-piece-src-ico { flex: 0 0 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); font-size: 1.3rem; }
.np-piece-src-txt { display: flex; flex-direction: column; min-width: 0; }
.np-piece-src-txt small { color: var(--bs-secondary-color); line-height: 1.3; }
.np-piece-src-cam { display: none; }
@media (max-width: 767.98px), (pointer: coarse) { .np-piece-src-cam { display: flex; } }
@media (max-width: 767.98px) { .np-piece-src-phone { display: none; } }
.np-piece-panel { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(var(--bs-primary-rgb), .25); border-radius: .5rem; background: rgba(var(--bs-primary-rgb), .025); }
.np-piece-qr-wrap { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.np-piece-qr-wrap .np-qr { background: #fff; padding: .5rem; border-radius: .5rem; border: 1px solid var(--bs-border-color); line-height: 0; min-width: 218px; min-height: 218px; }
.np-piece-qr-wrap .np-qr svg { width: 200px; height: 200px; border: 0; }
.np-piece-qr-help { flex: 1 1 16rem; min-width: 0; }
.np-piece-wait { display: flex; align-items: center; font-weight: 500; }
.np-piece-wait.is-ok { color: var(--bs-success); }
.np-piece-wait.is-bad { color: var(--bs-danger); }
.np-piece-scans { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.np-piece-scan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--bs-border-color); border-radius: .5rem; overflow: hidden;
  background: var(--bs-paper-bg, var(--bs-body-bg)); cursor: pointer; }
.np-piece-scan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; display: block; }
.np-piece-scan-meta { padding: .35rem .5rem; font-size: .75rem; line-height: 1.3; min-width: 0; }
.np-piece-scan-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-piece-scan .form-check-input { position: absolute; top: .4rem; inset-inline-start: .4rem; margin: 0; width: 1.15rem; height: 1.15rem; }
.np-piece-scan:has(.form-check-input:checked) { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.np-piece-file img { width: 2.2rem; height: 1.6rem; object-fit: cover; border-radius: .2rem; margin-inline-end: .5rem; flex: 0 0 auto; }
/* fenêtres défilantes ou plein écran, en arabe : le thème sort la croix de fermeture à gauche de la fenêtre, où elle était coupée */
:dir(rtl) .modal:not(.modal-top) .modal-dialog-scrollable .modal-header .btn-close,
:dir(rtl) .modal:not(.modal-top) .modal-fullscreen .modal-header .btn-close { inset-inline-end: .8125rem; }
@media (max-width: 767.98px) { :dir(rtl) .modal:not(.modal-top) .modal-fullscreen-md-down .modal-header .btn-close { inset-inline-end: .8125rem; } }
/* 2.4.1 : une case par face (recto, verso ; passeport : page photo), remplie depuis n'importe quelle source */
.np-piece-kind { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.np-piece-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 575.98px) { .np-piece-slots { grid-template-columns: 1fr; } }
.np-piece-slot { display: flex; flex-direction: column; gap: .5rem; min-width: 0; padding: .85rem; border: 1px solid var(--bs-border-color); border-radius: .5rem;
  background: var(--bs-paper-bg, var(--bs-body-bg)); transition: border-color .15s, box-shadow .15s; }
.np-piece-slot-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.np-piece-slot-title { font-weight: 600; }
.np-piece-slot-help { font-size: .8125rem; line-height: 1.35; color: var(--bs-secondary-color); min-height: 2.2em; }
.np-piece-slot-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; aspect-ratio: 1.586; padding: .5rem;
  overflow: hidden; text-align: center; cursor: pointer; border: 2px dashed var(--bs-border-color); border-radius: .5rem; background: var(--bs-tertiary-bg, #f6f6f7); }
.np-piece-slot-body:hover, .np-piece-slot-body:focus-visible { border-color: var(--bs-primary); outline: none; }
.np-piece-slot-body:focus-visible { box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .3); }
.np-piece-slot.is-over .np-piece-slot-body { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); }
.np-piece-slot.is-filled .np-piece-slot-body { border-style: solid; border-color: rgba(var(--bs-success-rgb), .55); background: #fff; }
.np-piece-slot.is-same .np-piece-slot-body { border-style: solid; cursor: default; }
.np-piece-slot-body img { max-width: 100%; max-height: 80%; object-fit: contain; border-radius: .25rem; }
.np-piece-slot-ico { font-size: 2rem; line-height: 1; color: var(--bs-secondary-color); }
.np-piece-slot.is-filled .np-piece-slot-ico { color: var(--bs-danger); }
.np-piece-slot-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.np-piece-slot.is-wanted { border-color: var(--bs-warning); box-shadow: 0 0 0 2px rgba(var(--bs-warning-rgb), .35); }
.np-piece-slot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.np-piece-slot-cam { display: none !important; }
@media (max-width: 767.98px), (pointer: coarse) { .np-piece-slot-cam { display: inline-flex !important; } }
.np-piece-more { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
@media (max-width: 767.98px) { .np-piece-more .np-piece-src-phone { display: none; } }
button.np-piece-scan { width: 100%; padding: 0; font: inherit; color: inherit; text-align: start; }
.np-piece-scan:hover, .np-piece-scan:focus-visible { border-color: var(--bs-primary); }
.np-piece-scan.is-placed { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.np-piece-tile-face { position: absolute; top: .4rem; inset-inline-end: .4rem; }
.np-piece-tile-ico { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; font-size: 2rem; color: var(--bs-danger); background: #fff; }
.np-piece-cover { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.np-piece-cover .badge { padding: .45rem .65rem; font-size: .8125rem; }
.np-piece-field.is-missing { background: rgba(var(--bs-danger-rgb), .04); }
.np-piece-party { padding: .6rem .8rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; }
/* fenêtre « Nouveau client » : remplir depuis une pièce d'identité */
.np-qc-piece { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .75rem .9rem; border: 1px solid rgba(var(--bs-primary-rgb), .35);
  border-radius: .5rem; background: rgba(var(--bs-primary-rgb), .05); }
.np-qc-piece .np-piece-src-txt { flex: 1 1 12rem; }
.np-qc-or { display: flex; align-items: center; gap: .75rem; margin: .9rem 0 .6rem; font-size: .8125rem; color: var(--bs-secondary-color); }
.np-qc-or::before, .np-qc-or::after { content: ""; flex: 1; border-top: 1px solid var(--bs-border-color); }
/* formulaire du dossier : « Lire une CIN / un passeport » à côté de Vendeur / Acquéreur */
.np-party-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: .5rem; min-height: 1.75rem; }
.np-party-read { padding: .1rem .4rem; white-space: nowrap; }
/* 3.0.3 : formulaire du dossier en sections ; vendeur et acquéreur côte à côte, chacun dans son encadré */
.np-form-sec { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--bs-heading-color, inherit); display: flex; align-items: center; }
.np-form-sec .icon-base { color: var(--bs-primary); }
.np-party-box { height: 100%; padding: .85rem 1rem 1rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; background: var(--bs-body-bg); }
/* page du téléphone : recto / verso */
.np-mp-shots { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.np-mp-shot { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .75rem; text-align: center; border: 2px dashed var(--bs-border-color);
  border-radius: .75rem; cursor: pointer; background: var(--bs-body-bg); }
.np-mp-shot.is-done { border-style: solid; border-color: var(--bs-success); }
.np-mp-shot-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1.58; margin-bottom: .4rem; border-radius: .5rem;
  background: rgba(var(--bs-primary-rgb), .07); color: var(--bs-primary); overflow: hidden; }
.np-mp-shot-img img { width: 100%; height: 100%; object-fit: cover; }
/* -- 2.3 : règlement du prix (loi de finances 2026) ------------------------------------------------------------------- */
.np-reg-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.np-reg-figs > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.np-reg-figs span { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--bs-secondary-color); }
.np-reg-figs strong { font-size: 1.125rem; font-weight: 600; color: var(--bs-heading-color); }
.np-dot { display: inline-block; width: .625rem; height: .625rem; border-radius: 50%; flex: 0 0 auto; background: var(--bs-gray-200); }
.np-reg-figs .is-ok .np-dot, .np-reg-bar .is-ok { background: var(--bs-success); }
.np-reg-figs .is-bad .np-dot, .np-reg-bar .is-bad { background: var(--bs-warning); }
.np-reg-bar { display: flex; height: .625rem; margin-top: 1rem; border-radius: .375rem; overflow: hidden; background: var(--bs-gray-200); }
.np-reg-bar span { display: block; height: 100%; }
.np-reg-supp { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border-radius: .5rem; background: rgba(var(--bs-warning-rgb), .12);
  border-inline-start: 4px solid var(--bs-warning); }
.np-reg-supp > i { color: var(--bs-warning); font-size: 1.375rem; }
.np-clause > summary { cursor: pointer; list-style-position: inside; }
.np-clause-text { margin: 0; padding: .75rem; max-height: 16rem; overflow: auto; white-space: pre-wrap; font: inherit; font-size: .875rem;
  border: 1px solid var(--bs-border-color); border-radius: .375rem; background: var(--bs-gray-50); color: var(--bs-body-color); }
.np-copied { background: var(--bs-success) !important; color: #fff !important; }
.np-row-cancelled { opacity: .7; }
.np-row-cancelled .money, .np-row-cancelled td.num { text-decoration: line-through; }
/* fonds de tiers */
.np-fonds-figs { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1rem; align-items: end; }
.np-fonds-figs > div { display: flex; flex-direction: column; gap: .15rem; }
.np-fonds-figs span { font-size: .8125rem; color: var(--bs-secondary-color); }
.np-fonds-figs strong { font-size: 1.125rem; font-weight: 600; color: var(--bs-heading-color); }
.np-fonds-solde { padding: .625rem .875rem; border-radius: .5rem; background: var(--bs-gray-50); }
.np-fonds-solde strong { font-size: 1.5rem; }
.np-fonds-solde.is-held { background: rgba(var(--bs-info-rgb), .1); }
.np-fonds-solde.is-held strong { color: var(--bs-info); }
/* vigilance LBC/FT */
.np-vig-factors { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.np-vig-factors li { display: flex; gap: .75rem; align-items: flex-start; }
.np-vig-w { display: inline-flex; gap: 3px; min-width: 1.75rem; padding-top: .45rem; }
.np-vig-w i { width: .375rem; height: .375rem; border-radius: 50%; background: var(--bs-warning); }
.np-vig-factors .w1 .np-vig-w i { background: var(--bs-secondary); }
.np-vig-factors .w3 .np-vig-w i { background: var(--bs-danger); }
.np-vig-manual { columns: 2; column-gap: 1.5rem; }
.np-vig-manual .form-check { break-inside: avoid; }
.np-vig-decision { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border-radius: .5rem; background: rgba(var(--bs-success-rgb), .1); }
.np-vig-decision > i { font-size: 1.375rem; color: var(--bs-success); }
.np-vig-renforcee { background: rgba(var(--bs-info-rgb), .1); } .np-vig-renforcee > i { color: var(--bs-info); }
.np-vig-declaration { background: rgba(var(--bs-warning-rgb), .14); } .np-vig-declaration > i { color: var(--bs-warning); }
.np-vig-refus { background: rgba(var(--bs-danger-rgb), .1); } .np-vig-refus > i { color: var(--bs-danger); }
/* étape « Signature » : points à vérifier */
.np-sign-checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .375rem; font-size: .875rem; }
.np-sign-checks li, .np-sign-checks span { display: flex; gap: .5rem; align-items: flex-start; }
.np-sign-checks .is-danger, .np-sign-checks .is-danger a { color: var(--bs-danger); }
.np-sign-checks .is-warning > i { color: var(--bs-warning); }
.np-sign-checks .is-info > i { color: var(--bs-info); }
.np-sign-checks .is-ok { color: var(--bs-success); }
/* pièces à fournir */
.np-pieces td { vertical-align: middle; }
.np-piece-state .btn { padding: .25rem .5rem; font-size: .75rem; }
.np-piece-na .np-piece-label { opacity: .55; }
.np-piece-doc { max-width: 18rem; }
/* parties du dossier : pièces manquantes, lien personnel, relances (une carte par partie) */
.np-parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr)); gap: 1rem; }
.np-party { display: flex; flex-direction: column; gap: .75rem; min-width: 0; padding: .9rem 1rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; }
.np-party-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.np-party-sec { padding-top: .75rem; border-top: 1px dashed var(--bs-border-color); }
.np-party-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem .75rem; margin-bottom: .5rem;
  font-size: .8125rem; font-weight: 500; color: var(--bs-heading-color); }
.np-msg-lang { width: auto; max-width: 100%; }
.np-suivi-send { padding-top: .75rem; border-top: 1px dashed var(--bs-border-color); }
.np-suivi-qr { width: 200px; }
.np-suivi-duree .form-control { max-width: 7.5rem; }      /* 3.7.1 : durée du lien (nombre + unité) */
.np-suivi-qr svg { display: block; width: 200px; height: 200px; }
/* page publique « Suivi de votre dossier » */
.np-track-wrap { max-width: 600px; }
.np-track-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.np-track-logo { max-height: 44px; max-width: 90px; object-fit: contain; }
.np-track-lang { display: flex; flex: 0 0 auto; border: 1px solid var(--bs-border-color); border-radius: 999px; overflow: hidden; }
.np-track-lang a { padding: .3rem .8rem; font-size: .8125rem; color: var(--bs-body-color); }
.np-track-lang a.is-on { background: var(--bs-primary); color: #fff; }
.np-track-hero { padding: 1.25rem; border-radius: .75rem; background: var(--bs-paper-bg, #fff); box-shadow: var(--bs-box-shadow-sm); border-top: 4px solid var(--bs-primary); }
.np-track-status { display: flex; gap: .5rem; align-items: center; }
.np-track-status.is-done { color: var(--bs-success); font-weight: 600; }
.np-track-bar { height: .625rem; border-radius: .375rem; overflow: hidden; background: var(--bs-gray-200); }
.np-track-bar span { display: block; height: 100%; background: var(--bs-success); }
.np-track-steps { list-style: none; padding: 0; margin: 0; }
.np-track-steps li { position: relative; display: flex; gap: .75rem; align-items: center; padding: .35rem 0; }
.np-track-steps li + li::before { content: ""; position: absolute; inset-inline-start: 11px; bottom: 50%; height: 100%; border-inline-start: 2px solid var(--bs-border-color); }
.np-track-steps li.is-done + li::before { border-color: var(--bs-success); }
.np-track-dot { position: relative; z-index: 1; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid var(--bs-border-color); background: var(--bs-paper-bg, #fff); font-size: .8rem; }
.np-track-steps .is-done .np-track-dot { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.np-track-steps .is-current .np-track-dot { border-color: var(--bs-primary); box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .15); }
.np-track-steps .is-current > span:last-child { font-weight: 600; color: var(--bs-heading-color); }
.np-track-steps .is-todo { color: var(--bs-secondary-color); }
.np-track-pieces { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .625rem; }
.np-track-pieces li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; }
.np-track-pieces li.is-sent { border-color: var(--bs-success); background: rgba(var(--bs-success-rgb), .06); }
.np-track-faces { display: flex; flex-direction: column; gap: .4rem; }
.np-track-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 6rem; padding: .5rem; border-radius: .5rem;
  background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); font-weight: 600; }
/* 3.8.1 : lien protégé (code personnel, empreinte du téléphone) */
.np-track-lock { border-top: 4px solid var(--bs-primary); }
.np-track-lock-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); font-size: 1.5rem; }
.np-track-lock-icon.is-bad { background: rgba(var(--bs-danger-rgb), .1); color: var(--bs-danger); }
.np-track-code { font-size: 1.75rem; letter-spacing: .3em; font-weight: 600; }
.np-track-code::placeholder { letter-spacing: .2em; color: var(--bs-gray-400); }
/* fenêtre du lien : code personnel montré une seule fois, état de l'accès */
.np-suivi-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; padding: .75rem 1rem;
  border: 2px dashed var(--bs-primary); border-radius: .5rem; background: rgba(var(--bs-primary-rgb), .05); text-align: start; }
.np-suivi-code-num { font-size: 1.75rem; font-weight: 700; letter-spacing: .15em; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.np-suivi-acces { list-style: none; padding: 0; margin: 0; text-align: start; }
.np-suivi-acces li { display: flex; gap: .5rem; align-items: baseline; padding: .15rem 0; }
.np-suivi-prot .form-check { padding: .5rem .75rem .5rem 2.25rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; margin-bottom: .4rem; }
[dir=rtl] .np-suivi-prot .form-check { padding: .5rem 2.25rem .5rem .75rem; }
.np-suivi-prot .form-check:has(input:checked) { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .05); }
@media (max-width: 767.98px) {
  .np-reg-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-fonds-figs { grid-template-columns: 1fr 1fr; }
  .np-fonds-solde { grid-column: 1 / -1; }
  .np-vig-manual { columns: 1; }
}
/* tableau de bord : bandeau « Conformité » */
.np-conf .card-body { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.np-conf-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--bs-heading-color); }
.np-conf-head i { font-size: 1.25rem; color: var(--bs-primary); }
.np-conf-items { display: flex; flex-wrap: wrap; gap: .75rem; flex: 1 1 auto; }
.np-conf-item { display: flex; align-items: baseline; gap: .5rem; padding: .4rem .75rem; border-radius: .5rem; color: var(--bs-body-color);
  border-inline-start: 3px solid var(--bs-secondary); background: var(--bs-gray-50); }
.np-conf-item:hover { color: var(--bs-heading-color); background: var(--bs-gray-100); }
.np-conf-item strong { font-size: 1rem; color: var(--bs-heading-color); }
.np-conf-item span { font-size: .8125rem; }
.np-conf-item.is-info { border-color: var(--bs-info); }
.np-conf-item.is-warning { border-color: var(--bs-warning); }
.np-conf-item.is-danger { border-color: var(--bs-danger); }

/* 2.5 : pièce d'identité d'un côté à plusieurs personnes (copie de chacune, « partielle ») */
.np-piece-people { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .8125rem; line-height: 1.45; }
.np-piece-people li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3rem; }
.np-piece-people li > .ti { align-self: center; font-size: .95rem; }
.np-piece-people li.is-ok > .ti { color: var(--bs-success); }
.np-piece-people li.is-lack > .ti { color: var(--bs-warning); }
.np-piece-loose { margin-top: .35rem; color: var(--bs-warning-text-emphasis, var(--bs-body-color)); }
.np-piece-attr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-inline-start: .35rem; vertical-align: middle; }
.np-piece-attr .form-select { width: auto; min-width: 11rem; }
.np-pieces tr.np-piece-partielle > td:first-child { box-shadow: inset 3px 0 0 var(--bs-info); }
[dir=rtl] .np-pieces tr.np-piece-partielle > td:first-child { box-shadow: inset -3px 0 0 var(--bs-info); }
/* 2.6 — coefficients de réévaluation : grille année / coefficient */
.np-coef-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); gap: .5rem .75rem; }
.np-coef-cell { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: center; gap: .125rem .5rem; padding: .25rem .375rem;
  border-radius: .375rem; border: 1px solid transparent; }
.np-coef-cell .np-coef-year { font-weight: 600; color: var(--bs-heading-color); font-size: .8125rem; }
.np-coef-cell .form-control { min-width: 0; text-align: end; }
.np-coef-cell .np-coef-val { text-align: end; }
.np-coef-cell .np-coef-was { grid-column: 2; font-size: .6875rem; line-height: 1.2; color: var(--bs-secondary-color); text-align: end; }
.np-coef-cell.np-coef-modified { border-color: rgba(var(--bs-warning-rgb), .45); background: rgba(var(--bs-warning-rgb), .06); }
.np-coef-cell.np-coef-diff { border-color: rgba(var(--bs-danger-rgb), .4); background: rgba(var(--bs-danger-rgb), .05); }
.np-coef-cell .form-control.np-coef-edited { border-color: var(--bs-primary); box-shadow: 0 0 0 .125rem rgba(var(--bs-primary-rgb), .15); }
.np-coef-actions { position: sticky; bottom: 0; background: var(--bs-paper-bg, var(--bs-card-bg)); z-index: 2; border-top: 1px solid var(--bs-border-color); }
.np-coef-hint { font-size: .75rem; }
/* 2.6 — modification d'un modèle Word dans Tawtiq */
.np-ed-bar { position: sticky; top: 5.25rem; z-index: 6; margin-bottom: 1rem; }
.np-ed-sep { width: 1px; height: 1.25rem; background: var(--bs-border-color); margin: 0 .25rem; }
.np-ed-side { position: sticky; top: 5.5rem; }
.np-ed-desk { background: #e9ebef; border-radius: .5rem; padding: clamp(.5rem, 2.5vw, 2rem); }
[data-bs-theme=dark] .np-ed-desk { background: #1e2433; }
.np-ed-page { background: #fff; color: #1f2328; max-width: 794px; margin: 0 auto; min-height: 60vh; padding: clamp(1.25rem, 6vw, 4.5rem);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 18px rgba(16, 24, 40, .08); font-family: "Times New Roman", Times, serif;
  font-size: 12pt; line-height: 1.45; overflow-wrap: anywhere; }
.np-ed-p { white-space: pre-wrap; min-height: 1.45em; margin: 0 0 .35em; padding: 1px 4px; border-radius: 3px; outline: none;
  border-inline-start: 2px solid transparent; transition: background-color .12s; }
.np-ed-p[contenteditable=true]:hover { background: rgba(var(--bs-primary-rgb), .035); }
.np-ed-p[contenteditable=true]:focus { background: rgba(var(--bs-primary-rgb), .06); border-inline-start-color: rgba(var(--bs-primary-rgb), .55); }
.np-ed-p[data-dirty], .np-ed-p[data-new] { border-inline-start-color: rgba(var(--bs-warning-rgb), .8); }
.np-ed-p[data-num]::before { content: attr(data-num); display: inline-block; min-width: 1.6em; margin-inline-end: .35em; text-indent: 0; }
.np-ed-p.np-ed-h { margin-top: .6em; }
.np-ed-p.np-ed-locked { background: repeating-linear-gradient(135deg, #f4f5f7, #f4f5f7 6px, #eef0f3 6px, #eef0f3 12px); color: #5b6270; cursor: not-allowed; }
.np-ed-p.np-ed-locked::after { content: attr(data-lock); display: inline-block; margin-inline-start: .5em; font: 600 .6875rem/1.4 var(--bs-font-sans-serif);
  color: #5b6270; background: #fff; border: 1px solid #d0d5dd; border-radius: 1rem; padding: 0 .45em; white-space: nowrap; vertical-align: middle; }
.np-ed-p.np-ed-sect { border-bottom: 1px dashed #b4bac5; padding-bottom: .4em; }
.np-ed-pb { display: inline-block; font: 600 .6875rem/1.4 var(--bs-font-sans-serif); color: #5b6270; border: 1px dashed #b4bac5; border-radius: 1rem;
  padding: 0 .5em; margin: 0 .2em; user-select: none; }
.np-ed-tblwrap { max-width: 100%; overflow-x: auto; }
.np-ed-tbl { width: 100%; border-collapse: collapse; margin: .25em 0 .6em; table-layout: auto; }
.np-ed-tbl td { border: 1px solid #c7ccd4; padding: 3px 5px; vertical-align: top; min-width: 2.5rem; }
.np-ed-tbl td.np-ed-merged { background: #f7f8fa; }
.np-ed-tbl .np-ed-p { margin-bottom: .15em; }
::highlight(np-tags) { background-color: rgba(27, 47, 87, .12); color: #14223f; }
.np-ed-fields { max-height: calc(100vh - 19rem); overflow: auto; }
.np-ed-group { border-top: 1px solid var(--bs-border-color); }
.np-ed-group > summary { padding: .45rem 1rem; font-weight: 600; font-size: .8125rem; cursor: pointer; color: var(--bs-heading-color); }
.np-ed-group > ul { padding: 0 .5rem .5rem; }
.np-ed-field { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; text-align: start; border: 0; background: none;
  padding: .3rem .5rem; border-radius: .375rem; color: inherit; }
.np-ed-field:hover, .np-ed-field:focus-visible { background: rgba(var(--bs-primary-rgb), .07); outline: none; }
.np-ed-field code { font-size: .75rem; color: var(--bs-primary); background: none; padding: 0; white-space: pre-wrap; word-break: break-all; }
.np-ed-field span { font-size: .75rem; color: var(--bs-secondary-color); line-height: 1.3; }
.np-ed-desk-preview .np-ed-page { min-height: 30vh; }
@media (max-width: 1199.98px) { .np-ed-side { position: static; } .np-ed-fields { max-height: 24rem; } .np-ed-bar { top: 4.5rem; } }
/* Numérisations (2.6.1) : lots de page de garde, page « Vérifier et classer » (vignettes, ciseaux entre deux pages, documents) */
.np-scan-lot { background: rgba(var(--bs-primary-rgb), .06); cursor: default !important; }
.np-scan-lot .np-scan-code-to { flex: 1 1 14rem; }
.np-scan-in-lot { border-inline-start: 3px solid rgba(var(--bs-primary-rgb), .45) !important; }
.np-vpages { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: .75rem; }
.np-vtile { position: relative; width: 152px; display: flex; flex-direction: column; gap: .25rem; padding: .375rem; border: 1px solid var(--bs-border-color); border-top: 3px solid var(--np-part, var(--bs-primary)); border-radius: .5rem; background: var(--bs-paper-bg, var(--bs-body-bg)); }
.np-vthumb { display: block; width: 100%; aspect-ratio: 210 / 297; padding: 0; border: 1px solid var(--bs-border-color); border-radius: .25rem; background: #fff; overflow: hidden; cursor: zoom-in; }
.np-vthumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.np-vicon { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: .25rem; color: var(--bs-secondary-color); font-size: 2rem; background: var(--bs-body-bg); }
.np-vicon .small { font-size: .75rem; }
.np-vcap { display: flex; gap: .25rem; font-size: .75rem; color: var(--bs-secondary-color); min-width: 0; }
/* 2.6.2 : déplacer une page (flèches, liste « Doc. », glisser-déposer) */
.np-vtools { display: flex; align-items: center; gap: .125rem; min-width: 0; margin-top: auto; }
.np-vtools .btn-icon { flex: 0 0 auto; width: 1.375rem; height: 1.5rem; }
.np-vtools .np-vdoc { flex: 1 1 auto; min-width: 0; width: auto; font-size: .75rem; line-height: 1.2; padding-block: .2rem; padding-inline-start: .35rem; padding-inline-end: 1.05rem; background-size: 10px 8px; background-position: right .25rem center; text-overflow: clip; }
[dir="rtl"] .np-vtools .np-vdoc { background-position: left .25rem center; }
.np-vloose { flex: 1 1 auto; min-width: 0; padding-inline-start: .25rem; }
.np-vtile[draggable="true"] { cursor: grab; }
.np-vtile[draggable="true"] .np-vthumb { cursor: zoom-in; }
.np-vtile.is-dragging { opacity: .35; }
.np-vtile.is-drop-before::after, .np-vtile.is-drop-after::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--bs-primary); }
.np-vtile.is-drop-before::after { inset-inline-start: -16px; }
.np-vtile.is-drop-after::after { inset-inline-end: -16px; }
.np-vcut.is-drop-gap { opacity: 1; color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .12); border-radius: .375rem; }
.np-vtile.is-moved { box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .45); transition: box-shadow .3s; }
@media (prefers-reduced-motion: reduce) { .np-vtile.is-moved { transition: none; } }
.np-vnum { position: absolute; top: .55rem; inset-inline-start: .55rem; background: var(--np-part, var(--bs-primary)); color: #fff; z-index: 1; min-width: 1.5rem; }
.np-vtile.is-dropped { opacity: .45; border-top-color: var(--bs-border-color); }
.np-vtile.is-dropped .np-vnum { display: none; }
.np-vtile.is-dropped .np-vthumb { filter: grayscale(1); }
.np-vcut { width: 28px; flex: 0 0 28px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--bs-secondary-color); opacity: .5; position: relative; }
.np-vcut:hover, .np-vcut:focus-visible { opacity: 1; color: var(--bs-primary); }
.np-vcut.is-on { opacity: 1; color: var(--bs-danger); }
.np-vcut.is-on::before, .np-vcut.is-on::after { content: ""; position: absolute; left: calc(50% - 1px); border-left: 2px dashed currentColor; opacity: .55; }
.np-vcut.is-on::before { top: 6%; bottom: calc(50% + 14px); }
.np-vcut.is-on::after { top: calc(50% + 14px); bottom: 6%; }
.np-vcut:disabled { opacity: .2; cursor: default; }
.np-vpart { border-inline-start: 3px solid var(--np-part, var(--bs-primary)); padding: .5rem .75rem; margin-top: .75rem; background: rgba(var(--bs-body-color-rgb), .025); border-radius: .375rem; }
.np-vpart-num { background: var(--np-part, var(--bs-primary)); color: #fff; }
[data-part-n="0"] { --np-part: var(--bs-primary); }
[data-part-n="1"] { --np-part: var(--bs-success); }
[data-part-n="2"] { --np-part: var(--bs-info); }
[data-part-n="3"] { --np-part: var(--bs-warning); }
[data-part-n="4"] { --np-part: var(--bs-danger); }
[data-part-n="5"] { --np-part: #8a6fdf; }
.np-vzoom { max-height: 75vh; background: #fff; }
.np-vside { position: sticky; top: 5.5rem; }
@media (max-width: 1199.98px) { .np-vside { position: static; } }
@media (max-width: 575.98px) { .np-vtile { width: calc(50% - 14px); } }

/* 2.7 : aide à la saisie (suggestions, « Vouliez-vous dire… ? », vérifications) */
.np-assist-list .np-cp-opt { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.np-assist-list .np-cp-opt .np-ss-sub { flex: 0 1 auto; text-align: end; font-size: .75rem; color: var(--bs-secondary-color); }
.np-assist-list .np-cp-opt.is-used .np-ss-main::after { content: "•"; color: var(--bs-primary); margin-inline-start: .35rem; }
.np-assist-hint { margin-top: .25rem; font-size: .75rem; line-height: 1.35; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }
.np-assist-hint.is-info { color: var(--bs-info-text-emphasis, var(--bs-info)); }
.np-assist-hint.is-warn { color: var(--bs-warning-text-emphasis, #9a6700); }
.np-assist-hint .btn { padding: .05rem .45rem; font-size: .7rem; }

/* 2.7 : veille — comment ça marche, ce qui a été lu */
.np-veille-how > summary { cursor: pointer; list-style: none; }
.np-veille-how > summary::-webkit-details-marker { display: none; }
.np-veille-how[open] .np-veille-chev { transform: rotate(180deg); }
.np-veille-steps { padding-inline-start: 1.2rem; margin-bottom: 1rem; }
.np-veille-steps li { margin-bottom: .35rem; }
.np-veille-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .75rem 1.5rem; }
.np-veille-src { display: flex; gap: .5rem; min-width: 0; }
.np-veille-seen summary { cursor: pointer; }

/* 2.7.1 : ajuster une photo avant la lecture (tourner, recadrer sur la carte, agrandir) */
.np-piece-edit { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem; margin-bottom: .75rem; }
.np-piece-edit-stage { display: flex; overflow: auto; max-height: 68vh; min-height: 240px; border-radius: .375rem; padding: 2px;
  background: repeating-conic-gradient(rgba(127, 127, 127, .14) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.np-piece-edit-wrap { position: relative; overflow: hidden; margin: auto; flex: none; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.np-piece-edit-wrap canvas { display: block; }
.np-piece-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .5); outline: 2px solid #fff; outline-offset: -1px; cursor: move;
  background-image: linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .35) 1px, transparent 1px);
  background-size: 33.34% 33.34%; background-position: -1px -1px; }
.np-piece-crop[hidden] { display: none; }
.np-piece-crop [data-h] { position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--bs-primary); border-radius: 3px; }
.np-piece-crop [data-h="nw"] { left: -8px; top: -8px; cursor: nwse-resize; }
.np-piece-crop [data-h="n"] { left: calc(50% - 8px); top: -8px; cursor: ns-resize; }
.np-piece-crop [data-h="ne"] { right: -8px; top: -8px; cursor: nesw-resize; }
.np-piece-crop [data-h="e"] { right: -8px; top: calc(50% - 8px); cursor: ew-resize; }
.np-piece-crop [data-h="se"] { right: -8px; bottom: -8px; cursor: nwse-resize; }
.np-piece-crop [data-h="s"] { left: calc(50% - 8px); bottom: -8px; cursor: ns-resize; }
.np-piece-crop [data-h="sw"] { left: -8px; bottom: -8px; cursor: nesw-resize; }
.np-piece-crop [data-h="w"] { left: -8px; top: calc(50% - 8px); cursor: ew-resize; }
@media (pointer: coarse) {
  .np-piece-crop [data-h] { width: 26px; height: 26px; }
  .np-piece-crop [data-h="nw"], .np-piece-crop [data-h="sw"], .np-piece-crop [data-h="w"] { left: -13px; }
  .np-piece-crop [data-h="ne"], .np-piece-crop [data-h="se"], .np-piece-crop [data-h="e"] { right: -13px; }
  .np-piece-crop [data-h="nw"], .np-piece-crop [data-h="n"], .np-piece-crop [data-h="ne"] { top: -13px; }
  .np-piece-crop [data-h="sw"], .np-piece-crop [data-h="s"], .np-piece-crop [data-h="se"] { bottom: -13px; }
  .np-piece-crop [data-h="n"], .np-piece-crop [data-h="s"] { left: calc(50% - 13px); }
  .np-piece-crop [data-h="e"], .np-piece-crop [data-h="w"] { top: calc(50% - 13px); }
}

/* 2.7.1 : « Lire un code-barres » — fichier glissé sur la page */
body.np-code-over .content-wrapper { outline: 3px dashed var(--bs-primary); outline-offset: -12px; }

/* 2.7.2 : listes en direct — filtres en plus, pastilles des filtres actifs, ce qui a fait trouver un dossier, surlignage */
.np-filters > .np-filters-more { flex: 1 1 100%; min-width: 0; }
.np-filters-more > .np-filters-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: .1rem; }
.np-filters-row > .np-f { flex: 1 1 11rem; min-width: 0; }
.np-filters-row > .np-f-date { flex: 1 1 15rem; max-width: 19rem; }
@media (max-width: 575.98px) { .np-filters-row > .np-f-date { max-width: none; } }
.np-more-btn { display: inline-flex; align-items: center; gap: .35rem; }
/* liste en direct sur téléphone : le bouton « Rechercher » n'est plus utile (Entrée reste possible) */
@media (max-width: 575.98px) { form.np-filters[data-live-on] > .np-f-btn:has(> button[type=submit]) { display: none; } }
.np-more-btn .badge { font-size: .7rem; min-width: 1.25rem; }
@media (max-width: 575.98px) { .np-more-label { display: none; } }
.np-f-search { position: relative; }
.np-filters.is-loading .np-f-search::after, form[data-live-list].is-loading .np-f-search::after {
  content: ""; position: absolute; inset-inline-end: 2.1rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem; pointer-events: none;
  border: 2px solid rgba(var(--bs-primary-rgb), .25); border-top-color: var(--bs-primary); border-radius: 50%; animation: np-spin .7s linear infinite; }
@keyframes np-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .np-filters.is-loading .np-f-search::after { animation-duration: 2s; } }
[data-live-region].is-stale { opacity: .55; transition: opacity .15s; }
.np-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .85rem; }
.np-chips.is-empty { display: none; }
.np-chip { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .2rem .35rem .2rem .6rem; border-radius: 2rem; font-size: .8125rem;
  background: rgba(var(--bs-primary-rgb), .09); color: var(--bs-heading-color); text-decoration: none; border: 1px solid rgba(var(--bs-primary-rgb), .18); }
.np-chip:hover { background: rgba(var(--bs-primary-rgb), .16); color: var(--bs-heading-color); }
.np-chip-k { color: var(--bs-secondary-color); white-space: nowrap; }
.np-chip-v { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np-chip .ti { font-size: .85rem; opacity: .7; flex: none; }
[dir=rtl] .np-chip { padding: .2rem .6rem .2rem .35rem; }
.np-chip-clear { font-size: .8125rem; }
.np-count { margin-inline-start: auto; font-size: .8125rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.np-found { display: flex; align-items: baseline; gap: .3rem; margin-top: .15rem; font-size: .78rem; color: var(--bs-secondary-color); min-width: 0; }
.np-found .ti { font-size: .8rem; color: var(--bs-primary); flex: none; align-self: center; }
.np-found-k { white-space: nowrap; }
.np-found-v { color: var(--bs-body-color); overflow-wrap: anywhere; min-width: 0; }
.np-cell-wide { min-width: 12rem; }
mark.np-hl { padding: 0 .08em; border-radius: .2em; background: rgba(var(--bs-warning-rgb), .32); color: inherit; }
[data-bs-theme=dark] mark.np-hl { background: rgba(var(--bs-warning-rgb), .3); }
.np-ls-hint { display: flex; gap: .3rem; align-items: center; font-size: .76rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ls-hint .ti { font-size: .8rem; color: var(--bs-primary); flex: none; }
.np-ls-recent { display: flex; align-items: center; gap: .6rem; padding: .4rem .65rem; border-radius: .4rem; color: var(--bs-body-color); text-decoration: none; }
.np-ls-recent.is-active, .np-ls-recent:hover { background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-heading-color); }
.np-ls-recent .ti { color: var(--bs-secondary-color); }
.np-ls-tip { padding: .55rem .65rem .35rem; font-size: .78rem; color: var(--bs-secondary-color); border-top: 1px solid var(--bs-border-color); margin-top: .25rem; }
.np-ls-tip:first-child { border-top: 0; margin-top: 0; }
.np-ls-head { display: flex; justify-content: space-between; align-items: center; }
.np-ls-head button { border: 0; background: none; padding: 0 .65rem; font-size: .75rem; color: var(--bs-secondary-color); }
.np-ls-head button:hover { color: var(--bs-primary); }

/* 2.7.2 : alertes dans l'application (petites fenêtres en bas de l'écran) et réglages des alertes du bureau */
.np-alerts { position: fixed; inset-inline-end: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1095; display: flex; flex-direction: column; gap: .5rem;
  width: min(360px, calc(100vw - 2rem)); pointer-events: none; }
.np-alert { pointer-events: auto; display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .75rem; border-radius: .6rem; text-decoration: none;
  background: var(--bs-paper-bg, var(--bs-body-bg)); color: var(--bs-body-color); box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .18); border: 1px solid var(--bs-border-color);
  animation: np-alert-in .25s ease-out; transition: opacity .35s, transform .35s; }
.np-alert:hover { color: var(--bs-heading-color); border-color: rgba(var(--bs-primary-rgb), .4); }
.np-alert.is-out { opacity: 0; transform: translateY(.5rem); }
.np-alert-icon { flex: 0 0 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
[data-bs-theme=dark] .np-alert-icon { color: var(--bs-primary-text-emphasis); }
.np-alert-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.np-alert-title { font-weight: 600; font-size: .875rem; color: var(--bs-heading-color); overflow-wrap: anywhere; }
.np-alert-body { font-size: .8125rem; color: var(--bs-secondary-color); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.np-alert-close { flex: none; border: 0; background: none; padding: 0 .1rem; color: var(--bs-secondary-color); line-height: 1; }
.np-alert-close:hover { color: var(--bs-heading-color); }
@keyframes np-alert-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .np-alert { animation: none; transition: none; } }
@media print { .np-alerts { display: none !important; } }
.np-notif-desk { font-size: .8rem; color: var(--bs-secondary-color); line-height: 1.4; }

/* ===================================================================== 2.8 : congés, jours fériés, priorité, exports */
/* agenda : jours fériés et congés */
.np-calendar .fc-event.np-ev-ferie { background: rgba(var(--bs-danger-rgb), .14); border-color: rgba(var(--bs-danger-rgb), .35); color: var(--bs-danger); font-weight: 600; }
.np-calendar .fc-event.np-ev-ferie .fc-event-title, .np-calendar .fc-event.np-ev-ferie .fc-event-main { color: var(--bs-danger); }
.np-calendar .fc-event.np-ev-estime { border-style: dashed; }
.np-calendar .fc-bg-event.np-bg-ferie { background: rgba(var(--bs-danger-rgb), .07); opacity: 1; }
.np-calendar .fc-event.np-ev-conge { background: rgba(var(--bs-warning-rgb), .16); border-color: rgba(var(--bs-warning-rgb), .45); }
.np-calendar .fc-event.np-ev-conge .fc-event-title, .np-calendar .fc-event.np-ev-conge .fc-event-main { color: var(--bs-body-color); }
.np-calendar .fc-event.np-ev-conge-demande { border-style: dashed; background-image: repeating-linear-gradient(45deg, rgba(var(--bs-warning-rgb), .14) 0 6px, transparent 6px 12px); }
.np-calendar .fc-list-event.np-ev-ferie td, .np-calendar .fc-list-event.np-ev-conge td { background: transparent; }
.np-yd.ferie { box-shadow: inset 0 -3px 0 var(--bs-danger); color: var(--bs-danger); font-weight: 600; }
.np-yd.abs::after { content: ""; display: block; width: 4px; height: 4px; margin: 1px auto 0; border-radius: 50%; background: var(--bs-warning); }
.np-yd.today.ferie { box-shadow: inset 0 0 0 2px var(--bs-warning), inset 0 -3px 0 var(--bs-danger); }

/* congés : carte du solde, vérification en direct, dates conseillées */
.np-solde-dl dd { font-variant-numeric: tabular-nums; }
.np-cg-count { border: 1px dashed var(--bs-border-color); border-radius: .5rem; padding: .6rem .85rem; background: var(--bs-tertiary-bg, rgba(0,0,0,.02)); }
.np-cg-big strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.np-cg-msgs .np-cg-msg { display: flex; align-items: flex-start; gap: .1rem; padding: .2rem 0; line-height: 1.4; }
.np-cg-msgs .np-cg-msg i { margin-top: .15rem; flex: 0 0 auto; }
.np-cg-bal { border-bottom: 1px solid var(--bs-border-color); padding-bottom: .5rem; }
.np-cg-s { padding: .5rem 0; border-top: 1px solid var(--bs-border-color); }
.np-cg-s:first-of-type { border-top: 0; }
.np-cg-n { width: 4.5rem; }
.np-cg-act { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 92px; }
.np-cg-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; min-width: 0; }
.np-cg-bar small { font-size: 10px; color: var(--bs-secondary-color); text-transform: capitalize; overflow: hidden; max-width: 100%; }
.np-cg-fill { display: block; width: 100%; border-radius: 3px 3px 0 0; background: rgba(var(--bs-primary-rgb), .45); }
.np-cg-fill.is-high { background: var(--bs-danger); opacity: .7; }
.np-cg-fill.is-low { background: var(--bs-success); opacity: .7; }
/* planning des absences : grille personnes × jours */
.np-grid-wrap { overflow-x: auto; }
table.np-grid { border-collapse: separate; border-spacing: 0; font-size: .78rem; min-width: 100%; }
table.np-grid th, table.np-grid td { border-bottom: 1px solid var(--bs-border-color); border-inline-end: 1px solid var(--bs-border-color); text-align: center; padding: .25rem 0; min-width: 1.75rem; }
table.np-grid th.np-g-name, table.np-grid td.np-g-name { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bs-paper-bg, var(--bs-body-bg)); text-align: start; padding: .25rem .6rem; min-width: 11rem; white-space: nowrap; }
table.np-grid thead th { font-weight: 500; color: var(--bs-secondary-color); }
table.np-grid thead th .np-g-d { display: block; font-weight: 600; color: var(--bs-body-color); }
table.np-grid .is-closed { background: rgba(var(--bs-secondary-rgb), .08); }
table.np-grid .is-ferie { background: rgba(var(--bs-danger-rgb), .10); color: var(--bs-danger); }
table.np-grid .is-today { box-shadow: inset 0 2px 0 var(--bs-warning); }
table.np-grid td .np-g-cell { display: block; font-weight: 600; text-decoration: none; color: inherit; border-radius: 4px; margin: 0 2px; }
table.np-grid td.c-C a { background: rgba(var(--bs-primary-rgb), .22); } table.np-grid td.c-M a { background: rgba(var(--bs-danger-rgb), .22); }
table.np-grid td.c-E a { background: rgba(var(--bs-info-rgb), .25); } table.np-grid td.c-Ma a { background: rgba(var(--bs-danger-rgb), .16); }
table.np-grid td.c-S a { background: rgba(var(--bs-secondary-rgb), .25); } table.np-grid td.c-R a { background: rgba(var(--bs-success-rgb), .25); }
table.np-grid td.c-A a { background: rgba(var(--bs-warning-rgb), .3); }
table.np-grid td.is-pending a { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 3px, transparent 3px 6px); outline: 1px dashed rgba(var(--bs-warning-rgb), .9); }
table.np-grid td.is-half a { opacity: .65; }
table.np-grid tfoot td { font-weight: 600; color: var(--bs-secondary-color); }
.np-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; }
.np-legend .np-lg { display: inline-flex; align-items: center; gap: .35rem; }
.np-legend .np-lg b { display: inline-block; min-width: 1.4rem; text-align: center; border-radius: 4px; }
/* priorité des dossiers */
.np-prio { font-weight: 600; }
.np-prio-urgente { box-shadow: inset 0 0 0 1px rgba(var(--bs-danger-rgb), .45); }
tr.np-row-urgente > td:first-child { box-shadow: inset 3px 0 0 var(--bs-danger); }
tr.np-row-haute > td:first-child { box-shadow: inset 3px 0 0 var(--bs-warning); }
[dir=rtl] tr.np-row-urgente > td:first-child { box-shadow: inset -3px 0 0 var(--bs-danger); }
[dir=rtl] tr.np-row-haute > td:first-child { box-shadow: inset -3px 0 0 var(--bs-warning); }
.np-prio-pick .btn-check + .btn { min-width: 6.5rem; }
.np-absent { white-space: nowrap; }
/* exports : choix des colonnes */
.np-export-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .35rem 1rem; }
@media (max-width: 575.98px) {
  .np-export { width: 100%; } .np-export > .btn:first-child { flex: 1 1 auto; }
  .np-cg-act { height: 72px; }
}
.np-legend b.c-C { background: rgba(var(--bs-primary-rgb), .22); } .np-legend b.c-M { background: rgba(var(--bs-danger-rgb), .22); }
.np-legend b.c-E { background: rgba(var(--bs-info-rgb), .25); } .np-legend b.c-Ma { background: rgba(var(--bs-danger-rgb), .16); }
.np-legend b.c-S { background: rgba(var(--bs-secondary-rgb), .25); } .np-legend b.c-R { background: rgba(var(--bs-success-rgb), .25); }
.np-legend b.c-A { background: rgba(var(--bs-warning-rgb), .3); } .np-legend b.is-ferie { background: rgba(var(--bs-danger-rgb), .10); color: var(--bs-danger); }
.np-legend b.is-pending { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.1) 0 3px, transparent 3px 6px); outline: 1px dashed rgba(var(--bs-warning-rgb), .9); }
.np-cg-s-text { flex: 1 1 auto; min-width: 0; }
.np-cg-s > .btn { flex: 0 0 auto; }
/* planning : couleurs franches par type d'absence (lisibles en thème clair et sombre) */
table.np-grid td.c-C a, .np-legend b.c-C { background: rgba(59, 91, 219, .22); color: #3b5bdb; }
table.np-grid td.c-M a, .np-legend b.c-M { background: rgba(224, 49, 49, .2); color: #c92a2a; }
table.np-grid td.c-E a, .np-legend b.c-E { background: rgba(12, 166, 120, .2); color: #087f5b; }
table.np-grid td.c-Ma a, .np-legend b.c-Ma { background: rgba(214, 51, 108, .2); color: #a61e4d; }
table.np-grid td.c-S a, .np-legend b.c-S { background: rgba(134, 142, 150, .25); color: #495057; }
table.np-grid td.c-R a, .np-legend b.c-R { background: rgba(55, 178, 77, .22); color: #2b8a3e; }
table.np-grid td.c-A a, .np-legend b.c-A { background: rgba(245, 159, 0, .25); color: #b35c00; }
[data-bs-theme=dark] table.np-grid td[class*="c-"] a, [data-bs-theme=dark] .np-legend b[class*="c-"] { filter: brightness(1.6) saturate(.9); }
@media (max-width: 575.98px) {
  .np-conges-nav { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
  .np-conges-nav .nav-link { white-space: nowrap; }
}
/* ---- 2.9 : droits un par un, qui est prévenu, règles légales datées ---------------------------------------------------- */
.np-measure { max-width: 78ch; }
.np-perm-group { background: var(--bs-paper-bg, var(--bs-body-bg)); }
.np-perm-group-head { background: rgba(var(--bs-primary-rgb), .04); border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0; }
.np-perm-group-head .btn { justify-content: flex-start; text-align: start; }
.np-perm-row { padding-inline: .75rem; }
.np-perm-row:hover { background: rgba(var(--bs-primary-rgb), .035); }
.np-perm-row .form-check-label { cursor: pointer; }
.np-ur-select { width: 11.5rem; flex: 0 0 auto; }
.np-perm-row.np-ur-allow { background: rgba(var(--bs-success-rgb), .07); box-shadow: inset 3px 0 0 var(--bs-success); }
.np-perm-row.np-ur-deny { background: rgba(var(--bs-danger-rgb), .06); box-shadow: inset 3px 0 0 var(--bs-danger); }
[dir=rtl] .np-perm-row.np-ur-allow { box-shadow: inset -3px 0 0 var(--bs-success); }
[dir=rtl] .np-perm-row.np-ur-deny { box-shadow: inset -3px 0 0 var(--bs-danger); }
@media (max-width: 767.98px) { .np-ur-select { width: 100%; } }
.np-rights-card .card-header { border-bottom: 1px solid var(--bs-border-color); }
.np-rights-list > li { display: flex; gap: .5rem; align-items: flex-start; padding: .3rem 0; }
.np-rights-list > li + li { border-top: 1px dashed var(--bs-border-color); }
.np-route-card { transition: opacity .15s ease; }
.np-route-card.np-route-off { opacity: .62; }
.np-route-card.np-route-off .card-header { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(var(--bs-secondary-rgb), .06) 8px 16px); }
.np-sticky-save { position: sticky; bottom: .75rem; z-index: 6; }
.np-sticky-save.card, .np-sticky-save > .card-body { box-shadow: 0 .25rem 1.25rem rgba(var(--bs-black-rgb, 0, 0, 0), .12); }
div.np-sticky-save:not(.card) { background: var(--bs-body-bg); padding: .5rem 0; }
.np-area-card { color: inherit; transition: box-shadow .15s ease, border-color .15s ease; border: 1px solid transparent; }
.np-area-card:hover, .np-area-card:focus-visible { border-color: rgba(var(--bs-primary-rgb), .35); box-shadow: 0 .25rem 1rem rgba(var(--bs-primary-rgb), .12); color: inherit; }
.np-area-card:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.np-area-stat { line-height: 1.35; }
.np-rules-timeline .timeline-item { padding-bottom: 1.1rem; }
.np-rules-timeline .np-rule-old .timeline-event { opacity: .62; }
.np-rules-timeline .np-rules-today .timeline-point { box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), .18); }
.np-rule-items { line-height: 1.5; }
.np-rule-items li { overflow-wrap: anywhere; }
.np-pack-table td { vertical-align: top; }
.np-taux-when .form-control[type=date] { min-width: 10.5rem; }
/* 2.9 : lire plusieurs pièces d'identité */
.np-lot-drop { cursor: pointer; border: 2px dashed rgba(var(--bs-primary-rgb), .35); background: rgba(var(--bs-primary-rgb), .03); transition: background .15s ease, border-color .15s ease; }
.np-lot-drop:hover, .np-lot-drop.is-over { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .08); }
.np-lot-qr { width: 180px; max-width: 100%; }
.np-lot-qr svg { width: 100%; height: auto; }
.np-lot-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.np-lot-src { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: .4rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); min-width: 0; }
.np-lot-src img, .np-lot-src-ic { width: 100%; aspect-ratio: 1.45; object-fit: contain; border-radius: calc(var(--bs-border-radius) - 2px); background: rgba(var(--bs-secondary-rgb), .08); display: flex; align-items: center; justify-content: center; }
.np-lot-src-name { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline-end: 1.6rem; }
.np-lot-src .btn { position: absolute; bottom: .2rem; inset-inline-end: .2rem; }
.np-lot-scans { max-height: 16rem; overflow: auto; display: flex; flex-direction: column; gap: .4rem; }
.np-lot-scan { display: flex; gap: .5rem; align-items: center; cursor: pointer; min-width: 0; }
.np-lot-scan img { width: 3.2rem; height: 2.2rem; object-fit: cover; border-radius: .25rem; flex: 0 0 auto; }
.np-lot-scan .small { min-width: 0; }
.np-lot-person { transition: box-shadow .15s ease, outline-color .15s ease; outline: 2px dashed transparent; outline-offset: -2px; }
.np-lot-person.is-target, .np-lot-newzone.is-target { outline-color: var(--bs-primary); box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .12); }
.np-lot-person.is-skip { opacity: .55; }
.np-lot-person.is-saved { box-shadow: inset 3px 0 0 var(--bs-success); }
[dir=rtl] .np-lot-person.is-saved { box-shadow: inset -3px 0 0 var(--bs-success); }
/* 3.0 : recto et verso — preuve, à confirmer, contradiction ; texte des cartes */
.np-lot-person.is-unconfirmed { outline-color: var(--bs-danger); box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .14); }
.np-lot-pair { display: flex; align-items: center; gap: .15rem; color: var(--bs-secondary-color); }
.np-lot-pair.is-prouve { color: var(--bs-success); }
.np-lot-pair.is-probable { color: var(--bs-info); }
.np-lot-textcard .np-piece-stage { border: 1px solid var(--bs-border-color); border-radius: .375rem; overflow: hidden; background: #fff; }
.np-lot-text-side { position: sticky; top: 0; }
.np-lot-lines { max-height: 22rem; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .25rem; }
.np-lot-text-side .form-control.is-target { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.np-lot-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
.np-lot-chip { display: flex; flex-direction: column; gap: .35rem; padding: .35rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: var(--bs-paper-bg, var(--bs-body-bg)); cursor: grab; min-width: 0; }
.np-lot-chip.is-drag { opacity: .45; }
.np-lot-chip img { width: 100%; aspect-ratio: 1.58; object-fit: cover; border-radius: calc(var(--bs-border-radius) - 2px); pointer-events: none; }
.np-lot-face { align-self: flex-start; border: 0; cursor: pointer; }
.np-lot-face[disabled] { cursor: default; }
.np-face-recto { background: rgba(var(--bs-primary-rgb), .16); color: var(--bs-primary); }
.np-face-verso { background: rgba(var(--bs-info-rgb), .18); color: var(--bs-info); }
.np-face-passeport { background: rgba(var(--bs-success-rgb), .18); color: var(--bs-success); }
.np-face-x { background: rgba(var(--bs-warning-rgb), .22); color: var(--bs-warning); }
.np-lot-chip-src { display: block; }
/* 3.6.1 : retirer une image de la lecture (corbeille sur la vignette), images retirées à remettre */
.np-lot-chip { position: relative; }
.np-lot-chip-del { position: absolute; top: .5rem; inset-inline-end: .5rem; width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center;
  justify-content: center; border: 0; border-radius: 50%; background: rgba(var(--bs-body-bg-rgb, 255, 255, 255), .92); color: var(--bs-danger);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); cursor: pointer; }
.np-lot-chip-del:hover, .np-lot-chip-del:focus-visible { background: var(--bs-danger); color: #fff; outline: none; }
.np-lot-removed .card-body { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.np-lot-chip.is-removed { cursor: default; }
.np-lot-chip.is-removed img { opacity: .7; filter: grayscale(.4); }
.np-lot-fields .form-label { color: var(--bs-secondary-color); }
.np-lot-missing { border-color: rgba(var(--bs-warning-rgb), .9); background: rgba(var(--bs-warning-rgb), .06); }
.np-lot-newzone { border: 2px dashed var(--bs-border-color); border-radius: var(--bs-border-radius-lg, .5rem); padding: 1.1rem; text-align: center; color: var(--bs-secondary-color); }
.np-lot-busy { opacity: .55; pointer-events: none; transition: opacity .15s ease; }
/* 3.4.1 : « Relire » une personne — les autres attendent, celle relue reste lisible */
.np-lot-rereading { pointer-events: none; }
.np-lot-rereading .np-lot-person:not(.is-rereading) { opacity: .55; transition: opacity .15s ease; }
.np-lot-person.is-rereading { outline-color: var(--bs-primary); }
.np-mp-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.np-mp-thumb { position: relative; aspect-ratio: 1.3; border-radius: .5rem; overflow: hidden; background: rgba(var(--bs-secondary-rgb), .1); display: flex; align-items: center; justify-content: center; }
.np-mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.np-mp-thumb .btn { position: absolute; top: .25rem; inset-inline-end: .25rem; }

/* 3.0 : taux — autres droits et frais dans la colonne de gauche ; colonne étroite : chaque frais sur deux lignes
   (libellé, puis calcul, taux et montant avec leur nom), sans défilement de côté */
.np-frais-wrap { container-type: inline-size; }
@container (max-width: 46rem) {
  .np-frais-table thead { display: none; }
  .np-frais-table, .np-frais-table tbody { display: block; width: 100%; }
  .np-frais-table tr { display: grid; grid-template-columns: 1.75rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .5rem .75rem;
    align-items: end; padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color); }
  .np-frais-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .np-frais-table td:nth-child(1) { grid-row: 1 / span 2; align-self: center; }
  .np-frais-table td:nth-child(2) { grid-column: 2 / 5; }
  .np-frais-table td:nth-child(6) { grid-column: 5; grid-row: 1 / span 2; align-self: center; }
  .np-frais-table td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--bs-secondary-color); margin-bottom: .2rem; }
}

/* 3.0 : Mes étapes — une carte par étape : dossier, échéance, étape d'avant, liste de contrôle, pièces de l'étape */
.np-mysteps { display: flex; flex-direction: column; gap: 1rem; }
.np-mystep { background: var(--bs-paper-bg, var(--bs-body-bg)); border: 1px solid var(--bs-border-color); border-inline-start: 4px solid var(--bs-primary);
  border-radius: var(--bs-border-radius-lg, .5rem); padding: 1rem 1.25rem; box-shadow: var(--bs-box-shadow-sm); scroll-margin-top: 6rem; }
.np-mystep.is-late { border-inline-start-color: var(--bs-danger); }
.np-mystep.is-blocked { border-inline-start-color: var(--bs-warning); }
.np-mystep.is-focus { box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .3); }
.np-mystep-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.np-mystep-main { min-width: 0; flex: 1 1 18rem; }
.np-mystep-main h6 a { overflow-wrap: anywhere; }
.np-mystep-due { flex: 0 0 auto; text-align: end; }
.np-mystep-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .5rem; }
.np-mystep-pieces { margin-top: .75rem; padding: .6rem .8rem; border-radius: .375rem; background: rgba(var(--bs-secondary-rgb), .06); }
.np-mystep-pieces li { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; padding: .15rem 0; }
.np-mystep-pieces li.is-ok > i { color: var(--bs-success); }
.np-mystep-pieces li.is-missing > i { color: var(--bs-warning); }
.np-mystep-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.np-team-table td { vertical-align: middle; }
.np-step-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .35rem; }
.np-step-pieces { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.np-step-pieces .badge { font-weight: 500; white-space: normal; text-align: start; line-height: 1.35; max-width: 100%; }
.np-step-main { min-width: 0; max-width: 100%; }      /* titre, responsable et pièces d'une étape : passent à la ligne sur téléphone */

/* 3.0 : reprise de l'existant — ordre conseillé, cartes numérotées, aperçu du fichier */
.np-rep-lead { max-width: 62rem; }
.np-rep-steps { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; counter-reset: rep; }
.np-rep-steps li { counter-increment: rep; }
.np-rep-steps a { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .45rem; border-radius: 2rem;
  background: var(--bs-paper-bg, var(--bs-body-bg)); border: 1px solid var(--bs-border-color); color: var(--bs-heading-color); font-size: .875rem; }
.np-rep-steps a::before { content: counter(rep); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--bs-primary); color: #fff; font-size: .75rem; font-weight: 600; }
.np-rep-steps a:hover { border-color: var(--bs-primary); }
.np-rep-card { scroll-margin-top: 6rem; }
.np-rep-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(var(--bs-primary-rgb), .12);
  color: var(--bs-primary); font-size: .8rem; font-weight: 700; margin-inline-end: .6rem; vertical-align: .1rem; }
.np-rep-series td { vertical-align: middle; }
.np-rep-cols summary { cursor: pointer; color: var(--bs-primary); }
.np-rep-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; padding: 0; list-style: none; counter-reset: flow; }
.np-rep-flow li { counter-increment: flow; position: relative; padding: .75rem .9rem .75rem 2.6rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; }
[dir=rtl] .np-rep-flow li { padding: .75rem 2.6rem .75rem .9rem; }
.np-rep-flow li::before { content: counter(flow); position: absolute; inset-inline-start: .8rem; top: .75rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(var(--bs-info-rgb), .15); color: var(--bs-info); font-size: .72rem; font-weight: 700; }
.np-rep-stat .np-rep-stat-n { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.np-rep-stat.is-ok { border-inline-start: 4px solid var(--bs-success); }
.np-rep-stat.is-skip { border-inline-start: 4px solid var(--bs-secondary); }
.np-rep-stat.is-err { border-inline-start: 4px solid var(--bs-danger); }
.np-rep-table td { vertical-align: top; }
/* aperçu de la reprise : une ligne du fichier = un groupe (valeurs, puis messages de contrôle sur toute la largeur visible) */
.np-rep-wrap { container-type: inline-size; }
.np-rep-table > tbody.has-msgs > tr:first-child > td { border-bottom-width: 0; }
.np-rep-table > tbody > tr.np-rep-msgrow > td { padding-top: 0; padding-bottom: .7rem; }
.np-rep-msgs { position: sticky; inset-inline-start: 1rem; display: grid; gap: .2rem; max-width: calc(100vw - 4rem); max-width: calc(100cqi - 2rem); }
.np-rep-table > tbody.is-erreur > tr > * { --bs-table-bg-type: rgba(var(--bs-danger-rgb), .07); }
.np-rep-table > tbody:hover > tr > * { --bs-table-bg-state: var(--bs-table-hover-bg); }
.np-rep-foot { max-width: 46rem; }
.np-rep-file { max-width: 12rem; vertical-align: bottom; }
/* 3.1 : statistiques des actes (12 mois + totaux sur une ligne), étapes de la vente d'un lot */
.np-stats { font-size: .8125rem; }
.np-stats > :not(caption) > * > * { padding-inline: .45rem; }
.np-stats thead th { letter-spacing: 0; }
.np-lot-step { display: inline-flex; align-items: center; gap: .15rem; padding: .25rem .6rem; border-radius: 999px; background: var(--bs-gray-100, #f3f4f6);
  color: var(--bs-secondary-color); font-size: .8125rem; }
.np-lot-step.is-done { background: rgba(var(--bs-success-rgb), .12); color: var(--bs-success); }
.np-lot-step .small { opacity: .8; }

/* 3.2 ------------------------------------------------------------------------------------------------------------------ */
.np-pre { white-space: pre-wrap; word-break: break-word; }

/* 3.2 : visa mensuel du répertoire — présentation, visa et inspecteur sur une ligne */
.np-visa-form { display: flex; flex-wrap: wrap; gap: .25rem .375rem; align-items: center; }
.np-visa-form .np-visa-date { width: 9.75rem; flex: 0 0 auto; }
.np-visa-form .np-visa-who { width: 13rem; max-width: 100%; flex: 1 1 9rem; }

/* 3.4 : suivi de l'activité — longues listes défilantes dans leur carte (la version imprimée garde tout), en-têtes sur deux lignes */
.np-act-scroll { max-height: 27rem; overflow-y: auto; }
.np-act-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--bs-card-bg, var(--bs-body-bg)); }
.table.np-act-table > thead > tr > th { white-space: normal !important; vertical-align: bottom; }

/* 3.5 : étape suivante d'un crédit ou d'une mainlevée, montant en lettres */
.np-lot-step.is-next { background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); font-weight: 500; }
.np-credit-next { border-inline-start: 3px solid var(--bs-primary); }
.np-words { font-size: .8125rem; color: var(--bs-secondary-color); margin-top: .25rem; min-height: 1rem; }
.np-words-line { font-style: italic; }

/* 3.5 : « Lire le document » (lecture.js) */
@media (min-width: 992px) {                          /* la page et les champs défilent chacun de leur côté */
  #np-doc-read .modal-body { display: flex; flex-direction: column; overflow: hidden; }
  #np-doc-read .np-rd-cols { flex: 1 1 auto; min-height: 0; }
  #np-doc-read .np-rd-col { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: .5rem; }
}
.np-rd-stage { border: 1px solid var(--bs-border-color); border-radius: .375rem; overflow: hidden; background: #fff; }
.np-rd-wait { display: flex; align-items: center; min-height: 12rem; justify-content: center; color: var(--bs-secondary-color); border: 1px dashed var(--bs-border-color); border-radius: .375rem; padding: 1rem; text-align: center; }
.np-rd-fields { max-height: 19rem; overflow-y: auto; overflow-x: hidden; padding-inline-end: .25rem; }
.np-rd-group { font-size: .75rem; font-weight: 600; color: var(--bs-secondary-color); margin: .5rem 0 .25rem; }
.np-rd-fields .form-control.is-target { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .15); }
.np-rd-chip { font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-filled { background-color: rgba(var(--bs-warning-rgb), .08) !important; border-color: rgba(var(--bs-warning-rgb), .6) !important; }
.np-date:has(.np-filled) .np-date-text { background-color: rgba(var(--bs-warning-rgb), .08); border-color: rgba(var(--bs-warning-rgb), .6); }
@media (max-width: 991.98px) { .np-rd-fields { max-height: none; } }

/* 3.6 : raccourcis (Ctrl+K) */
.np-sc-dialog .modal-body { min-height: 12rem; }
.np-sc-group { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--bs-secondary-color); margin: .75rem 0 .35rem; }
.np-sc-group:first-child { margin-top: 0; }
.np-sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .35rem; }
.np-sc-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: .5rem; color: var(--bs-heading-color);
  border: 1px solid transparent; text-decoration: none; min-width: 0; }
.np-sc-item:hover, .np-sc-item.is-active { background: rgba(var(--bs-primary-rgb), .08); border-color: rgba(var(--bs-primary-rgb), .25); color: var(--bs-heading-color); }
.np-sc-icon { flex: 0 0 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .45rem;
  background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
.np-sc-label { flex: 1 1 auto; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.np-sc-kbd { white-space: nowrap; flex: 0 0 auto; font-size: .7rem; padding: .1rem .35rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); border-radius: .25rem; }
.np-sc-search { margin-top: .75rem; }
.np-sc-words { padding: .75rem; border-radius: .5rem; background: rgba(var(--bs-success-rgb), .08); }
/* 3.6 : étapes d'un crédit cliquables (corriger une étape faite, faire une étape qui manque) */
.np-lot-step[role="button"] { cursor: pointer; transition: box-shadow .15s; }
.np-lot-step[role="button"]:hover { box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), .25); }
.np-lot-step[role="button"]:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
[data-step-fix] > summary { cursor: pointer; }
/* 3.6 : résumé du calcul d'une ligne (barème, relevé) */
.np-calc-sum { display: block; max-width: 100%; font-size: .75rem; line-height: 1.25; text-decoration: none; white-space: normal; margin-top: .15rem; }
.np-calc-sum:hover { text-decoration: underline; }
.np-calc-refs { max-height: 14rem; overflow-y: auto; }
.np-acc-menu { max-height: 20rem; overflow-y: auto; min-width: 16rem; max-width: min(22rem, 92vw); z-index: 1095; }
.np-acc-menu .dropdown-header { white-space: normal; }
.np-acc-item { white-space: normal; }
.np-acc-main .np-rib { font-weight: 600; }
/* 3.6.2 : fiche modifiée par un autre pendant la saisie, historique des valeurs, saisie gardée */
.np-conflict { border: 1px solid rgba(var(--bs-warning-rgb), .55); background: rgba(var(--bs-warning-rgb), .07); box-shadow: none; }
.np-conflict-icon { flex: 0 0 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .6rem;
  background: rgba(var(--bs-warning-rgb), .18); color: var(--bs-warning-text-emphasis, var(--bs-warning)); font-size: 1.35rem; }
.np-conflict-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); font-weight: 600; }
.np-conflict-table td, .np-conflict-table th { background: transparent; }
.np-conflict-table .np-mine { color: var(--bs-heading-color); }
.np-conflict-done .np-mine { color: var(--bs-secondary-color); text-decoration: line-through; text-decoration-color: rgba(var(--bs-warning-rgb), .7); }
.np-conflict-done .np-theirs { color: var(--bs-success); }
.np-taken { animation: np-taken 1.8s ease-out 1; border-radius: .5rem; }
@keyframes np-taken { 0% { box-shadow: 0 0 0 .35rem rgba(var(--bs-warning-rgb), .55); } 100% { box-shadow: 0 0 0 .35rem rgba(var(--bs-warning-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .np-taken { animation: none; outline: 2px solid var(--bs-warning); } }
.np-pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; background: var(--bs-tertiary-bg); border-radius: .4rem; padding: .5rem .65rem;
  max-height: 18rem; overflow: auto; color: var(--bs-body-color); }
.np-modifs-table td { vertical-align: top; border-bottom-width: 0; padding-top: .3rem; padding-bottom: .3rem; }
.np-modifs .np-modifs-table { table-layout: fixed; width: 100%; }             /* colonnes alignées d'un enregistrement à l'autre */
.np-modifs .np-mc-label { width: 24%; } .np-modifs .np-mc-old { width: 31%; } .np-modifs .np-mc-act { width: 8.5rem; }
@media (max-width: 767.98px) { .np-modifs .np-modifs-table { table-layout: auto; } .np-modifs .np-mc-label, .np-modifs .np-mc-old, .np-modifs .np-mc-act { width: auto; } }
.np-modifs-label { min-width: 7rem; }
.np-modifs-old .np-old { color: var(--bs-secondary-color); text-decoration: line-through; text-decoration-color: rgba(var(--bs-danger-rgb), .45); }
.np-modifs-old, .np-modifs-new { word-break: break-word; }
html[dir="rtl"] .np-flip { display: inline-block; transform: scaleX(-1); }
.np-modifs-group[hidden] { display: none !important; }
.np-modifs-more > summary { list-style: none; }
.np-modifs-more > summary::-webkit-details-marker { display: none; }
.np-cell-wrap { max-width: 26rem; word-break: break-word; white-space: normal; }
.np-draft-banner { border-style: dashed; }

/* 3.7.0 : Administration → Options */
.np-option { padding: 1rem 0; border-bottom: 1px solid var(--bs-border-color); }
.np-option:last-child { border-bottom: 0; }
.np-option-score { display: flex; align-items: baseline; justify-content: center; gap: .2rem; min-width: 6rem; font-size: 2.5rem; font-weight: 700; line-height: 1; }
.np-option-score small { font-size: 1.1rem; font-weight: 500; color: var(--bs-secondary-color); }
.np-option-nav { position: sticky; top: 5.5rem; }
.np-option-pw { width: 100%; max-width: 280px; }
.np-grow { flex: 1 1 320px; min-width: 0; }
.np-auth-or { display: flex; align-items: center; gap: .75rem; }
.np-auth-or::before, .np-auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--bs-border-color); }

/* 3.7.1 : lecture d'un lot — fiche enregistrée à côté de la lecture */
.np-lot-cur { border: 1px solid var(--bs-border-color); border-radius: .375rem; padding: .375rem .625rem; background: var(--bs-tertiary-bg, transparent); }
.np-lot-cur > summary { cursor: pointer; }
.np-lot-cur-list { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .125rem .75rem; }
.np-lot-cur-row { display: contents; }
.np-lot-cur-row > span:last-child { overflow-wrap: anywhere; }
.np-lot-differs { border-color: var(--bs-danger); }
.np-lot-curval { overflow-wrap: anywhere; }
