﻿:root {
    --primary-color: #00245C;
    --workbench-configuration-header-height: 173px;
    --dashboard-list-item-height: 190px;
    --dashboard-list-item-width: 190px;
    --orange-30: rgba(255, 181, 69, 0.3);
    --orange-60: rgba(255, 181, 69, 0.6);
    --orange: rgba(255, 181, 69, 1);
}

/*
    Mudblazor disables "normal and expected" styles on the "a" tag...
*/

a {
    text-decoration: underline;
    color: var(--primary-color);
}

    /*
        "Restore" Mudblazor styling when it's a mudblazor tag
    */
    a.mud-nav-link {
        text-decoration: none;
        color: var(--mud-palette-text-primary);
    }

/* 
    Indicates that an element contains some content that contains an error, (and other content that shouldn't
    be flagged as an error)
*/
.has_error {
    background-color: #ffeeee;
}

/* 
    Indicates that an element contains a validation error
*/
.validation_error {
    background-color: #ff7777
}

/*
    Indicates that a user (in the user management page) is added
*/
.user_role_added {
    background-color: #FFAB40;
}

/*
    Indicates that a user (in the user management page) has changes
    or a user's role in a network (when viewed via account)
*/
.user_role_have_changes {
    background-color: #0097A7;
}

    .user_role_have_changes * {
        color: white !important;
    }

.alert_has_changes {
    background-color: #0097A7;
    color: white !important;
}

    .alert_has_changes * {
        color: white !important;
    }

/*
    Indicates that a user (in the user management page) is removed
*/
.user_role_removed {
    background-color: lightpink;
    color: lightgrey;
}

/*
    Additional styling for the roles in networks column when a row represents a user being removed from an account
*/
.user_role_removed_column {
    text-decoration: line-through;
}

.scrollable {
    overflow: auto;
}

#app {
    overflow: hidden;
}

#operationsView {
    width: calc(100% + 12px);
}

.dashboardPane {
    height: calc(100vh - 123px);
}

#dashboardList {
    text-align: center;
}

.dashboardListItem {
    width: var(--dashboard-list-item-width);
    margin: 5px;
    text-align: start;
}

.dashboardListItemLink {
    margin: 7px;
    overflow: hidden
}

.dashboardListItemLinkText {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboardListItemThumbnail {
    text-align: center;
}

.dashboardListItemThumbnailMissing {
    width: var(--dashboard-list-item-width);
    height: var(--dashboard-list-item-height)
}

#dashboardMap {
    padding-top: 0px;
    padding-bottom: 0px;
    display: inline-block;
    position: absolute;
}

.termsOfServiceDialog {
    width: calc(100vw - 150px);
}

.networks_table {
    background-color: #eee;
    width: 100%
}

.userHistoryExpandButton {
    padding: 0px;
}

.wide-tooltip-width {
    max-width: 200px
}

.userHistoryEmailCell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(11vw);
}

.userHistoryNotesCell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(17vw);
}

.dullHighlight {
    background-color: #f0e68c6e;
}

/*
    Override MudBlazor styles
*/
.mud-container {
    padding-left: 5px;
    padding-right: 5px;
}

.mud-treeview-item-arrow {
    margin-left: 0px;
    margin-right: 0px;
}

.inline-icon {
    display: flex;
    align-items: center;
}

/*
    Make the user permissions history table more compact
*/
.mud-table-dense .mud-table-row .mud-table-cell {
    padding: 6px 8px 6px 8px;
    padding-inline-start: 8px;
    padding-inline-end: 8px;
}

.review-changes-section {
    display: flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
}

/*
    Make text appear bold without changing it's size
*/
.uniform-bold-text {
    text-shadow: 0px 0px 1px black;
}

.strikeout {
    text-decoration: line-through;
}

.account-input {
    color: white;
}
/*
    Styles added for calibrations UI
*/
.clickable:hover {
    cursor: pointer;
}

.calibration-wizard-info-panel {
    display: flex;
    background-color: var(--mud-palette-info-hover);
    border-radius: 8px;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
}

    .calibration-wizard-info-panel.not-inline {
        display: block;
        align-items: start;
        justify-content: normal;
    }

.image-select-input .mud-input-control-input-container .mud-select-input .mud-input-slot {
    height: 48px;
}
/*
    Portfolio page
*/
.hoverable-portfolio-tab {
    padding: 1px;
}

    .active-portfolio-tab, .hoverable-portfolio-tab:hover {
        border: 1px solid var(--mud-palette-secondary);
        padding: 0px;
    }

        .active-portfolio-tab .icon-container, .hoverable-portfolio-tab:hover .icon-container {
            background-color: var(--mud-palette-secondary);
            color: white;
        }

/*
    Makes non-mudblazor inputs look like mudblazor inputs
*/
.input-style {
    background-color: inherit;
    border-bottom: 1px solid var(--mud-palette-lines-inputs);
}

/*
    Styles for facility mobile views
*/
dl {
    font-size: 14px;
}

.calibration-row {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-top: 1px solid #E0E0E0;
}

    .calibration-row dt {
        font-weight: 700;
        width: 96px;
    }

    .calibration-row dd {
        overflow-wrap: anywhere;
    }

.no-border {
    border: none;
}

/* 959px here to align with MudBlazor's SmAndDown jump which is essentially 0px-959px. MdAndUp is 960px-max */
@media only screen and (max-width: 959px) {
    .title-action-btn {
        width: 100%;
    }
}

.mud-stepper .mud-stepper-nav .mud-step .mud-step-label .mud-step-label-content {
    color: var(--mud-palette-drawer-text);
}

.mud-stepper .mud-stepper-nav .mud-step .mud-step-label.mud-step-label-active .mud-step-label-icon {
    width: 40px;
    height: 40px;
    margin-top: -9px;
    transition: 100ms;
}

.mud-stepper .mud-stepper-nav .mud-step .mud-step-label.mud-step-label-active span {
    font-size: 16px;
    transition: 100ms;
}

.mud-stepper .mud-stepper-nav .mud-step .mud-step-label.mud-step-label-active .mud-step-label-content {
    margin-top: 5px;
    transition: 100ms;
}

    .mud-stepper .mud-stepper-nav .mud-step .mud-step-label.mud-step-label-active .mud-step-label-content .mud-step-label-content-title {
        font-weight: 700;
    }

.expansion-panel-full .mud-expand-panel-header {
    padding: 0px;
}

.expansion-panel-clear .mud-expand-panel {
    background-color: transparent;
}

.expansion-panel-full-width {
    min-width: 100%;
}

.expansion-panel-info .mud-expand-panel {
    background-color: var(--mud-palette-info-hover);
}

    .expansion-panel-info .mud-expand-panel .mud-expand-panel-content {
        padding-bottom: 1rem;
    }

.text-align-center {
    text-align: center;
}

.validation-message {
    color: var(--mud-palette-error);
}

.mud-input-helper-text {
    color: var(--mud-palette-drawer-text);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    color: var(--mud-palette-drawer-text);
}


.forms-table .mud-table-root {
    border: 1px solid #E0E0E0;
    border-collapse: collapse;
}

.forms-table .mud-table-head .mud-table-cell {
    font-weight: 700;
}

.forms-table .mud-table-cell {
    border-radius: 0;
    border-color: #E0E0E0;
    border-top-width: 1px;
    border-bottom-width: 1px !important;
}

.forms-table.readonly .mud-table-cell {
    border-left-width: 1px;
}

.forms-table:not(.readonly) .mud-table-cell:last-child {
    padding-left: 0;
}

.forms-table:not(.readonly) .mud-table-cell:not(:last-child) {
    border-left-width: 1px;
}

.forms-table:not(.readonly) .mud-table-cell.no-left-border {
    border-left-width: 0;
}

.forms-table:not(.readonly) th.mud-table-cell:last-child {
    width: 30px;
}

.mud-input-control.mud-input-control-boolean-input .mud-radio-group.radio-group-column {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.form-divider {
    border-color: #E0E0E0;
}

.hide-scroll .mud-tabs-tabbar-wrapper {
    transform: unset !important;
}

.hide-scroll .mud-tabs-scroll-button {
    display: none;
}

.tabs-full-width .mud-tabs-tabbar-wrapper {
    width: 100%;
}

    .tabs-full-width .mud-tabs-tabbar-wrapper > .mud-tooltip-root {
        flex: 1 1 auto;
        text-align: center;
        width: 50%;
    }

/* disable Striped and Hover effects in nested tables, otherwise these effects are applied automatically from the parent table */
.history-details-table .mud-table-row {
    background: none !important;
}

@media (min-width: 600px) {
    .history-details-table td {
        border: none !important;
    }
}

/* reset table "no results" background to body background color */
.mud-table-empty-row {
    background-color: #ebecedff
}

    .mud-table-empty-row p {
        font-weight: normal;
    }

.form-card.disabled {
    opacity: 0.6;
}

.form-card .mud-card-header {
    position: relative;
}

    .form-card .mud-card-header::after {
        content: '';
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0;
        height: 1px;
        background: #E0E0E0;
        opacity: .6;
    }

    .form-card .mud-card-header *:is(h1, h2, h3, h4, h5, h6) {
        font-weight: 700;
    }

.w-paragraph {
    max-width: 960px;
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.switch-icon-white .mud-icon-root {
    color: white;
}

.minimal-input.compact {
    max-width: 76px;
}

    .minimal-input.compact input {
        text-align: center;
    }

.minimal-input input,
.minimal-input .mud-input-slot {
    padding: 4px !important;
}

.minimal-input .mud-input-error .mud-input-outlined-border {
    border-color: var(--mud-palette-warning) !important;
}

.mud-select.minimal-input .mud-input-slot {
    font-size: var(--mud-typography-subtitle2-size) !important;
    margin-left: 4px !important;
}

.hide-mud-error .mud-input-control-helper-container {
    display: none;
}

.validation-message-alert {
    width: max-content;
    color: var(--mud-palette-warning);
    border-color: var(--mud-palette-warning);
}

    .validation-message-alert .mud-alert-icon,
    .validation-message-alert .validation-message {
        color: var(--mud-palette-warning);
    }

.column-filter.show-on-hover {
    opacity: 0;
    transition: opacity 0.2s;
}

th:hover .column-filter.show-on-hover {
    opacity: 1;
}

.column-filter.show {
    opacity: 1 !important;
}

.column-filter-item-selected {
    background-color: var(--mud-palette-primary-hover) !important;
    color: var(--mud-palette-primary) !important;
}

.column-filter-item-disabled {
    opacity: 0.5;
    cursor: default;
}

.wizard-stepper .mud-stepper-nav-connector {
    min-width: 150px !important;
}

.wizard-stepper .mud-step-label-content {
    max-width: 100px;
    overflow-wrap: break-word;
}

.opacity-30 {
    opacity: 0.3;
    transition: opacity 0.2s;
}

.configuration-navbar {
    position: sticky;
    top: 0;
    overflow-y: scroll;
    height: calc(100vh - var(--workbench-configuration-header-height));
}

.configuration-body {
    margin-top: 2px;
    height: calc(100vh - var(--workbench-configuration-header-height));
    overflow-y: auto;
}

.disabled-background {
    background-color: var(--mud-palette-gray-light);
}

.strikethrough {
    text-decoration: line-through;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
}

.rc-panel-container {
    height: 375px;
}

    .rc-panel-container .mud-card {
        height: 100%;
    }

.rc-banner {
    height: 100%;
    position: relative;
    color: var(--mud-palette-primary-text);
    padding: 0 2rem;
    width: 60%;
    background-color: var(--mud-palette-primary);
}

    .rc-banner svg {
        fill: var(--mud-palette-primary-text);
    }

    .rc-banner.offline {
        background: linear-gradient(to right, var(--mud-palette-primary) 0%, #ffa733 50%, var(--mud-palette-primary) 100%);
    }

    .rc-banner.continuously-offline {
        background: linear-gradient(to right, var(--mud-palette-primary) 0%, var(--mud-palette-warning-darken) 50%, var(--mud-palette-primary) 100%);
    }

@media only screen and (max-width: 959px) {
    .rc-banner {
        width: 100%;
        height: auto;
        border-radius: var(--mud-default-borderradius);
        margin-bottom: 8px;
    }

    .rc-panel-container {
        height: 545px;
    }
}

.white-space-nowrap {
    white-space: nowrap;
}

.examples-current-conditions-container {
    width: 400px;
}

.examples-remote-control-container .remote-control-panel {
    height: 351px;
    width: 340px;
}

.remote-control-panel .mud-card-content {
    position: relative;
    height: inherit;
}

    .remote-control-panel .mud-card-content.changed {
        background-color: var(--orange-30);
    }

.remote-control-panel .main-content {
    height: 100%;
    justify-content: center;
}

.remote-control-panel .bottom-container {
    position: absolute;
    bottom: 6px;
    left: 16px;
    width: calc(100% - 16px);
}

.remote-control-panel .top-container {
    position: absolute;
    top: 6px;
    left: 16px;
    width: calc(100% - 16px);
}

    .remote-control-panel .top-container p {
        font-size: 14px;
        line-height: 16px;
    }

.remote-control-panel .local-control-container {
    background-color: var(--orange);
}

    .remote-control-panel .local-control-container img {
        height: 7rem;
    }

.remote-control-panel .warning-message {
    color: var(--orange);
    background-color: rgba(255, 193, 7, 0.15);
    padding-top: 0;
    padding-bottom: 0;
    width: calc(100% - 32px);
}

.remote-control-panel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    border-radius: var(--mud-default-borderradius);
    padding: 16px;
}

.remote-control-panel .active-change-container {
    background-color: var(--orange-60);
}

.remote-control-panel .message-container {
    width: calc(100% - 32px);
}
