﻿:root {
    /* Backgrounds */
    --flex-stone-grey: #C8C8B7;
    --flex-stone-grey-40: #E9E9E2;
    --flex-steel-blue: #8296D1;
    --flex-steel-blue-40: #CDD5ED;
    --flex-barn-red: #EB5D44;
    --flex-barn-red-40: #EB5D4466;
    --flex-hay-yellow: #FACA6C;
    --flex-hay-yellow-40: #FACA6C66;
    --bg-secondary: #4A4A4A;
    --bg-primary: #f0f0f0;
    --bg-tertiary: #391358;
    --bg-widget: #FFFFFF;
    --text-btn-primary: #ffffff;
    --left-nav-width: 6rem;
    --phase1-light: #c4e1fc;
    --phase1-dark: #347ef2;
    --phase2-light: #d2f8e1;
    --phase2-dark: #4bde97;
    --phase3-light: #fee5fd;
    --phase3-dark: #f85af2;
    /* Designations */
    --designation-import: var(--flex-barn-red-40);
    --designation-export: var(--flex-hay-yellow);
    --designation-gen: var(--flex-barn-red);
    --designation-load: var(--flex-hay-yellow-40);
    /* Designations (Light) */
    --desig-import-light: var(--flex-barn-red-40);
    --desig-export-light: rgba(176, 212, 252, 1);
    --desig-gen-light: rgba(144, 75, 210, 1);
    --desig-load-light: rgba(9, 120, 246, 1);
    /* Filter */
    --filter-bg: rgba(9, 120, 246, 1);
    --filter-text: #333;
    --filter-text-alt: #ffffff;
    /* Charts */
    --chart-divider: #EAEAEA;
    /* Pills */
    --pill-bg: #0978F6;
    --pill-text: var(--bg-tertiary);
}

html, body {
    margin,padding:0;
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0;
    height: 100%;
}

@media (min-width:1024px) {
    header {
        background-color: white;
        padding: 17px;
    }
}

header .site-logo {
    max-height: 30px;
}

body > .container-xxl {
    padding: 0;
    position: relative;
    background-color: var(--flex-stone-grey);
    min-height: 100vh;
    max-width: 2200px;
}

/* Colours */
.flex-steel-blue {
    background-color: var(--flex-steel-blue);
}

.flex-steel-blue-40 {
    background-color: var(--flex-steel-blue-40);
}

.flex-barn-red {
    background-color: var(--flex-barn-red);
}

.flex-stone-grey-40 {
    background-color: var(--flex-stone-grey-40);
}

.bg-white {
    background-color: white;
}

/* Typography */
h1 {
    font-size: 25px;
    font-weight: 600;
}

h2 {
    font-size: 18px;
    font-weight: 600;
}

h3 {
    font-size: 14px;
    font-weight: 600;
}

.big-stat {
    font-size: 36px;
    font-weight: 800;
}

    .big-stat sub {
        font-size: 27px;
        font-weight: 700;
    }

.canvas-text {
    font-size: 12px;
}

sub {
    bottom: 0;
}

.canvas-heavy {
    font-size: 16px;
    font-weight: 600;
}

.stats {
    color: black;
}

    .stats.secondary > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        color: white;
    }

    .stats.secondary .inner {
        margin-top: 1rem;
        margin-bottom: 1rem;
        background-color: black;
        padding: 1rem;
    }

.cards-wrapper {
    width: 100%;
    background-color: var(--flex-stone-grey);
}

@media (max-width:1260px) {
    .cards-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.cards {
    display: flex;
    margin: 0;
    flex: 1;
    padding: 0rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

    .cards .card {
        padding: 0;
        min-width: 100px;
        text-align: center;
        border-radius: 0;
    }

    .cards.secondary .card {
        background-color: black !important;
        color: white !important;
        align-items: center; /* vertical center */
        justify-content: space-between; /* horizontal layout */
    }

.card .widget {
    padding: 0.1rem;
}

.cards > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
}

a {
    text-decoration: none;
    color: black;
}

/* Heading Strip - dark */
.heading {
    padding: 20px;
    padding-left: 1rem;
}

    .heading .product-badge {
        padding: 0.3rem;
        background-color: rgba(255,255,255,0.8);
    }

        .heading .product-badge img {
            max-height: 20px;
        }

@media (max-width:1024px) {
    .heading .product-badge {
        margin-top: -10rem;
    }
}

.heading h1 i {
}

.heading.dark {
    background-color: black;
    color: white;
}

.header-block {
    font-size: 12px;
    font-weight: 300;
    float: right;
    background-color: rgba(0,0,0,1);
    color: white;
    height: 70px;
    position: absolute;
    right: 0;
}

    .header-block.small {
        width: 70px;
        top: 121px;
        text-align: center;
        padding-top: 10px;
    }


@media (max-width:1024px) {
}

.header-block.small img {
    max-width: 35px;
}

.header-block.large {
    width: 140px;
    top: 190px;
    padding: 20px;
    padding-top: 10px;
    text-align: right;
    font-size: 16px;
}

/* Header hero image */
body.energy .container-xxl {
    background-image: url('/img/portal-images-1294x400-man-on-beach.jpg');
    background-size: 103%;
}

@media (max-width:1023px) {
    body.energy .container-xxl {
        background-size: 140%;
        background-position-x: -200px;
    }
}

@media (max-width:767px) {
    body.energy .container-xxl {
        background-size: 202%;
        background-position-x: -225px;
    }
}

body.forestlodge .container-xxl {
    background-image: url('/img/fl-hero img.png');
    --bs-gutter-x: 0;
    background-repeat: no-repeat;
    background-size: contain;
}

body main {
    margin-top: 4rem;
    background-color: var(--flex-stone-grey);
}

body.energy main {
    margin-top: 16rem;
    background-color: var(--flex-stone-grey);
}

body.forestlodge main {
    margin-top: 12rem;
    background-color: var(--flex-stone-grey);
}

main {
    width: 100%;
    margin-top: 10rem;
}

@media (max-width:1023px) {
    body.forestlodge .container-xxl {
        background-image: url('/img/fl-hero img.png');
        background-size: 200%;
        background-position-x:0;
    }

    body.forestlodge main {
        margin-top: 10rem;
    }
}

/* Desktop Nav */
@media (min-width:1024px) {
    .container-xxl {
        position: relative;
    }

    .ribbon i[class^="fa"] {
        font-size: 1.5rem;
        display: block;
    }

    .login-details {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
        margin-top: -3px;
    }

    header .dropdown button, header .dropdown a {
        background: none;
        border: none;
    }

        header .dropdown button:hover {
            background-color: white;
        }

        header .dropdown button:active {
            background-color: rgba(0,0,0,0.1) !important;
        }

    .header .btn.btn-secondary {
        color: black;
    }

    header {
        margin-right: 1rem;
        border-end-end-radius: 20px;
        height: 4rem;
        position: absolute;
        width: calc(100% - 1rem);
    }

        header .site-logo {
            border-right: 1px solid black;
            padding-right: 1rem;
            display: inline;
            margin-right: 1rem;
        }

    .forestlodge main {
        /*margin-left: var(--left-nav-width);*/
        margin-top: 16rem !important;
    }

    .container-xxl,
    body > .container-xxl {
        display: flex;
        min-height: 100vh;
    }

    .site-nav {
        width: var(--left-nav-width);
        background-color: #000;
        color: white;
        display: flex;
        padding-top: 4rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 1.3rem 0.5rem;
        color: white;
        text-decoration: none;
        font-size: 14px;
    }

        .site-nav a:hover {
            background-color: rgba(255,255,255,0.2);
        }

        .site-nav a i {
            font-size: 32px;
            display: block;
        }

    .site-nav .nav-item.active {
        background-color: var(--flex-stone-grey);
    }

        .site-nav .nav-item.active a {
            color: black;
        }

    .site-nav .nav-item:hover a {
        color: white;
    }

    .site-nav .nav-item.active:hover a {
        color: black;
    }

    .site-nav .navbar {
        height: 100%;
        height: 100%;
        align-items: start;
        padding: 0;
        width: 100%;
    }

    .site-nav .nav-item:last-child {
        margin-top: auto !important;
        margin-left: 0rem;
        border: 0px solid red;
        opacity: 1;
        overflow: visible;
        position: absolute;
        bottom: 7.5rem;
        left: 0;
        height: 3rem;
        text-align: center;
    }

        .site-nav .nav-item:last-child img {
            width: 2.5rem;
        }

    .site-nav .nav-item {
        width: 100%;
    }

    .site-nav header {
        display: none;
    }
}



/* Indicators */
.indicator,
.indicator {
    border: 1px solid rgba(234, 234, 234, 1);
    width: auto;
    background-color: var(--bg-widget);
}

    .indicator.small {
        padding: 1px 7px;
        color: var(--canvas-text);
        background-color: var(--bg-primary);
    }

    .indicator.info {
        background: #bf99f233;
        color: rgba(144, 75, 210, 1);
    }

    .indicator.product {
        background: #99f2c933;
        color: rgb(97, 210, 75);
    }

    .indicator.active {
        background-color: var(--flex-hay-yellow);
        color: var(--filter-text);
    }

.indicator {
    border-radius: 6px;
    display: block;
    padding: 1px 10px;
}

    .indicator a {
        font-weight: 800;
        color: var(--link-text);
    }

.indicator-status-good {
    background-color: rgba(237, 252, 244, 1);
}

.indicator-status-bad {
    background-color: rgba(254, 239, 236, 1);
}

/* Timeline - used for spot price widget */
.timeline {
    width: 300px;
    height: 19px;
    list-style: none;
    text-align: justify;
    margin: 0px auto;
    margin-top: 11px;
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,255,255,0)), color-stop(55%, rgba(255,255,255,0)), color-stop(60%, var(--bg-secondary)), color-stop(65%, rgba(255,255,255,0)), color-stop(100%, rgba(255,255,255,0)));
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 45%, var(--bg-secondary) 50%, rgba(255,255,65,0) 55%, rgba(255,255,255,0) 100%);
    padding-left: 0;
    margin-bottom: 1rem;
}

    .timeline:after {
        display: inline-block;
        content: "";
        width: 100%;
    }

    .timeline li {
        display: inline-block;
        width: 10px;
        height: 10px;
        background: var(--bg-secondary);
        text-align: center;
        line-height: 1.2;
        position: relative;
        border-radius: 50%;
        top: -3px;
    }

        .timeline li:after {
            display: inline-block;
            content: attr(data-value);
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -20px;
            font-size: 0.9rem;
            color: var(--text-big-stat);
            font-weight: 500;
        }

        .timeline li:before {
            display: inline-block;
            content: attr(data-text);
            position: absolute;
            font-size: 0.8rem;
            left: 50%;
            top: -30px;
            transform: translateX(-50%);
            transform: translate(-50%, 100%);
        }

@media (max-width:768px) {
    .timeline li:after {
        font-size: 1rem;
    }

    .timeline li:before {
        font-size: 0.8rem;
        top: -30px;
    }
}

.gauge-text {
    font-size: 3rem;
    font-weight: 800;
    fill: var(--canvas-heavy)
}

.summarytable h2 {
    display: none;
}

.section-header > div {
    background-color: black;
    width: 100%
}

.section-header h2 {
    color: white;
    margin-top: 0.5rem;
}

.border-right {
    border-right: 1px solid #d0d0d0;
}

/* Portfolio page */
.portfolio-product-logo {
    max-height: 18px;
}

.vendor-icon, .customer-icon {
    border-radius: 50%;
    min-width: 50px;
    width: 50px;
    height: 50px;
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 52px;
    float: left;
    margin-right: 1rem;
    background: black;
    font-weight: 800;
    min-width: 50px;
}

.statsrow .card {
    background-color: black;
    color: white;
    padding: 1rem;
    font-size: 12px;
}

.statsrow .big {
    font-size: 27px;
    display: block;
}

.filter-row .inner {
    border-bottom: 1px solid rgba(255,255,255,0.5);
}

/* Style other pages */
.page-container {
    margin-top: 2rem;
}

    .page-container .row {
        margin: 0;
        /*padding: 1rem;*/
    }

.top-stats-load {
    background-color: white;
}

.page-container .widget {
    display: inline-block;
    background-color: var(--bg-widget);
    border-radius: var(--border-radius-outer);
    border: 1px solid var(--widget-border);
    color: var(--canvas-heavy);
    padding: 0.5rem;
    width: 100%;
}

.page-container .filter-row > div:first-child {
    padding-left: 1rem !important;
}

.page-container .widget h2 {
    font-size: 18px;
}

.page-container .widget .big {
    font-size: 36px;
    color: var(--text-big-stat);
    display: block;
    font-weight: 800;
}

    .page-container .widget .big.doublestat {
        font-size: 24px;
    }

@media(max-width:1024px) {
    .page-container .widget .big {
        font-size: 20px;
    }
}

@media(max-width:576px) {
    .page-container .widget .big {
        font-size: 24px;
    }
}


.page-container .top-stats-load .widget {
    text-align: center;
}

.page-container .top-stats-load .widget {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.page-container .widget.capacity {
    padding-top: 3.3rem;
    padding-bottom: 3.3rem;
}


/* Charts */

.chart-livewrapper .tick {
    opacity: 0.5;
    font-size: 0.6rem;
}

.chart-livewrapper.load .tick {
    opacity: 0.5;
    font-size: 1.1rem;
}

.chart-livewrapper.load .mark-header {
    font-weight: 800;
}

.chart-livewrapper .myXaxis path,
.chart-livewrapper .myYaxis path {
    opacity: 0.2;
}

.chart-livewrapper .tick line {
    opacity: 0;
}


.chart-livewrapper .val {
    font-size: 0.6rem;
    font-weight: 800;
}

    .chart-livewrapper .val.time {
        font-size: 0.6rem;
        font-weight: 200;
    }

.yaxislabel {
    font-size: 0.6rem;
}

.live-indicator.text {
    font-size: 0.8rem;
}


.widget.energy-small h3:before {
    content: ' ';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-top: 0px;
    margin-right: 4px;
    border-radius: 4px;
    position: relative;
    top: 2px;
}

.widget.energy-small .Consumption h3:before {
    background-color: var(--designation-load);
}

.widget.energy-small .Import h3:before {
    background-color: var(--designation-import);
}

.widget.energy-small .Export h3:before {
    background-color: var(--designation-export);
}

.widget.energy-small .Generation h3:before {
    background-color: var(--designation-gen);
}

.widget.energy-small .indicator {
    border-radius: 8px;
}

.widget.energy-small .disabled {
    opacity: 0.2;
}

.guage-text {
    font-size: 3rem;
    font-weight: 800;
}


/* Nav with mobile menu */
.breadcrumb a {
    text-decoration: none;
}

.offcanvas.mobile-menu {
    z-index: 20000;
}

.offcanvas-start.mobile-menu {
    width: 80%;
    max-width: 400px;
}

@media (max-width:1023px) {
    .navbar.nav-left {
        display: none;
    }
}

.offcanvas-body {
    padding: 0;
}

.flex .offcanvas.mobile-menu .offcanvas-header {
    background-color: #333;
    background-image: unset;
    background-repeat: no-repeat;
    background-position-x: 90%;
    height: 90px;
    color: white;
    align-items: unset;
    justify-content: unset;
    display: block;
}

.nav.nav-top img {
    height: 26px;
    margin: auto;
}

.navbar-toggler {
    position: relative;
    top: 10px;
    left: 10px;
}

.navbar-brand {
    float: right !important;
    position: absolute;
    top: 14px;
    left: calc(50% - 58px);
}

.mobile-header {
    background-color: white !important;
    height: 70px;
}

.flex.bc .mobile-header {
    background-color: #391358 !important;
    height: 70px;
}


    .mobile-header .border-bottom {
        border-bottom: none !important;
    }

.offcanvas.mobile-menu .navbar-nav .nav-item .nav-link,
.offcanvas.mobile-menu .navbar-nav .nav-item .nav-link .icon {
    color: black;
    line-height: 50px;
    color: #333;
}

.offcanvas.mobile-menu .navbar-nav .nav-item .nav-link {
    color: black;
    line-height: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0px 20px;
    font-weight: 900;
}

    .offcanvas.mobile-menu .navbar-nav .nav-item .nav-link.has-subtitle .icon {
        position: absolute;
        margin-left: -45px;
        margin-top: -10px;
    }

@media (max-width: 1024px) {
    .navbar-nav .nav-item .nav-link .icon {
        text-align: center;
        margin: 0;
        margin-right: .5rem;
        vertical-align: middle;
    }
}

@media (min-width: 576px) {
    .navbar-expand-sm .navbar-toggler {
        display: block !important;
    }
}

@media (min-width: 1025px) {
    .navbar-expand-sm .navbar-toggler {
        display: none !important;
    }
}

.navbar.navbar-expand-sm .container {
    margin: 0;
}

.login-wrapper .login-container {
    background-color: unset !important;
}

.desktop-header {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-header {
        display: block;
    }
}

.heading.dark .indicator.diagnostics {
    color: var(--pill-text);
    background-color: rgba(144, 75, 210, 1);
    margin-top: -5px;
    font-size:12px;
}

@media (min-width: 1024px) {
    .modal.large .modal-dialog {
        max-width: 900px;
    }
}

.modal-dialog .modal-header button.close {
    position: absolute;
    right: 1rem;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    background-color: black;
    color: var(--text-btn-primary);
    border: none;
    line-height: 20px;
}


input.smaller {
    width: 25%;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #d0d0d0;
}


/* New full screen nav on mobile */
@media (max-width:1023px) {
    .offcanvas-backdrop {
        pointer-events: none;
    }

    .offcanvas-start.mobile-menu {
        width: 100%;
        max-width: 100%;
        background-color: black;
    }

    .flex .offcanvas {
        padding: 10%;
        align-items: center;
        justify-content: center;
    }

    .menu-overlay {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background: rgba(0, 0, 255, 0.9);
        padding: 2rem;
    }

    .menu-inner {
        padding: 1rem;
        width: auto;
        max-width: 600px;
    }

    .menu-email {
        color: white;
        font-weight: bold;
        margin-bottom: 1rem;
        text-align: left;
    }

    .menu-grid i.icon {
        display: none;
    }

    .menu-grid a {
        color: black;
    }

    .menu-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
        justify-content: flex-start;
    }

        .menu-grid li {
            flex: 0 0 calc(33.333% - 1rem);
            min-width: 120px;
            height: 120px;
            background: white;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
            font-weight: bold;
            text-align: center;
            box-sizing: border-box;
            border: 1px solid #ccc;
            cursor: pointer;
            font-size: 20px;
            font-weight: 800;
            padding: 0.5rem;
            text-align: left;
        }

            .menu-grid li a {
                display: block;
                width: 100%;
                height: 100%;
                align-items: start;
                text-align: left;
            }

            .menu-grid li:hover {
                background: #f0f0f0;
            }

            .menu-grid li.close {
                background: black;
                color: white;
                border: 1px solid rgba(255,255,255,0.2);
            }

        .menu-grid .nav-link:focus, .menu-grid .nav-link:hover {
            color: black;
        }

        .menu-grid .nav-link {
            padding: 0;
            font-size: 20px;
            font-weight: 800;
        }

        .menu-grid li a.nav-link {
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            height: 100%;
            width: 100%;
            text-align: left;
            font-weight: 800;
            font-size: 20px;
            box-sizing: border-box;
        }
}

@media (max-width: 768px) {
    .menu-grid li {
        flex: 0 0 calc(50% - 0.75rem); /* 2 per row on small screens */
    }
}

.flex .desktop-header,
.flex .mobile-header {
    position: fixed;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

.flex .navbar.nav-left {
    position: fixed;
    z-index: 1000;
    width: 90px;
    height: 100%;
}

/* Climate */
.climategroups {
}

    .climategroups .group {
        background-color: white;
        border-radius: 0 !important;
    }

        .climategroups .group > div {
            border-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
        }




/* BACK LINK ----------- */

.breadcrumb {
    display: block;
    margin: 1rem 1rem 1rem 0rem;
    color: #555;
    font-size: .8rem;
    text-transform: uppercase;
}

    .breadcrumb a,
    .breadcrumb a:visited {
        text-decoration: underline;
        color: #333;
        margin-left: .4rem;
    }

        .breadcrumb a:hover,
        .breadcrumb a:active {
            text-decoration: none;
            color: #000000;
        }


.nonav main {
    margin-left: 0;
    margin-right: 0;
    margin-top: 6rem;
}

.nonav .ribbon {
    margin-left: -1rem;
}


@media (max-width:932px) {
    .nonav.forestlodge main {
        margin-top: 0;
    }

    .nonav main > .heading {
        margin-top: 7rem;
    }

    .nonav .header-block {
        margin-top: -4rem;
    }

    body.nonav.forestlodge main {
        margin-top: 0;
    }

    .nonav .container-xxl {
        padding-top: 5rem;
    }

    .nonav .desktop-header {
        margin-top: -5rem;
    }
}

@media (max-width:1024px) {
    .nonav.forestlodge main {
        margin-top:0;
    }
}

@media (min-width:2100px) {
     .nonav .ribbon.site {
        left: 0;
    }
}

.nonav .site-nav {
    display:none;
}


h1 sub {
    color:rgba(255,255,255,0.4);
    font-size:14px;
}

#battery-info-footer {
    display:block;
    margin-top:1rem;
    padding-bottom:1rem;
}

@media (min-width:1024px) {
    #battery-info-footer {
        bottom: 1rem;
        padding-bottom: 0;
    }
}

.showlink {
    color:var(--link-text);
}

.stats > div {
    position:relative;
}

.stats .reload {
    position:absolute;
    right:1rem;
    top:1rem;
    display:block;
    font-size:12px;
    color:rgba(0,0,0,0.2);
}