/*
 * Office theme overrides — company colors & dark-mode helpers
 * Primary (company): #7a934f  → btn-primary, --bs-primary
 * Success (solid):   #5f7f67  → btn-success
 * Success hover:     #55725c  (slightly darker than #5f7f67)
 */

:root,
[data-bs-theme="light"] {
  --bs-green: #5f7f67;
  --bs-success: #5f7f67;
  --bs-form-valid-color: #5f7f67;
  --bs-form-valid-border-color: #5f7f67;
}

/* ─── btn-primary — company green ───────────────────────── */
.btn-primary {
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  box-shadow: none !important;
}

/* ─── btn-success — darker green (ex btn-product-solid) ─── */
.btn.btn-success,
.btn.btn-success.disabled,
.btn.btn-success:disabled,
button.btn-success,
button.btn-success:disabled {
  background-color: #5f7f67 !important;
  border-color: #5f7f67 !important;
  color: #fff !important;
  box-shadow: none;
}

.btn.btn-success:hover,
.btn.btn-success:focus,
.btn.btn-success:active,
.btn.btn-success.active,
.btn-check:checked + .btn.btn-success,
.btn-check:active + .btn.btn-success,
.btn-check:focus + .btn.btn-success,
button.btn-success:hover,
button.btn-success:focus,
button.btn-success:active {
  background-color: #55725c !important;
  border-color: #55725c !important;
  color: #fff !important;
  box-shadow: none !important;
}

.btn.btn-outline-success,
button.btn-outline-success {
  color: #5f7f67 !important;
  border-color: #5f7f67 !important;
  background-color: transparent !important;
}

.btn.btn-outline-success:hover,
.btn.btn-outline-success:focus,
.btn.btn-outline-success:active,
.btn.btn-outline-success.active,
.btn.btn-outline-success.dropdown-toggle.show,
.btn-check:checked + .btn.btn-outline-success,
.btn-check:active + .btn.btn-outline-success,
.btn-check:focus + .btn.btn-outline-success,
button.btn-outline-success:hover,
button.btn-outline-success:focus,
button.btn-outline-success:active {
  background-color: rgba(95, 127, 103, 0.1) !important;
  color: #55725c !important;
  border-color: #55725c !important;
  box-shadow: none !important;
}

.btn.btn-outline-success.waves-effect .waves-ripple,
button.btn-outline-success.waves-effect .waves-ripple {
  background: radial-gradient(
    rgba(95, 127, 103, 0.2) 0,
    rgba(95, 127, 103, 0.3) 40%,
    rgba(95, 127, 103, 0.4) 50%,
    rgba(95, 127, 103, 0.5) 60%,
    rgba(255, 255, 255, 0) 70%
  ) !important;
}

/* ─── Legacy alias: btn-product-solid → same as btn-success ─ */
.btn-product-solid,
.product-page .btn-product-solid {
  background-color: #5f7f67 !important;
  border-color: #5f7f67 !important;
  color: #fff !important;
  box-shadow: none;
}

.btn-product-solid:hover,
.btn-product-solid:focus,
.btn-product-solid:active,
.product-page .btn-product-solid:hover,
.product-page .btn-product-solid:focus,
.product-page .btn-product-solid:active {
  background-color: #55725c !important;
  border-color: #55725c !important;
  color: #fff !important;
  box-shadow: none !important;
}
