/* Cadence web button theme — recolors primary & secondary buttons to brand blues.
 * Loaded site-wide on web pages (including /login) via web_include_css (saas_core hooks.py).
 * Canonical source lives here in the repo; a copy is served from the site's
 * /files/cadence_web.css because the local Docker nginx frontend does not mount
 * the bind-mounted saas_core app under /assets (only frappe/erpnext are baked in).
 *
 * Cadence palette: primary #1565C0 · primary-dark #0D47A1 · accent #1E88E5
 */

/* ── PRIMARY — Cadence primary blue ───────────────────────────────────── */
.btn-primary {
  background-color: #1565C0 !important;
  border-color: #1565C0 !important;
  color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #0D47A1 !important;
  border-color: #0D47A1 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ── SECONDARY — Cadence accent blue (covers btn-secondary + Frappe btn-default) ── */
.btn-secondary,
.btn-default {
  background-color: #1E88E5 !important;
  border-color: #1E88E5 !important;
  color: #ffffff !important;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background-color: #1565C0 !important;
  border-color: #1565C0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ── Outline + primary text for cohesion ─────────────────────────────── */
.btn-outline-primary {
  color: #1565C0 !important;
  border-color: #1565C0 !important;
}
.btn-outline-primary:hover {
  background-color: #1565C0 !important;
  border-color: #1565C0 !important;
  color: #ffffff !important;
}
.text-primary { color: #1565C0 !important; }
