    hr { margin-top:5px; border-top:1px solid #e2d9c4; }
    body { font-family:'Inter','Segoe UI',sans-serif; background:transparent; }

    /* ── Search card ── */
    .search-shell {
        background: #fffef8;
        border: 1px solid #e2d9c4;
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0 3px 14px rgba(10,61,31,.07);
        margin-bottom: 0;
    }

    /* card-style header row matching .is-card-head */
    .search-shell-head {
        font-size: 13px;
        font-weight: 600;
        color: var(--search-dark);
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 2px solid #f7e9a0;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .search-shell-head i { color: #c9a227; }

    /* ── Unified search bar ── */
    .search-bar-wrap {
        display: flex;
        align-items: stretch;
        background: var(--search-bg);
        border: 1.5px solid #d4c9ae;
        border-radius: 10px;
        overflow: hidden;
        transition: border-color .2s, box-shadow .2s;
    }
    .search-bar-wrap:focus-within {
        border-color: var(--search-mid);
        box-shadow: 0 0 0 3px rgba(26,122,64,.12);
        background: #fffef8;
    }

    .search-select {
        border: none !important;
        border-right: 1.5px solid #d4c9ae !important;
        border-radius: 0 !important;
        background: transparent !important;
        height: 42px;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--search-deep);
        padding: 0 8px 0 12px;
        min-width: 120px;
        max-width: 150px;
        box-shadow: none !important;
        outline: none !important;
        cursor: pointer;
        flex-shrink: 0;
        appearance: auto;
    }
    .search-bar-wrap:focus-within .search-select {
        border-right-color: #a8c9b0 !important;
    }

    .search-input {
        border: none !important;
        background: transparent !important;
        height: 42px;
        font-size: 14px;
        color: var(--search-ink);
        padding: 0 12px;
        flex: 1;
        min-width: 0;
        box-shadow: none !important;
        outline: none !important;
    }
    .search-input::placeholder { color: #9a8f78; }

    .search-btn {
        height: 42px;
        width: 42px;
        min-width: 42px;
        background: linear-gradient(135deg, var(--search-dark), var(--search-mid));
        border: none;
        color: #fff;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .2s;
        flex-shrink: 0;
    }
    .search-btn:hover { background: linear-gradient(135deg, var(--search-deep), var(--search-dark)); }
    .search-btn:active { background: var(--search-deep); }

    /* ── Results ── */
    #txtHint {
        margin-top: 10px;
        border-radius: 10px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 480px;
        max-width: 100%;
        border: 1px solid #e2d9c4;
        box-shadow: 0 4px 16px rgba(10,61,31,.08);
        box-sizing: border-box;
    }
    #txtHint:empty { display: none; }

    /* Plain custom styling for the shared results table (was Bootstrap's
       table/table-bordered/table-hover/table-striped/table-condensed -
       removed 2026-09-16, this page carries no framework dependency now).
       Each result is one full-width <tr><th colspan=6> row, so all this
       needs to do is add a divider between rows and a hover highlight. */
    #txtHint table.results-list {
        width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        box-sizing: border-box;
    }
    #txtHint table.results-list th.image_popup {
        border-bottom: 1px solid #eee3c8;
        padding: 8px 10px !important;
        text-align: left;
        font-weight: normal;
        transition: background .15s;
        overflow-wrap: anywhere;
    }
    #txtHint table.results-list tr:last-child th.image_popup { border-bottom: none; }
    #txtHint table.results-list th.image_popup:hover { background: #fbf7ea; }

    /* Item search (option 1001) renders as a card grid instead of a
       stacked list - each result's thumbnail/name/stock/price is
       compact and uniform enough that more can be scanned at once
       this way. Other categories (Party/Users/Agencies/Deleted Items/
       All) stay single-column since their content is text-heavier and
       variable-length - a grid there just produces ragged cards
       (2026-09-16). Card min-width uses min(260px,100%) rather than a
       bare 260px so a single card can never force horizontal overflow
       on a screen narrower than 260px+padding. */
    #txtHint table.results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
        gap: 8px;
        padding: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    #txtHint table.results-grid tr { display: contents; }
    #txtHint table.results-grid th.image_popup {
        display: block;
        border: 1px solid #e2d9c4;
        border-radius: 8px;
        padding: 8px !important;
        background: #fff;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
    #txtHint table.results-grid th.image_popup > div { flex-wrap: wrap; }

    /* ── Expand-in-place result details (ajax_get_image_v2.js, new
       dashboard workspace only) ── replaces the old floating popover
       (Bootstrap .popover/.alert/.well - unstyled on this framework-free
       page anyway) with an inline panel that pushes the row below it down
       instead of overlaying on top. This file is loaded site-wide via
       start.php, and .more_link/.image_popup are the SAME class names the
       live dashboard's search still uses - so every rule here is scoped
       under .search-v2-scope (the wrapper welcome_new.php's search card
       carries, nowhere else) rather than touching those classes globally.
       .more_link ships with a "hide" class in the markup already; this is
       its real hidden/shown state now that there's no Bootstrap .hide
       utility class to do it implicitly (2026-09-17). */
    .search-v2-scope .image_popup.search-expanded { background: #fbf7ea; }
    .search-v2-scope .more_link {
        display: none;
        margin-top: 8px;
        padding: 8px 10px;
        background: #fffef8;
        border: 1px solid #e2d9c4;
        border-radius: 8px;
        font-size: 12.5px;
        line-height: 1.6;
    }
    .search-v2-scope .more_link a {
        color: var(--search-dark, #1a7a40);
        font-weight: 600;
        text-decoration: none;
    }
    .search-v2-scope .more_link a:hover { text-decoration: underline; }
    .search-v2-scope .search-images-response {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
        align-items: center;
    }
    .search-v2-scope .search-images-response img {
        border-radius: 6px;
        border: 1px solid #e2d9c4;
        object-fit: cover;
    }
    .search-v2-scope .search-expand-send {
        background: linear-gradient(135deg, var(--search-dark, #1a7a40), var(--search-mid, #2fae63));
        border: none;
        color: #fff;
        font-size: 11.5px;
        font-weight: 600;
        border-radius: 6px;
        padding: 4px 10px;
        cursor: pointer;
        margin-inline-start: 6px;
    }

    /* ── Mobile ── */
    @media (max-width: 576px) {
        .search-shell { padding: 10px; box-sizing: border-box; }
        .search-bar-wrap { border-radius: 8px; max-width: 100%; }
        /* Inputs/selects must be >=16px on mobile or iOS Safari zooms the
           whole page in on focus regardless of the viewport meta tag's
           maximum-scale - that was the root cause of the reported zoom
           (2026-09-16). Widths bumped slightly to give the larger text
           room; everything here still lives inside a flex row that
           shrinks to fit the viewport, so this can't cause overflow. */
        .search-select {
            min-width: 96px;
            max-width: 130px;
            font-size: 16px;
            padding: 0 6px 0 8px;
        }
        .search-input { font-size: 16px; padding: 0 8px; }
        .search-btn   { width: 38px; min-width: 38px; font-size: 13px; }
        .search-shell-head { font-size: 12px; }
    }
