/* Keep this shared control rule above legacy page-specific !important styles. */
@layer tijarah-search-controls {
html body input[type=search]{transition:none!important}
/* A compound search has one surface and border. Browser autofill uses that same surface. */
html body :is(.search-field,.lookup-search,.unified-search,.mobile-search-field,.promotion-product-search,.search-wrap,.buyer-search){--search-surface:var(--theme-background,#fff);background:var(--search-surface)!important;min-width:0;box-sizing:border-box;overflow:hidden}
html :is(#adminView,#loginView,dialog,body) :is(.search-field,.lookup-search,.unified-search,.mobile-search-field,.promotion-product-search,.search-wrap,.buyer-search)>input,
html :is(#adminView,#loginView,dialog,body) :is(.search-field,.lookup-search,.unified-search,.mobile-search-field,.promotion-product-search,.search-wrap,.buyer-search)>input:is(:hover,:focus,:focus-visible,:active){background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;outline:0!important;outline-offset:0!important;box-shadow:none!important;transition:none!important;margin:0!important;min-width:0;max-width:100%;box-sizing:border-box;color:var(--theme-font,#26364c);caret-color:currentColor}
html body :is(.search-field,.lookup-search,.unified-search,.mobile-search-field,.promotion-product-search,.search-wrap,.buyer-search):focus-within{border-color:var(--theme-button,#57518d)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-button,#57518d) 14%,transparent)}
/* A standalone search retains its own border, spacing and keyboard focus indicator. */
html :is(#adminView,#loginView,dialog,body) :is(.search-field,.lookup-search,.unified-search,.mobile-search-field,.promotion-product-search,.search-wrap,.buyer-search)>input:-webkit-autofill,
html :is(#adminView,#loginView,dialog,body) input[type=search]:-webkit-autofill,
html :is(#adminView,#loginView,dialog,body) input[type=search]:-webkit-autofill:is(:hover,:focus,:active){-webkit-box-shadow:0 0 0 1000px var(--search-surface,var(--theme-background,#fff)) inset!important;box-shadow:0 0 0 1000px var(--search-surface,var(--theme-background,#fff)) inset!important;transition:none!important;-webkit-text-fill-color:var(--theme-font,#26364c)!important;caret-color:var(--theme-font,#26364c)!important;background-image:none!important}
html :is(#adminView,#loginView,dialog,body) input[type=search]:autofill{box-shadow:0 0 0 1000px var(--search-surface,var(--theme-background,#fff)) inset!important;transition:none!important;caret-color:var(--theme-font,#26364c)!important;background-image:none!important}
/* Sidebar search uses a solid dark surface so autofill cannot create a light inner panel. */
html body #adminView .sidebar .sidebar-menu-search>label{--search-surface:color-mix(in srgb,var(--theme-primary,#26263b) 94%,var(--theme-primary-text,#fff));background:var(--search-surface)!important;color:var(--theme-primary-text,#fff)!important}
html body #adminView .sidebar .sidebar-menu-search #sidebarMenuSearch{color:var(--theme-primary-text,#fff)!important;caret-color:var(--theme-primary-text,#fff)!important}
html body #adminView .sidebar .sidebar-menu-search #sidebarMenuSearch:-webkit-autofill,
html body #adminView .sidebar .sidebar-menu-search #sidebarMenuSearch:-webkit-autofill:is(:hover,:focus,:active),
html body #adminView .sidebar .sidebar-menu-search #sidebarMenuSearch:autofill{box-shadow:0 0 0 1000px var(--search-surface) inset!important;-webkit-box-shadow:0 0 0 1000px var(--search-surface) inset!important;transition:none!important;-webkit-text-fill-color:var(--theme-primary-text,#fff)!important;caret-color:var(--theme-primary-text,#fff)!important}
}
