/* ==========================================================================
   BARRA RISCHIO RESIDUO (MODALE)
   ========================================================================== */
.rischio-bar-wrap {
    width: 100%;
}

.rischio-bar {
    position: relative;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(
        to right,
        #4CAF50 0%,
        #FBC02D 50%,
        #E53935 100%
    );
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.rischio-indicatore {
    position: absolute;
    top: 0;
    width: 5px;
    height: 100%;
    background: #000;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 3;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.rischio-scale {
    position: relative;
    height: 22px;
    margin-top: 6px;
}

.rischio-scale span {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    z-index: 1;
    white-space: nowrap;
}

.rischio-scale span:nth-child(1) { left: 0%; }
.rischio-scale span:nth-child(2) { left: 25%; }
.rischio-scale span:nth-child(3) { left: 50%; }
.rischio-scale span:nth-child(4) { left: 75%; }
.rischio-scale span:nth-child(5) { left: 100%; }

.rischio-scale span.active {
    color: #000;
    font-weight: 700;
    background: #f1f3f5;
    border-radius: 4px;
    padding: 1px 5px;
    border: 1px solid #ced4da;
}

/* ==========================================================================
   PIANO DI MIGLIORAMENTO (PDM PROGRESS BAR)
   ========================================================================== */
.pdm-bar-wrapper {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdm-bar-bg {
    width: 70px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.pdm-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .3s;
}

.pdm-bar-label {
    font-size: 11px;
    font-weight: 600;
    color: #444;
}
