@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('open-iconic/font/css/test.css');

/*Spacing between application elements*/
.column-padding {
    padding: 0px var(--global-spacing) 0px var(--global-spacing);
}

.element-container-margin {
    margin: 0px 0px var(--global-spacing) 0px;
}

.left-vertical-separator {
    padding: 0px 0px 0px var(--global-spacing);
}

.vertical-scroll-container {
    overflow-y: auto;
}

.page-container {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.page-scrollable-container {
    display: flex;
    height: 100%;
    overflow-y: auto;
}

.page-scrollable-content {
    position: relative;
    height: 0px;
}

main {
    display: flex;
    flex: 1;
    height: auto;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #FFF;
    background: none;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    .blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1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DU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.header-container {
    background-color: #00263A;
    color: #FFF;
    padding: calc( 2 * var(--global-spacing));
}

.vertical-center {
    align-content: center;
}

/*Region: Header*/

.selmo-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.selmo-logo {
    background: url("./custom-icons/Selmo-S_gradient_full_32.png");
    display: block;
    width: 32px;
    height: 32px;
    margin-right: calc(var(--global-spacing) / 2);
}

.selmo-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-top: calc(var(--global-spacing) / 3);
}

.header-container {
    background-color: #00263A;
    color: #FFF;
    padding: calc( 2 * var(--global-spacing));
}

.header-text-wrap {
    white-space: nowrap;
}

.header-clock {
    font-size: 28px;
}

.header-date {
    font-size: 16px;
}

.header-complex-content {
    display: flex;
    justify-content: flex-end;
}

.header-elements {
    padding: calc(var(--global-spacing) / 2);
    align-content: center;
    width: min-content;
}

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

.header-alarm-container {
    padding: calc(var(--global-spacing) / 2);
    align-content: center;
    display: flex;
    justify-content: center;
}

.last-alarm-datetime {
    display: inline-flex;
    align-items: center;
}

/*End region: Header*/

.rz-dialog-content {
    height: -webkit-fill-available;
    align-content: center;
}

.rz-growl-icon-close, .rzi-info-circle {
    display: none !important;
}

.line-break {
    line-break: initial;
}

.word-break {
    word-break: break-all;
}

.no-word-break {
    word-break: keep-all;
}

.btn.button-background {
    background-color: var(--button-background-color) !important;
}

.btn.button-accent-background {
    background-color: var(--button-accent-background-color) !important;
}

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

.flex-container-row {
    flex-direction: row;
}

.flex-container-column {
    flex-direction: column;
}

.row-flex-1 {
    flex: 1;
}

.row-height-fit-content {
    height: fit-content;
}

.circle-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: left;
    align-content: center;
    align-items: center;
}

.circle {
    display: flex;
    flex: 0 0 auto;
    margin: 4px;
}

.circle-gray {
    background-color: gray;
}

.circle-green {
    background-color: lightgreen;
}

.circle-blue {
    background-color: blue;
}

.circle-red {
    background-color: red;
}

.hover-over-handpointer {
    cursor: pointer;
}

.selection-overview-container {
    background-color: #FFF;
    padding: var(--global-spacing);
    border: 1px solid black;
    display: flex;
    flex-direction: row;
    width: 300px;
    cursor: pointer;
    justify-content: space-between;
}

.rz-button.rz-primary.rz-shade-default {
    background-color: #007BFF;
}

.rz-button.rz-secondary.rz-shade-default {
    background-color: #FF0000;
}

.headline {
    color: #00263a;
    font-size: 24px;
    font-weight: bold;
}

.headline-container {
    background: #B8B8B8;
}

.nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-item a {
    color: white;
    height: var(--large-element-height);
    border-radius: 4px;
    display: flex;
    align-items: center;
    line-height: 1.2rem;
}

    .nav-item a.active {
        background-color: rgba(255,255,255,0.25);
        color: #00ca10;
    }

    .nav-item a:hover {
        background-color: rgba(230,230,230,0.1);
        color: #00ca10;
    }

.process-value-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.process-value-element {
    flex: 1 0 calc((100% - 2 * (var(--global-spacing))) / 3);
    min-width: 120px;
    max-width: 120px;
    min-height: 120px;
    max-height: 120px;
    padding: var(--global-spacing);
    background-color: #9966FF;
    box-sizing: border-box;
}

.element-gap {
    gap: var(--global-spacing);
}

/*Region: Dashboard components*/

.dashboard-padding {
    padding: var(--global-spacing);
}

.dashboard-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-gap: var(--global-spacing);
    --col-3: 1;
    --col-6: 2;
    --col-9: 3;
}

.col-3 {
    grid-column: span var(--col-3);
}

.col-6 {
    grid-column: span var(--col-6);
}

.col-9 {
    grid-column: span var(--col-9);
}

.dashboard-component {
    border: 2px solid #CCC;
    width: 100%;
}

/*End region: Dashboard components*/

.sequence-content-row-align-container {
    display: flex;
    flex-direction: column;
    gap: var(--global-spacing);
}

.sequence-control-panel-button {
    padding: 8px;
}

.sequence-control-panel-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: calc(var(--global-spacing) / 2);
}

    .sequence-control-panel-row > div {
        height: 100%;
    }

.sequence container {
    display: flex;
    margin-left: auto;
    margin-top: -2px;
}

.sequence-inner-container {
    align-items: stretch;
    justify-content: center;
    display: inline-flex;
    width: fit-content;
}

.sequence-item {
    align-items: center;
    justify-content: center;
}

.teach-mode-button-container {
    gap: var(--global-spacing);
    align-items: center;
}

.regular-item {
    font-size: 16px;
    font-weight: bold;
}

.global-spacing-gap {
    gap: var(--global-spacing);
}

.rz-paginator-element, .rz-date-filter-buttons .rz-button, .rz-button-md {
    min-height: unset;
    min-width: unset;
}

.events-list {
    margin-top: 2px;
    margin-left: 5px
}

table#alarmListComponentTable th {
    background-color: #DDDEDE;
    padding: var(--global-spacing);
}

table#alarmListComponentTable td {
    padding: var(--global-spacing);
}

.button-container {
    display: flex;
    width: 100%;
    min-width: 0;
}

.button-content-text-container {
    min-width: 0;
    overflow: hidden;
}

/* Variant 1: Break into multiple lines */
.button-content-break-text {
    word-break: break-all;
    min-width: 0;
}

/* Variant 2: Cut off with ellipsis */
.button-content-text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

/* Variant 3: Horizontal scroll */
.button-content-text-scroll {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    display: inline-block;
    max-width: 100%;
    height: 100%;
    line-height: inherit;
}

    .button-content-text-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .button-content-text-scroll::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }

    .button-content-text-scroll::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }

        .button-content-text-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.4);
        }

.rz-button-box {
    width: 100%;
    height: 100%;
}

.button-additional-content {
    flex-shrink: 0;
    height: 100%;
}

.history-data-toolbar-row {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--global-spacing);
    width: 100%;
    overflow-x: auto;
}

.history-data-toolbar-col {
    flex: 0 0 calc(25% - (var(--global-spacing) * 3 / 4));
    max-width: calc(25% - (var(--global-spacing) * 3 / 4));
    min-width: calc(25% - (var(--global-spacing) * 3 / 4));
}

.markdown-error {
    color: #FF0000;
}

.markdown-container {
    overflow: auto;
}

.heavy-font-weight {
    font-weight: 700;
}

.button-label {
    font-size: 14px;
}

.plant-info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.automatic-mode-container {
    align-items: center;
}

.report-dialog-vertical-center {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-icon {
    margin: 0px 4px 0px 5px;
}

.responsive-item-width {
    width: var(--large-element-width);
}

/*Sequence Time Monitoring Component*/
.time-monitoring-row-input {
    background-color: #ffff00;
}

.time-monitoring-grid {
    width: 100%;
}

.time-monitoring-grid-header {
    background-color: #f3f4f6;
    font-weight: bold;
    font-size: 14px;
}

.time-monitoring-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: calc(var(--global-spacing) /2);
    padding: calc(var(--global-spacing) /2);
    align-items: center;
    margin-bottom: calc(var(--global-spacing) /2);
}

.time-monitoring-row-title {
    display: none;
}

.time-monitoring-row-name {
    word-break: break-all;
    line-height: 14px;
}

/*End of Sequence Time Component*/

/*Flashing button*/

@keyframes flashOpacity {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        opacity: 1;
    }
}

/*End of Flashing button*/

@media (max-width: 992px) {
    .label-text {
        font-size: 14px;
    }

    .small-label-text {
        font-size: 12px;
    }

    .large-label-text {
        font-size: 14px;
    }

    .light-font-weight {
        font-weight: 300;
    }

    .icon-font {
        height: 14px;
        width: 14px;
        font-size: 14px;
        font-weight: 400;
    }

    .circle-container {
        align-items: baseline;
    }

    .circle {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .process-value-text {
        font-size: 32px;
    }

    .sequence-control-panel-button {
        padding: 2px;
    }

    .sequence-control-panel-row {
        gap: calc(var(--global-spacing) / 4);
    }

    .sequences-list-container {
        gap: calc(var(--global-spacing) / 2);
    }

    .header-clock {
        font-size: 24px;
    }

    .header-text-wrap {
        white-space: break-spaces;
    }

    .header-clock {
        font-size: 20px;
    }

    .header-date {
        font-size: 12px;
    }

    .button-label {
        font-size: 12px;
    }

    .time-monitoring-grid-header {
        display: none;
    }

    .time-monitoring-row-title {
        display: block;
        margin-right: auto;
        width: 60%;
    }

    .time-monitoring-row-name {
        font-weight: bold;
    }

    .time-monitoring-row-content {
        margin-left: auto;
        width: 40%;
    }

    .time-monitoring-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        .time-monitoring-row > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: calc(var(--global-spacing) / 2);
            width: 100%;
        }
}

@media (max-width: 1255px) {
    .last-alarm-datetime {
        display: block;
    }

    .button-label {
        font-stretch: condensed;
    }
}

@media (min-width: 1255px) {
    .button-label {
        font-stretch: expanded;
    }
}

@media (max-width: 1380px) {
    .responsive-item-width {
        width: var(--small-element-width);
    }
}

@media (min-width: 992px) {
    .label-text {
        font-size: 16px;
    }

    .small-label-text {
        font-size: 16px;
    }

    .large-label-text {
        font-size: 20px;
    }

    .light-font-weight {
        font-weight: 400;
    }

    .icon-font {
        height: 16px;
        width: 16px;
        font-size: 16px;
        font-weight: 700;
    }

    .div-row-wrap-container {
        align-items: center;
    }

    .circle {
        width: 18px;
        height: 18px;
        border-radius: 50%;
    }

    .process-value-text {
        font-size: 42px;
    }
}

.sub-title-text {
    font-weight: bold;
}

@media (max-width: 1499px) {
    .sub-title-text {
        font-size: 12px;
    }

    .time-monitoring-grid-header {
        font-size: 12px;
    }
}

@media (min-width: 1500px) and (min-width: 1919px) {
    .sub-title-text {
        font-size: 14px;
    }
}

@media (min-width: 1920px) {
    .sub-title-text {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .overview-container {
        width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1919px) {
    .overview-container {
        width: 60%;
    }
}

@media (min-width: 1920px) {
    .overview-container {
        width: 40%;
    }
}