/* CAMALARM v50 T131 — Devis Classique premium polish
   Scope strict: #tab-dvc-scope only.
   No sidebar/menu/routing/PDF/Supabase/email changes. */

#tab-dvc-scope {
  --dvc-orange:#E65100;
  --dvc-orange-light:#FFF3E0;
  --dvc-orange-dark:#B23E00;
  --dvc-blue:#1f4e79;
  --dvc-blue-dark:#0F1729;
  --dvc-bg:#F5F7FA;
  --dvc-card:#FFFFFF;
  --dvc-text:#1F2937;
  --dvc-muted:#6B7280;
  --dvc-muted-2:#8B95A1;
  --dvc-border:#E2E8F0;
  --dvc-border-2:#D1D5DB;
  --dvc-row:#F8FAFC;
  --dvc-row-hover:#F1F5F9;
  --dvc-danger:#DC2626;
  --dvc-success:#059669;
  --dvc-font-display:'Comfortaa',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --dvc-font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  max-width:1220px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:15px !important;
  background:var(--dvc-bg) !important;
  font-family:var(--dvc-font-body) !important;
  color:var(--dvc-text) !important;
}

#tab-dvc-scope,
#tab-dvc-scope input,
#tab-dvc-scope select,
#tab-dvc-scope textarea,
#tab-dvc-scope button {
  font-family:var(--dvc-font-body) !important;
  font-size:14px !important;
}

/* Cards */
#tab-dvc-scope .dv-card,
#tab-dvc-scope .editor-toolbar,
#tab-dvc-scope #dvc_toolbar > * {
  background:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:0 1px 3px rgba(0,0,0,.06) !important;
  overflow:hidden !important;
}

#tab-dvc-scope .dv-card:hover,
#tab-dvc-scope .editor-toolbar:hover,
#tab-dvc-scope #dvc_toolbar > *:hover {
  box-shadow:0 3px 10px rgba(0,0,0,.075) !important;
}

#tab-dvc-scope .dv-card-header {
  padding:17px 22px !important;
  background:#fff !important;
  border-bottom:1px solid #EEF2F6 !important;
}

#tab-dvc-scope .dv-card-body { padding:22px !important; }
#tab-dvc-scope .dv-card-body.compact { padding:20px 22px !important; }

#tab-dvc-scope .dv-card-title {
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  font-family:var(--dvc-font-display) !important;
  font-size:15.8px !important;
  font-weight:700 !important;
  color:var(--dvc-blue) !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  margin:0 !important;
}

#tab-dvc-scope .dv-card-title svg {
  width:17px !important;
  height:17px !important;
  color:#64748B !important;
  stroke-width:1.8 !important;
}

/* Toolbar/buttons */
#tab-dvc-scope button:not(.sb-item),
#tab-dvc-scope .btn,
#tab-dvc-scope .crm-btn {
  min-height:38px !important;
  border-radius:8px !important;
  font-size:13px !important;
  font-weight:600 !important;
  line-height:1 !important;
  border:1px solid var(--dvc-border-2) !important;
  background:#fff !important;
  color:#374151 !important;
  box-shadow:none !important;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .08s ease !important;
}

#tab-dvc-scope button:not(.sb-item):hover,
#tab-dvc-scope .btn:hover,
#tab-dvc-scope .crm-btn:hover {
  background:#F3F4F6 !important;
  border-color:#BFC9D6 !important;
}

#tab-dvc-scope .bp,
#tab-dvc-scope .bor,
#tab-dvc-scope .primary,
#tab-dvc-scope .crm-btn-primary {
  background:var(--dvc-orange) !important;
  border-color:var(--dvc-orange) !important;
  color:#fff !important;
}

/* Client card */
#tab-dvc-scope .dv-client-bar {
  display:grid !important;
  grid-template-columns:minmax(440px,1.2fr) minmax(320px,.95fr) auto !important;
  gap:16px !important;
  align-items:center !important;
  padding:14px 18px !important;
  background:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:0 1px 3px rgba(0,0,0,.06) !important;
}

#tab-dvc-scope .dv-client-left {
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  min-width:0 !important;
}

#tab-dvc-scope .dv-client-avatar {
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  border-radius:50% !important;
  background:linear-gradient(180deg,#ff7a1a 0%,#ff6a00 100%) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:none !important;
}

#tab-dvc-scope .dv-client-avatar svg { display:none !important; }

#tab-dvc-scope .dv-client-avatar::before {
  content:attr(data-initials) !important;
  font-family:var(--dvc-font-display) !important;
  font-size:14px !important;
  font-weight:700 !important;
  color:#fff !important;
}

#tab-dvc-scope .dv-client-info {
  min-width:0 !important;
  flex:1 1 auto !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px !important;
}

#tab-dvc-scope #dvcCI {
  flex:1 1 auto !important;
  min-width:0 !important;
  background:transparent !important;
  border:0 !important;
  padding:0 !important;
  display:grid !important;
  gap:2px !important;
}

#tab-dvc-scope .dv-client-name,
#tab-dvc-scope #dvcCN {
  font-family:var(--dvc-font-display) !important;
  font-size:17px !important;
  font-weight:700 !important;
  color:var(--dvc-blue-dark) !important;
  line-height:1.22 !important;
  letter-spacing:-.02em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:unset !important;
}

#tab-dvc-scope .dv-client-meta {
  display:grid !important;
  gap:1px !important;
  margin:0 !important;
}

#tab-dvc-scope .dv-client-meta span,
#tab-dvc-scope #dvcCE,
#tab-dvc-scope #dvcCT {
  display:block !important;
  min-height:auto !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  font-size:11.75px !important;
  font-weight:500 !important;
  color:#7B8794 !important;
  line-height:1.4 !important;
}

#tab-dvc-scope #dvcCempty {
  height:38px !important;
  min-width:auto !important;
  max-width:none !important;
  padding:0 16px !important;
  margin-left:auto !important;
  border-radius:10px !important;
  border:1px solid #D1D5DB !important;
  background:#fff !important;
  color:#374151 !important;
  font-size:12.75px !important;
  font-weight:600 !important;
  justify-content:center !important;
  white-space:nowrap !important;
  box-shadow:none !important;
}

#tab-dvc-scope #dvcCempty:hover {
  background:#F3F4F6 !important;
  border-color:#C1C9D2 !important;
}

#tab-dvc-scope #dvcCempty svg { display:none !important; }

/* Hide "Nouveau" in client card only, keep reset function intact */
#tab-dvc-scope .dv-client-actions { display:none !important; }

#tab-dvc-scope .dv-client-project { min-width:0 !important; }

#tab-dvc-scope .dv-client-ref {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-width:238px !important;
  min-height:50px !important;
  padding:0 12px !important;
  background:#F8FAFC !important;
  border:1px solid #EEF2F6 !important;
  border-radius:10px !important;
}

#tab-dvc-scope #dvcDt {
  width:128px !important;
  height:38px !important;
  border-radius:9px !important;
  border:1px solid #D8E0EA !important;
  background:#fff !important;
  font-size:12.75px !important;
  font-weight:600 !important;
  padding:0 9px !important;
}

#tab-dvc-scope #dvcNm {
  font-family:var(--dvc-font-body) !important;
  font-size:12.75px !important;
  font-weight:700 !important;
  color:var(--dvc-blue-dark) !important;
  white-space:nowrap !important;
  font-variant-numeric:tabular-nums !important;
}

/* Inputs */
#tab-dvc-scope .dv-input,
#tab-dvc-scope input,
#tab-dvc-scope select,
#tab-dvc-scope textarea {
  color:var(--dvc-text) !important;
}

#tab-dvc-scope .dv-input,
#tab-dvc-scope .dv-field input,
#tab-dvc-scope .dv-field select,
#tab-dvc-scope #dvcTB input,
#tab-dvc-scope #dvcTB select,
#tab-dvc-scope #dvcTB textarea {
  min-height:38px !important;
  border:1px solid #D8E0EA !important;
  border-radius:8px !important;
  background:#fff !important;
  box-shadow:none !important;
  outline:none !important;
  font-size:13px !important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease !important;
}

#tab-dvc-scope .dv-input:focus,
#tab-dvc-scope input:focus,
#tab-dvc-scope select:focus,
#tab-dvc-scope textarea:focus {
  border-color:var(--dvc-orange) !important;
  box-shadow:0 0 0 3px rgba(230,81,0,.12) !important;
}

#tab-dvc-scope textarea {
  line-height:1.4 !important;
  resize:vertical !important;
  white-space:pre-wrap !important;
}

#tab-dvc-scope .dv-field-label,
#tab-dvc-scope .dv-sublabel,
#tab-dvc-scope .dv-section-title {
  display:block !important;
  color:#6B7280 !important;
  font-size:11.5px !important;
  font-weight:700 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
}

/* Lignes du devis - table as visual cards */
#tab-dvc-scope .dv-extras {
  display:block !important;
  width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  margin:0 !important;
}

#tab-dvc-scope .dv-extras thead {
  display:block !important;
  margin:0 0 6px !important;
}

#tab-dvc-scope .dv-extras thead tr {
  display:grid !important;
  grid-template-columns:78px minmax(260px,1fr) 100px 118px 90px 112px 34px !important;
  gap:10px !important;
  align-items:center !important;
  padding:0 12px !important;
}

#tab-dvc-scope .dv-extras thead th {
  display:block !important;
  width:auto !important;
  padding:0 !important;
  border:0 !important;
  text-align:left !important;
  font-family:var(--dvc-font-body) !important;
  font-size:.75rem !important;
  font-weight:800 !important;
  letter-spacing:.5px !important;
  text-transform:uppercase !important;
  color:#6B7280 !important;
  line-height:1.2 !important;
}

#tab-dvc-scope .dv-extras thead th:nth-child(6) { text-align:right !important; }

#tab-dvc-scope .dv-extras tbody,
#tab-dvc-scope #dvcTB {
  display:block !important;
}

#tab-dvc-scope #dvcTB tr {
  display:grid !important;
  grid-template-columns:78px minmax(260px,1fr) 100px 118px 90px 112px 34px !important;
  gap:10px !important;
  align-items:center !important;
  padding:8px 12px !important;
  margin:0 0 8px !important;
  background:#F8FAFC !important;
  border:1px solid #EDF2F7 !important;
  border-left:4px solid var(--dvc-orange) !important;
  border-radius:8px !important;
  box-sizing:border-box !important;
}

#tab-dvc-scope #dvcTB tr:hover { background:#F1F5F9 !important; }

#tab-dvc-scope #dvcTB td {
  display:block !important;
  padding:0 !important;
  border:0 !important;
  min-width:0 !important;
  width:auto !important;
  vertical-align:middle !important;
}

#tab-dvc-scope #dvcTB input,
#tab-dvc-scope #dvcTB select,
#tab-dvc-scope #dvcTB textarea {
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  box-shadow:none !important;
}

#tab-dvc-scope #dvcTB input {
  height:38px !important;
  min-height:38px !important;
  padding:0 9px !important;
}

#tab-dvc-scope #dvcTB select {
  height:38px !important;
  min-height:38px !important;
  padding:0 22px 0 6px !important;
  text-align-last:center !important;
  font-weight:650 !important;
}

#tab-dvc-scope #dvcTB textarea {
  min-height:48px !important;
  padding:8px 9px !important;
  line-height:1.35 !important;
}

#tab-dvc-scope #dvcTB td:nth-child(3) input {
  text-align:center !important;
  font-variant-numeric:tabular-nums !important;
  font-weight:650 !important;
}

#tab-dvc-scope #dvcTB td:nth-child(4) input {
  background:#F9FAFB !important;
  border-left:3px solid var(--dvc-orange) !important;
  text-align:right !important;
  font-variant-numeric:tabular-nums !important;
  font-weight:650 !important;
}

#tab-dvc-scope #dvcTB [data-tot] {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  height:38px !important;
  font-family:var(--dvc-font-body) !important;
  font-size:13px !important;
  font-weight:800 !important;
  font-variant-numeric:tabular-nums !important;
  color:#111827 !important;
  white-space:nowrap !important;
}

#tab-dvc-scope #dvcTB button {
  width:32px !important;
  height:32px !important;
  min-height:32px !important;
  padding:0 !important;
  border-radius:7px !important;
  border:1px solid transparent !important;
  background:transparent !important;
  color:#9CA3AF !important;
  font-size:0 !important;
  box-shadow:none !important;
}

#tab-dvc-scope #dvcTB button:hover {
  background:#fff !important;
  border-color:#E5E7EB !important;
  color:#374151 !important;
}

#tab-dvc-scope #dvcTB button::before {
  content:"×" !important;
  font-size:20px !important;
  line-height:1 !important;
}

/* Totals */
#tab-dvc-scope .dv-totals {
  background:#1F2937 !important;
  color:#F9FAFB !important;
  border-radius:12px !important;
  box-shadow:0 1px 3px rgba(0,0,0,.08) !important;
  padding:18px 22px !important;
}

#tab-dvc-scope .dv-totals-row {
  color:#E5E7EB !important;
}

#tab-dvc-scope .dv-totals-row .label {
  color:#CBD5E1 !important;
}

#tab-dvc-scope .dv-totals-row .value {
  font-family:var(--dvc-font-body) !important;
  font-weight:800 !important;
  font-variant-numeric:tabular-nums !important;
}

#tab-dvc-scope .dv-totals-row.total .value {
  color:var(--dvc-orange) !important;
  font-family:var(--dvc-font-display) !important;
  font-size:20px !important;
}

/* Empty state */
#tab-dvc-scope #dvcTB_empty {
  margin:0 !important;
  border-top:1px solid #F3F4F6 !important;
  color:#7B8794 !important;
}

/* Responsive */
@media (max-width:1180px) {
  #tab-dvc-scope {
    max-width:calc(100vw - 24px) !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }

  #tab-dvc-scope .dv-client-bar {
    grid-template-columns:1fr !important;
  }

  #tab-dvc-scope .dv-client-info {
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  #tab-dvc-scope .dv-client-ref {
    justify-content:flex-start !important;
  }

  #tab-dvc-scope .dv-extras thead tr,
  #tab-dvc-scope #dvcTB tr {
    grid-template-columns:72px minmax(220px,1fr) 90px 108px 82px 102px 32px !important;
    gap:8px !important;
  }
}

@media (max-width:768px) {
  #tab-dvc-scope {
    max-width:100% !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  #tab-dvc-scope .dv-extras thead { display:none !important; }

  #tab-dvc-scope #dvcTB tr {
    grid-template-columns:1fr !important;
  }

  #tab-dvc-scope #dvcTB td:nth-child(1)::before { content:"Réf."; }
  #tab-dvc-scope #dvcTB td:nth-child(2)::before { content:"Désignation"; }
  #tab-dvc-scope #dvcTB td:nth-child(3)::before { content:"Qté"; }
  #tab-dvc-scope #dvcTB td:nth-child(4)::before { content:"Prix €"; }
  #tab-dvc-scope #dvcTB td:nth-child(5)::before { content:"TVA"; }
  #tab-dvc-scope #dvcTB td:nth-child(6)::before { content:"Total HT"; }

  #tab-dvc-scope #dvcTB td::before {
    display:block !important;
    margin:0 0 4px !important;
    font-size:.72rem !important;
    font-weight:800 !important;
    color:#6B7280 !important;
    text-transform:uppercase !important;
    letter-spacing:.5px !important;
  }
}


/* =========================================================
   T131B — Correction Devis Classique
   - alignement millimétrique des colonnes
   - Réf. plus large
   - Qté plus compacte
   - bloc totaux clair, lisible, non sombre
   ========================================================= */

#tab-dvc-scope {
  max-width: 1220px !important;
}

/* Grille unique pour en-têtes + lignes : 7 colonnes strictement identiques */
#tab-dvc-scope .dv-extras thead tr,
#tab-dvc-scope #dvcTB tr {
  grid-template-columns: 122px minmax(360px, 1fr) 68px 118px 92px 118px 34px !important;
  column-gap: 10px !important;
  align-items: center !important;
}

/* En-têtes alignés avec les champs */
#tab-dvc-scope .dv-extras thead th {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

#tab-dvc-scope .dv-extras thead th:nth-child(1),
#tab-dvc-scope #dvcTB td:nth-child(1) {
  width: 122px !important;
}

#tab-dvc-scope .dv-extras thead th:nth-child(3),
#tab-dvc-scope #dvcTB td:nth-child(3) {
  width: 68px !important;
}

#tab-dvc-scope .dv-extras thead th:nth-child(4),
#tab-dvc-scope #dvcTB td:nth-child(4) {
  width: 118px !important;
}

#tab-dvc-scope .dv-extras thead th:nth-child(5),
#tab-dvc-scope #dvcTB td:nth-child(5) {
  width: 92px !important;
}

#tab-dvc-scope .dv-extras thead th:nth-child(6),
#tab-dvc-scope #dvcTB td:nth-child(6) {
  width: 118px !important;
}

/* Ligne produit : hauteur stable, propre, sans décalage vertical */
#tab-dvc-scope #dvcTB tr {
  min-height: 62px !important;
  padding: 10px 12px !important;
}

#tab-dvc-scope #dvcTB td {
  align-self: center !important;
}

/* Réf. plus lisible */
#tab-dvc-scope #dvcTB td:nth-child(1) input {
  width: 100% !important;
  min-width: 122px !important;
  height: 40px !important;
  text-align: left !important;
}

/* Description garde la place principale */
#tab-dvc-scope #dvcTB td:nth-child(2) textarea,
#tab-dvc-scope #dvcTB td:nth-child(2) input {
  width: 100% !important;
  min-height: 40px !important;
}

/* Qté plus petite et parfaitement centrée */
#tab-dvc-scope #dvcTB td:nth-child(3) input {
  width: 68px !important;
  min-width: 68px !important;
  height: 40px !important;
  padding: 0 6px !important;
  text-align: center !important;
}

/* Prix : stable, lisible, différencié */
#tab-dvc-scope #dvcTB td:nth-child(4) input {
  width: 118px !important;
  min-width: 118px !important;
  height: 40px !important;
  background: #F9FAFB !important;
  border-left: 3px solid #E65100 !important;
  text-align: right !important;
  padding-right: 10px !important;
}

/* TVA */
#tab-dvc-scope #dvcTB td:nth-child(5) select {
  width: 92px !important;
  min-width: 92px !important;
  height: 40px !important;
  text-align-last: center !important;
}

/* Total ligne */
#tab-dvc-scope #dvcTB [data-tot] {
  width: 118px !important;
  min-width: 118px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

/* Bouton suppression aligné */
#tab-dvc-scope #dvcTB td:nth-child(7) {
  width: 34px !important;
  display: flex !important;
  justify-content: center !important;
}

/* Bloc totaux : retour à un rendu clair et lisible */
#tab-dvc-scope .dv-totals {
  background: #FFFFFF !important;
  color: #1F2937 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
  padding: 0 !important;
  overflow: hidden !important;
  max-width: 440px !important;
  margin-left: auto !important;
}

#tab-dvc-scope .dv-totals-row {
  min-height: 52px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #E5E7EB !important;
  color: #1F2937 !important;
  background: #FFFFFF !important;
}

#tab-dvc-scope .dv-totals-row:last-child {
  border-bottom: none !important;
}

#tab-dvc-scope .dv-totals-row .label {
  color: #64748B !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#tab-dvc-scope .dv-totals-row .value {
  color: #111827 !important;
  font-family: var(--dvc-font-body) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dvc-scope .dv-totals-row input#dvc_rem {
  height: 36px !important;
  width: 80px !important;
  border: 1px solid #D8E0EA !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #111827 !important;
  text-align: center !important;
}

#tab-dvc-scope .dv-totals-row .value.discount,
#tab-dvc-scope #dvc_remV {
  color: #DC2626 !important;
}

/* Total final : bande premium, lisible */
#tab-dvc-scope .dv-totals-row.total {
  background: #0F1729 !important;
  min-height: 64px !important;
  border-bottom: none !important;
}

#tab-dvc-scope .dv-totals-row.total .label {
  color: #E5E7EB !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

#tab-dvc-scope .dv-totals-row.total .value,
#tab-dvc-scope #dvc_ttc {
  color: #FF6A00 !important;
  font-family: var(--dvc-font-display) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

/* Responsive */
@media (max-width: 1180px) {
  #tab-dvc-scope .dv-extras thead tr,
  #tab-dvc-scope #dvcTB tr {
    grid-template-columns: 110px minmax(260px,1fr) 64px 106px 84px 104px 32px !important;
    column-gap: 8px !important;
  }

  #tab-dvc-scope #dvcTB td:nth-child(1),
  #tab-dvc-scope #dvcTB td:nth-child(1) input { width: 110px !important; min-width: 110px !important; }

  #tab-dvc-scope #dvcTB td:nth-child(3),
  #tab-dvc-scope #dvcTB td:nth-child(3) input { width: 64px !important; min-width: 64px !important; }

  #tab-dvc-scope #dvcTB td:nth-child(4),
  #tab-dvc-scope #dvcTB td:nth-child(4) input { width: 106px !important; min-width: 106px !important; }

  #tab-dvc-scope #dvcTB td:nth-child(5),
  #tab-dvc-scope #dvcTB td:nth-child(5) select { width: 84px !important; min-width: 84px !important; }

  #tab-dvc-scope #dvcTB td:nth-child(6),
  #tab-dvc-scope #dvcTB [data-tot] { width: 104px !important; min-width: 104px !important; }
}

@media (max-width: 768px) {
  #tab-dvc-scope .dv-extras thead {
    display: none !important;
  }

  #tab-dvc-scope #dvcTB tr {
    grid-template-columns: 1fr !important;
  }

  #tab-dvc-scope #dvcTB td,
  #tab-dvc-scope #dvcTB td input,
  #tab-dvc-scope #dvcTB td select,
  #tab-dvc-scope #dvcTB [data-tot] {
    width: 100% !important;
    min-width: 0 !important;
  }

  #tab-dvc-scope .dv-totals {
    max-width: none !important;
    width: 100% !important;
  }
}


/* =========================================================
   T131C — Restauration tableau Totaux comme avant
   Modèle clair avec TOTAL TTC bleu foncé + Acompte/Solde beige.
   ========================================================= */

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle {
  background: #FFFFFF !important;
  color: #1F2937 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
  padding: 0 !important;
  overflow: hidden !important;
  max-width: 440px !important;
  margin-left: auto !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row {
  min-height: 46px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  border-bottom: 1px solid #E5E7EB !important;
  background: #FFFFFF !important;
  color: #1F2937 !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row:last-child {
  border-bottom: none !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .label {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .value {
  color: #111827 !important;
  font-family: var(--dvc-font-body) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .discount .value,
#tab-dvc-scope .dv-totals.dvc-totals-oldstyle #dvc_remV {
  color: #EF4444 !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle #dvc_rem {
  width: 64px !important;
  height: 32px !important;
  min-height: 32px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 7px !important;
  background: #FFFFFF !important;
  color: #111827 !important;
  padding: 0 8px !important;
  text-align: right !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Bande TOTAL TTC comme l'ancien rendu */
#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row.total {
  min-height: 70px !important;
  background: #13213A !important;
  border-bottom: none !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row.total .label {
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row.total .value,
#tab-dvc-scope .dv-totals.dvc-totals-oldstyle #dvc_ttc {
  color: #FFFFFF !important;
  font-family: var(--dvc-font-display) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
}

/* Acompte + solde beige comme avant */
#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row.accent {
  background: #FFF7ED !important;
  border-bottom-color: #FDEAD7 !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row.accent input#dvc_ac {
  width: 118px !important;
  height: 32px !important;
  min-height: 32px !important;
  background: #FFFFFF !important;
  border: 1px solid #FDEAD7 !important;
  border-radius: 7px !important;
  color: #111827 !important;
  padding: 0 10px !important;
  text-align: right !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
  box-shadow: none !important;
}

#tab-dvc-scope .dv-totals.dvc-totals-oldstyle .dv-totals-row.accent #dvc_so {
  color: #E65100 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  #tab-dvc-scope .dv-totals.dvc-totals-oldstyle {
    max-width: none !important;
    width: 100% !important;
  }
}


/* T142 — numéro devis toujours visible */
#tab-dv-scope #dvNm,
#tab-dvc-scope #dvcNm {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 8px !important;
  background: #F8FAFC !important;
  color: #0F1729 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 12.75px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

#tab-dv-scope .dv-client-ref,
#tab-dvc-scope .dv-client-ref {
  min-width: 260px !important;
}
