#calculator {
    margin: 20px 0px;
}

#calculator input[type="text"] {
    width: 100%!important;
    padding-left: 5px!important;
    padding-right: 5px!important;
    background-color: #f7f7f7;
    color: #386c85;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid #8e8e93;
}
#calculator input[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 100%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
}

#calculator input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

#calculator input[type=range]:focus {
    outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

#calculator input[type=range]::-ms-track {
    width: 100%;
    cursor: pointer;

    /* Hides the slider so custom styles can be added */
    background: transparent; 
    border-color: transparent;
    color: transparent;
}

#calculator input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: 2px solid #8e8e93;
    height: 42px;
    width: 42px;
    border-radius: 0px;
    background-image: url(../images/range-min.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
    margin-top: -14px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

    /* All the same stuff for Firefox */
#calculator input[type=range]::-moz-range-thumb {
    border: 2px solid #8e8e93;
    height: 42px;
    width: 42px;
    border-radius: 0px;
    background-image: url(../images/range-min.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
}

    /* All the same stuff for IE */
#calculator input[type=range]::-ms-thumb {
    border: 1px solid #8e8e93;
    height: 42px;
    width: 42px;
    border-radius: 0px;
    background-image: url(../images/range-min.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
}

#calculator input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 18px;
    cursor: pointer;
    background: #dde6e1;
}

#calculator input[type=range]:focus::-webkit-slider-runnable-track {
    background: #dde6e1;
}

#calculator input[type=range]::-moz-range-track {
    width: 100%;
    height: 18px;
    cursor: pointer;
    background: #dde6e1;
}

#calculator input[type=range]::-ms-track {
    width: 100%;
    height: 18px;
    cursor: pointer;
    background: #36c2b2;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}
#calculator input[type=range]::-ms-fill-lower {
    background: #36c2b2;
}
#calculator input[type=range]:focus::-ms-fill-lower {
    background: #36c2b2;
}
#calculator input[type=range]::-ms-fill-upper {
    background: #36c2b2;
}
#calculator input[type=range]:focus::-ms-fill-upper {
    background: #dde6e1;
}

#calculator .calculator-range {
    padding-top: 15px;
}

#calculator .calculator-title {
    margin-bottom: 10px;
    font-size: 14px;
}

#calculator .zelene-bg {
    background-color: #dde6e1;
    padding-top: 20px;
    padding-bottom: 20px;
}

#calculator .orange-bg {
    border-top: 1px solid #fff;
    background-color: #fcb316;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 10px;
}

#total-costs, #total-operation {
    color: #386c85;
    font-size: 30px;
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
}

#total {
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    white-space: nowrap;
}

#calculator sup {
    font-size: 40px;
}

.mb-2 {
    margin-bottom: 20px;
}

.orange-bg img {
    max-height: 60px;
}

#calculator strong {
    text-transform: uppercase;
}

@media (max-width: 960px) {
    #calculator td:first-child {
        display: table-cell!important;
        width: 65%!important;
        text-align: left;
    }

    #calculator td:last-child {
        display: table-cell!important;
        width: 35%!important;
        text-align: right;
        vertical-align: bottom;
    }

    #calculator .zelene-bg {
        margin-left: 2px;
        margin-right: 2px;
        padding-left: 5px;
        padding-right: 5px;
    }
    #calculator .orange-bg {
        margin-left: 2px;
        margin-right: 2px;
        padding-left: 5px;
        padding-right: 5px;
    }

    #total-costs, #total-operation {
        font-size: 22px;
    }
}
/* Exact values with no matching Bootstrap 4.6 utility (BS4.6 has no font-size utilities at
   all, and width utilities only go in 25% steps). Extracted from panels/calculator.php inline
   styles (2026-09-05, shared by generic_page.php's 222 pages + operacia-oci-new.php). */
.w-65pct {
	width: 65%;
}
.fs-14px {
	font-size: 14px;
}
.fs-18px {
	font-size: 18px;
}
