:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #fff;
  background: #382161;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  background: #ffffff18;
  border: 1px solid #ffffff42;
  border-radius: 9px;
  color: inherit;
  padding: 0.53em 0.9em;
}
button:hover {
  background: #ffffff30;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
body :focus-visible,
.btn:focus-visible,
.outil-societe:has(select:focus-visible) {
  outline: 1px solid rgb(255 255 255 / 50%);
  outline-offset: 1px;
  box-shadow: none;
}
body :is(input[type="checkbox"], input[type="radio"], [role="checkbox"], [role="radio"], [role="menuitemcheckbox"], [role="menuitemradio"]):focus {
  outline: none;
  box-shadow: none;
}
input,
select {
  color: inherit;
  background: #ffffff18;
  border: 1px solid #ffffff40;
  padding: 0.62em 0.8em;
  border-radius: 9px;
}
select option {
  color: #20162b;
}
input::placeholder {
  color: #ffffffc4;
}
[hidden] {
  display: none !important;
}
#accueil {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #392074, #6736aa 62%, #9956be);
  padding: 24px;
}
.carte {
  width: min(100%, 440px);
}
.marque,
.ruban,
dialog header,
footer,
.criteres {
  display: flex;
  align-items: center;
  gap: 15px;
}
.marque {
  margin-bottom: 36px;
}
.marque h1 {
  font-size: 46px;
  letter-spacing: -2px;
}
.marque p {
  margin: 2px 0;
}
.marque img {
  filter: drop-shadow(0 3px 6px #17052d40);
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 23px;
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 6px;
}
.case {
  display: flex;
  align-items: center;
}
.principal {
  background: white;
  color: #442973;
  font-weight: 650;
}
.principal:hover {
  background: #efe7ff;
}
#demonstration {
  text-align: center;
  margin-top: 23px;
  border-top: 1px solid #fff3;
  padding-top: 17px;
}
#demonstration p {
  margin: 14px 0;
  color: #f5ebff;
}
#demos {
  display: flex;
  gap: 7px;
  justify-content: center;
}
#demos button {
  flex: 1;
  background: #fff;
  color: #33253f;
  font-size: 13px;
  font-weight: 600;
}
#demos img {
  display: block;
  object-fit: contain;
  width: 40px;
  height: 40px;
  margin: 0 auto 7px;
}
#gestion {
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    115deg,
    var(--gauche, #244a5e),
    var(--droite, #396b80)
  );
}
.ruban,
.criteres,
footer {
  padding: 14px clamp(12px, 3vw, 36px);
}
.ruban h1 {
  font-size: 20px;
}
.ruban span,
small {
  font-size: 13px;
  opacity: 0.85;
}
.choix {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.ruban select {
  max-width: 38vw;
}
nav {
  display: flex;
  overflow: auto;
  padding: 0 15px;
  border-bottom: 1px solid #fff3;
}
nav button {
  border: none;
  border-radius: 0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
nav [aria-current] {
  background: #ffffff21;
  border-color: #fff;
}
.criteres {
  justify-content: space-between;
}
.criteres input {
  width: min(48vw, 300px);
}
.tableau {
  overflow: auto;
  flex: 1;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  border-right: 1px solid #ffffff18;
  border-bottom: 1px solid #ffffff22;
}
th {
  position: sticky;
  top: 0;
  background: #253b45;
  white-space: nowrap;
}
th button,
td button {
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
}
td button {
  text-decoration: none;
}
tbody tr:hover {
  background: #fff1;
}
#vide:empty,
#vide:not(:empty) + #compte {
  display: none;
}
#gestion {
  height: 100dvh;
}
.tableau {
  min-height: 0;
  container-type: size;
  --hauteur-ligne: 29px;
  border-block: 1px solid #fff3;
}
.tableau table {
  height: auto;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: separate;
  font-size: 15px;
}
.tableau th,
.tableau #resultats td {
  height: var(--hauteur-ligne);
  line-height: 20px;
  padding: 0 9px;
}
.tableau th {
  z-index: 1;
  background: color-mix(in srgb, var(--gauche) 90%, #121619);
  border-bottom: 1px solid #fff3;
}
.tableau td,
.tableau th {
  border-right: 1px solid #ffffff2e;
}
.tableau .prolongement td {
  height: max(0px, calc(100cqh - (1 + var(--nombre-lignes, 0)) * var(--hauteur-ligne)));
  padding: 0;
  border-bottom: 0;
}
.tableau .prolongement tr:hover {
  background: transparent;
}
#resultats {
  -webkit-user-select: none;
  user-select: none;
}
#resultats tr,
.rep-liste tbody tr {
  background: transparent;
  --fond-ligne: transparent;
}
#resultats tr.selection {
  --fond-ligne: #ffffff38;
}
@media (hover: hover) {
  #resultats tr:hover,
  .rep-liste tbody tr:hover {
    --fond-ligne: #ffffff14;
  }
  #resultats tr.selection:hover {
    --fond-ligne: #ffffff45;
  }
}
.tableau #resultats td,
.rep-liste tbody td {
  background: var(--fond-ligne);
  border-bottom: 0;
}
.tableau #resultats td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#resultats td:first-child,
.rep-liste tbody td:first-child {
  border-radius: 3px 0 0 3px;
}
#resultats td:last-child,
.rep-liste tbody td:last-child {
  border-radius: 0 3px 3px 0;
}
#resultats td:only-child,
.rep-liste tbody td:only-child {
  border-radius: 3px;
}
#menuListe {
  position: fixed;
  z-index: 4;
  min-width: 180px;
  max-width: calc(100vw - 12px);
  max-height: calc(100dvh - 12px);
  overflow: auto;
  background: #292b30;
  color: white;
  padding: 5px;
  border: 1px solid #ffffff42;
  border-radius: 9px;
  box-shadow: 0 8px 25px #0005;
}
#menuListe button {
  display: block;
  width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  text-align: left;
  background: transparent;
}
#menuListe button:hover,
#menuListe button:focus-visible {
  background: #48586b;
}
#menuListe [role="menuitemcheckbox"] {
  padding-left: 26px;
  position: relative;
}
#menuListe [aria-checked="true"]::before {
  content: "✓";
  position: absolute;
  left: 7px;
}
#menuListe hr {
  margin: 4px 0;
}
#vide,
#compte {
  margin-right: auto;
}
footer {
  background: #0001;
  justify-content: space-between;
  font-size: 14px;
}
footer div {
  display: flex;
  gap: 8px;
}
dialog {
  color: #24313b;
  border: 0;
  border-radius: 16px;
  width: min(720px, 95vw);
  max-height: 86svh;
  padding: 0;
  box-shadow: 0 14px 80px #17253366;
}
dialog::backdrop {
  background: #18233396;
}
dialog header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #dee4e7;
  justify-content: space-between;
}
dialog button {
  border-color: #bdc9d1;
}
#corpsfiche {
  padding: 20px;
}
dl {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) 2fr;
  gap: 10px;
}
dt {
  color: #52626e;
}
dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#message {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: #191423;
  color: white;
  border-radius: 9px;
  max-width: 92vw;
}
@media (max-width: 600px) {
  .ruban {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ruban img {
    width: 30px;
  }
  .choix {
    font-size: 13px;
  }
  .ruban button {
    font-size: 12px;
  }
  .criteres h2 {
    font-size: 18px;
  }
}
body {
  font-family: inherit;
  color: inherit;
}
.btn {
  --nc-btn-color: currentColor;
  --nc-btn-border: #ffffff52;
  --nc-btn-bg: #ffffff19;
  --nc-btn-hover-bg: #ffffff30;
  --nc-btn-hover-scale: 1;
  --nc-btn-active-scale: 0.98;
}
.principal.btn {
  --nc-btn-color: #47266c;
  --nc-btn-bg: white;
  --nc-btn-hover-bg: #efe7ff;
}
.nc-tableau {
  --nc-tableau-bord: #ffffff24;
  --nc-tableau-zebre: #ffffff06;
  --nc-tableau-survol: #ffffff18;
}
.nc-tableau__compte {
  opacity: 1;
}
.nc-tableau__recherche {
  flex: 0 1 auto;
  background: #ffffff18;
}
dialog header .btn {
  --nc-btn-border: #bdc9d1;
}
#secondaires {
  flex-wrap: wrap;
  justify-content: center;
}
#secondaires button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.3em 1em;
}
footer {
  flex-wrap: wrap;
}

#voirDemos.btn {
  --nc-btn-color: white;
  --nc-btn-bg: #ffffff1c;
  --nc-btn-hover-bg: #ffffff32;
  --nc-btn-border: #ffffff55;
  min-height: 39px;
  padding: 0 24px;
  font-size: 15px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 #ffffff14;
}
@media (max-width: 640px) {
  .tableau table {
    display: table;
  }
  .tableau thead {
    position: static;
    width: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }
  .tableau tbody {
    display: table-row-group;
    width: auto;
  }
  .tableau tr {
    display: table-row;
    width: auto;
  }
  .tableau tbody tr {
    margin: 0;
    border: 0;
  }
  .tableau td {
    display: table-cell;
    width: auto;
    text-align: left;
  }
}
@font-face {
  font-family: "SF Pro";
  src: url("/assets/sf-outils.woff2?v=42a1e8c71a") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
.outils {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.groupe-outils {
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #ffffff20, #ffffff0e);
  border: 0;
  border-radius: 99px;
  padding: 2px;
}
.groupe-outils:last-child {
  margin-left: auto;
}
.groupe-outils:first-child {
  margin-left: auto;
}
.groupe-outils button,
.outil-societe {
  display: grid;
  place-items: center;
  width: 39px;
  height: 30px;
  padding: 0;
  color: white;
  border: 0;
  border-radius: 99px;
  background: transparent;
}
.groupe-outils button:not(:disabled):hover,
.outil-societe:focus-within {
  background: #ffffff26;
}
.groupe-outils button:disabled,
.outil-societe:has(select:disabled) {
  opacity: 0.4;
}
.groupe-outils .sfs {
  font-size: 19px;
  line-height: 1;
}
.outil-societe {
  position: relative;
}
.outil-societe select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
}
@media (max-width: 700px) {
  .outils {
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .groupe-outils:first-child {
    margin-left: 0;
  }
  .groupe-outils button,
  .outil-societe {
    width: 33px;
  }
}
/* Ruban de recherche de la fenêtre Gestion. */
#onglets button {
  background: transparent;
  border: 0;
  border-top: 3px solid transparent;
  border-radius: 0;
  color: #ffffffbd;
}
#onglets button[aria-current] {
  border-color: #ffffffa8;
  background: #ffffff14;
  color: white;
  font-weight: 650;
}
#onglets button:hover {
  background: #ffffff12;
  color: white;
}
.criteres {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  padding: 8px 10px;
  min-height: 130px;
  font-size: 14px;
  max-height: 42dvh;
  overflow: auto;
}
.col-recherche,
.col-filtres,
#extras {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.outils-recherche,
#extras > div,
#zonePeriode,
#groupesFiltres {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
#groupesFiltres {
  gap: 20px;
}
.col-filtres:empty,
#extras:empty,
#zonePeriode:empty {
  display: none;
}
.criteres input:not([type="checkbox"]),
.criteres select {
  width: auto;
  height: 24px;
  max-width: 200px;
  padding: 1px 8px;
  border: 0;
  background: #ffffff1a;
  border-radius: 9px;
  font: inherit;
  color: white;
}
.criteres input[type="text"] {
  width: 150px;
}
.criteres input.court {
  width: 75px;
}
.criteres .col-filtres label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 24px;
}
.criteres label.coche {
  min-height: 18px;
}
.coche input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #657783;
}
.criteres .recherche-mac {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 220px;
  padding: 0 8px;
  border-radius: 20px;
  background: #ffffff1a;
  height: 24px;
}
.criteres .recherche-mac input {
  min-width: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  outline-offset: 1px;
}
.criteres button {
  padding: 0 4px;
  height: 24px;
  border: 0;
  background: transparent;
}
.criteres button:hover {
  background: #ffffff1a;
}
.criteres #zonePeriode > select {
  width: 172px;
}
#zonePeriode {
  flex-wrap: wrap;
}
#zonePeriode label {
  display: flex;
  align-items: center;
}
#extras > div {
  align-items: center;
  gap: 4px;
}
#extras input {
  width: 115px;
}
#groupesFiltres.compta {
  flex-direction: column;
  gap: 12px;
}
.col-filtres.ligne-compta,
.cadre-compta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ligne-compta input[type="text"] {
  width: 80px;
}
.cadre-compta {
  padding: 5px 9px;
  border: 1px solid #ffffff80;
  border-radius: 9px;
  font-size: 16px;
}
@media (max-width: 1100px) {
  .criteres {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .criteres .recherche-mac {
    width: 180px;
  }
  #groupesFiltres {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}
@media (max-width: 640px) {
  .criteres {
    min-height: 0;
  }
  .outils-recherche,
  #extras > div {
    flex-wrap: wrap;
  }
  #groupesFiltres {
    max-width: 100%;
  }
  .outils-recherche {
    gap: 4px;
  }
  .criteres #zonePeriode > select {
    width: 160px;
  }
  .col-recherche {
    max-width: 100%;
  }
}

/* Même alignement pour l’en-tête, les données. */
:is(.tableau, .rep-liste) :is(th, td):is(.wd-date, .wd-heure, .wd-horodatage, .wd-numero, .wd-booleen, .wd-centre) {
  text-align: center;
}
:is(.tableau, .rep-liste) th:is(.wd-date, .wd-booleen, .wd-numero, .wd-centre),
.rep-liste tbody td:is(.wd-date, .wd-booleen, .wd-numero, .wd-centre),
.tableau #resultats td:is(.wd-date, .wd-booleen, .wd-numero, .wd-centre) {
  padding-inline: 2px;
}
:is(.tableau, .rep-liste) :is(th, td):is(.wd-montant, .wd-entier, .wd-nombre, .wd-taux):not(.wd-centre) {
  text-align: right;
}
.tableau :is(.wd-date, .wd-heure, .wd-horodatage, .wd-numero, .wd-montant, .wd-entier, .wd-nombre, .wd-taux) {
  font-variant-numeric: tabular-nums;
}
:is(.tableau, .rep-liste) td.wd-negatif { color: #ffb4ad; }
:is(.tableau, .rep-liste) th button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(.tableau, .rep-liste) th[aria-sort]::after {
  content: "⌃";
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
}
:is(.tableau, .rep-liste) th[aria-sort="descending"]::after { transform: translateY(-50%) rotate(180deg); }

.wd-icone-contact {
  display: inline-block;
  width: 16px;
  flex: none;
  text-align: center;
  color: rgb(255 255 255 / 80%);
}
.wd-icone-contact[data-statut="Fournisseur"] { color: #ffd60a; }
.wd-icone-contact[data-statut="Client"] { color: #e03b30; }
.wd-icone-contact[data-statut="Prospect"] { color: #ff9f0a; }
#resultats .wd-icone-contact { margin-inline-end: 6px; }
#resultats .sfs-person.wd-icone-contact { margin-inline-start: 16px; }
#resultats td:has(.sfs-building-2-fill) { font-weight: 600; }

.rep-liste th { cursor: pointer; }
#fiche .rep-liste th { color: white; background: #344653; }
#fiche .rep-liste .wd-negatif { color: #a52f27; }
#fiche .rep-liste td.wd-multiligne { white-space: pre-wrap; overflow-wrap: anywhere; }
#fiche .rep-liste tbody tr:hover { --fond-ligne: #233d5210; }
#repertoire .rep-contacts.rep-liste { margin-top: 0; }
.rep-contacts.rep-liste td { padding: 0; }

#menuWiseDyn { padding: 3px; border: 0; background: transparent; display: grid; place-items: center; }
#menuWiseDyn img { display: block; width: 32px; }
#mode { max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vide:empty { display: none; }
#voletOutils {
  margin: 0; width: min(310px, 88vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border-radius: 0 16px 16px 0; background: #253e46; color: white; overflow-y: auto;
}
#voletOutils[open] { animation: entrer-volet .16s ease-out; }
@keyframes entrer-volet { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { #voletOutils[open] { animation: none; } }
#voletOutils header { background: #253e46; color: white; padding: 12px 16px; z-index: 1; }
#voletOutils .outils, #voletOutils .groupe-outils { display: grid; justify-content: stretch; gap: 2px; margin: 0; }
#voletOutils .outils { padding: 8px; }
#voletOutils .groupe-outils { border-radius: 0; background: none; padding: 4px 0; border-bottom: 1px solid #ffffff28; }
#voletOutils .outils button, #voletOutils .outil-societe {
  border: 0; padding: 6px 12px; height: auto; min-height: 36px; border-radius: 5px;
  background: transparent; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
}
#voletOutils .outils button::after { content: attr(aria-label); }
#voletOutils .outil-societe::after { content: attr(title); }
#voletOutils .outils button:not(:disabled):hover { background: #ffffff1a; }
@media (max-width: 1100px), (pointer: coarse) and (max-width: 1376px) {
  .ruban .outils, .ruban #dupliquer { display: none; }
  .ruban { flex-wrap: nowrap; padding-block: 6px; gap: 8px; }
}
:is(.tableau,.rep-liste) th:has(button) { cursor: pointer; }
:is(.tableau,.rep-liste) th:has(button):hover { background-image: linear-gradient(#ffffff1a,#ffffff1a); }
:is(#gestion,#repertoire,#produit,#fiche) th button:not(:disabled):is(:hover,:active,:focus-visible) {
  border-radius: 0; background: transparent; box-shadow: none; scale: none; transform: none;
}
dialog .rep-icone .sfs, #fiche #fermer .sfs { font-size: 18px; }
dialog .rep-tete .rep-icone .sfs { font-size: 20px; }
dialog .rep-contact .wd-icone-contact { font-size: 18px; }
dialog .rep-groupe .sfs-sauver { width: 25px; height: 22px; }
