/* DSA CRM v11.96 — saisie comptable uniforme, résultat final en bas. */

#mandat-section-vente .v1192-finance-card{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

/* En-tête simple : les anciennes étapes superposées sont supprimées. */
#mandat-section-vente .v1192-finance-card>header{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:16px!important;
  min-height:58px;
  box-sizing:border-box;
  padding:13px 16px!important;
}
#mandat-section-vente .v1192-finance-card>header>div:first-child{flex:0 0 auto}
#mandat-section-vente .v1192-finance-card>header h4{
  font-size:14px!important;
  font-weight:680!important;
  letter-spacing:-.018em!important;
}
#mandat-section-vente .v1192-finance-card>header p{
  max-width:none!important;
  font-size:10px!important;
  font-weight:400!important;
  line-height:1.4!important;
}
#mandat-section-vente .v1192-flow{display:none!important}

/* Ordre métier unique : saisie, charges, bilan, état de sauvegarde. */
#mandat-section-vente .v1192-finance-workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"note" "revenue" "cost" "result" "save"!important;
  align-items:stretch!important;
  background:rgba(255,255,255,.34)!important;
}
#mandat-section-vente .v1192-finance-workspace>.v1192-revenues{grid-area:revenue!important}
#mandat-section-vente .v1192-finance-workspace>.v1192-costs{grid-area:cost!important}
#mandat-section-vente .v1192-finance-workspace>.v1192-result{
  grid-area:result!important;
  position:static!important;
  min-height:0!important;
  border:0!important;
  border-top:1px solid rgba(24,32,43,.085)!important;
  background:linear-gradient(145deg,rgba(246,251,248,.86),rgba(250,252,255,.8))!important;
}
#mandat-section-vente .v1192-finance-workspace>section{padding:16px!important}
#mandat-section-vente .v1192-finance-workspace>.v1192-costs{border-top:1px solid rgba(24,32,43,.07)!important}

/* Même famille, mêmes graisses et mêmes corps sur toute la saisie. */
#mandat-section-vente .v1192-finance-note{
  gap:7px;
  margin:13px 16px 0;
  padding:9px 11px;
  font-size:9.5px!important;
  font-weight:400!important;
}
#mandat-section-vente .v1192-finance-note strong{font-weight:620!important}
#mandat-section-vente .v1146-section-title{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:10px!important;
}
#mandat-section-vente .v1146-section-title strong{
  font-size:13px!important;
  font-weight:680!important;
  letter-spacing:-.012em!important;
}
#mandat-section-vente .v1146-section-title small{
  display:block!important;
  max-width:440px!important;
  color:var(--ink3)!important;
  font-size:9.5px!important;
  font-weight:400!important;
  line-height:1.4!important;
  text-align:right!important;
}

#mandat-section-vente .v1192-finance-card .v1146-fields{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
}
#mandat-section-vente .v1192-finance-card .v1146-field{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 120px!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:12px!important;
  row-gap:2px!important;
  min-height:66px!important;
  box-sizing:border-box!important;
  padding:9px 10px!important;
}
#mandat-section-vente .v1192-finance-card .v1146-field>span{
  grid-column:1!important;
  grid-row:1!important;
  align-self:end!important;
  color:var(--ink)!important;
  font-size:10px!important;
  font-weight:620!important;
  line-height:1.3!important;
}
#mandat-section-vente .v1192-finance-card .v1146-field>small{
  grid-column:1!important;
  grid-row:2!important;
  align-self:start!important;
  min-height:0!important;
  color:var(--ink3)!important;
  font-size:8.5px!important;
  font-weight:400!important;
  line-height:1.3!important;
}
#mandat-section-vente .v1192-finance-card .v1146-field>div{
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
}
#mandat-section-vente .v1192-finance-card .v1146-field input{
  height:38px!important;
  font-size:13px!important;
  font-weight:620!important;
}
#mandat-section-vente .v1192-finance-card .v1146-field em{font-weight:500!important}
#mandat-section-vente .v1192-finance-card .v1146-field[data-finance-field="otherRevenueTtc"]{grid-column:1/-1}

/* Garantie alignée sur les mêmes axes et les mêmes graisses. */
#mandat-section-vente .v1192-finance-card .v1175-warranty-picker{
  display:grid!important;
  grid-template-columns:minmax(210px,.7fr) minmax(320px,1.3fr)!important;
  align-items:center!important;
  gap:3px 12px!important;
  min-height:62px!important;
  box-sizing:border-box!important;
  padding:9px 10px!important;
}
#mandat-section-vente .v1192-finance-card .v1175-warranty-picker>span{
  grid-column:1!important;
  grid-row:1/3!important;
  align-self:center!important;
  font-size:10px!important;
  font-weight:620!important;
}
#mandat-section-vente .v1192-finance-card .v1175-warranty-picker select,
#mandat-section-vente .v1192-finance-card .v1175-warranty-picker input{
  grid-column:2!important;
  min-height:38px!important;
  height:38px!important;
  margin:0!important;
  font-size:11.5px!important;
  font-weight:520!important;
}
#mandat-section-vente .v1192-finance-card .v1175-warranty-picker>em{
  grid-column:2!important;
  color:#347b50!important;
  font-size:8.5px!important;
  font-weight:500!important;
}

/* Bilan final pleine largeur en bas de page. */
#mandat-section-vente .v1192-result .v1184-profit{
  display:grid!important;
  grid-template-columns:minmax(260px,.8fr) minmax(0,2fr)!important;
  align-items:stretch!important;
  gap:10px!important;
}
#mandat-section-vente .v1192-result .v1184-profit>header{
  display:grid!important;
  align-content:center!important;
  min-height:104px!important;
  box-sizing:border-box!important;
  padding:15px 17px!important;
  border-radius:14px!important;
}
#mandat-section-vente .v1192-result .v1184-profit>header span{
  font-size:8.5px!important;
  font-weight:650!important;
  letter-spacing:.09em!important;
}
#mandat-section-vente .v1192-result .v1184-profit>header strong{
  font-size:27px!important;
  font-weight:700!important;
}
#mandat-section-vente .v1192-result .v1184-profit>header small{
  font-size:9px!important;
  font-weight:400!important;
}
#mandat-section-vente .v1192-result .v1184-profit-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
#mandat-section-vente .v1192-result .v1184-profit-grid>div{
  align-content:center!important;
  min-height:104px!important;
  box-sizing:border-box!important;
  padding:11px!important;
}
#mandat-section-vente .v1192-result .v1184-profit-grid span{
  font-size:8px!important;
  font-weight:500!important;
}
#mandat-section-vente .v1192-result .v1184-profit-grid strong{
  font-size:12.5px!important;
  font-weight:650!important;
}
#mandat-section-vente .v1192-result .v1184-profit details{
  grid-column:1/-1!important;
  font-size:9px!important;
  font-weight:400!important;
}

#mandat-section-vente .v1192-finance-workspace>footer.v1176-autosave{
  grid-area:save!important;
  min-height:52px!important;
  padding:10px 16px!important;
}
#mandat-section-vente .v1176-autosave strong{font-size:10px!important;font-weight:620!important}
#mandat-section-vente .v1176-autosave small{font-size:8.5px!important;font-weight:400!important}

@media(max-width:1100px){
  #mandat-section-vente .v1192-result .v1184-profit{grid-template-columns:1fr!important}
  #mandat-section-vente .v1192-result .v1184-profit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #mandat-section-vente .v1192-result .v1184-profit-grid>div{min-height:64px!important}
}
@media(max-width:720px){
  #mandat-section-vente .v1192-finance-card>header{align-items:flex-start!important;flex-direction:column!important;gap:4px!important}
  #mandat-section-vente .v1146-section-title{align-items:flex-start!important;flex-direction:column!important;gap:3px!important}
  #mandat-section-vente .v1146-section-title small{text-align:left!important}
  #mandat-section-vente .v1192-finance-card .v1146-fields{grid-template-columns:1fr!important}
  #mandat-section-vente .v1192-finance-card .v1146-field[data-finance-field="otherRevenueTtc"]{grid-column:auto}
  #mandat-section-vente .v1192-finance-card .v1175-warranty-picker{grid-template-columns:1fr!important}
  #mandat-section-vente .v1192-finance-card .v1175-warranty-picker>span,
  #mandat-section-vente .v1192-finance-card .v1175-warranty-picker select,
  #mandat-section-vente .v1192-finance-card .v1175-warranty-picker input,
  #mandat-section-vente .v1192-finance-card .v1175-warranty-picker>em{grid-column:1!important;grid-row:auto!important}
}
@media(max-width:480px){
  #mandat-section-vente .v1192-finance-card .v1146-field{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important}
  #mandat-section-vente .v1192-finance-card .v1146-field>div{grid-column:1!important;grid-row:3!important;margin-top:5px}
  #mandat-section-vente .v1192-result .v1184-profit-grid{grid-template-columns:1fr!important}
}
