/* The one button look (owner's choice, 2026-10-29) — every action button in the app is a pill, like the search bar
   (shared/search.css):
     .bt          a grey pill — the secondary actions (إلغاء، تعديل، «+ تكليف»، عرض المزيد)
     .bt.main     filled with the page colour — the one action to press (حفظ، إرسال، منح الإنجاز)
     .bt.danger   light red — حذف، تعطيل، إعادة تعيين
     .bt.link     text only
   Sizes follow the container: .lg (48px, full width — the bottom of a form), the default 40px (beside other
   buttons), .sm (32px — inside a row), .icon (round, one icon), .wide (full width at any size), .fab (the round
   floating "+" in a screen's corner).
   Colours come from the page: --button-main / --button-main-ink / --button-ink / --button-danger / --button-link;
   the grey is the search bar's own fill (from --search-muted), so the two always match. */
.bt {
  --bt-main: var(--button-main, #0f4d92);
  --bt-main-ink: var(--button-main-ink, #fff);
  --bt-ink: var(--button-ink, var(--search-ink, #1d2533));
  --bt-fill: var(--button-fill, color-mix(in srgb, var(--search-muted, #8a94a0) 15%, transparent));
  --bt-danger: var(--button-danger, #c0392b);
  --bt-link: var(--button-link, var(--bt-main));
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 18px; margin: 0; box-sizing: border-box;
  border: 0; border-radius: 999px; background: var(--bt-fill); color: var(--bt-ink);
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: filter .15s, opacity .15s, transform .1s;
}
.bt[hidden] { display: none !important; }
.bt:hover { filter: brightness(.95); }
.bt:active { transform: scale(.97); }
.bt:focus-visible { outline: 2px solid var(--bt-main); outline-offset: 2px; }
.bt:disabled, .bt[aria-disabled="true"] { opacity: .45; cursor: default; filter: none; transform: none; }

.bt.main { background: var(--bt-main); color: var(--bt-main-ink); }
.bt.main:hover { filter: brightness(1.1); }
.bt.danger { background: color-mix(in srgb, var(--bt-danger) 12%, transparent); color: var(--bt-danger); }
.bt.link { background: none; padding: 0 6px; min-width: 0; color: var(--bt-link); }

.bt.lg { height: 48px; width: 100%; font-size: 16px; }
.bt.sm { height: 32px; min-width: 32px; padding: 0 12px; font-size: 13px; }
.bt.wide { width: 100%; }
.bt.icon { width: 40px; padding: 0; }
.bt.icon.sm { width: 32px; }
/* the round floating "+" in a screen's bottom corner (the start corner — the right in RTL), always in thumb reach */
.bt.fab {
  position: fixed; inset-inline-start: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: 56px; height: 56px; padding: 0; font-size: 30px; font-weight: 400;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--bt-main) 35%, transparent);
}
.bt i, .bt svg { flex: none; }
.bt svg { width: 18px; height: 18px; }
.bt.sm svg { width: 16px; height: 16px; }
