/* Shared secondary actions. Main actions and selected navigation keep Amanta orange. */
:root {
  --amanta-action-ink: #334155;
  --amanta-action-bg: #f1f5f9;
  --amanta-action-border: #cbd5e1;
}
:is(button, a)[class*="border-primary"][class*="text-primary"]:not(
    [class~="bg-primary"]
  ):not([role="tab"]):not([role="option"]):not([aria-selected="true"]):not(
    [aria-pressed="true"]
  ):not(nav *):not([class*="amanta-action-"]) {
  color: var(--amanta-action-ink) !important;
  background-color: var(--amanta-action-bg) !important;
  border-color: var(--amanta-action-border) !important;
}
:is(button, a)[class*="border-primary"][class*="text-primary"]:not(
    [class~="bg-primary"]
  ):not([role="tab"]):not([role="option"]):not([aria-selected="true"]):not(
    [aria-pressed="true"]
  ):not(nav *):not([class*="amanta-action-"]):hover:not(:disabled) {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}
:is(button, a).amanta-action-view {
  --amanta-action-ink: #1e40af;
  --amanta-action-bg: #eff6ff;
  --amanta-action-border: #bfdbfe;
}
:is(button, a).amanta-action-pay {
  --amanta-action-ink: #047857;
  --amanta-action-bg: #ecfdf5;
  --amanta-action-border: #a7f3d0;
}
:is(button, a).amanta-action-tool {
  --amanta-action-ink: #334155;
  --amanta-action-bg: #f1f5f9;
  --amanta-action-border: #cbd5e1;
}
:is(button, a).amanta-action-view,
:is(button, a).amanta-action-pay,
:is(button, a).amanta-action-tool {
  color: var(--amanta-action-ink) !important;
  background-color: var(--amanta-action-bg) !important;
  border: 1px solid var(--amanta-action-border) !important;
}
:is(button, a).amanta-action-view:hover:not(:disabled) {
  background-color: #dbeafe !important;
  color: #1e3a8a !important;
}
:is(button, a).amanta-action-pay:hover:not(:disabled) {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}
:is(button, a).amanta-action-tool:hover:not(:disabled) {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}
:is(button, a)[class*="amanta-action-"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
:is(button, a)[class*="amanta-action-"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Entry toolbars keep import and payment shortcuts at the same height. */
.amanta-arrowless-entry > div:first-child > div:last-child > button[class*="amanta-action-"] {
  height:40px; min-height:40px; padding:8px 12px; font-size:12px; line-height:1.25;
}

/* Shared Excel launcher: identical geometry inside forms and on main screens. */
button.amanta-action-view.amanta-excel-import-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:12px 16px; border-radius:12px; font-size:14px; line-height:20px; font-weight:600; }
