/* =====================================================
   multicommerce — Buttons (red / green / blue, white text)
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.btn:active        { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }

/* === Primary (BLUE) === save, submit, default actions */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover  { background: var(--blue-600); border-color: var(--blue-600); }
.btn-primary:active { background: var(--blue-700); }

/* === Success (GREEN) === approve, confirm, send */
.btn-success {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-success:hover  { background: var(--green-600); border-color: var(--green-600); }

/* === Danger (RED) === delete, cancel, reject */
.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover   { background: var(--red-600); border-color: var(--red-600); }

/* === Warning (AMBER) === caution actions */
.btn-warning {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-warning:hover  { background: var(--amber-600); border-color: var(--amber-600); }

/* === Ghost / secondary outline === */
.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--slate-50); border-color: var(--border-2); }

/* === Link-style === */
.btn-link {
  background: transparent;
  color: var(--blue-600);
  border-color: transparent;
  padding: 0 6px;
  min-height: auto;
}
.btn-link:hover { text-decoration: underline; }

/* Sizes */
.btn-sm { min-height: 26px; padding: 0 10px; font-size: 13px; }
.btn-lg { min-height: 38px; padding: 0 18px; font-size: 15.5px; }
.btn-xl { min-height: 44px; padding: 0 24px; font-size: 16.5px; }

/* Icon-only */
.btn-icon {
  width: 32px;
  min-height: 32px;
  padding: 0;
}

/* Button group */
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.btn-bar   { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-bar .spacer { flex: 1; }

/* =====================================================
   List-page header actions — eye-catching "New …" button
   (the Export button is styled in crud/_export.jspf)
   ===================================================== */
.page-header .actions a.btn[href$="/new"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -3px rgba(37, 99, 235, .50);
}
.page-header .actions a.btn[href$="/new"]:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  box-shadow: 0 7px 18px -4px rgba(37, 99, 235, .60);
  transform: translateY(-1px);
}
.page-header .actions a.btn[href$="/new"]:active { transform: translateY(0); }
.page-header .actions a.btn[href$="/new"] i { color: #fff; }
