/* O'Radar radar health (11.14.0): data label chips, source-health dots and notes. See assets/js/radar-health.js. */

/* ---- Data label chip, top right of a tool ---- */
.bbhg-prov-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 6px;
    pointer-events: none;
}
.bbhg-prov-row[hidden] { display: none !important; }
.bbhg-prov {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font: 600 11.5px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: .01em;
    background: #eef2f7;
    color: #334155;
    border: 1px solid rgba(15, 23, 42, .08);
    cursor: help;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bbhg-prov b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.bbhg-prov i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.bbhg-prov:focus-visible { outline: 2px solid #2f5bff; outline-offset: 2px; }
.bbhg-prov-live     { background: #e8f8ee; color: #166534; }
.bbhg-prov-cached   { background: #eef2ff; color: #3730a3; }
.bbhg-prov-archive  { background: #f1f5f9; color: #475569; }
.bbhg-prov-estimate { background: #fff7e6; color: #92400e; }
.bbhg-prov-sample   { background: #f5f3ff; color: #6d28d9; }
.bbhg-prov-ai       { background: #fff1e6; color: #b45309; border-color: rgba(180, 83, 9, .25); }
.bbhg-prov-ai i     { background: none; width: auto; height: auto; font-style: normal; }
.bbhg-prov-ai i::before { content: "\2728"; font-size: 11px; }
.bbhg-prov-live i   { box-shadow: 0 0 0 3px rgba(22, 101, 52, .15); }

/* ---- Source health dot on tabs, dock tiles and Discover cards ---- */
[data-bbhg-health] { position: relative; }
.bbhg-hb {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: auto;
    z-index: 2;
    font-style: normal;
}
[data-bbhg-health="down"] > .bbhg-hb { background: #dc2626; }

/* ---- Note at the top of a tool that is down or degraded ---- */
.bbhg-health-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font: 500 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #fffbeb;
    color: #78350f;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}
.bbhg-health-note.bbhg-health-down { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; border-left-color: #dc2626; }
.bbhg-health-ico { flex: none; display: inline-flex; width: 18px; height: 18px; margin-top: 1px; color: #d97706; }
.bbhg-health-ico svg { display: block; width: 18px; height: 18px; }
.bbhg-health-down .bbhg-health-ico { color: #dc2626; }
.bbhg-health-txt { flex: 1; }
.bbhg-health-x {
    flex: none;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 20px !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    min-width: 0 !important;
    cursor: pointer;
    opacity: .7;
    box-shadow: none !important;
}
.bbhg-health-x:hover, .bbhg-health-x:focus-visible { opacity: 1; }
