/* Moved out of partials/search-pill.blade.php (22 Nov 2026) so it is cached
   instead of sent inline with every page that shows it. Edit it here. */
:root { --sp-h: 40px; --sp-hero: 44px; --sp-font: 13.5px; }
@media (max-width: 640px) { :root { --sp-h: 44px; --sp-font: 16px; } }

/* ── the box ─────────────────────────────────────────────────── */
.dataTables_filter input:not(#_):not(#__),
#msg-search:not(#_):not(#__), #searchMessage:not(#_):not(#__),
#pmSearch:not(#_):not(#__), #userSearch:not(#_):not(#__), #pmListingSearch:not(#_):not(#__), #searchQuery:not(#_):not(#__),
.br-search-wrap .br-search-input:not(#_):not(#__),
.ml-search-wrap:not(#_):not(#__), .of-search-wrap:not(#_):not(#__) {
    height: var(--sp-h) !important; min-height: 0 !important;
    border: 1px solid #e2e8f0 !important; border-radius: 999px !important;
    background-color: #fff !important; box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.br-search-wrap .br-search-input:not(#_):not(#__) { height: var(--sp-hero) !important; }

/* text inside: room for the icon on the left */
.dataTables_filter input:not(#_):not(#__),
#msg-search:not(#_):not(#__), #searchMessage:not(#_):not(#__),
#pmSearch:not(#_):not(#__), #userSearch:not(#_):not(#__), #pmListingSearch:not(#_):not(#__), #searchQuery:not(#_):not(#__),
.br-search-wrap .br-search-input:not(#_):not(#__) {
    padding: 0 16px 0 42px !important; margin: 0 !important;
    font-size: var(--sp-font) !important; font-weight: 400 !important; color: #0f172a !important;
    font-family: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
/* boxes that are a wrapper around a bare input */
.ml-search-wrap:not(#_):not(#__), .of-search-wrap:not(#_):not(#__) { position: relative; display: flex; align-items: center; }
.ml-search-wrap .ml-search-input:not(#_):not(#__), .of-search-wrap .of-search-input:not(#_):not(#__) {
    height: 100% !important; padding: 0 16px 0 42px !important; border: 0 !important; border-radius: 999px !important;
    background: transparent !important; box-shadow: none !important;
    font-size: var(--sp-font) !important; font-weight: 400 !important; letter-spacing: 0 !important; color: #0f172a !important;
    font-family: "Golos Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
}
.dataTables_filter input::placeholder, #msg-search::placeholder, #searchMessage::placeholder,
#pmSearch::placeholder, #userSearch::placeholder, #pmListingSearch::placeholder, #searchQuery::placeholder,
.br-search-input::placeholder, .ml-search-input::placeholder, .of-search-input::placeholder { color: #94a3b8 !important; font-weight: 400; font-size: inherit !important; opacity: 1; }

/* widths: a comfortable field on desktop, the full row on phones */
.dataTables_filter input:not(#_):not(#__) { width: 260px !important; max-width: 100%; }
.ml-search-wrap:not(#_):not(#__), .of-search-wrap:not(#_):not(#__) { width: 260px !important; max-width: 100%; }
#pmSearch:not(#_):not(#__) { width: 220px !important; max-width: 100%; }
/* promotions: the search sits in a filter row of 38px fields, so it matches that row's height */
#pmSearch:not(#_):not(#__) { height: 38px !important; }
.pm-field:has(> #pmSearch):not(#_):not(#__) { flex: 0 0 auto; width: auto; }
@media (max-width: 767px) {
    /* custom.css pads every filter 1.1rem each side; on a phone that pushed the field in from the table edge */
    .dataTables_filter:not(#_):not(#__) { text-align: left !important; width: 100%; padding: 0 !important; }
    .dataTables_filter label:not(#_):not(#__) { display: block !important; width: 100% !important; max-width: none !important; }
    .dataTables_filter input:not(#_):not(#__), .ml-search-wrap:not(#_):not(#__), .of-search-wrap:not(#_):not(#__), #pmSearch:not(#_):not(#__) { width: 100% !important; }
    .pm-field:has(> #pmSearch):not(#_):not(#__) { flex: 1 1 100%; width: 100%; }
}

/* ── the magnifier: 14px, 15px in from the left, centred on the box ── */
.dataTables_filter label:not(#_):not(#__) { position: relative; display: inline-block; margin: 0; }
.dataTables_filter .search-icon:not(#_):not(#__),
.ml-search-wrap .ml-search-icon:not(#_):not(#__), .of-search-wrap .of-search-icon:not(#_):not(#__),
.br-search-wrap > .bi-search:not(#_):not(#__) {
    position: absolute; left: 15px; right: auto; top: 50%; transform: translateY(-50%);
    margin: 0 !important; padding: 0; width: 14px; height: 14px; display: block;
    font-size: 14px !important; line-height: 1 !important; color: #94a3b8 !important;
    pointer-events: none; z-index: 2;
}
.ml-search-wrap .ml-search-icon:not(#_):not(#__), .of-search-wrap .of-search-icon:not(#_):not(#__) { left: 14px; }
/* Bootstrap Icons nudge their glyph down by .125em; inside a fixed 14px box that reads as off-centre */
.dataTables_filter .search-icon::before, .ml-search-icon::before, .of-search-icon::before,
.br-search-wrap > .bi-search::before { display: block; vertical-align: 0 !important; line-height: 1 !important; }
/* messages sidebar + its search modal: the icon lived in an absolutely placed button whose offset
   depended on the wrapper padding, so it drifted; the button stays (it opens the search) but the
   magnifier is now drawn on the field itself, like the icon-less fields below */
.msg-sb-search > button > .bi:not(#_):not(#__), #searchMessage + button > .bi:not(#_):not(#__) { visibility: hidden; }
/* fields that never had an icon get the same magnifier drawn as a background */
#msg-search:not(#_):not(#__), #searchMessage:not(#_):not(#__),
#pmSearch:not(#_):not(#__), #userSearch:not(#_):not(#__), #pmListingSearch:not(#_):not(#__), #searchQuery:not(#_):not(#__) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: 15px center !important; background-size: 14px 14px !important;
}
/* admin "find a member" modal: the pill and its button sit side by side */
.input-group > #searchQuery:not(#_):not(#__) { flex: 1 1 auto; margin-right: 8px !important; }
.input-group > #searchQuery + .btn:not(#_):not(#__) { border-radius: 999px !important; }

/* ── focus ───────────────────────────────────────────────────── */
.dataTables_filter input:focus:not(#_):not(#__),
#msg-search:focus:not(#_):not(#__), #searchMessage:focus:not(#_):not(#__),
#pmSearch:focus:not(#_):not(#__), #userSearch:focus:not(#_):not(#__), #pmListingSearch:focus:not(#_):not(#__), #searchQuery:focus:not(#_):not(#__),
.br-search-wrap .br-search-input:focus:not(#_):not(#__),
.ml-search-wrap:focus-within:not(#_):not(#__), .of-search-wrap:focus-within:not(#_):not(#__) {
    border-color: #93c5fd !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important; outline: 0 !important;
}
.dataTables_filter label:focus-within .search-icon:not(#_):not(#__),
.ml-search-wrap:focus-within .ml-search-icon:not(#_):not(#__), .of-search-wrap:focus-within .of-search-icon:not(#_):not(#__),
.br-search-wrap:focus-within > .bi-search:not(#_):not(#__) { color: #2563eb !important; }

/* ── dark ────────────────────────────────────────────────────── */
html.dark .dataTables_filter input:not(#_):not(#__),
html.dark #msg-search:not(#_):not(#__), html.dark #searchMessage:not(#_):not(#__),
html.dark #pmSearch:not(#_):not(#__), html.dark #userSearch:not(#_):not(#__), html.dark #pmListingSearch:not(#_):not(#__), html.dark #searchQuery:not(#_):not(#__),
html.dark .br-search-wrap .br-search-input:not(#_):not(#__),
html.dark .ml-search-wrap:not(#_):not(#__), html.dark .of-search-wrap:not(#_):not(#__) { background-color: #0f172a !important; border-color: #334155 !important; }
html.dark .dataTables_filter input:not(#_):not(#__),
html.dark #msg-search:not(#_):not(#__), html.dark #searchMessage:not(#_):not(#__),
html.dark #pmSearch:not(#_):not(#__), html.dark #userSearch:not(#_):not(#__), html.dark #pmListingSearch:not(#_):not(#__), html.dark #searchQuery:not(#_):not(#__),
html.dark .br-search-wrap .br-search-input:not(#_):not(#__),
html.dark .ml-search-wrap .ml-search-input:not(#_):not(#__), html.dark .of-search-wrap .of-search-input:not(#_):not(#__) { color: #e2e8f0 !important; }
html.dark .dataTables_filter input::placeholder, html.dark #msg-search::placeholder, html.dark #searchMessage::placeholder,
html.dark #pmSearch::placeholder, html.dark #userSearch::placeholder, html.dark #pmListingSearch::placeholder, html.dark #searchQuery::placeholder,
html.dark .br-search-input::placeholder, html.dark .ml-search-input::placeholder, html.dark .of-search-input::placeholder { color: #64748b !important; }
html.dark .dataTables_filter .search-icon:not(#_):not(#__), html.dark .ml-search-icon:not(#_):not(#__), html.dark .of-search-icon:not(#_):not(#__),
html.dark .br-search-wrap > .bi-search:not(#_):not(#__) { color: #64748b !important; }
html.dark .dataTables_filter input:focus:not(#_):not(#__),
html.dark #msg-search:focus:not(#_):not(#__), html.dark #searchMessage:focus:not(#_):not(#__),
html.dark #pmSearch:focus:not(#_):not(#__), html.dark #userSearch:focus:not(#_):not(#__), html.dark #pmListingSearch:focus:not(#_):not(#__), html.dark #searchQuery:focus:not(#_):not(#__),
html.dark .br-search-wrap .br-search-input:focus:not(#_):not(#__),
html.dark .ml-search-wrap:focus-within:not(#_):not(#__), html.dark .of-search-wrap:focus-within:not(#_):not(#__) { border-color: #3b82f6 !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, .2) !important; }
html.dark #msg-search:not(#_):not(#__), html.dark #searchMessage:not(#_):not(#__),
html.dark #pmSearch:not(#_):not(#__), html.dark #userSearch:not(#_):not(#__), html.dark #pmListingSearch:not(#_):not(#__), html.dark #searchQuery:not(#_):not(#__) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10'/%3E%3C/svg%3E") !important;
}
