/* CAMALARM v50 T130G — Devis Express Bitrix24-inspired polish
   SAFE MODE:
   - CSS scoped to #tab-dv-scope
   - no sidebar/menu/routing changes
   - no IDs changed
   - no business logic changed
   - no CDN added
*/

#tab-dv-scope {
  --cam-orange: #E65100;
  --cam-orange-light: #FFF3E0;
  --cam-orange-dark: #B23E00;
  --cam-blue-dark: #0F1729;
  --cam-blue-medium: #1E293B;
  --cam-page-bg: #F5F7FA;
  --cam-card: #FFFFFF;
  --cam-text: #1F2937;
  --cam-muted: #8B95A1;
  --cam-muted-2: #64748B;
  --cam-border: #E2E8F0;
  --cam-border-2: #D1D5DB;
  --cam-row: #F8FAFC;
  --cam-row-hover: #F1F5F9;
  --cam-success: #059669;
  --cam-success-soft: #ECFDF5;
  --font-display: 'Comfortaa', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  background: var(--cam-page-bg) !important;
  padding: 20px !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  color: var(--cam-text) !important;
}

/* General typography density */
#tab-dv-scope,
#tab-dv-scope input,
#tab-dv-scope select,
#tab-dv-scope textarea,
#tab-dv-scope button {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
}

/* Main cards/sections: Bitrix-like white panels */
#tab-dv-scope .dv-card,
#tab-dv-scope .editor-toolbar,
#tab-dv-scope #dv_toolbar > * {
  background: var(--cam-card) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
  overflow: hidden !important;
}

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

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

#tab-dv-scope .dv-card-body {
  padding: 24px !important;
}

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

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

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

/* Toolbar/top actions */
#tab-dv-scope .editor-toolbar {
  padding: 10px 14px !important;
  border-radius: 10px !important;
}

/* Buttons: sober Bitrix/Make/Wix style */
#tab-dv-scope button:not(.sb-item),
#tab-dv-scope .btn,
#tab-dv-scope .crm-btn {
  min-height: 38px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  border: 1px solid var(--cam-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-dv-scope button:not(.sb-item):hover,
#tab-dv-scope .btn:hover,
#tab-dv-scope .crm-btn:hover {
  background: #F3F4F6 !important;
  border-color: #BFC9D6 !important;
}

#tab-dv-scope button:not(.sb-item):active,
#tab-dv-scope .btn:active,
#tab-dv-scope .crm-btn:active {
  transform: translateY(1px) !important;
}

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

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

/* Remove emoji-like visual noise in internal express buttons if old text remains */
#tab-dv-scope .crm-btn svg,
#tab-dv-scope .btn svg,
#tab-dv-scope button svg {
  width: 15px !important;
  height: 15px !important;
  stroke-width: 1.8 !important;
}

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

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

#tab-dv-scope .dv-client-avatar {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 50% !important;
  background: var(--cam-orange) !important;
  color: white !important;
  border: none !important;
  box-shadow: none !important;
}

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

/* Add visual initials without changing HTML */
#tab-dv-scope .dv-client-avatar::before {
  content: "CL";
  font-family: var(--font-body) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: .02em !important;
  color: #fff !important;
}

#tab-dv-scope .dv-client-info {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

#tab-dv-scope #dvCI {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

#tab-dv-scope .dv-client-name,
#tab-dv-scope #dvCN {
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--cam-text) !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

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

#tab-dv-scope .dv-client-meta span,
#tab-dv-scope #dvCE,
#tab-dv-scope #dvCT {
  display: block !important;
  min-height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #6B7280 !important;
  line-height: 1.35 !important;
}

/* Single client action button */
#tab-dv-scope #dvCempty {
  height: 36px !important;
  min-width: 220px !important;
  max-width: 320px !important;
  padding: 0 14px !important;
  border-radius: 7px !important;
  border: 1px solid #D1D5DB !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  justify-content: center !important;
  box-shadow: none !important;
}

#tab-dv-scope #dvCempty:hover {
  background: #F3F4F6 !important;
  border-color: #C1C9D2 !important;
  color: var(--cam-blue-dark) !important;
}

#tab-dv-scope #dvCempty svg {
  display: none !important;
}

/* Hide additional injected client action area only on Express */
#tab-dv-scope .dv-client-actions {
  display: none !important;
}

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

#tab-dv-scope #dvDt {
  width: 128px !important;
  height: 36px !important;
  border-radius: 7px !important;
  border: 1px solid #D8E0EA !important;
  background: #fff !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 0 9px !important;
}

#tab-dv-scope #dvNm {
  font-family: var(--font-mono) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--cam-blue-dark) !important;
  white-space: nowrap !important;
}

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

#tab-dv-scope .dv-input,
#tab-dv-scope .dv-field input,
#tab-dv-scope .dv-field select,
#tab-dv-scope .dv-line input,
#tab-dv-scope .dv-line select,
#tab-dv-scope #xRows input,
#tab-dv-scope #xRows select,
#tab-dv-scope #xRows textarea {
  min-height: 38px !important;
  border: 1px solid #D8E0EA !important;
  border-radius: 7px !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-dv-scope .dv-input:focus,
#tab-dv-scope input:focus,
#tab-dv-scope select:focus,
#tab-dv-scope textarea:focus {
  border-color: var(--cam-orange) !important;
  box-shadow: 0 0 0 3px rgba(230,81,0,.12) !important;
}

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

/* Labels and section subtitles */
#tab-dv-scope .dv-field-label,
#tab-dv-scope .dv-sublabel,
#tab-dv-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;
}

#tab-dv-scope .dv-section-title {
  margin: 16px 0 10px !important;
  color: var(--cam-blue-dark) !important;
}

#tab-dv-scope .dv-sublabel {
  margin: 10px 0 8px !important;
}

/* Segmented controls for radio groups (CSS-only, real inputs preserved) */
#tab-dv-scope .dv-options:has(input[type="radio"]) {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  margin: 0 0 16px !important;
}

#tab-dv-scope .dv-options:has(input[type="radio"]) .dv-option {
  border: 0 !important;
  border-right: 1px solid #E5E7EB !important;
  border-radius: 0 !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #4B5563 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#tab-dv-scope .dv-options:has(input[type="radio"]) .dv-option:last-child {
  border-right: 0 !important;
}

#tab-dv-scope .dv-options:has(input[type="radio"]) .dv-option:hover {
  background: #F3F4F6 !important;
}

#tab-dv-scope .dv-options:has(input[type="radio"]) .dv-option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#tab-dv-scope .dv-options:has(input[type="radio"]) .dv-option:has(input:checked) {
  background: var(--cam-orange) !important;
  color: #fff !important;
  border-color: var(--cam-orange) !important;
}

/* Checkbox options as Bitrix-like toggles */
#tab-dv-scope .dv-options:has(input[type="checkbox"]) {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
  border: 0 !important;
  background: transparent !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option {
  min-height: 42px !important;
  width: 100% !important;
  max-width: 320px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option:hover {
  background: #F8FAFC !important;
  border-color: #D1D5DB !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 36px !important;
  height: 20px !important;
  min-width: 36px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #D1D5DB !important;
  position: relative !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background .18s ease !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option input[type="checkbox"]::before {
  content: "" !important;
  position: absolute !important;
  width: 14px !important;
  height: 14px !important;
  left: 3px !important;
  top: 3px !important;
  border-radius: 50% !important;
  background: #fff !important;
  transition: transform .18s ease !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option input[type="checkbox"]:checked {
  background: var(--cam-orange) !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option input[type="checkbox"]:checked::before {
  transform: translateX(16px) !important;
}

#tab-dv-scope .dv-options:has(input[type="checkbox"]) .dv-option:has(input:checked) {
  border-color: #F0B27A !important;
  background: #FFF8F2 !important;
  color: var(--cam-blue-dark) !important;
}

/* Product lines: clean, dense, Bitrix-like */
#tab-dv-scope .dv-line,
#tab-dv-scope .dv-line.option {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) 70px 86px 78px 104px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background .18s ease !important;
}

#tab-dv-scope .dv-line:hover,
#tab-dv-scope .dv-line.option:hover {
  background: #FAFBFC !important;
  transform: none !important;
}

#tab-dv-scope .dv-line:last-child,
#tab-dv-scope .dv-line.option:last-child {
  border-bottom: 0 !important;
}

#tab-dv-scope .dv-line > div:first-child {
  min-width: 0 !important;
  padding-left: 2px !important;
}

#tab-dv-scope .dv-line-label {
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  color: #1F2937 !important;
  line-height: 1.25 !important;
}

#tab-dv-scope .dv-line-sub {
  margin-top: 3px !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: #6B7280 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

#tab-dv-scope .dv-line input[type="number"],
#tab-dv-scope .dv-line select {
  height: 36px !important;
  min-height: 36px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 8px !important;
  text-align: center !important;
  font-family: var(--font-mono) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope .dv-line select {
  padding-right: 24px !important;
  text-align-last: center !important;
}

#tab-dv-scope .dv-line-total {
  justify-self: end !important;
  width: 104px !important;
  text-align: right !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--cam-blue-dark) !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}

/* Extra lines */
#tab-dv-scope .xtbl {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
}

#tab-dv-scope .xtbl thead th {
  padding: 0 7px 5px !important;
  color: #8B95A1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

#tab-dv-scope #xRows td {
  vertical-align: top !important;
  padding: 0 5px !important;
}

#tab-dv-scope #xRows textarea {
  min-height: 58px !important;
  line-height: 1.4 !important;
  resize: vertical !important;
}

/* Delete row */
#tab-dv-scope .rm-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 7px !important;
  border: 1px solid #F3C4C4 !important;
  background: #FFF7F7 !important;
  color: #DC2626 !important;
  font-size: 0 !important;
}

#tab-dv-scope .rm-btn::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
}

/* Existing totals block: make it stronger without duplicating it */
#tab-dv-scope #totCard,
#tab-dv-scope .tot-card,
#tab-dv-scope .totals-card {
  background: var(--cam-blue-medium) !important;
  color: #F9FAFB !important;
  border-radius: 10px !important;
  border: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

#tab-dv-scope #ttc,
#tab-dv-scope #totTTC,
#tab-dv-scope .total-ttc {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  color: var(--cam-orange) !important;
}

/* Responsive */
@media (max-width: 1180px) {
  #tab-dv-scope .dv-client-bar {
    grid-template-columns: 1fr !important;
  }

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

@media (max-width: 980px) {
  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: minmax(260px, 1fr) 66px 80px 72px 94px !important;
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  #tab-dv-scope {
    padding: 12px !important;
  }

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
  }

  #tab-dv-scope .dv-line-total {
    justify-self: flex-start !important;
    width: auto !important;
  }

  #tab-dv-scope .dv-options:has(input[type="radio"]) {
    display: flex !important;
  }
}


/* =========================================================
   T130H — Correctifs ciblés demandés par le client
   - zone client plus sobre
   - page moins large
   - titres de sections plus visibles
   - chiffres modernisés
   - steppers quantité/prix plus grands
   - options supplémentaires en boutons ronds/cercle
   ========================================================= */
#tab-dv-scope {
  --cam-blue-brand: #1f4e79;
  max-width: none !important;
  padding: 16px 38px 26px !important;
}

#tab-dv-scope .dv-card,
#tab-dv-scope .editor-toolbar,
#tab-dv-scope #dv_toolbar > * {
  border-radius: 12px !important;
}

#tab-dv-scope .dv-client-bar {
  grid-template-columns: minmax(440px, 1.2fr) minmax(320px, 0.95fr) auto !important;
  gap: 16px !important;
  padding: 14px 18px !important;
}

#tab-dv-scope .dv-client-left {
  gap: 14px !important;
}

#tab-dv-scope .dv-client-avatar {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  background: linear-gradient(180deg, #ff7a1a 0%, #ff6a00 100%) !important;
}

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

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

#tab-dv-scope #dvCI {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#tab-dv-scope .dv-client-name,
#tab-dv-scope #dvCN {
  font-family: var(--font-display) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

#tab-dv-scope .dv-client-meta {
  gap: 1px !important;
}

#tab-dv-scope .dv-client-meta span,
#tab-dv-scope #dvCE,
#tab-dv-scope #dvCT {
  font-size: 11.75px !important;
  font-weight: 500 !important;
  color: #7b8794 !important;
}

#tab-dv-scope #dvCempty {
  min-width: auto !important;
  max-width: none !important;
  height: 38px !important;
  padding: 0 16px !important;
  margin-left: auto !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
}

#tab-dv-scope #dvCempty span {
  font-size: 12.75px !important;
}

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

#tab-dv-scope .dv-client-ref {
  min-width: 238px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
}

#tab-dv-scope #dvDt {
  height: 38px !important;
  border-radius: 9px !important;
}

#tab-dv-scope #dvNm {
  font-family: var(--font-body) !important;
  font-size: 12.75px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope .dv-card-header {
  padding: 17px 22px !important;
}

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

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

#tab-dv-scope .dv-field-label,
#tab-dv-scope .dv-sublabel {
  color: #66758a !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

#tab-dv-scope .dv-section-title {
  display: block !important;
  margin: 18px 0 12px !important;
  color: var(--cam-blue-brand) !important;
  font-family: var(--font-display) !important;
  font-size: 15.8px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#tab-dv-scope .dv-line,
#tab-dv-scope .dv-line.option {
  grid-template-columns: minmax(360px, 1fr) 112px 122px 88px 114px !important;
  gap: 14px !important;
  padding: 14px 0 !important;
}

#tab-dv-scope .dv-line-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #243242 !important;
}

#tab-dv-scope .dv-line-sub {
  font-size: 12.75px !important;
}

#tab-dv-scope .dv-line input[type="number"],
#tab-dv-scope .dv-line select {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 10px !important;
  text-align: center !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope .dv-line-total {
  width: 114px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope .dv-stepper {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 36px !important;
  align-items: center !important;
  min-height: 44px !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 10px !important;
  background: #fff !important;
  overflow: hidden !important;
}

#tab-dv-scope .dv-stepper input {
  min-width: 0 !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#tab-dv-scope .dv-stepper input:focus {
  box-shadow: none !important;
}

#tab-dv-scope .dv-stepper input[type="number"] {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

#tab-dv-scope .dv-stepper input[type="number"]::-webkit-outer-spin-button,
#tab-dv-scope .dv-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

#tab-dv-scope .dv-stepper-btn {
  width: 36px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #4b5563 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

#tab-dv-scope .dv-stepper-btn:hover {
  background: #f8fafc !important;
  color: var(--cam-blue-brand) !important;
}

#tab-dv-scope .dv-stepper-btn:active {
  transform: none !important;
  background: #eef2f7 !important;
}

#tab-dv-scope .dv-stepper-btn.minus {
  border-right: 1px solid #e2e8f0 !important;
}

#tab-dv-scope .dv-stepper-btn.plus {
  border-left: 1px solid #e2e8f0 !important;
}

#tab-dv-scope .dv-line.option > div:first-child {
  display: flex !important;
  align-items: center !important;
}

#tab-dv-scope .dv-line.option .dv-option {
  width: auto !important;
  max-width: 100% !important;
  min-height: 46px !important;
  padding: 0 18px 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#tab-dv-scope .dv-line.option .dv-option:hover {
  background: #f8fafc !important;
  border-color: #c8d2de !important;
}

#tab-dv-scope .dv-line.option .dv-option input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#tab-dv-scope .dv-line.option .dv-option span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #1f2937 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

#tab-dv-scope .dv-line.option .dv-option span::before {
  content: "" !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  border: 2px solid #cbd5e1 !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 4px #fff !important;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease !important;
}

#tab-dv-scope .dv-line.option .dv-option:has(input:checked) {
  background: #f0fff6 !important;
  border-color: #98d7b7 !important;
}

#tab-dv-scope .dv-line.option .dv-option:has(input:checked) span {
  color: #0f5132 !important;
}

#tab-dv-scope .dv-line.option .dv-option:has(input:checked) span::before {
  border-color: #21a366 !important;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
  box-shadow: inset 0 0 0 5px #fff !important;
}

@media (max-width: 1400px) {
  #tab-dv-scope {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: minmax(300px, 1fr) 106px 116px 84px 108px !important;
  }
}

@media (max-width: 1180px) {
  #tab-dv-scope .dv-client-bar {
    grid-template-columns: 1fr !important;
  }

  #tab-dv-scope .dv-client-info {
    justify-content: space-between !important;
  }

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

@media (max-width: 980px) {
  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: minmax(250px, 1fr) 98px 110px 78px 102px !important;
    gap: 10px !important;
  }
}

@media (max-width: 768px) {
  #tab-dv-scope {
    padding: 12px !important;
  }

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

  #tab-dv-scope #dvCempty {
    margin-left: 0 !important;
  }

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: 1fr !important;
  }

  #tab-dv-scope .dv-line-total {
    width: auto !important;
  }
}


/* =========================================================
   T130I — finition alignements + Produits/services supplémentaires
   Scope strict Devis Express uniquement
   ========================================================= */

#tab-dv-scope {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Colonnes principales Qté / Prix / TVA / Total : même grille partout */
#tab-dv-scope .dv-line,
#tab-dv-scope .dv-line.option {
  grid-template-columns: minmax(330px, 1fr) 118px 128px 96px 118px !important;
  column-gap: 16px !important;
  align-items: center !important;
}

#tab-dv-scope .dv-line > .dv-stepper,
#tab-dv-scope .dv-line > select,
#tab-dv-scope .dv-line > .dv-line-total {
  align-self: center !important;
}

#tab-dv-scope .dv-stepper {
  width: 100% !important;
  max-width: 118px !important;
}

#tab-dv-scope .dv-line select.dv-input,
#tab-dv-scope .dv-line select.tva {
  width: 96px !important;
  min-width: 96px !important;
  justify-self: center !important;
}

#tab-dv-scope .dv-line-total {
  width: 118px !important;
  min-width: 118px !important;
  justify-self: end !important;
  text-align: right !important;
  color: #1f2937 !important;
}

/* Produits / services supplémentaires : table transformée visuellement en fiches propres */
#tab-dv-scope .dv-extras.xtbl {
  width: 100% !important;
  display: block !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 !important;
}

#tab-dv-scope .dv-extras.xtbl thead {
  display: block !important;
  margin-bottom: 8px !important;
}

#tab-dv-scope .dv-extras.xtbl thead tr {
  display: grid !important;
  grid-template-columns: 78px minmax(260px,1fr) 88px 108px 86px 112px 38px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 0 12px !important;
}

#tab-dv-scope .dv-extras.xtbl thead th {
  display: block !important;
  padding: 0 !important;
  width: auto !important;
  text-align: left !important;
  font-family: var(--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-dv-scope .dv-extras.xtbl thead th:nth-child(6) {
  text-align: right !important;
}

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

#tab-dv-scope #xRows tr {
  display: grid !important;
  grid-template-columns: 78px minmax(260px,1fr) 88px 108px 86px 112px 38px !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 12px !important;
  margin: 0 0 8px !important;
  background: #F8FAFC !important;
  border: 1px solid #EDF2F7 !important;
  border-left: 4px solid #E65100 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#tab-dv-scope #xRows tr:hover {
  background: #F1F5F9 !important;
}

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

#tab-dv-scope #xRows input,
#tab-dv-scope #xRows select,
#tab-dv-scope #xRows textarea {
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #D8E0EA !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

#tab-dv-scope #xRows input {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 10px !important;
}

#tab-dv-scope #xRows input[data-xq],
#tab-dv-scope #xRows input[data-xp] {
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope #xRows textarea[data-xd] {
  min-height: 48px !important;
  padding: 9px 10px !important;
  line-height: 1.35 !important;
  resize: vertical !important;
}

#tab-dv-scope #xRows select[data-xt] {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 24px 0 8px !important;
  text-align-last: center !important;
}

#tab-dv-scope #xRows [data-xtot] {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 40px !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
}

/* Bouton supprimer discret */
#tab-dv-scope #xRows .rm-btn,
#tab-dv-scope .rm-btn {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #9CA3AF !important;
  box-shadow: none !important;
  font-size: 0 !important;
}

#tab-dv-scope #xRows .rm-btn:hover,
#tab-dv-scope .rm-btn:hover {
  border-color: #E5E7EB !important;
  background: #fff !important;
  color: #374151 !important;
}

#tab-dv-scope #xRows .rm-btn::before,
#tab-dv-scope .rm-btn::before {
  content: "×" !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

/* Boutons de la section supplémentaire */
#tab-dv-scope .dv-extras-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

#tab-dv-scope .dv-extras-actions .crm-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: 1px solid #D1D5DB !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

#tab-dv-scope .dv-extras-actions .crm-btn:hover {
  background: #F3F4F6 !important;
  border-color: #BFC9D6 !important;
}

/* Responsive propre */
@media (max-width: 1180px) {
  #tab-dv-scope {
    max-width: calc(100vw - 32px) !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: minmax(280px,1fr) 108px 118px 90px 108px !important;
    column-gap: 12px !important;
  }

  #tab-dv-scope .dv-extras.xtbl thead tr,
  #tab-dv-scope #xRows tr {
    grid-template-columns: 72px minmax(220px,1fr) 78px 98px 76px 100px 36px !important;
    gap: 10px !important;
  }
}

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

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: 1fr !important;
  }

  #tab-dv-scope .dv-stepper,
  #tab-dv-scope .dv-line select.dv-input,
  #tab-dv-scope .dv-line select.tva,
  #tab-dv-scope .dv-line-total {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    text-align: left !important;
  }

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

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

  #tab-dv-scope #xRows td:nth-child(1)::before { content: "Réf."; }
  #tab-dv-scope #xRows td:nth-child(2)::before { content: "Description"; }
  #tab-dv-scope #xRows td:nth-child(3)::before { content: "Qté"; }
  #tab-dv-scope #xRows td:nth-child(4)::before { content: "Prix €"; }
  #tab-dv-scope #xRows td:nth-child(5)::before { content: "TVA"; }
  #tab-dv-scope #xRows td:nth-child(6)::before { content: "Total"; }

  #tab-dv-scope #xRows 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;
  }
}


/* =========================================================
   T130J — largeur + steppers lisibles + homogénéité extras
   Scope strict Devis Express uniquement
   ========================================================= */

/* 1. Élargissement partiel demandé : +40px vs T130I */
#tab-dv-scope {
  max-width: 1140px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* 2. Grille plus confortable : évite que les steppers empiètent sur les valeurs */
#tab-dv-scope .dv-line,
#tab-dv-scope .dv-line.option {
  grid-template-columns: minmax(330px, 1fr) 100px 118px 92px 112px !important;
  column-gap: 14px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

#tab-dv-scope .dv-stepper {
  width: 100% !important;
  max-width: 100px !important;
  min-width: 100px !important;
  height: 38px !important;
  min-height: 38px !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  overflow: hidden !important;
  border-radius: 9px !important;
  border: 1px solid #D8E0EA !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

#tab-dv-scope .dv-stepper.price-stepper {
  max-width: 118px !important;
  min-width: 118px !important;
  grid-template-columns: 30px minmax(52px, 1fr) 30px !important;
  background: #F9FAFB !important;
  border-left: 3px solid #E65100 !important;
}

#tab-dv-scope .dv-stepper input {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
  color: #111827 !important;
  box-shadow: none !important;
}

#tab-dv-scope .dv-stepper.price-stepper input {
  font-size: 13px !important;
  text-align: right !important;
  padding-right: 6px !important;
}

#tab-dv-scope .dv-stepper input:focus {
  box-shadow: none !important;
}

#tab-dv-scope .dv-stepper input[type="number"] {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

#tab-dv-scope .dv-stepper input[type="number"]::-webkit-outer-spin-button,
#tab-dv-scope .dv-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

#tab-dv-scope .dv-stepper-btn {
  width: 30px !important;
  min-width: 30px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #667085 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#tab-dv-scope .dv-stepper-btn:hover {
  background: #F3F4F6 !important;
  color: #1F4E79 !important;
}

#tab-dv-scope .dv-stepper-btn.minus {
  border-right: 1px solid #E5E7EB !important;
}

#tab-dv-scope .dv-stepper-btn.plus {
  border-left: 1px solid #E5E7EB !important;
}

/* Distinction visuelle claire prix / quantité */
#tab-dv-scope .dv-line .qty-stepper {
  background: #fff !important;
}

#tab-dv-scope .dv-line .price-stepper {
  background: #F9FAFB !important;
}

#tab-dv-scope .dv-line select.dv-input,
#tab-dv-scope .dv-line select.tva {
  width: 92px !important;
  min-width: 92px !important;
  height: 38px !important;
  min-height: 38px !important;
  justify-self: center !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

#tab-dv-scope .dv-line-total {
  width: 112px !important;
  min-width: 112px !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  color: #111827 !important;
}

/* 4. Produits/services supplémentaires : homogénéité avec les lignes principales */
#tab-dv-scope .dv-extras.xtbl {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

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

#tab-dv-scope .dv-extras.xtbl thead tr {
  display: grid !important;
  grid-template-columns: 74px minmax(260px,1fr) 70px 92px 78px 104px 34px !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 0 10px !important;
}

#tab-dv-scope .dv-extras.xtbl thead th {
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--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;
  text-align: left !important;
}

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

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

#tab-dv-scope #xRows tr {
  display: grid !important;
  grid-template-columns: 74px minmax(260px,1fr) 70px 92px 78px 104px 34px !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 8px 10px !important;
  margin: 0 0 6px !important;
  background: #F8FAFC !important;
  border: 1px solid #EDF2F7 !important;
  border-left: 4px solid #E65100 !important;
  border-radius: 7px !important;
  box-sizing: border-box !important;
}

#tab-dv-scope #xRows tr:hover {
  background: #F1F5F9 !important;
}

#tab-dv-scope #xRows td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
}

#tab-dv-scope #xRows input,
#tab-dv-scope #xRows select,
#tab-dv-scope #xRows textarea {
  width: 100% !important;
  min-width: 0 !important;
  border: 1px solid #D8E0EA !important;
  border-radius: 7px !important;
  background: #fff !important;
  font-family: var(--font-body) !important;
  font-size: 12.5px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#tab-dv-scope #xRows input {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 8px !important;
}

#tab-dv-scope #xRows textarea[data-xd] {
  min-height: 44px !important;
  padding: 8px 9px !important;
  line-height: 1.35 !important;
  resize: vertical !important;
}

#tab-dv-scope #xRows input[data-xq] {
  text-align: center !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope #xRows input[data-xp] {
  background: #F9FAFB !important;
  border-left: 3px solid #E65100 !important;
  text-align: right !important;
  font-weight: 650 !important;
  font-variant-numeric: tabular-nums !important;
}

#tab-dv-scope #xRows select[data-xt] {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 22px 0 6px !important;
  text-align-last: center !important;
  font-weight: 650 !important;
}

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

/* Boutons section extras */
#tab-dv-scope .dv-extras-actions .crm-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  border: 1px solid #D1D5DB !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

#tab-dv-scope .dv-extras-actions .crm-btn:hover {
  background: #F3F4F6 !important;
}

/* Supprimer discret */
#tab-dv-scope #xRows .rm-btn,
#tab-dv-scope .rm-btn {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !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-dv-scope #xRows .rm-btn:hover,
#tab-dv-scope .rm-btn:hover {
  background: #fff !important;
  border-color: #E5E7EB !important;
  color: #374151 !important;
}

#tab-dv-scope #xRows .rm-btn::before,
#tab-dv-scope .rm-btn::before {
  content: "×" !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

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

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: minmax(260px, 1fr) 100px 112px 84px 104px !important;
    column-gap: 10px !important;
  }

  #tab-dv-scope .dv-extras.xtbl thead tr,
  #tab-dv-scope #xRows tr {
    grid-template-columns: 68px minmax(220px,1fr) 64px 84px 72px 94px 32px !important;
    gap: 7px !important;
  }
}

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

  #tab-dv-scope .dv-line,
  #tab-dv-scope .dv-line.option {
    grid-template-columns: 1fr !important;
  }

  #tab-dv-scope .dv-stepper,
  #tab-dv-scope .dv-stepper.price-stepper,
  #tab-dv-scope .dv-line select.dv-input,
  #tab-dv-scope .dv-line select.tva,
  #tab-dv-scope .dv-line-total {
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
    justify-self: stretch !important;
    text-align: left !important;
  }

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

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

  #tab-dv-scope #xRows td:nth-child(1)::before { content: "Réf."; }
  #tab-dv-scope #xRows td:nth-child(2)::before { content: "Description"; }
  #tab-dv-scope #xRows td:nth-child(3)::before { content: "Qté"; }
  #tab-dv-scope #xRows td:nth-child(4)::before { content: "Prix €"; }
  #tab-dv-scope #xRows td:nth-child(5)::before { content: "TVA"; }
  #tab-dv-scope #xRows td:nth-child(6)::before { content: "Total"; }

  #tab-dv-scope #xRows 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;
  }
}


/* =========================================================
   T130K — derniers micro-ajustements Devis Express
   - largeur utile +45px
   - centrage parfait des boutons + / - des steppers
   ========================================================= */

#tab-dv-scope {
  max-width: 1185px !important;
}

/* Couverture des deux noms possibles : .dv-stepper-btn utilisé dans le code, .stepper-btn prévu par le brief */
#tab-dv-scope .dv-stepper-btn,
#tab-dv-scope .stepper-btn {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Le conteneur garde une hauteur confortable, mais les signes restent centrés dans leur carré */
#tab-dv-scope .dv-stepper {
  align-items: center !important;
}

#tab-dv-scope .dv-stepper-btn.minus,
#tab-dv-scope .dv-stepper-btn.plus {
  align-self: center !important;
}


/* =========================================================
   T130L — largeur 1220px + centrage définitif steppers
   - largeur utile + 1 cm de chaque côté
   - boutons + / - centrés avec fallback anti-flash
   ========================================================= */

#tab-dv-scope {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Classe prévue dans le brief */
#tab-dv-scope .stepper-btn,
/* Classe réelle utilisée par le CRM */
#tab-dv-scope .dv-stepper-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1.2rem !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

/* Conteneur parent : évite les décalages de ligne et le flash visuel */
#tab-dv-scope .dv-stepper {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  justify-items: center !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

#tab-dv-scope .dv-stepper input {
  align-self: center !important;
  line-height: 1.2 !important;
}

#tab-dv-scope .dv-stepper-btn.minus,
#tab-dv-scope .dv-stepper-btn.plus,
#tab-dv-scope .stepper-btn.minus,
#tab-dv-scope .stepper-btn.plus {
  align-self: center !important;
  justify-self: center !important;
}


/* =========================================================
   T130M — anti-disparition steppers après navigation SPA
   Styles critiques répétés en fin de fichier pour gagner la cascade.
   ========================================================= */

#tab-dv-scope .dv-stepper,
#tab-dv-scope .stepper-wrap {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 30px !important;
  align-items: center !important;
  justify-items: center !important;
  line-height: 1 !important;
  overflow: hidden !important;
}

#tab-dv-scope .dv-stepper-btn,
#tab-dv-scope .stepper-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 1.2rem !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#tab-dv-scope .dv-line .dv-stepper input[type="number"] {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !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;
}
