.table.totals td {
  padding: .35rem .75rem;
}
[data-line] input {
  max-width: 120px;
}
.card {
  border-radius: 1rem;
}

/* --- Custom primary color: #c2222c --- */
:root {
  --bs-primary: #c2222c;
  --bs-primary-rgb: 194, 34, 44;
  --bs-btn-bg: #c2222c;
  --bs-btn-border-color: #c2222c;
  --bs-btn-hover-bg: #a31d26;
  --bs-btn-hover-border-color: #911921;
  --bs-btn-active-bg: #911921;
  --bs-btn-active-border-color: #911921;
}

/* ✅ Global success button override */
.btn-success {
  background-color: #c2222c !important;
  border-color: #c2222c !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #a31d26 !important;
  border-color: #911921 !important;
}

/* Background utilities */
.bg-primary .btn-success {
  background-color: #c2222c !important;
  border-color: #c2222c !important;
}

/* Regular primary buttons */
.btn-primary {
  background-color: #c2222c !important;
  border-color: #c2222c !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #a31d26 !important;
  border-color: #911921 !important;
}

/* Outline primary buttons (your "Add" button) */
.btn-outline-primary {
  color: #c2222c !important;
  border-color: #c2222c !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #c2222c !important;
  color: #fff !important;
  border-color: #c2222c !important;
}

/* Text & link colors */
.text-primary,
.link-primary {
  color: #c2222c !important;
}
.text-primary:hover,
.link-primary:hover {
  color: #a31d26 !important;
}

/* Misc elements using primary */
.badge.bg-primary,
.progress-bar.bg-primary,
.page-link.active,
.page-item.active .page-link {
  background-color: #c2222c !important;
  border-color: #c2222c !important;
}

/* DataTable loader color */
#ordersTable_processing {
  color: #c2222c !important;
}
