/* =============================================
   OIRELASKURI — TYYLIT
   Perustuu syy-seuraus laskurin tyyleihin
   Brändiväri: #579D1C
   ============================================= */

/* --- Perusasettelu --- 
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}
    */

/* --- Oirelaskurin ohjeet --- */
.piste-ohje {
    text-align: center;
    background: #f0f7e8;
    border: 1px solid #c5ddb0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.piste-ohje__otsikko {
    font-size: 15px;
    font-weight: bold;
    color: #3B6D11;
    margin-bottom: 10px;
}

.piste-ohje__lista {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.piste-ohje__lista li {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 8px;
}

.piste-ohje__lista li:last-child {
    margin-bottom: 0;
}

.piste-ohje__arvo {
    font-weight: bold;
    color: #333;
}

/* --- Lomake (yhteinen luokka) --- */
.lupausForms {
    text-align: center;
    border: 2px solid #579D1C;
    padding: 20px;
    margin: 10px 0;
    background-color: #fff;
    border-radius: 6px;
}

/* --- Napit --- */
.lupausButtons {
    width: 160px;
    background-color: #579D1C;
    font-size: 16px;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.lupausButtons:hover {
    background-color: #3B6D11;
}

.lupausButtons--toissijainen {
    background-color: #fff;
    color: #579D1C;
    border: 2px solid #579D1C;
}

.lupausButtons--toissijainen:hover {
    background-color: #f0f7e8;
}

/* --- Input-kentät --- */
.lupausInputs {
    outline: 1px solid #579D1C;
    margin: 5px;
    text-align: center;
    border-radius: 4px;
    padding: 4px;
}

/* --- Liukusäätimet --- */
.lupausSliders {
    appearance: none;
    width: 33%;
    background: whitesmoke;
    outline: none;
    flex: 1;
}

.lupausErrors {
    color: red;
    margin: 5px;
}

/* --- Slider-kontti --- */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 8px 0;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.slider-container:hover {
    background-color: #f0f7e8;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.slider-text {
    flex: 1;
    text-align: left;
    font-size: 15px;
    color: #333;
}

/* --- Liukusäätimen raita --- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #aaa;
    outline: none;
    width: 120px;
    height: 4px;
    border-radius: 3px;
    
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 35% 35%, #8BC34A, #579D1C);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #61a42b;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #579D1C;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* --- Tulokset --- */
.reasons-points {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
}

.reason-item {
    margin: 8px 0;
    font-size: 15px;
}

.reason-item a {
    color: #333;
    text-decoration: none;
}

.reason-item a:hover {
    color: #579D1C;
    text-decoration: underline;
}

.points-item {
    margin: 8px 0;
    font-size: 15px;
    color: #555;
}

.section-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #579D1C;
}

.text-field {
    text-align: left;
    margin: 16px 0;
    font-size: 14px;
    color: #555;
}

.tulos-rivi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 6px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.15s;
}

.tulos-rivi:hover {
    background-color: #f0f7e8;
    border-color: #579D1C;
}

.tulos-vasen {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tulos-piste {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.piste-syy { background-color: #E24B4A; }

.tulos-nimi {
    font-size: 15px;
}

.tulos-oikea {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tulos-prosentti {
    font-size: 15px;
    font-weight: bold;
    min-width: 42px;
    text-align: right;
}

.tulos-palkki-tausta {
    width: 80px;
    height: 6px;
    background-color: #aaa;
    border-radius: 3px;
    overflow: hidden;
}

.tulos-palkki {
    height: 100%;
    border-radius: 3px;
}

.palkki-syy { background-color: #E24B4A; }

.tulos-nuoli {
    font-size: 14px;
    color: #579D1C;
}

/* --- Tulostus --- */
.print-logo {
    display: none;
}

@media print {
    .print-logo {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        margin: 10px;
        width: 140px;
        height: auto;
    }
}

/* --- Mobiili --- */
@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .lupausButtons {
        width: 140px;
        font-size: 14px;
    }

    .slider-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .slider-wrapper {
        width: 100%;
        justify-content: flex-end;
    }

    input[type="range"] {
        width: 80px;
    }

    .reasons-points {
        flex-direction: column;
        gap: 10px;
    }
}