/* Danh sách tìm kiếm theo bố cục trang Index */
[hidden] { display: none !important; }

/* Keep the search banner visible throughout page scrolling. */
#procedure-navigation {
    padding: 10px 0;
    margin-bottom: 0;
}

#procedure-content {
    padding-top: 24px;
}

#procedure-content .procedure-results-heading {
    margin-top: 0;
}

#procedure-search-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    background-color: #ffffff;
    background-image: none;
    border-bottom: 2px solid #f1f5f9;
    box-shadow: none;
}

#procedure-search-banner .container-inner.banner-content {
    width: 100%;
    min-width: 0;
}

#procedure-search-banner #search-box {
    min-width: 0;
    padding: 12px 16px;
}

@media (max-width: 768px) {
    #procedure-search-banner {
        padding: 12px 0;
    }

    #procedure-search-banner .banner-content,
    #procedure-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    #procedure-content {
        padding-top: 16px;
    }
}
.procedure-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 16px; }
#procedure-search-status { margin: 0; font-size: 16px; color: var(--text-color); }
#procedure-search-reset { border: 1px solid var(--border-color); border-radius: 6px; background: var(--card-bg); color: var(--primary-color); padding: 8px 12px; cursor: pointer; font-weight: 600; }
.procedure-result { text-decoration: none; color: var(--text-color); gap: 15px; }
.procedure-result .row-content { flex: 1; min-width: 0; }
.procedure-result .row-title { line-height: 1.5; overflow-wrap: anywhere; }
.procedure-result-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; background: rgba(201,81,23,.1); color: var(--primary-color); font-size: 20px; }
.procedure-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.procedure-codes { color: #64748b; }
.procedure-field { color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 6px; }
.procedure-badge { padding: 2px 6px; border-radius: 4px; font-size: 11.5px; font-weight: 600; border: 1px solid; }
.badge-complete { color: #15803d; background: #f0fdf4; }
.badge-partial, .badge-level { color: #c2410c; background: #fff7ed; }
.procedure-open { font-size: 13px; font-weight: 600; color: var(--primary-color); white-space: nowrap; }
.procedure-match { background: #fef08a; color: #854d0e; padding: 0 2px; border-radius: 3px; }
.procedure-result:focus-visible, #procedure-search-reset:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; }
@media (max-width: 600px) {
    .procedure-result { padding: 12px; gap: 10px; flex-wrap: wrap; }
    .procedure-open { margin-left: 52px; }
    .procedure-results-heading { align-items: flex-start; }
    #procedure-search-reset { flex-shrink: 0; }
}

/* Viền và bóng hồng khi rê chuột hoặc nhập liệu. */
#procedure-search-form {
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 2px transparent;
    transition: box-shadow 0.2s ease;
}
#procedure-search-form:hover,
#procedure-search-form:focus-within {
    box-shadow: 0 0 0 2px #ec4899, 0 0 18px rgba(236, 72, 153, 0.3), 0 8px 24px rgba(236, 72, 153, 0.22);
}
@media (prefers-reduced-motion: reduce) {
    #procedure-search-form { transition: none; }
}
