/* Button system: all controls 40px; Lucide icons 20px (controls) or 24px (standalone). */
:root {
  --button-height: 40px;
  --button-radius: 8px;
  --icon-control: 20px;
  --icon-display: 24px;
}
.btn {
  appearance: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--button-height);
  min-height: var(--button-height);
  max-height: var(--button-height);
  flex-shrink: 0;
  padding: 0 14px;
  border: 0;
  border-radius: var(--button-radius);
  background: transparent;
  color: #30533e;

  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
button { user-select: none; }
.btn--primary { background: #1d6148; border-color: #1d6148; color: #fff; }
.btn--primary:hover { background: #174d39; border-color: #174d39; }
.btn--primary:active { background: #103e2d; border-color: #103e2d; }
.btn--secondary { background: transparent; border:1px solid #cbd7c7; color: #30533e; }
.btn--secondary:hover { background: #eef4e9; border-color: #9eb598; }
.btn--secondary:active { background: #e1ebdb; }
.btn--ghost { background: transparent; color: #49664b; }
.btn--ghost:hover { background: #eaf1e4; }
.btn--ghost:active { background: #dce8d4; }
.btn--tertiary { background: transparent; padding-inline: 8px; color: #1d6148; }
.btn--tertiary:hover .btn-label { text-decoration: underline; text-underline-offset: 4px; }
.btn--tertiary:hover { color: #103e2d; }
.btn--tertiary:active { background: #eef4e9; }
.btn--danger { color: #a84232; }
.btn--danger:hover { color: #8f2f20; background: #fbeeea; }
.btn--icon-only { width: var(--button-height); padding: 0; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #7ca565;
  outline-offset: 3px;
}
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.lucide { display: block; flex: 0 0 auto; }
.icon-20 { width: var(--icon-control); height: var(--icon-control); }
.icon-24 { width: var(--icon-display); height: var(--icon-display); }
.nav-icon { display: inline-flex; width: var(--icon-control); height: var(--icon-control); }
.empty-symbol { display: flex; justify-content: center; }
.empty > .btn { display: flex; width: fit-content; margin: 14px auto 0; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; padding: 5px; }
.aside-bottom .btn { display: flex; margin-left: -10px; padding-inline: 10px;  }
.hero-right .btn { margin-top: 15px; }
.hero-right .btn--secondary { background: #d8ebac; border:0; color: #294c32; }
.hero-right .btn--secondary:hover { background: #e6f5c4; border-color: #e6f5c4; }
.hero-right .btn:focus-visible { outline-color: #d8ebac; }
td.actions { white-space: nowrap; }
.actions .btn + .btn { margin-left: 4px; }
.panel-heading > .btn { margin-block: -8px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
@media (max-width:760px) {
  .btn {  padding-inline: 12px; }
  .btn--icon-only { padding: 0; }
  .hero { flex-wrap: wrap; }
  .hero-right { max-width: none; text-align: left; }
  .page-head { flex-wrap: wrap; }
}
