/* Gestion — Banque, Devis et factures, Finance */
.bnq, .stu-pl2, .fin {
  --gestion-gap: clamp(10px, 1.4vw, 16px);
  --gestion-radius: 16px;
}
:is(.bnq, .stu-pl2, .fin) :is(button, select, summary, input):focus-visible {
  outline: 2px solid #f7f6f0;
  outline-offset: 3px;
}
.stu-pl2 {
  container: gestion-docs / inline-size;
}
.stu-pl2 .stu-pl2-h {
  align-items: flex-start;
  padding-block: 0 22px;
}
.stu-pl2 .stu-fa-menu {
  width: min(300px, calc(100vw - 40px));
}
.stu-pl2 .stu-fa-menu button {
  min-height: 44px;
}
.stu-pl2 .stu-pl2-h h1 {
  min-width: 0;
  text-wrap: balance;
}
.stu-pl2 :is(.stu-fa-go, .stu-pl2-fam button, #faCl, .stu-cherche) {
  min-height: 44px;
}
.stu-pl2 .stu-pl2-cartes {
  gap: var(--gestion-gap);
  margin-bottom: 20px;
}
.stu-pl2 .stu-pl2-c {
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border-radius: var(--gestion-radius);
}
.stu-pl2 .stu-pl2-c .stu-x-mono {
  line-height: 1.35;
  letter-spacing: .035em;
}
.stu-pl2 .stu-pl2-c b {
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.stu-pl2 .stu-pl2-outils {
  align-items: stretch;
  flex-wrap: wrap;
}
.stu-pl2 .stu-pl2-outils .stu-cherche {
  flex: 1 1 240px;
  margin: 0;
}
.stu-pl2 #faCl {
  min-width: 0;
  max-width: 100%;
}
.stu-pl2 .stu-pl2-t {
  overflow: hidden;
  border-radius: var(--gestion-radius);
}
.stu-pl2 :is(.stu-pl2-th, .stu-pl2-r) {
  grid-template-columns: minmax(105px, .9fr) minmax(114px, 1.3fr) minmax(100px, 1fr) minmax(110px, 1.4fr) minmax(96px, .95fr) minmax(84px, .9fr);
  gap: 12px;
  padding-inline: 14px;
}
.stu-pl2 :is(.stu-pl2-th, .stu-pl2-r) > :is(:nth-child(3), :nth-child(4)) {
  display: block;
}
.stu-pl2 .stu-pl2-r {
  min-height: 66px;
  padding-block: 11px;
}
.stu-pl2 .stu-pl2-r > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.stu-pl2 .stu-pl2-r:focus-visible {
  outline-offset: -3px;
}
.stu-pl2 .stu-pl2-dt small {
  display: none;
}
@container gestion-docs (width < 720px) {
  .stu-pl2 .stu-pl2-h { align-items: start; gap: 8px; }
  .stu-pl2 .stu-pl2-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stu-pl2 .stu-pl2-outils .stu-cherche { max-width: none; }
  .stu-pl2 #faCl { flex: 1 1 150px; }
  .stu-pl2 .stu-pl2-th { display: none; }
  .stu-pl2 .stu-pl2-r {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas: "client montant" "objet objet" "numero date" "statut statut";
    gap: 5px 12px;
    padding: 12px 14px;
  }
  .stu-pl2 .stu-pl2-r > span:first-child {
    grid-area: statut;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin-top: 3px;
  }
  .stu-pl2 .stu-pl2-cl { grid-area: client; gap: 7px; }
  .stu-pl2 .stu-pl2-lg { width: 21px !important; height: 21px !important; }
  .stu-pl2 .stu-pl2-num { grid-area: numero; font-size: 12.5px; }
  .stu-pl2 .stu-pl2-obj { grid-area: objet; font-size: 13.5px; }
  .stu-pl2 .stu-pl2-obj:empty { display: none; }
  .stu-pl2 .stu-pl2-dt { grid-area: date; text-align: right; font-size: 12.5px; }
  .stu-pl2 .stu-pl2-dt small { display: inline; font-size: inherit; }
  .stu-pl2 .stu-pl2-m { grid-area: montant; }
}

.bnq .bnq-haut {
  border-radius: var(--gestion-radius);
  grid-template-columns: minmax(200px, 1fr) minmax(0, 1.8fr);
}
.bnq :is(.bnq-solde, .bnq-flux > div) {
  padding: clamp(14px, 2.3vw, 25px);
}
.bnq .bnq-solde b {
  font-size: clamp(28px, 4.1vw, 42px);
}
.bnq :is(.bnq-solde, .bnq-flux) b {
  white-space: normal;
  overflow-wrap: anywhere;
}
.bnq .bnq-priorites {
  margin-top: 27px;
}
.bnq :is(.bnq-priorites h3, .bnq-bloc-t h3) {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
}
.bnq .bnq-faire {
  gap: var(--gestion-gap);
  margin-top: 10px;
}
.bnq .bnq-carte {
  min-width: 0;
  padding: clamp(12px, 1.8vw, 20px);
  border-radius: var(--gestion-radius);
}
.bnq .bnq-carte small {
  color: var(--ecx-mute);
}
.bnq :is(.bnq-tete .btn, .bnq-onglets button, .bnq-filtres summary, .bnq-outils select, .bnq-q) {
  min-height: 44px;
}
.bnq .bnq-bloc-t {
  flex-wrap: wrap;
}
.bnq .bnq-op-t b {
  white-space: normal;
  overflow-wrap: anywhere;
}
.bnq .bnq-m {
  font-variant-numeric: tabular-nums;
}

.fin .fin-h {
  align-items: flex-start;
  gap: 10px 16px;
}
.fin .fin-bt h2 {
  white-space: normal;
}
.fin :is(.fin-quatre, .fin-trois, .fin-duo) {
  gap: var(--gestion-gap);
}
.fin .fin-q {
  padding: clamp(12px, 1.8vw, 20px);
  border-radius: var(--gestion-radius);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.fin .fin-q b {
  white-space: normal;
  overflow-wrap: anywhere;
}
.fin .fin-bloc {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.fin :is(.fin-h .btn, .fin-seg button, .fin-pager button, .fin-bt .pg-b) {
  min-height: 44px;
}
.fin :is(.fin-l:hover, .fin-q:hover) {
  transform: none;
}
.fin .fin-age {
  white-space: normal;
}

/* La peau Studio masque les titres du menu général. Les groupes de Gestion restent accessibles à toutes les largeurs. */
body.s3:has(#view :is(.fin, .bnq)) #stuSide[data-mode="projet"] .ecx-nav > h5 {
  display: flex !important;
}
body.s3:has(#view :is(.fin, .bnq)) #stuSide[data-mode="projet"] .ecx-nav > button[hidden] {
  display: none !important;
}
@media (min-width: 861px) and (max-width: 1180px) {
  body.s3:has(#view :is(.fin, .bnq)) #stuSide[data-mode="projet"] .ecx-nav > h5 {
    padding: 8px 2px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 960px) {
  .bnq .bnq-haut {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .bnq .bnq-flux {
    grid-template-columns: minmax(0, 1fr);
  }
  .bnq .bnq-flux > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 12px;
  }
  .bnq .bnq-flux small { grid-column: 1 / -1; }
  .bnq .bnq-op {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icone libelle montant" ". categorie justificatif";
    column-gap: 8px;
    row-gap: 4px;
  }
  .bnq .bnq-op:has(.bnq-ck) {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "selection icone libelle montant" ". . categorie justificatif";
  }
  .bnq .bnq-ck { grid-area: selection; }
  .bnq .bnq-ic { grid-area: icone; }
  .bnq .bnq-op-t { grid-area: libelle; }
  .bnq .bnq-mcat { display: none; }
  .bnq .bnq-m { grid-area: montant; }
  .bnq .bnq-chip {
    display: inline-flex;
    grid-area: categorie;
    justify-self: start;
    min-height: 40px;
    height: auto;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
  .bnq .bnq-clip {
    display: grid;
    grid-area: justificatif;
    justify-self: end;
    width: 44px;
    height: 44px;
  }
  .fin .fin-c small {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bnq :is(.bnq-carte, .bnq-op),
  .stu-pl2 :is(.stu-pl2-c, .stu-pl2-r),
  .fin :is(.fin-q, .fin-l) {
    transition: none;
  }
}
