/* Uses the shared theme palette; no independently cached or hidden search index. */
.global-search-trigger { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; }
.global-search-trigger span { color: var(--green); font-size: 19px; line-height: 1; }
#global-search-dialog { width: min(850px, 94vw); }
.global-search-body { padding: 24px; }
.global-search-query-label { display: block; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
#global-search-query { width: 100%; font-size: 15px; }
.global-search-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.global-search-filters label { color: var(--muted); font-size: 12px; min-width: 0; }
.global-search-filters select { display: block; width: 100%; margin-top: 5px; }
.global-search-scope { font-size: 12px; color: var(--muted); margin: 16px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; }
.global-search-scope summary { cursor: pointer; color: var(--ink); }
.global-search-scope p { margin: 10px 0 0; }
#global-search-results { display: grid; gap: 10px; margin-top: 14px; }
.global-search-result { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; gap: 4px; padding: 15px 17px; background: var(--surface); overflow-wrap: anywhere; min-width: 0; }
.global-search-result strong { font-size: 16px; color: var(--ink); }
.global-search-result-meta { color: var(--green); font-size: 11px; font-weight: 600; }
.global-search-result-subtitle, .global-search-result-match { font-size: 12px; font-weight: 400; color: var(--muted); }
.global-search-result-match { margin-top: 3px; }
.global-search-result-action { color: var(--green); font-size: 11px; margin-top: 5px; }
.global-search-payment { margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow-wrap: anywhere; }
.global-search-payment dt { color: var(--muted); font-size: 12px; }
.global-search-payment dd { margin: 3px 0 0; color: var(--ink); }
@media (max-width: 700px) {
 .global-search-trigger { min-height: 40px; }
 #global-search-dialog { width: 96vw; max-height: 94dvh; }
 .global-search-body { padding: 16px; }
 .global-search-filters { grid-template-columns: 1fr; gap: 10px; }
 .global-search-payment { grid-template-columns: 1fr; }
}
.dashboard-search { margin-bottom: 24px; padding: 20px 22px; }
.dashboard-search label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.dashboard-search-row { display: flex; gap: 10px; }
.dashboard-search-row input { flex: 1; min-width: 0; }
.dashboard-search-row button { flex-shrink: 0; min-width: 100px; }
.dashboard-search p { margin: 9px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
 .dashboard-search { padding: 16px; }
 .dashboard-search-row { flex-wrap: wrap; }
 .dashboard-search-row input { flex-basis: 100%; }
 .dashboard-search-row button { width: 100%; }
}
