/* Mobile Shop — custom overrides on top of Tabler.
   Keep this file small; Tabler already covers almost everything. */

.navbar-brand a {
    color: inherit;
    text-decoration: none;
}

/* Tom Select's Bootstrap 5 theme (tom-select.bootstrap5.min.css) is written
   against plain Bootstrap's "--bs-*" custom properties (--bs-body-bg,
   --bs-border-color, --bs-tertiary-bg, etc). Tabler ships its own build of
   Bootstrap with everything renamed to a "--tblr-*" prefix, so none of
   those "--bs-*" variables exist on the page — every var(--bs-...) call in
   the Tom Select theme resolves to nothing. That drops the dropdown's
   background/border/colors entirely, so its option list renders with a
   transparent background and the fields underneath it show through
   (e.g. the product picker on the Stock In and New Sale pages).
   Aliasing the specific variables Tom Select needs to Tabler's real
   variables fixes every Tom Select dropdown in the app at once. */
:root {
    --bs-body-bg: var(--tblr-body-bg);
    --bs-body-color: var(--tblr-body-color);
    --bs-border-color: var(--tblr-border-color);
    --bs-border-color-translucent: var(--tblr-border-color-translucent);
    --bs-border-radius: var(--tblr-border-radius);
    --bs-border-radius-lg: var(--tblr-border-radius-lg);
    --bs-border-radius-sm: var(--tblr-border-radius-sm);
    --bs-border-width: var(--tblr-border-width);
    --bs-box-shadow-inset: var(--tblr-box-shadow-inset);
    --bs-form-invalid-color: var(--tblr-form-invalid-color);
    --bs-form-valid-color: var(--tblr-form-valid-color);
    --bs-secondary-bg: var(--tblr-secondary-bg);
    --bs-tertiary-bg: var(--tblr-tertiary-bg);
}

/* Belt-and-braces: make sure the dropdown always sits above sibling form
   fields even if some other stacking context sneaks in later. */
.ts-dropdown {
    z-index: 1050;
}
