/*
 * Rehub.com Calculators
 *
 * @package           rehub-calculators
 * @author            rehub.com
 * @copyright         2024 rehub.com
 * @license           GPL-3.0-or-later
 *
 **/

 /* Default Colors */
 :root {
    --reh-calc-panel-heading-background-color: #3b5a93; /* Corn flower blue - 3 shades darker */
    --reh-calc-panel-heading-background-gradient-start-color: #3b5a93; /* Corn flower blue - 3 shades darker */
    --reh-calc-panel-heading-background-gradient-end-color: #5681ce; /* Corn flower blue - 1 shade darker */
    --reh-calc-panel-heading-font-color: white;
    --reh-calc-results-column-background-color: #3b5a93; /* Corn flower blue - 3 shades darker */
    --reh-calc-results-column-background-gradient-start-color: #3b5a93; /* Corn flower blue - 3 shades darker */
    --reh-calc-results-column-background-gradient-end-color: #5681ce; /* Corn flower blue - 1 shade darker*/
    --reh-calc-results-column-font-color: white;
    --reh-calc-submit-button-background-color: #3b5a93; /* Corn flower blue - 3 shades darker */
    --reh-calc-submit-button-background-gradient-start-color: #3b5a93; /* Corn flower blue - 3 shades darker */
    --reh-calc-submit-button-background-gradient-end-color: #5681ce; /* Corn flower blue - 1 shade darker*/
    --reh-calc-submit-button-font-color: white;
/*
    --reh-calc-chart-color-1: #136589;
    --reh-calc-chart-color-2: #2480a7;
    --reh-calc-chart-color-3: #339cc4;
    --reh-calc-chart-color-4: #42b9e1;
    --reh-calc-chart-color-5: #52d7ff;
*/
    --reh-calc-chart-color-1: #6495ed;
    --reh-calc-chart-color-2: #82abf2;
    --reh-calc-chart-color-3: #a1c0f7;
    --reh-calc-chart-color-4: #c0d5fa;
    --reh-calc-chart-color-5: #dfeafd;
}

body {
    padding: 10px;
}
div.reh-calc-form .reh-calc-chart-color-1 span {
    background-color: var(--reh-calc-chart-color-1);
}
div.reh-calc-form .reh-calc-chart-color-2 span {
    background-color: var(--reh-calc-chart-color-2);
}
div.reh-calc-form .reh-calc-chart-color-3 span {
    background-color: var(--reh-calc-chart-color-3);
}
div.reh-calc-form .reh-calc-chart-color-4 span {
    background-color: var(--reh-calc-chart-color-4);
}
div.reh-calc-form .reh-calc-chart-color-5 span {
    background-color: var(--reh-calc-chart-color-5);
}

div.reh-calc-form {
    max-width: 1000px;
    margin: 0 auto;
}
div.reh-calc-builder {
    width: 100%;
}
div.reh-calc-heading {
    margin: 10px auto 30px auto;
    text-align: center;
}
div.reh-calc .reh-calc-title {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}
div.reh-calc .reh-calc-copyright {
    font-size: 75%;
}
div.reh-calc.reh-calc-hide-copyright .reh-calc-copyright {
    font-size: 0.1px;
}
div.reh-calc-form .card-header {
    padding: 10px 15px;
}
div.reh-calc-form .card-body {
    padding: 0 10px;
}
div.reh-calc-form .input-group .form-control,
div.reh-calc-form .input-group .input-group-prepend,
div.reh-calc-form .input-group .input-group-append {
    height: 30px;
}
div.reh-calc-form .reh-calc-chart-color-1.formio-component-columns.reh-calc-wrapper>div {
    min-width: 320px;
}
div.reh-calc-form div.formio-component-panel div.formio-component-columns>div {
    min-width: 160px;
}
div.reh-calc-form div.formio-component-columns.reh-calc-wrapper>div:nth-child(2) {
    background-color: var(--reh-calc-results-column-background-color);
    background-image: linear-gradient(var(--reh-calc-results-column-background-gradient-start-color),var(--reh-calc-results-column-background-gradient-end-color));
    color: var(--reh-calc-results-column-font-color);
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 15px;
    border-radius: 5px;
}
div.reh-calc-form div.reh-calc-results {
    width: 100%;
    max-width: 100%;
    text-align: center;
}
/*
div.reh-calc-results,
*/
div.reh-calc-form div.reh-calc-results h1,
div.reh-calc-form div.reh-calc-results h2,
div.reh-calc-form div.reh-calc-results h3,
div.reh-calc-form div.reh-calc-results h4 {
    margin-top: 20px;
    color: white;
}
div.reh-calc-form table.reh-calc-results {
    margin: 0 auto;
    border: 0;
}
div.reh-calc-form div.reh-calc-hidden-if-zero,
div.reh-calc-form table.reh-calc-results tr.reh-calc-hidden-if-zero {
    display: none;
}
div.reh-calc-form table.reh-calc-results td.reh-calc-chart-color span {
    width: 8px;
    display: block;
    margin-right: 5px;
}
div.reh-calc-form table.reh-calc-results td {
    text-align: left;
    padding: 1px;
    border: 0;
}
div.reh-calc-form table.reh-calc-results td.reh-calc-results-amount {
    padding-left: 20px;
    text-align: right;
}
div.reh-calc-form div.formio-component-panel div.card-header {
    background-color: var(--reh-calc-panel-heading-background-color);
    background-image: linear-gradient(var(--reh-calc-panel-heading-background-gradient-start-color),var(--reh-calc-panel-heading-background-gradient-end-color));
    color: var(--reh-calc-panel-heading-font-color);
}
div.reh-calc-form div.formio-component-panel div.card-header span {
    width: 100%;
    color: white;
}
div.reh-calc-form div.formio-component-panel div.card-header span i::before {
    color: white;
}
div.reh-calc-form div.reh-calc-action div.reh-calc-email>div[ref="element"] {
    display: flex;
}
div.reh-calc-form div.reh-calc-action button.reh-calc-submit {
    background-color: var(--reh-calc-submit-button-background-color);
    background-image: linear-gradient(var(--reh-calc-submit-button-background-gradient-start-color),var(--reh-calc-submit-button-background-gradient-end-color));
    color: var(--reh-calc-submit-button-font-color);
    width: 12em;
}
div.reh-calc-form div.reh-calc-action div.reh-calc-submit {
    display: none;
}

div.reh-calc-debug-only {
    display: none;
}
body.reh-calc-debug-on div.reh-calc-debug-only {
    display: block;
}
