/* input(1673,26): run-time error CSS1030: Expected identifier, found '.'
input(1673,64): run-time error CSS1025: Expected comma or open brace, found ')'
input(1681,26): run-time error CSS1030: Expected identifier, found '.'
input(1681,64): run-time error CSS1025: Expected comma or open brace, found ')'
input(1687,26): run-time error CSS1030: Expected identifier, found '.'
input(1687,64): run-time error CSS1025: Expected comma or open brace, found ')' */
/* BC Variables */
:root {
    /* 1. COLOURS */
    /* Primary */
    --primary-base: #2E183B;
    --primary-shade: #170C1D;
    --primary-tint: #49265E;
    --primary-wash: #E4D3ED;
    /* Neutrals */
    --neutral-1000: #050505;
    --neutral-800: #303634;
    --neutral-600: #606C68;
    --neutral-400: #C1C8C5;
    --neutral-200: #E9ECEB;
    --neutral-0: #fff;
    /* Brand Accents */
    --accent1-base: #8390FA;
    --accent1-tint: #CDD3FD;
    --accent2-base: #45C4A7;
    --accent2-tint: #A6E3D5;
    --accent3-base: #C84B90;
    --accent3-tint: #E6ADCC;
    /* Super Admin element */
    --superadmin: #c9d527;
    /* 1.4 RAG */
    --red: #EB5757;
    --amber: #F2C94C;
    --green: #64CE6B;
    /* 2. RADIUS */
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.5rem;
    --radius-roundel: 9999px;
    /* 3. SPACING */
    --space-4xs: 4px;
    --space-3xs: 8px;
    --space-2xs: 12px;
    --space-xs: 16px;
    --space-s: 20px;
    --space-m: 24px;
    --space-l: 32px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 72px;
    --space-4xl: 80px;
    --dashboard-bg: url('/img/beach.png?v=JzvgcBEcBCI7xFpVJ8uAP1r6dbU');
}

/* FLEX Overrides */
body.flex {
    /* 1. COLOURS */
    /* Primary */
    --primary-base: #000000;
    --primary-shade: #000000;
    --primary-tint: #2E2E2E;
    --primary-wash: #CDD5ED;
    /* Neutrals */
    --neutral-1000: #000000;
    --neutral-800: #2E2E2E;
    --neutral-600: #666666;
    --neutral-400: #C8C8B7;
    --neutral-200: #E9E9E2;
    --neutral-0: #fff;
    /* Brand Accents */
    --accent1-base: #8296D1;
    --accent1-tint: #CDD5ED;
    --accent2-base: #FACA6C;
    --accent2-tint: #FDEAC4;
    --accent3-base: #EB5D44;
    --accent3-tint: #F7BEB4;
    /* 2. RADIUS */
    --radius-lg: 0;
    --radius-md: 0;
    --radius-sm: 0;
    --dashboard-bg: url('/img/freshgrass.jpg?v=JzvgcBEcBCI7xFpVJ8uAP1r6dbU');
}

html, body {
    font-family: "Inter",sans-serif;
    margin: 0;
    padding: 0;
    border: none;
    font-size:16px;
    background-color:var(--neutral-400);
}

main {
    padding-top: 5rem;
    padding-left: 0rem;
    padding-right: 0rem;
    color: var(--neutral-0);
    padding-bottom: 1rem;
}

body.portfolio main {
    padding-left: 5rem;
    padding-right: 5rem;
    padding-top: 0;
}

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

.success {
    background-color: var(--green);
}

.inactive {
    background-color: var(--neutral-200);
}

.container {
    max-width: 2000px;
    padding: 0;
    padding-left: 5rem;
    padding-right: 5rem;
    width: auto;
}

.container-xxl {
    background-image: url('/img/portal-images-1294x400-man-on-beach.jpg?v=JzvgcBEcBCI7xFpVJ8uAP1r6dbU&v=DP1Z7DBs9A6GXF-1U5u3dUopfdcx');
    background-size: cover;
    max-width: 100%;
    height: 300px;
    max-width: 2000px;
    background-position-y: -40px;
    padding: 0;
    position: relative;
    background-repeat: no-repeat;
    padding-top: 12rem 
}

.portfolio .container-xxl {
    background-image: var(--dashboard-bg);
    height: 360px;
    padding-top: 8rem;
    background-position-y: -130px;
}

/*.admin .container-xxl {
    background-image:none;
    padding-top:0;
}

.admin main {
    padding-top:0px;
}

.admin .heading.dark {
    padding-top:80px;
}
    */

a {
    text-decoration:none;
    color:var(--accent1-base);
}

sub {
    bottom:0;
}

.rad-tl { border-start-start-radius: var(--radius-md);}
.rad-tr { border-start-end-radius: var(--radius-md);}
.rad-bl { border-end-start-radius: var(--radius-md);}
.rad-br { border-end-end-radius: var(--radius-md);}

.radius-md {
    border-radius: var(--radius-md);
}
.b-r-lg { border-right:1px solid var(--neutral-400);}

.primary-base {
    background-color: var(--primary-base);
}
.primary-tint { background-color: var(--primary-tint); }
.primary-wash { background-color: var(--primary-wash); }

.neutral-1000 { background-color:var(--neutral-1000); }
.neutral-800 { background-color:var(--neutral-800); }
.neutral-600 { background-color:var(--neutral-600); }
.neutral-400 { background-color:var(--neutral-400); }
.neutral-200 { background-color:var(--neutral-200); }
.neutral-0 { background-color:var(--neutral-0); }

.accent1-base { background-color: var(--accent1-base); }
.accent1-tint { background-color: var(--accent1-tint); }
.accent2-base { background-color: var(--accent2-base); }
.accent2-tint { background-color: var(--accent2-tint); }
.accent3-base { background-color: var(--accent3-base); }
.accent3-tint { background-color: var(--accent3-tint); }

.rag-red { background-color:var(--red);}
.rag-amber { background-color:var(--amber);}
.rag-green { background-color:var(--green);}
h1, h2, h3 { font-weight: 800; margin:0; }
h4, h5, h6 { font-weight: 600; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size:1.5rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Customer and Admin pages */
.heading h1 {
    font-size: 2rem;
    font-weight: 500;
}

.admin h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.admin h3 {
    font-size: 1.2rem;
    font-weight:400;
}


.subtitle-regular {
    font-size: 0.875rem;
    font-weight: 600;
}

.subtitle-small {
    font-size: 0.75rem;
    font-weight: 600;
}

.body-regular {
    font-size: 0.875rem;
    font-weight: 400;
}

.body-small {
    font-size: 0.75rem;
    font-weight: 400;
}

.body-badge {
    font-size: 0.75rem;
    font-weight: 400;
}

.btn {
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-sm {
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-dialog h2 {
    font-size:1.4rem;
}
.modal-dialog h3 {
    font-size:1.2rem;
}

.desktop-header {
    background: white;
    border-bottom-right-radius: 20px;
    padding: 20px;
    padding-left: 5rem;
    position: fixed;
    width: calc(100% - 5rem);
    top: 0;
    z-index: 1000;
    max-width: 1900px;
    padding-left: 5rem;
    padding-right: 2rem;
}

.desktop-header .site-logo {
    max-height: 30px;
    margin-right: 3rem;
}

    .desktop-header a {
        color: black;
        text-decoration: none;
    }

    .desktop-header [class^="fa"] {
        font-size: 24px;
    }

    .desktop-header form {
        vertical-align: middle;
    }

    .desktop-header > div {
        margin-right: 3rem;
        font-weight: 600;
        line-height: 30px;
    }

        .desktop-header > div:last-child {
            margin-right: 0rem;
        }

    .desktop-header #dropdownMenuButton {
        margin-left: 0.5rem;
    }

    .desktop-header .dropdown-menu {
        min-width: 250px;
    }

        .desktop-header .dropdown-menu li {
        }

            .desktop-header .dropdown-menu li a {
                display: block;
                padding: 8px 10px;
                font-weight: 500;
            }

            .desktop-header .dropdown-menu.admin-menu li a {
                padding: 5px 15px;
            }

        .desktop-header .dropdown-menu.admin-menu hr {
            margin:5px;
        }

                .desktop-header .dropdown-menu li a:hover {
                    background-color: rgba(0,0,0,0.8);
                    color: white;
                }


    .desktop-header .dropdown i[class^="fa"] {
        font-size: 20px;
        display: inline-block;
        text-align: center;
    }

    .desktop-header .dropdown-menu i[class^="fa"] {
        width: 32px;
    }

    .desktop-header .alerts {
        margin-right: 4rem;
    }

        .desktop-header .alerts span.badge {
            margin-top: 7px;
            position: absolute;
            margin-left: 3px;
        }

.desktop-header #loginbutton
{
    font-weight:300;
    font-size:0.9rem;
}

.admin .page-header {
    min-height:80px;
    padding-top:20px;
    padding-bottom:20px;
}

.header-login-form img {
    max-height:30px;
    margin-right:1rem;
}

.heading .info {
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Heading Strip - dark */
.heading {
    padding: 20px;
    padding-left: 5rem;
    padding-right: 5rem;
    padding-bottom:0;
    width: auto;
}

    .heading .product-badge {
        padding: 0.3rem;
        background-color: white;
    }

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

    .heading sub {
        opacity: 0.4;
    }

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


.heading.dark {
    color: white;
    background-color: var(--primary-base);
}

    .heading.dark h1 a {
        color: var(--neutral-0);
    }
.badge {
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    padding: var(--space-3xs) var(--space-2xs);
}

    .badge i[class^="fa"] {
        font-size:1rem;
    }

.dropdown .badge {
    padding: var(--space-4xs) var(--space-3xs);
    font-size:0.65rem;
    font-weight: 200;
}

.badge.customer-mode {
    background-color:#0094ff;
}

.badge.customer-mode {
    display:none;
}

.customer-mode .badge.customer-mode {
    display:inline-block;
}

.desktop-header span.badge,
.locationdetails span.badge {
    border-radius: var(--radius-roundel);
    color: #ffffff;
}

    .locationdetails span.badge,
    .locationdetails span.badge i {
        font-size: 0.7rem;
    }

.locationdetails span.badge {
    padding:0.3rem 0.4rem;
}
.breadcrumb {
    display: block;
    margin: 1rem 1rem 1rem 0rem;
    color: #555;
    font-size: .8rem;
}

    .breadcrumb a {
        margin-left: 0.3rem;
    }

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

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

.breadcrumb-seperator {
    display: inline-block;
    margin-left: 0.3rem;
}

@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;
    border: none;
    line-height: 20px;
}

.modal-dialog .modal-header {
    background-color: var(--primary-base);
}

.btn-close {
    --bs-btn-close-color: #fff;
    --bs-btn-close-opacity: 1;
}

.modal-dialog .model-content {
    color:var(--neutral-1000);
}

.modal {
    --bs-modal-color: var(--neutral-1000);
}

    .modal .modal-header,
    .modal .modal-header i {
        --bs-heading-color: var(--neutral-0) !important;
        color:var(--neutral-0);
    }

    .modal .btn.toggle.active {
        background-color: var(--accent1-base);
        color:var(--neutral-0);
    }
.indicator {
    padding: 5px 16px;
    background-color: var(--neutral-0);
    border-radius: var(--radius-roundel);
    color: var(--primary-base);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 16px;
    display:block;
}

.dropdown-toggle {
    cursor:pointer;
}

.indicator.dropdown-toggle:hover {
    background-color: var(--accent1-tint);
}

.custcard .indicator,
#customerDrawer .topdetails .indicator {
    background-color: var(--primary-wash);
    display: inline-block;
}

.custcard .indicator {
    font-size: 0.65rem;
}

#customerDrawer .locationdetails .indicator {
    border:1px solid var(--neutral-200);
}

.indicator.diagnostics {
    background-color: var(--superadmin) !important;
}

/* 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%, black), 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%, black 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: black;
        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;
    }
}

/* 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 h5: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 h5:before {
    background-color: var(--accent2-tint);
}

.widget.energy-small .Import h5:before {
    background-color: var(--accent1-base);
}

.widget.energy-small .Export h5:before {
    background-color: var(--accent2-base);
}

.widget.energy-small .Generation h5:before {
    background-color: var(--accent1-tint);
}

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

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

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

.form-label.required:after {
    display:inline-block;
    content: '*';
    color:var(--red);
}

.validation-summary-errors {
    color:var(--red);
}

.field-validation-error {
    color: var(--red);
}

.form-control-plaintext {
    padding-top:0;
}


form header {
    background-color: var(--primary-tint);
    color: white;
    padding: 0.5rem 1rem;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

form .section {
    padding: 1rem;
    padding-top:0rem;
    background-color: var(--neutral-200);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.validation-summary-valid {
    display: none;
}
.admin .supplier img {
    max-height:40px;
}

.admin .container > .inner {
    background-color: var(--neutral-0);
    padding:1rem;
}

.admin [class^="fa"].danger {
    background-color:unset;
    color: var(--red);
}

.admin [class^="fa"].good {
    background-color: unset;
    color: var(--green);
}

.admin td.heading {
    background-color:var(--neutral-200)
}

.admin thead input[type="text"] {
    max-width:100px;
}

.admin th, .admin td {
    font-size:0.75rem;
}

.admin .ribbon .stats > div,
.admin .ribbon .stats > a {
    background: var(--neutral-200);
    padding: 10px 30px;
    margin:2px !important;
}

.admin .ribbon .stats > a {
    background: var(--red);
    color:var(--neutral-0);
}

.admin .inner .indicator {
    border:1px solid var(--neutral-400);
}

.admin .card{
    background-color:var(--neutral-200);
    color:var(--neutral-800);
}

.customerlocations .customerlocation {
    background-color: #f0f0f0;
    border-radius: 10px;
    color: rgba(0,0,0,0.7);
    font-size: 14px;
}

    .customerlocations .customerlocation .body {
        padding: 1rem;
    }

    .customerlocations .customerlocation .header {
        background-color: var(--primary-tint);
        padding: 0.5rem 1rem;
        border-top-left-radius: var(--radius-md);
        border-top-right-radius: var(--radius-md);
        color: rgba(255,255,255,0.6);
    }

        .customerlocations .customerlocation .header.errorstate {
            background-color: var(--red);
        }

    .customerlocations .customerlocation h2 {
        color: white;
        margin: 0;
        font-size: 18px;
    }


    .customerlocations .customerlocation .body i.danger {
        color: #d44848 !important;
    }

    .customerlocations .customerlocation .body i.success {
        color: #4b814b !important;
    }

    .customerlocations .customerlocation h3 {
        font-size: 14px;
        margin: 0;
        padding: 0;
        margin-top: 1rem;
    }

        .customerlocations .customerlocation h3:first-child {
            margin-top: 0;
        }

    .customerlocations .customerlocation strong {
        font-size: 12px;
    }

.customerlocations .manufacturer img {
    max-height: 20px;
    margin-bottom: 4px;
    margin-left: 10px;
}

.customerlocations .customerlocation .body i {
    font-size: 18px;
    color: var(--bg-tertiary);
}

.customerlocation .btn [class^="fa"] {
    margin: 0;
}

.locationtooltip .tooltip-inner {
    font-size: 12px;
}
/*
.customerlocations .customerlocation .header a {
    color: rgba(255,255,255,0.8);
    width: 2rem;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
}

    .customerlocations .customerlocation .header a:hover {
        color: rgba(255,255,255,1);
        background-color: rgba(255,255,255,0.2);
    }
    */
.customerlocation-details img {
    max-height: 25px;
    float: right;
}
/*
.customerlocation-details form header {
    background-color: var(--bg-tertiary);
    color: white;
    padding: 0.5rem 1rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.customerlocation-details form .section {
    padding: 1rem;
    background-color: #e0e0e0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin-bottom: 1rem;
}

*/
.customerlocation-details .validation-summary-errors {
    margin-bottom: 1rem;
    border-radius: 10px;
}

.fading-box {
    background: linear-gradient(to right, var(--bg-tertiary) 70%, white 100%);
}


.customerbutton {
    background-color: var(--neutral-600);
    display: inline-block;
    color: white;
    border-radius: 4px;
    padding: 3px 10px;
    margin: 0.2rem;
}


.admin form label {
    margin-top:0.5rem;
    margin-bottom:0.2rem;
}

.admin .form-group {
    margin-bottom:1rem;
}

.admin .tab-pane {
    padding-top:1rem;
}

.admin .fading-box {
    background: linear-gradient(to right, var(--primary-tint) 70%, white 100%);
}



.auditentry .small {
    color: rgba(0,0,0,0.5);
}

.audituser {
    border-radius: 50%;
    background-color: var(--primary-tint);
    color: white;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    padding:4px;
    font-size: 0.7rem;
    font-weight: 300;
}

.dropzone {
    position: relative;
    padding: 1rem;
    transition: background-color 0.2s, border-color 0.2s;
}

    .dropzone.hover {
        background-color: #f0f8ff;
        border-color: #3399ff;
    }

    .dropzone #upload-icon {
        font-size: 80px;
        color: #c0c0c0;
        margin-right: 2rem;
    }

    .dropzone > span {
        display: block;
    }

.btn-xs {
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 100;
}

.upload-container .first-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.dropzone {
    background-color: var(--neutral-200);
    border: 1px dashed var(--neutral-400);
    border-radius: .8rem;
}

    .dropzone .intro {
        font-size: 22px;
        font-weight: bold;
    }

    .dropzone .inner {
        width: 50%;
        margin: auto;
        display: block;
    }

.upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

    .upload-row .icon-col {
        flex: 0 0 auto;
    }

    .upload-row .name-col {
        flex: 0 1 auto;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .upload-row .input-col {
        flex: 1 1 250px;
        min-width: 0;
    }

    .upload-row .select-col {
        flex: 1 1 250px;
        min-width: 0;
    }

@media (max-width: 576px) {
    .upload-row .input-col,
    .upload-row .select-col,
    .upload-row .name-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
.portfolio-product-logo {
    max-height: 18px;
}

.container {
    color:black;
}

.stats {
    color:black;
    margin-top:1rem;
}

    .stats > div {
        position: relative;
        padding-left: 40px !important;
        padding-right: 40px !important;
        text-align: left;
    }

        .stats > div:first-child {
            border-start-start-radius: var(--radius-md);
            border-end-start-radius: var(--radius-md);
        }

        .stats > div:last-child {
            border-start-end-radius: var(--radius-md);
            border-end-end-radius: var(--radius-md);
        }

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

.heading.dark a.action {
    color: var(--primary-wash);
    padding: 1rem;
    margin-top: -0.5rem;
}

    .heading.dark a.action:hover {
        background-color: rgba(255,255,255,0.2);
    }

    .heading.dark a.action i {
        display: block;
        font-size: 22px;
    }

.heading.dark .dropdown-menu a {
    color:black;
}

.dropdown-item:hover,
.dropdown-item:hover {
    background-color: #555;
    color: white;
}

#weatherpopover img {
    max-width: 35px;
}

#weatherpopover {
    color:var(--neutral-0) !important;
}

@media (max-width:1023px) {
    body .forestlodge .container-xxl {
        background-image: url('/img/fl-hero img.png?v=JzvgcBEcBCI7xFpVJ8uAP1r6dbU');
        background-position-x: 0;
        background-position-y: 0;
    }
}

/* Desktop Nav */
@media (min-width:1024px) {
    .ribbon .stats span {
        font-size: 0.8rem;
        display: block;
        line-height: 0.8rem;
    }

    .ribbon .stats {
        text-align: center;
        font-size: 22px;
        font-weight: 400;
        margin: 0.5rem;
        margin-right: 1rem;
    }

        .ribbon .stats a {
            color: #333;
            padding: 0.5rem 1rem;
        }

            .ribbon .stats a.active {
                background-color: black;
                color: white;
            }

            .ribbon .stats a:hover {
                background-color: rgba(0,0,0,0.2);
            }
}

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

.cards.secondary .card {
    background-color:var(--primary-base);
    color: white !important;
    align-items: center; /* vertical center */
    min-height: 60px;
    display: flex;
    flex-direction: row;
    height: 100%;
    border-radius: var(--radius-md);
}

.cards.secondary .row {
    justify-content: space-between; /* horizontal layout */
}

/* Customer Page Tabs */
.heading .nav-tabs {
    margin-top:1.5rem;
    border-bottom:none;
    position:relative;
    bottom:1px;
}

    .heading .nav-tabs .nav-link {
        margin-right: 4px;
        border-radius: 0;
        color: white;
        font-size: 14px;
        border-start-start-radius: var(--radius-sm);
        border-start-end-radius: var(--radius-sm);
    }
    .heading .nav-tabs a.nav-link {
        background-color:var(--primary-tint);
        cursor: pointer;
    }
    .heading .nav-tabs .nav-link.active {
        background-color: var(--neutral-400);
        color: black;
        border-bottom: 1px solid var(--neutral-400);
        border-top: 4px solid var(--neutral-200);
    }

.section-header > div {
    background-color: var(--primary-tint);
    width: 100%;    
}

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

.summarytable h2 {
    display: none;
}

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

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

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

.gauges svg {
    width: 143px;
    margin: auto;
}

@media (max-width:810px) {
    .gauges svg {
        width: 110px;
    }
}

#alert-button {
    font-size: 0.8rem;
    padding: 5px 8px;
    margin-left: 4px;
    color: white;
    border-radius: var(--radius-roundel);
}

    #alert-button i {
        font-size:0.8rem;
    }

    #alert-button:hover {
        background-color: #eb7e7e;
    }

#averageDailyGen span.badge {
    border-radius: 10px;
    color: #ffffff;
    
    font-style: normal;
    font-weight: 900;
    font-size: .8rem;
    /* margin-right: 2rem; */
}

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

        .cards-wrapper .statsrow .card {
            min-width: 230px;
        }

    .card big {
        font-size: clamp(2rem, 2vw, 3rem);
    }

    .container-xxl {
        max-width: 100%;
        height: 300px;
        background-position-y: -30px;
    }

    body.portfolio main {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 0;
    }
}

@media (max-width:820px) {
    .container-xxl {
        max-width: 100%;
        height: 600px;
        background-size: cover;
        background-position-y: -20px;
        background-position-x: -320px;
        padding-top: 10rem;
    }

    body.portfolio .container-xxl {
        padding-top: 6rem;
        height: 410px;
        background-position-x: 0px;
    }

    body.flex .container-xxl {
        background-position-y: 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .desktop-header {
        width: calc(100% - 1rem);
        padding-left: 1rem;
    }

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

        .desktop-header .alerts {
            margin-right: 2rem;
        }

        .desktop-header .site-logo {
            margin-right: 1rem;
            margin-top: 3px;
        }

    .heading {
        padding-left: 1rem;
        padding-right: 1rem;
    }

}

    /* Drag and drop styles */
    .schedule-row {
        cursor: move;
        transition: background-color 0.2s ease;
    }

    .schedule-row:hover {
        background-color: #f8f9fa;
    }

    .schedule-row.dragging {
        opacity: 0.5;
        background-color: #e3f2fd;
        border: 2px dashed #007bff;
    }

    .schedule-row.dragover {
        background-color: #fff3cd;
        border-top: 2px solid #ffc107;
    }

    /* Schedule Calendar Styles */
    .schedule-calendar {
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        overflow-x: auto; /* Add horizontal scroll for overflow */
        overflow-y: hidden;
        background: white;
        height: 600px; /* Fixed height to prevent overflow */
    }

    .calendar-container {
        display: grid;
        grid-template-columns: 80px repeat(7, 1fr);
        height: 100%;
        position: relative;
        min-width: 800px; /* Ensure minimum width so all columns are visible */
    }

    .time-column {
        background-color: #f8f9fa;
        border-right: 1px solid #dee2e6;
        display: flex;
        flex-direction: column;
    }

    .time-column-header {
        padding: 8px;
        text-align: center;
        font-weight: bold;
        font-size: 0.875rem;
        border-bottom: 1px solid #dee2e6;
        background-color: #f8f9fa;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .day-column {
        border-right: 1px solid #dee2e6;
        display: flex;
        flex-direction: column;
        padding-right: 2px;
        padding-left: 2px;
    }

    .day-column:last-child {
        border-right: none;
        padding-right: 0;
    }

    .day-header {
        padding: 8px;
        text-align: center;
        font-weight: bold;
        font-size: 0.875rem;
        border-bottom: 1px solid #dee2e6;
        background-color: #f8f9fa;
        height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .date-display {
        font-size: 0.75rem;
        font-weight: normal;
        color: #6c757d;
        margin-top: 2px;
    }

    .day-body {
        flex: 1;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .time-axis-column {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .time-label {
        height: 4.1667%; /* 1 hour = 100%/24 = 4.1667% */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        border-bottom: 1px solid #dee2e6;
        background-color: #f8f9fa;
    }

    .time-label:last-child {
        border-bottom: none;
    }


    .action-row {
        height: 100%;
        display: grid;
        gap: 1px;
    }

    .priority-columns {
        height: 100%;
        display: grid;
        gap: 1px;
    }

    .priority-column {
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .empty-day-column {
        height: 100%;
        background-color: transparent;
    }

    .schedule-period {
        border-radius: 3px;
        margin: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 1px;
        position: relative;
    }

    .schedule-period-with-stripes {
        border-radius: 3px;
        margin: 0;
        z-index: 1;
        min-height: 1px;
        position: relative;
        display: flex;
        flex-direction: row;
    }

    .action-stripe {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 1px;
        border-radius: 0;
    }

    .action-stripe:first-child {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
    }

    .action-stripe:last-child {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
    }

    .gap-div {
        min-height: 1px;
        background-color: transparent;
    }

    .action-label {
        font-size: 0.7rem;
        font-weight: bold;
        color: white;
        text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
        pointer-events: none;
    }

    .priority-label {
        position: absolute;
        top: 2px;
        right: 2px;
        font-size: 0.6rem;
        font-weight: bold;
        color: white;
        text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
        pointer-events: none;
        background-color: rgba(0,0,0,0.3);
        border-radius: 2px;
        padding: 1px 3px;
        min-width: 12px;
        text-align: center;
    }

    .schedule-period.charge {
        background-color: #00C853;
    }

    .schedule-period.discharge {
        background-color: #FF9100;
    }

    .schedule-period.selfconsume {
        background-color: #2196F3;
    }

    .schedule-period.optimise {
        background-color: #0d6efd;
    }

    .schedule-period.idle {
        background-color: #9E9E9E;
    }

    /* Action stripe colors */
    .action-stripe.charge {
        background-color: #00C853;
    }

    .action-stripe.discharge {
        background-color: #FF9100;
    }

    .action-stripe.selfconsume {
        background-color: #2196F3;
    }

    .action-stripe.optimise {
        background-color: #0d6efd;
    }

    .action-stripe.idle {
        background-color: #9E9E9E;
    }

    /* Custom badge colors to match exact specifications */
    .badge-charge {
        background-color: #00C853 !important;
        color: white !important;
    }

    .badge-discharge {
        background-color: #FF9100 !important;
        color: white !important;
    }

    .badge-selfconsume {
        background-color: #2196F3 !important;
        color: white !important;
    }

    .badge-idle {
        background-color: #9E9E9E !important;
        color: white !important;
    }

    .autocomplete-item.selected {
        background-color: #e3f2fd;
    }

    /* Input Chip Styles */
    .input-chip {
        display: inline-block;
        background-color: #007bff;
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 0.75rem;
        font-size: 0.875rem;
        margin: 0.125rem 0.125rem 0.125rem 0;
        white-space: nowrap;
        pointer-events: none;
        vertical-align: middle;
    }

    /* Style for input fields containing chips */
    .form-control.has-chips {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
        min-height: 38px;
        padding: 0.375rem 0.75rem;
    }

    /* Disabled Rule Section Styles */
    .rules-container:has(.form-control[contenteditable="false"]) .form-label {
        color: #6c757d;
        opacity: 0.6;
    }



    /* Style disabled rule inputs consistently */
    .rules-container:has(.form-control[contenteditable="false"]) .form-control[contenteditable="false"] {
        background-color: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }

    .rules-container:has(.form-control[contenteditable="false"]) select:disabled {
        background-color: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
    }

    /* Contenteditable div styling */
    .form-control[contenteditable="true"] {
        cursor: text;
        min-height: 38px;
        overflow: hidden;
    }

    .form-control[contenteditable="true"]:empty:before {
        content: attr(data-placeholder);
        color: #6c757d;
        pointer-events: none;
    }

    .form-control[contenteditable="true"]:focus {
        outline: none;
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .form-control[contenteditable="false"] {
        background-color: #e9ecef;
        cursor: not-allowed;
        min-height: 38px;
        color: gray;
    }

    /* Validation Styles */
    .form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

    .form-control.is-valid {
        border-color: #28a745;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }

    /* Rule arguments styling - unified appearance for all argument types */
    .rule-args {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        padding: 0.75rem;
        margin-top: 0.5rem;
        transition: all 0.2s ease-in-out;
    }

    .rule-args .form-control-sm {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }

    .rule-args .form-label {
        font-size: 0.75rem;
        color: #6c757d;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

    /* Hover effect for better interactivity */
    .rule-args:hover {
        border-color: #adb5bd;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Focus state for accessibility */
    .rule-args:focus-within {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    /* Disabled dropdown styling */
    .rule-type-dropdown:disabled,
    .rule-operator:disabled {
        background-color: #e9ecef;
        color: #6c757d;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .rule-type-dropdown:disabled option,
    .rule-operator:disabled option {
        color: #6c757d;
    }

    /* Disabled dropdown placeholder text */
    .rule-type-dropdown:disabled option[value=""],
    .rule-operator:disabled option[value=""] {
        color: #6c757d;
        font-style: italic;
    }


