/* Busca global do Health Check no cabeçalho (header/faixa verde). */
.global-hc-search {
    position: relative;
    min-width: 260px;
    max-width: 460px;
    flex: 1 1 auto;
}

/* centraliza a busca na faixa sem mexer nos blocos laterais: fica absoluta no meio do header */
.ss-topnav {
    position: relative;
    overflow: visible;
}

    .ss-topnav > .global-hc-search {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 34%;
        z-index: 1039;
    }

.global-hc-input {
    position: relative;
    isolation: isolate;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

    .global-hc-input::before {
        content: "";
        position: absolute;
        z-index: 2;
        inset: -3px;
        padding: 3px;
        pointer-events: none;
        border-radius: inherit;
        background: linear-gradient(115deg, #00a8ff, #5e72e4, #a970ff, #5e72e4, #00a8ff);
        background-size: 300% 300%;
        opacity: 0;
        transition: opacity .18s ease, filter .18s ease;
        animation: global-search-border-flow 7s ease-in-out infinite;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

    .global-hc-input:focus-within::before {
        opacity: 1;
        filter: drop-shadow(0 0 4px rgba(94, 114, 228, .55));
    }

    .global-hc-input:focus-within {
        box-shadow: 0 0 0 2px rgba(94, 114, 228, .10), 0 3px 10px rgba(31, 45, 90, .18);
    }

@keyframes global-search-border-flow {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-hc-input::before {
        animation: none;
    }
}

.global-hc-input .form-control {
    font-size: 12px;
    box-shadow: none;
}

.global-hc-input .input-group-text {
    padding-right: 4px;
}

.global-hc-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1039;
    display: none;
}

    .global-hc-results.show {
        display: block;
    }

.global-hc-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-bottom: 1px solid #eef0f2;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.global-hc-tab {
    border: 0;
    background: transparent;
    font-size: 11px;
    color: #525f7f;
    padding: 3px 9px;
    border-radius: 12px;
    cursor: pointer;
    line-height: 1.4;
}

    .global-hc-tab:hover {
        background: #f1f3f5;
    }

    .global-hc-tab.active {
        background: #5e72e4;
        color: #fff;
    }

.global-hc-tab-count {
    opacity: .7;
}

.global-hc-group-head {
    padding: 6px 12px 2px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8898aa;
    font-weight: 600;
    background: #f8f9fb;
    border-bottom: 1px solid #f1f3f5;
}

.global-hc-count {
    color: #adb5bd;
    font-weight: 400;
}

.global-hc-item {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
}

    .global-hc-item:last-child {
        border-bottom: 0;
    }

    .global-hc-item:hover {
        background: #f6f9fc;
    }

    .global-hc-item .hc-ico {
        color: #5e72e4;
        margin-right: 10px;
        display: flex;
        flex: 0 0 auto;
    }

    .global-hc-item .hc-body {
        flex: 1 1 auto;
        min-width: 0;
    }

    .global-hc-item .hc-host {
        display: block;
        font-size: 12px;
        color: #525f7f;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .global-hc-item .hc-host b {
            color: #212529;
            font-weight: 700;
        }

    .global-hc-item .hc-meta {
        display: block;
        font-size: 11px;
        color: #8898aa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .global-hc-item .hc-right {
        font-size: 11px;
        color: #8898aa;
        margin-left: 10px;
        flex: 0 0 auto;
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .global-hc-item .global-hc-edit {
        flex: 0 0 auto;
        margin-left: 8px;
        border: 0;
        background: transparent;
        color: #8898aa;
        cursor: pointer;
        padding: 4px 7px;
        border-radius: 4px;
        font-size: 12px;
        line-height: 1;
    }

        .global-hc-item .global-hc-edit:hover {
            background: #e9ecf3;
            color: #5e72e4;
        }

.global-hc-empty {
    padding: 10px 12px;
    color: #8898aa;
    font-size: 12px;
}
