/* Pulsante "?" (zul/ui/help.zul) e pannello laterale del manuale (js/help.js). */
.bc-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7486;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    opacity: .75;
}

.bc-help:hover, .bc-help:focus-visible {
    color: #2f6fde;
    opacity: 1;
    background: rgba(47, 111, 222, .1);
    outline: none;
}

.bc-help-pannello {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    width: min(620px, 100vw);
    background: #fff;
    box-shadow: -8px 0 32px rgba(6, 28, 67, .25);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    animation: bc-help-entra .18s ease-out;
}

.bc-help-pannello[hidden] {
    display: none;
}

@keyframes bc-help-entra {
    from { transform: translateX(40px); opacity: 0; }
}

.bc-help-testa {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 8px 0 16px;
    color: #fff;
    background: linear-gradient(160deg, #061c43 0%, #0d2d66 100%);
}

.bc-help-testa strong {
    flex: 1;
    font-size: 14px;
}

.bc-help-testa a, .bc-help-testa button {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
}

.bc-help-testa a:hover, .bc-help-testa button:hover, .bc-help-testa button:focus-visible {
    background: rgba(255, 255, 255, .14);
    outline: none;
}

.bc-help-testa .bc-help-chiudi {
    font-size: 22px;
    line-height: 1;
    padding: 2px 10px 4px;
}

.bc-help-pannello iframe {
    flex: 1;
    width: 100%;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .bc-help-pannello { animation: none; }
}

/* titolo di pagina o riquadro con il "?" accanto (md-title, an-card-title sono blocchi) */
.bc-help-titolo {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

/* sulla linea di base il cerchio cade qualche pixel sotto il centro del titolo */
.bc-help-titolo .bc-help {
    position: relative;
    top: -3px;
}
