/**
 * CSS custom legacy usato nell'HTML dei form (tabelle rischio, banner, box, label scelte).
 * Solo selettori di dominio — niente reset tipografici / tema WP / chrome Gravity Forms.
 */

/* --- Label scelte radio (testo + punteggio nascosto) --- */

.answer {
    color: #676767 !important;
    /* Niente larghezze fisse legacy: spezzavano label + icona tooltip su due righe */
    /*width: auto !important;*/
    /*max-width: 100% !important;*/
}

.value {
    display: none !important;
}

/* --- Versioni documento --- */

.version-separator h4 {
    font-size: 14px !important;
    font-weight: normal !important;
    line-height: 18px !important;
}

.versions {
    width: 30% !important;
}

/* --- Liste progressive in HTML --- */

ol.pep {
    counter-reset: item;
    margin-left: 0.5em;
}

ol.pep li {
    display: block;
}

ol.pep li::before {
    content: counters(item, ".") ". ";
    counter-increment: item;
    font-weight: bold;
}

/* --- Box colore (contenuto HTML form) --- */

.green {
    background-color: #d6eee0;
    width: 100% !important;
    padding: 20px 15px;
}

.yellow {
    background-color: #ffff81;
    width: 100% !important;
    padding: 20px 15px;
}

.orange {
    background-color: #ffda69;
    width: 100% !important;
    padding: 20px 15px;
}

.red {
    background-color: #ff5959;
    width: 100% !important;
    padding: 20px 15px;
}

.blue,
#blue {
    background-color: #ddebf7;
    width: 100% !important;
    padding: 20px 15px;
}

.blue2 {
    width: 100% !important;
}

.grey {
    background-color: #eaeaea;
    width: 100% !important;
    padding: 20px 15px;
}

.warning {
    background-color: white;
    width: 100% !important;
    border-style: solid;
    border-color: red;
    padding: 20px 15px;
}

/* --- Banner risultato rischio --- */

.green_res,
.yellow_res,
.orange_res,
.red_res {
    text-align: center;
    width: 100% !important;
    position: relative;
    margin-top: 0 !important;
    font-size: 20px !important;
    font-weight: bold !important;
    padding: 10px !important;
}

.green_res {
    background-color: #d6eee0;
}

.yellow_res {
    background-color: #ffff81;
}

.orange_res {
    background-color: #ffda69;
}

.red_res {
    background-color: #ff5959;
}

/* --- Tabella scala rischio (.tg) --- */

.tg {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border-color: grey !important;
    font-size: 12px;
}

.tg td,
.tg th {
    padding: 5px;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    word-break: normal;
    border-color: lightgrey !important;
}

.tg th {
    font-weight: normal;
}

.tg .tg-to7w,
.tg .tg-wzsw {
    background-color: #d6eee0;
    color: #000;
    /*border-color: black !important;*/
    text-align: center;
    vertical-align: top;
}

.tg .tg-silf {
    background-color: #ffda69;
    color: #000;
    /*border-color: black !important;*/
    text-align: center;
    vertical-align: top;
}

.tg .tg-fymr {
    font-weight: bold;
    color: #000;
    /*border-color: black !important;*/
    text-align: center !important;
    vertical-align: top;
}

.tg .tg-v4tg {
    background-color: #ffff81;
    color: #000;
    /*border-color: black !important;*/
    text-align: center;
    vertical-align: top;
}

.tg .tg-eo45,
.tg .tg-u2kd {
    background-color: #ff5959;
    color: #000;
    /*border-color: black !important;*/
    text-align: center;
    vertical-align: top;
}

/* --- Tabella riepilogo (.riep) --- */

.riep {
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: #ddebf7;
    border: 1px solid grey !important;
}

.riep-fymr,
.riep-tot {
    font-size: 15px;
    font-weight: bold;
}

.riep th {
    color: white !important;
    background-color: #2f75b5 !important;
    padding: 5px 15px;
    font-size: 14px;
    text-align: left;
}

.riep tr {
    border-top: 1px solid lightgrey !important;
}

.riep td {
    padding: 2px 10px;
}

.riep .riep-result {
    background-color: #ffffcc !important;
    text-align: center;
}

.riep-tot td {
    font-weight: bold;
    background-color: white !important;
}

.riep-tot td.riep-result {
    font-weight: normal;
    text-align: center;
    font-size: 12px;
}

.riep-tot .riep-line {
    font-size: 14px;
}

.riep-tot .riep-eo45 {
    background-color: #ffffcc !important;
    text-align: center;
}

/* --- Popup / tooltip in HTML form --- */

.popup,
.popup2,
.tooltip {
    position: relative;
    display: inline !important;
    cursor: pointer;
    user-select: none;
    float: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    margin-right: 0 !important;
}

.tooltip {
    border-bottom: dotted;
}

.popup .popuptext,
.popup2 .popuptext2 {
    background-color: white;
    color: black;
    z-index: 99999;
    box-shadow: 0 0 50px #999;
    max-height: 400px;
    overflow-y: scroll;
    font-weight: normal;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    width: 80%;
}

.popup .popuptext {
    visibility: hidden;
}

.popup2 .popuptext2 {
    visibility: visible;
}

.popup .show {
    visibility: visible;
    animation: fadeIn 1s;
}

.popuptitle {
    float: left;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #466a90;
    color: white;
    font-weight: bold;
    width: 100% !important;
}

.popupcontent {
    padding: 10px 20px 20px;
    float: left;
}

.popupcontent br {
    display: block !important;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: white;
    color: black;
    position: absolute;
    left: 20% !important;
    z-index: 1;
    padding: 20px;
    box-shadow: 0 0 50px #999;
    width: 500px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    animation: fadeIn 1s;
}

.tooltip-title {
    color: white !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

div[data-type=html] ul {
    margin-left: 20px;
    list-style: initial;
}

.domanda li{
    list-style: none;
}