/**
 * M4 Services inc. — Styles dédiés au module Soumissions (v10.0)
 * Mise en page aérée des cartes de comparaison Route / Sidebar / Étape 4 :
 * - Libellé à gauche lisible sans coupure au milieu des pourcentages
 * - Montant mensuel principal en gras à droite avec tarif par visite en sous-ligne dédiée
 */

.soum-kv-list-airy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.soum-kv.soum-kv-stacked {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #e2e8f0;
}

.soum-kv-label {
  flex: 1 1 auto;
  min-width: 140px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.soum-kv-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
  gap: 2px;
}

.soum-kv-main {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
}

.soum-kv-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  white-space: nowrap;
}

.soum-route-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
}

.soum-route-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.soum-route-card.is-active-indep {
  border: 2px solid var(--m4-blue, #1d4ed8);
}

.soum-route-card.is-route-opt {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
}

.soum-route-card.is-active-route {
  border: 2px solid #059669;
}

.soum-route-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.soum-route-card-title {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.soum-route-card-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

/* Ticket de caisse limpide (Recette du prix M4 : Coût + Profit = Prix) */
.soum-receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.soum-receipt-table thead tr {
  background: #f8fafc;
  border-bottom: 1.5px solid #cbd5e1;
}

.soum-receipt-table th {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #475569;
  text-align: left;
}

.soum-receipt-table td {
  padding: 8px 10px;
  border-bottom: 1px dashed #e2e8f0;
  vertical-align: middle;
  line-height: 1.3;
}

.soum-receipt-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 1px;
}

.soum-receipt-table tr.soum-receipt-subtotal td {
  background: #f1f5f9;
  border-top: 1.5px solid #cbd5e1;
  border-bottom: 1.5px solid #cbd5e1;
  color: #334155;
}

.soum-receipt-table tr.soum-receipt-profit.is-pos td {
  background: #f0fdf4;
  color: #047857;
}

.soum-receipt-table tr.soum-receipt-profit.is-neg td {
  background: #fef2f2;
  color: #dc2626;
}

.soum-receipt-table tr.soum-receipt-total.is-ok td {
  background: #eff6ff;
  border-top: 2px solid #2563eb;
  border-bottom: none;
  color: #1e3a8a;
}

.soum-receipt-table tr.soum-receipt-total.is-warn td {
  background: #fffbeb;
  border-top: 2px solid #d97706;
  border-bottom: none;
  color: #92400e;
}
