/* Frolight calculator - accents use the website theme colour (--fc-primary, set by the script) */

.fc-root {
    --fc-primary: #2d6a4f;
}

.o_frolight_calculator_page .fc-intro .lead {
    max-width: 60rem;
}

.fc-root .fc-card {
    border-radius: 0.75rem;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fc-root .fc-card > .card-header {
    background: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.fc-root .fc-plot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--fc-primary);
    color: #fff;
    font-weight: 600;
}

.fc-root .fc-plot-name {
    max-width: 22rem;
    font-weight: 600;
}

.fc-root .fc-block-actions {
    display: flex;
    align-items: flex-end;
}

@media (min-width: 768px) {
    /* align the remove button with the inputs of the first line (which has labels) */
    .fc-root .fc-block-actions.fc-first {
        padding-top: 2rem;
    }
    .fc-root .fc-block-actions {
        justify-content: flex-end;
    }
}

.fc-root .fc-remove-block {
    line-height: 1;
    padding: 0.45rem 0.7rem;
}

/* Buttons with fixed colours: they don't use the theme's "secondary" colour, which can be white.
   Odoo compiles Bootstrap without prefix (--btn-*); --bs-btn-* for standard Bootstrap. */
.fc-root .btn.fc-download {
    --btn-color: #1A3927;
    --btn-bg: #FFFFFF;
    --btn-border-color: #1A3927;
    --btn-hover-color: #FFFFFF;
    --btn-hover-bg: #1A3927;
    --btn-hover-border-color: #1A3927;
    --btn-focus-shadow-rgb: 26, 57, 39;
    --btn-active-color: #FFFFFF;
    --btn-active-bg: #10251A;
    --btn-active-border-color: #10251A;
    --btn-disabled-color: #1A3927;
    --btn-disabled-bg: #FFFFFF;
    --btn-disabled-border-color: #1A3927;
    --bs-btn-color: #1A3927;
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #1A3927;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #1A3927;
    --bs-btn-hover-border-color: #1A3927;
    --bs-btn-focus-shadow-rgb: 26, 57, 39;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: #10251A;
    --bs-btn-active-border-color: #10251A;
    --bs-btn-disabled-color: #1A3927;
    --bs-btn-disabled-bg: #FFFFFF;
    --bs-btn-disabled-border-color: #1A3927;
}

.fc-root .btn.fc-remove-block {
    --btn-color: #4A5A52;
    --btn-bg: #FFFFFF;
    --btn-border-color: #AEBAB3;
    --btn-hover-color: #FFFFFF;
    --btn-hover-bg: #4A5A52;
    --btn-hover-border-color: #4A5A52;
    --btn-focus-shadow-rgb: 74, 90, 82;
    --btn-active-color: #FFFFFF;
    --btn-active-bg: #34413A;
    --btn-active-border-color: #34413A;
    --btn-disabled-color: #4A5A52;
    --btn-disabled-bg: #FFFFFF;
    --btn-disabled-border-color: #AEBAB3;
    --bs-btn-color: #4A5A52;
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #AEBAB3;
    --bs-btn-hover-color: #FFFFFF;
    --bs-btn-hover-bg: #4A5A52;
    --bs-btn-hover-border-color: #4A5A52;
    --bs-btn-focus-shadow-rgb: 74, 90, 82;
    --bs-btn-active-color: #FFFFFF;
    --bs-btn-active-bg: #34413A;
    --bs-btn-active-border-color: #34413A;
    --bs-btn-disabled-color: #4A5A52;
    --bs-btn-disabled-bg: #FFFFFF;
    --bs-btn-disabled-border-color: #AEBAB3;
}

.fc-root .fc-summary .fc-tile {
    height: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.035);
    background: color-mix(in srgb, var(--fc-primary) 9%, transparent);
}

.fc-root .fc-tile-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.fc-root .fc-tile-label {
    font-size: 0.85rem;
    opacity: 0.75;
}

.fc-root .fc-table td,
.fc-root .fc-table th,
.fc-root .fc-power td,
.fc-root .fc-schema td {
    font-variant-numeric: tabular-nums;
}

.fc-root .fc-table .fc-cat th {
    padding-top: 0.9rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
    border-bottom-width: 0;
}

.fc-root .fc-table .fc-code {
    font-family: var(--bs-font-monospace, monospace);
    font-size: 0.85rem;
}

.fc-root .fc-line-na td {
    opacity: 0.7;
}

.fc-root .fc-on-request {
    color: #1A3927;
    background-color: #E8EFEA;
    border: 1px solid #C4D1C9;
    font-weight: 500;
}

.fc-root .fc-details > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.35rem 0;
}

.fc-root .fc-schema .fc-cu-first td,
.fc-root .fc-schema .fc-cu-first th {
    border-top-width: 2px;
}

.fc-root .fc-tree,
.fc-root .fc-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 1.25rem;
}

.fc-root .fc-tree {
    padding-left: 0;
}

.fc-root .fc-tree li {
    position: relative;
    padding: 0.15rem 0 0.15rem 0.9rem;
}

.fc-root .fc-tree ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
}

.fc-root .fc-tree ul {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    margin-left: 0.3rem;
}

.fc-root .fc-node {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.fc-root .fc-node-powerSource {
    background: rgba(0, 0, 0, 0.08);
    background: color-mix(in srgb, var(--fc-primary) 18%, transparent);
    font-weight: 600;
}

.fc-root .fc-node-controlUnit {
    background: rgba(0, 0, 0, 0.05);
    background: color-mix(in srgb, var(--fc-primary) 9%, transparent);
}

.fc-root .fc-thanks h3 {
    color: var(--fc-primary);
}

/* honeypot field for bots, invisible for visitors */
.fc-root .fc-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Optional return on investment assumptions (used in the PDF) */
.fc-root .fc-roi {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
}

.fc-root .fc-roi > summary,
.fc-root .fc-roi-advanced > summary {
    cursor: pointer;
    color: var(--fc-primary);
    font-weight: 600;
}

.fc-root .fc-roi-advanced > summary {
    font-size: 0.9rem;
}

.fc-root .fc-roi .input-group-text {
    font-size: 0.8rem;
    white-space: nowrap;
}
