﻿
#FlexCalc fieldset .row {
    margin: 0 0 12px 0;
}

#FlexCalc fieldset label {
    color: #0688ba;
}

#FlexCalc input {
    border-radius: 10px;
}

#FlexCalc select {
    -webkit-appearance: listbox;
}
    #FlexCalc input:focus,
    #FlexCalc select:focus {
        border: solid 1px #eecc00;
    }

#FlexCalc .standardButton {
    padding: 11px 10px;
}

#FlexCalc #btnCalc.inactive {
    background-color: #aaaaaa;
}

#FlexCalc #Actions {
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
}

    #FlexCalc #Actions span {
        width: 100%;
    }
    #FlexCalc #Actions span:first-of-type {
       margin-right: 5px;
    }
        #FlexCalc #Actions span:last-of-type {
            margin-left: 5px;
        }

#FlexCalc .row .labels {
    display: flex;
    justify-content: space-between;
}
    #FlexCalc .row .labels label {
        width: calc(50% - 5px);
    }

    #FlexCalc #Items .item {
        margin: 0 0 5px 0;
        display: flex;
        position: relative;
    }
    #FlexCalc #Items .item > select {
        margin-right: 5px;
    }
    #FlexCalc #Items .item > input[type=text] {
        margin-left: 5px;
    }
    #FlexCalc #Items .item .remove {
        width: 16px;
        height: 16px;
        text-align: center;
        display: inline-block;
        cursor: pointer;
        position: absolute;
        top: 11px;
        right: 6px;
        background-color: #cccccc;
        border-radius: 50%;
    }

        #FlexCalc #Items .item .remove:before,
        #FlexCalc #Items .item .remove:after {
            position: absolute;
            content: '';
            width: 50%;
            height: 2px;
            left: 50%;
            top: 50%;
            background-color: #ffffff;
        }

        #FlexCalc #Items .item .remove:before {
            transform: translateX(-50%) translateY(-50%) rotate(45deg);
        }

        #FlexCalc #Items .item .remove:after {
            transform: translateX(-50%) translateY(-50%) rotate(-45deg);
        }

#FlexCalc #ResultsPanel {
    margin: 0;
    padding: 0;
    color: #666666;
}

    #FlexCalc #ResultsPanel.error,
    #FlexCalc #ResultsPanel.busy {
        margin: 0 0 20px 0;
        padding: 20px;
        color: #ffffff;
        text-align: center;
        border-radius: 10px;
    }
        #FlexCalc #ResultsPanel.error {
            width: 100%;
            padding: 20px;
            display: block;
            text-align: center;
        }
            #FlexCalc #ResultsPanel.error .result {
                margin: 0 !important;
                padding: 0 !important;
                display: block;
            }
            #FlexCalc #ResultsPanel.busy:before {
                content: " ";
                display: inline-block;
                width: 30px;
                height: 30px;
                margin: 8px auto;
                border-radius: 50%;
                border: 6px solid #fff;
                border-color: #2f4260 transparent #2f4260 transparent;
                animation: lds-dual-ring 1.2s linear infinite;
            }

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#FlexCalc #ResultsPanel .head,
#FlexCalc #QuoteGenControls .head {
    display: block;
    text-align: left;
    border-bottom: solid 1px #2f4260;
}

    #FlexCalc #ResultsPanel .head span,
    #FlexCalc #QuoteGenControls .head span{
        width: calc(50% - 5px);
        padding: 5px 10px;
        display: inline-block;
        color: #ffffff;
        background-color: #2f4260;
        border-radius: 8px 8px 0 0;
    }

#FlexCalc #ResultsPanel .head.spaceTop {
    margin-top: 10px;
}

#FlexCalc #ResultsPanel .result {
    padding: 10px 2px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

    #FlexCalc #ResultsPanel .result .note {
        width: 100%;
        padding: 2px 0;
        display: block;
        color: #398EB7;
        text-align: left;
    }

    #FlexCalc #ResultsPanel .result.last {
        margin-bottom: 10px;
        border: none;
    }
    #FlexCalc #ResultsPanel .result:first-of-type {
        padding-top: 15px;
    }

    #FlexCalc #ResultsPanel .result:last-of-type {
        padding-bottom: 15px;
    }

    #FlexCalc #ResultsPanel .result span:first-of-type {
        text-align: right;
    }


#FlexCalc #QuoteGenControls {
    margin: 0;
    padding: 0;
    background: none;
}
    #FlexCalc #QuoteGenControls .row {
        margin: 10px 0;
    }
    #FlexCalc #QuoteGenControls .row.group {
        display: flex;
        align-content: center;
        justify-content: space-between;
    }

    #FlexCalc #QuoteGenControls > div:not(.head) {
        margin: 5px 0;
        position: relative;
        text-align: left;
    }
        #FlexCalc #QuoteGenControls > div:not(.head) > span {
            padding: 2px 0 5px 2px;
            display: inline-block;
            color: #0688ba;
        }

    #FlexCalc #QuoteGenControls .row.group > div {
        width: calc(50% - 5px);
    }
    #FlexCalc #QuoteGenControls input:disabled {
        color: #999999;
        background-color: #efefef;
    }

    #FlexCalc #QuoteGenControls a {
        margin: 5px 0 20px 0;
        display: block;
        color: #ffffff;
        background-color: #398EB7;
    }
    #FlexCalc #QuoteGenControls.generating a {
        background-color: #999999;
    }

#FlexCalc .error {
    margin: 20px 0;
    padding: 20px;
    font-size: 14px;
}
