:root {
    --orange-color:#e76b1f;
    --orange-dim-color:#e76b1f6e;

    --okay-dim-color:#05b0346e;
    --error-dim-color:#ee2d1f6e;
    --warning-dim-color:#fcf6406e;
    --okay-color:#05b034;
    --error-color:#ee2d1f;
    --warning-color:#fcf640;
}

body {
    position: absolute;
    height: 100%;
    width: 100%;
    font-family: "Open Sans", Arial;
}

.page-content {
    height: calc(100% - 65px); /* Minus height of header bar */
    overflow: auto;
    padding-bottom: 90px;
    max-width: 1700px;
    margin: auto;
}

.cards {
    display: flex;
    flex-direction: column;
    margin: 5px;
}

#chartdiv {
    height: 350px;
    width: 100%;
}

.config-confirm-button {
    flex: 1;
    text-align: center;
    margin: 10px;
}

.settings-confirm-button  {
    text-align: center;
    margin: 10px;
    width: max-content;
}

.input-setpoint {
    flex: 1;
}

.range-slider {
    flex: 1;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    text-align: center;
    padding-right: 15px;
    max-width: 100px;
    font-size: large;
}

.menulist-item-text {
    margin: auto;
    margin-left: 10px;
}

.wrapper-navbar-selector {
    display: none;
}

.wrapper-navbar-product-info {
    display: flex;
}

.wrapper-navbar-logo {
    margin: auto;
    margin-left: 5px;
    font-weight: bold;
    font-size: 18px;
}

.wrapper-drawer-menu-logo {
    font-weight: bold;
    font-size: 18px;
    margin: auto;
    margin-left: 0;
}

.drawer-menu-panel {
    display: flex;
    flex-direction: column;
}

.cards {
    padding-bottom: 70px;
}

.wrapper-info-box-items {
    flex: 1;
}

.switch {
    position: relative;
    display: inline-block;
    width: 55px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    border-radius: 28px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider {
    position: absolute;
    cursor: pointer;
    height: 28px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ff761b;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(27px);
    -ms-transform: translateX(27px);
    transform: translateX(27px);
}

.label-info-item-text {
    display: flex;
}

.slidecontainer {
    margin-left: auto;
    margin-top: 2px;
    margin-bottom: 2px;
}

.input-setpoint {
    margin-left: auto;
}

#account-actions {
    right: 10px;
    left: auto;
    width: 190px;
}

#account-actions.moved-in {
    top: 70px;
}

.wrapper-dropdown-select-item {
    cursor: pointer;
}

.drawer-menu-item-icon {
    border: 2px solid #e9640d;
    padding: 5px;
    border-radius: 35px;
}

.wrapper-popup {
    background: white;
}

.button-popup-confirm {
    margin: 10px;
    margin-left: auto;
}

.hmenu-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
    overflow: hidden;
}

.hmenu {
}

.hmenu-bg.moved-in {
    opacity: 0.8;
}

.hmenu-panel {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    background-color: white;
    height: 100%;
    width: 800px;
    z-index: 11;
    position: absolute;
    transform: translate(-800px, 0);
    transition: transform 0.3s;
    overflow: hidden;
    border-right: 1px solid #d4d4d4;
    top: 0;
}

.hmenu-panel.moved-in {
    transform: translate(0, 0);
}

.text.title {
    font-size: 24px;
    font-weight: bold;
    color: #4d4d4d;
}

.calendar-icon {
    font-size: 24px;
}

.slidecontainer {
    display: flex;
    flex: 1;
}

.config-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 10px;
}

.electricity-price-setpoint-value {
    margin: auto;
    margin-right: 5px;
}

.max-runtime-value {
    margin: auto;
    margin-right: 5px;
}

.input-device-add {
    flex: 1;
}

.wrapper-device-add-popup-body {
    display: flex;
    flex-direction: column;
}

.menulist-item {
    padding: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
    display: flex;
    cursor: pointer;
}

.deviceinfo-icon {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 30px;
    height: 30px;
    color: #e9640d;
    font-size: 24px;
    padding: 1px;
    padding-top: 3px;
    height: 28px;
    width: 28px;
}

.deviceinfo-icon-border {
    border: 2px solid black;
    border-radius: 100px;
    padding: 5px;
    height: 30px;
    width: 30px;

}

.device-timer-switch-wrapper {
    width: 57px;
    margin: auto;
    margin-right: 0px;
}

.device-timer-first-row {
    font-weight: bold;
}

.timer-switch input{
    opacity: 0;
    width: 0;
    height: 0;
}

.wrapper-device-timer-selector{
    display: flex;
    padding: 15px;
    padding-bottom: 0px;

}
.wrapper-device-timer-selector:last-child{
    padding-bottom: 15px;
}

.device-add-timer-wrapper {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.timer-pin-row, .timer-start-row, .timer-duration-row, .timer-repeat-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5px;
}

.timer-week-day {
    margin: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #00000017;
    border-radius: 9px;
    padding: 5px;
    background: #d4d4d4;
    width: 100%;
    text-align: center;
}

.timer-day-selected {
    color: #ff8300c4;
}

.pump-timer {
    margin: auto;
    margin-right: auto;
    margin-right: 0px;
    display: flex;
}

.pump-timer div {
    margin-left: 5px;
    margin-right: 5px;
}

.wrapper-horizontal-item {
    display: flex;
    justify-content: space-between;
}

.force-button {
    margin-left: auto;
    margin-right: auto;
    border: 1px solid grey;
    border-radius: 9px;
}

.switch-wide {
    position: relative;
    display: inline-block;
    width: 135px;
    height: 31px;
    border-radius: 6px;
    border: 2px solid #ccc;
    direction: ltr;
    overflow: hidden;
    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.switch-wide input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-wide {
    position: absolute;
    cursor: pointer;
    height: 33px;
    top: -1px;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider-wide::before {
    position: absolute;
    content: attr(data-content);
    height: 33px;
    width: 64px;
    text-align: center;
    line-height: 33px;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 3px;
    color: #000;
    background: #eee;
    top: -1px;
}

.pump-mode-selector {
    border-radius: 6px;
    border: 2px solid #ccc;
    position: relative;
    display: flex;
    width: 180px;
    height: 36px;
    direction: ltr;
    overflow: hidden;
}

.pump-mode-manual, .pump-mode-auto {
    margin: auto;
    font-weight: bold;
    width: 50%;
    text-align: center;
    height: 100%;
    cursor: pointer;
    line-height: 36px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.pump-mode-manual.selected {
    color: white;
    background-color: var(--orange-color);
}

.pump-mode-auto.selected {
    color: white;
    background-color: var(--orange-color);
}

input:focus + .switch-wide {
    box-shadow: 0 0 3px 3px rgba(102,175,233,.6);
}

.switch-wide > input:focus{
    box-shadow: 0 0 3px 3px rgba(102,175,233,.6);
}

input:focus + .slider-wide {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider-wide:before {
    -webkit-transform: translateX(72px);
    -ms-transform: translateX(72px);
    transform: translateX(72px);
}

.burger-text {
    padding: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    cursor: pointer;
    font-size: 16px;
}

.burger-icon {
    font-size: 24px;
    margin-right: 20px;
    margin-left: 10px;
}

.timer-delete {
    cursor: pointer;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 5px;
}

.banner {
    max-height: 80px;
    margin: 5px;
    border: none;
    box-shadow: 1px 1px 10px #7171718c;
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    min-width: 200px;
    transition: background-color 500ms linear;
    border: 1px solid #00000030;
    display: flex;
}

.banner.auto {
    background-color: var(--auto-dim-color);
}

.banner.manual {
    background-color: var(--manual-dim-color);
}

.banner.error {
    background-color: var(--error-dim-color);
}

.banner.okay {
    background-color: var(--okay-dim-color);
}

.banner.warning {
    background-color: var(--warning-dim-color);
}

.banner.yellow {
    background-color: var(--yellow-dim-color);
}

.overlay {
    overflow: auto;;
}

.wrapper-pump-override {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin-left: 15px;
    margin-right: 15px;
    padding-top: 0px;
}

.mode-select {
    margin: auto;
    margin-left: 25px;
    font-weight: bold;
}

.mode-box {
    display: flex;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 1px 1px 10px #3131318c;
}

.mode-button.active {
    background: #e9640d;
    color: white;
    margin: 5p;
    border-radius: 20px;
    box-shadow: 1px 1px 10px #7171718c;
}

.mode-button {
    width: 65px;
    height: 33px;
    margin: auto;
    display: flex;
    font-size: 30px;
    color: #999;
}

.add-timer-modal-button {
    height: 35px;
    width: 35px;
    margin: 10px;
    padding: 0px;
    font-size: large;
}

.disabled {
    opacity: 0.3;
    pointer-events: none;
}

#device-timer-duration-select {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    text-align: center;
    padding-right: 15px;
    max-width: 100px;
    font-size: large;
}

.timer-duration-wrapper {
    display: flex;
}

.banner-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.banner-switch {
    margin: 20px;
}

.banner-status {
    width: 434px;
    flex-grow: 1;
}

.banner-seen {
    width: 730px;
    flex-grow: 2;
}

.banner-calibration {
    width: 370px;
    flex-grow: 1;
    cursor: pointer;
}

.vertical-spacer {
    border-right: 2px solid #00000030;
}

.manual-mode-selection-container {
    border-radius: 6px;
    border: 2px solid #ccc;
    position: relative;
    display: flex;
    width: 240px;
    height: 40px;
    overflow: hidden;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.manual-mode-on, .manual-mode-off, .manual-mode-timer {
    margin: auto;
    font-weight: bold;
    width: 33%;
    text-align: center;
    height: 100%;
    cursor: pointer;
    line-height: 40px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.manual-mode-on.selected {
    color: white;
    background-color: var(--okay-color);
}

.manual-mode-off.selected {
    color: white;
    background-color: var(--error-color);
}

.manual-mode-timer.selected {
    color: white;
    background-color: var(--orange-color);
}

@media (min-width: 1400px) {
    .cards {
        margin: 20px;
        flex-direction: row;
    }

    .grid-small {
        grid-column: 5/end;
    }

    .grid-large {
        grid-column: 1/5;
    }

    #chartdiv {
        height: 550px;
        width: 100%;
    }

    .input-setpoint {
        flex: 0;
    }

    .range-slider {
        flex: 0;
    }

    .banner-container {
        margin: 20px;
    }
}
