:root {
    --footer-background: #404040;
    --header-background: #404040;
    --header-font: "Source Sans 3",sans-serif;
    --navbar-brand-background: #dd6e0f;
    --navbar-brand-color1: white;
    --navbar-brand-color2: #808080;
    --page-background: #f3f2fa;
    --white: #fff;
    --grey: #f3f2fa;
    --primary-font: "Source Sans 3";
    --header-font: "Oswald";
    --rz-series-1: #E35756 !important;
    --rz-series-2: #33B5E5 !important;
    --rz-series-3: #42AE5D !important;
    --rz-primary: #eb233d !important;
    --rz-slider-range-background-color: #333639 !important;
}

/*On mobile we should not use vh instead we should use dvh*/
.rz-layout.rz-Material {
    height: 100dvh;
}

nav {
    height: 100dvh;
}

.layout-container {
    height: 100dvh;
}

#reconnectOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.overlay-content {
    text-align: center;
    background: #222;
    padding: 20px;
    border-radius: 8px;
}

/*disabled without the opacity and with no cursor*/
.disabled-fully-visible-no-cursor{       
}
    /* Invisible overlay to show the cursor */
    .disabled-fully-visible-no-cursor::before {
        content: "";
        position: absolute;
        inset: 0;
        cursor: not-allowed;
        background: transparent;
        z-index: 10000; /* Ensure it's above content */
    }

.disabled {
    position: relative;
    opacity: 0.5;
}

    /* Invisible overlay to show the cursor */
    .disabled::before {
        content: "";
        position: absolute;
        inset: 0;
        background: transparent;
        cursor: not-allowed;
        z-index: 10000; /* Ensure it's above content */
    }

/* Radzen button disabled */
.rz-button:disabled,
.rz-button.rz-state-disabled {
    cursor: not-allowed;
    opacity: .5 !important;
}

    .overlay-content h2 {
        margin-bottom: 10px;
    }

    .overlay-content button {
        background-color: #ff5252;
        color: white;
        padding: 10px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

.page {
    position: relative;
    display: grid;
    grid-template-columns: 45px 1fr;
    grid-template-rows: 1fr;
}

    .page aside {
        grid-column: 1;
        grid-row: 1;
    }

    .page header {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }

        .page header .h3, .page header h3 {
            font-size: 1.3rem;
        }

        .page header .page-header {
            display: block;
        }

            .page header .page-header:first-letter {
                text-transform: uppercase;
            }

        .page header div:last-of-type {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            align-items: center;
        }

            .page header div:last-of-type .alias div {
                border-radius: 50%;
                background-color: #479EDE;
                width: 36px;
                height: 36px;
                color: #fff;
                font-weight: 600;
                display: flex;
                align-items: center;
                justify-content: space-evenly;
            }

    .page section {
        grid-column: 2;
        grid-row: 2;
        margin: 0 20px 0 0;
    }

/*MainLayout*/
.layout-container {
    display: flex;
    height: 100dvh;
    width: 100vw;
}

.main-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.body-container {
    flex: 1;
}

.body-content {
    display: table;
    width: 100%;
    table-layout: fixed;
    padding-inline: 10px;
}

/*Left Sidebar*/
nav {
    height: 100dvh;
    background-color: #082a36;
    display: grid !important;
    align-content: space-between;
    width: 50px;
    position: absolute;
    overflow: hidden;
    grid-template-rows: 70px 1fr 1fr;
    color: #fff;
    z-index: 500;
    -webkit-transition: width 0.2s linear;
    transition: width 0.2s linear;
    -webkit-transform: translateZ(0) scale(1, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: auto;
}

.toggle-sidebar-button-open,
.toggle-sidebar-button-close {
    position: absolute;
    top: 65px;
    z-index: 100;
    background-color: #ffffff;
    border-radius: 100%;
    padding: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    color: #0e2a37;
    transform: scale(1);
    transition: transform 0.6s ease; /* shrinks the button slowly when hover ends so it's harder for user to misclick */
}

    .toggle-sidebar-button-open:hover,
    .toggle-sidebar-button-close:hover {
        background-color: #057fb0;
        color: #ffffff;
        transform: scale(1.3);
        transition: transform 0.2s ease; /* grows button to reduce misclicks */
    }

.toggle-sidebar-button-close {
    left: 158px;
}

.toggle-sidebar-button-open {
    left: 38px;
}

@media (max-height: 468px) {
    nav.sidebar-collapsed {
        width: 60px;
    }

    .toggle-sidebar-button-close {
        left: 153px;
    }
}

.layout-sidebar-expanded {
    width: 170px !important;
}

.layout-sidebar-collapsed {
    width: 50px !important;
}

nav.open {
    width: 170px;
}

nav .logo {
    padding-top: 20px;
    margin-left: 5px;
    cursor: pointer;
}

nav .menus {
    margin-top: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0;
}

    nav ul li {
        width: 250px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding-left: 0px;
        margin-left: -40px;
        cursor: pointer;
        padding: 10px;
    }

        nav ul li p {
            width: 100px;
            white-space: nowrap;
            text-align: left;
            letter-spacing: 0.3px;
            color: #ffffffe6;
            font-size: 1rem;
            font-weight: 500;
            margin: 0px;
        }

    nav ul:last-of-type {
        align-self: end;
        margin-bottom: 20px;
    }

    nav ul li:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        transition: background-color 0.3s ease;
        padding: 10px;
    }

    nav ul li.active {
        background-color: #0b4c5f;
        padding: 10px;
    }

        nav ul li.active p {
            color: #fff;
        }

    nav ul li:hover p {
        color: #ffffff;
    }

.toggle-sidebar-menu-item-text {
    padding-inline: 4px;
}

.pallet-menu-item {
    padding-bottom: 10px;
}

.lift-menu-item {
    padding-bottom: 4px;
}

/*Header*/
.header {
    background-color: var(--header-color);
    padding: 4px 25px;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.page-title {
    margin-block-end: 0em;
}

.header-actions {
    display: flex;
    justify-content: end;
    align-items: end;
}

.user-profile {
    border-radius: 50%;
    background-color: #479EDE;
    width: 36px;
    height: 36px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-right: 7px;
}

.user-profile.yellow {
    background-color: #f3b900;
}

.user-notifications {
    margin-right: 50px;
}

.header-site-name {
    margin-right: 20px;
}

.header-site-name-h3 {
    margin-block-start: 0em !important;
    margin-block-end: 0em !important;
}

@media (max-width: 775px) {
    .header-actions {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .rz-header, .rz-footer, .rz-body {
        width: auto !important;
    }
}

/*SiteInfo*/

.orange-text {
    color: orange;
    font-weight: bold;
}

.siteinfo-header-section {
    display: flex;
    justify-content: flex-end;
    min-height: 30px;
}

.siteinfo-header-title {
    display: flex;
}

    .siteinfo-header-title h3 {
        margin-block-end: 0em;
        margin-block-start: 0em;
    }

/*Grid layout*/
.layout {
    display: grid;
    gap: 10px;
    max-height: 75dvh;
    height: 75dvh;
    overflow: auto;
    margin-bottom: 1em;
}

    .layout > section {
        padding: 20px;
    }

    .layout.grid-1 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "a";
    }

    .layout.grid-2 {
        grid-template-columns: 1fr 30%;
        grid-template-rows: auto;
        grid-template-areas: "a b";
    }

    .layout.grid-4 {
        grid-template-columns: 70% 30%;
    }

    .layout.grid-7 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        grid-template-areas: "a b c" "d d e" "f f e" "f f g";
        gap: 10px;
    }

    .layout.grid-9 {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "a b c" "d e f" "g g h";
    }

    .layout .a {
        grid-area: a;
    }

    .layout .b {
        grid-area: b;
    }

    .layout .c {
        grid-area: c;
    }

    .layout .d {
        grid-area: d;
    }

    .layout .e {
        grid-area: e;
    }

    .layout .f {
        grid-area: f;
    }

    .layout .g {
        grid-area: g;
    }

    .layout .h {
        grid-area: h;
    }

.tutorials {
    margin: 20px;
    display: flex;
    gap: 20px;
}

.card .conveyor {
    background-color: #33B5E5;
    color: #fff;
    width: 165px;
    height: 200px;
}

.card .pallets {
    background-color: #FFBB33;
    width: 165px;
    height: 200px;
}

.card .parameters {
    background-color: #007E33;
    width: 165px;
    height: 200px;
}

.settings {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

    .settings .setting {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        max-width: 500px;
    }

.settings-dark-mode {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-top: -1rem;
    margin-bottom: -1rem;
}

    .settings-dark-mode .checkbox {
        opacity: 0;
        position: absolute;
        width: 0;
        height: 0;
    }

    .settings-dark-mode .checkbox-label {
        background-color: #111;
        width: 50px;
        height: 26px;
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 5px;
        cursor: pointer;
        position: relative;
    }

    .settings-dark-mode .fa-moon {
        color: #f1c40f;
    }

    .settings-dark-mode .fa-sun {
        color: #f39c12;
    }

.settings-dark-mode .checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.settings-dark-mode .checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

.settings .dropzone {
    padding: 30px;
    border: 1px dashed #75868a;
    list-style: none;
}

.settings .no-drop {
    border: 2px dashed red;
}

.settings .can-drop {
    border: 2px dashed green;
}

.settings .draggable {
    background: red;
    margin-bottom: 10px;
    padding: 10px 25px;
    border: 1px solid #424d5c;
    cursor: grab;
    background: #5c6b7f;
    color: #ffffff;
    border-radius: 5px;
    width: 250px;
}

    .settings .draggable:active {
        cursor: grabbing;
    }

.settings .dragging {
    cursor: grabbing;
}

.settings .widgets-container {
    display: flex;
    justify-content: space-around;
    width: 60vw;
    height: 500px;
}

.settings .dropzone {
    flex: 1;
}

.settings .ready ul {
    overflow: scroll;
    height: 300px;
}

.settings .widgets-zone {
    display: flex;
}

.settings .layout-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

    .settings .layout-widgets ul {
        width: 300px;
    }

        .settings .layout-widgets ul:nth-child(1) {
            grid-row: 1;
            grid-column: 1;
        }

        .settings .layout-widgets ul:nth-child(2) {
            grid-row: 1;
            grid-column: 2;
        }

        .settings .layout-widgets ul:nth-child(3) {
            grid-row: 2;
            grid-column: 1;
        }

        .settings .layout-widgets ul:nth-child(4) {
            grid-row: 2;
            grid-column: 2;
        }


.row-top-border {
    border-top: var(--menu-separator);
}

.settings-label {
    font-weight: 600;
}

    .settings-label i {
    }

.settings-value {
    min-width: 13rem;
}

.settings-card {
    padding: 0rem !important;
}

.settings-card-header {
    padding: 1rem 1.5rem;
    margin-top: 0;
    margin-bottom: 0 !important;
}

.language-row {
    container-type: inline-size;
    container-name: languageRow;
}

.settings-language-dropdown {
    width: 100%;
    margin-top: -1rem;
    margin-bottom: -1rem;
}

@container languageRow (max-width: 590px) {
    .settings-language-dropdown {
        margin-top: 0;
        margin-bottom: 0;
    }
}

#settings-wrapper .settings-label-column {
    flex: 0 0 20rem;
    display: flex;
    align-items: center;
}

#settings-wrapper .settings-value-column {
    flex: 0 0 15rem;
    display: flex;
    align-items: center;
}

#settings-wrapper .settings-auto-column {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.orange-text {
    color: orange;
    font-weight: bold;
}

.red-text {
    color: red;
    font-weight: bold;
}



.site {
}

    .site .floor-plan {
        grid-row: 2;
        width: 100%;
        height: 100%;
    }

    .site .sidebar {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        right: 0;
        background-color: #292828;
        overflow-x: hidden;
        transition: 0.5s;
        padding: 0;
    }

        .site .sidebar.open_False {
            width: 0;
            padding: 0;
        }

        .site .sidebar.open_True {
            width: 50%;
            padding: 20px;
        }

        .site .sidebar .panel-body {
            display: flex;
            justify-content: space-between;
        }

    .site .toolbar {
        grid-row: 1;
        display: flex;
        gap: 20px;
        justify-content: end;
    }

        .site .icon:hover {
            background: #fff;
            color: #444;
        }

        .site .icon.active {
            background-color: #eb233d;
        }

    .site .panel_widgets {
        margin-top: 20px;
        display: grid;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: space-between;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(3, auto);
        gap: 10px;
        height: 85dvh;
        margin-right: 10px;
    }

        .site .panel_widgets .widget {
            /*background: #393434;*/
            /*overflow: hidden;
  border-radius: 10px;*/
        }

            .site .panel_widgets .widget h5 {
                color: #fff;
                padding: 10px;
                background-color: #393434;
                display: flex;
                justify-content: space-between;
            }

            .site .panel_widgets .widget.widget-2 {
                grid-row: 1/3;
                grid-column: 2/3;
                color: #fff;
                /*.manual-switch {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
  }

  .manual-options {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 20px;
  }*/
            }

                .site .panel_widgets .widget.widget-2 .panel-drive {
                    display: grid;
                    justify-content: center;
                    align-items: flex-end;
                    /*width: 200px;
  height: 200px;*/
                    grid-template-columns: repeat(3, 80px);
                    grid-template-rows: repeat(3, 80px);
                    /*padding-left: 20%;
  padding-top: 20%;*/
                }

                    .site .panel_widgets .widget.widget-2 .panel-drive .forward, .site .panel_widgets .widget.widget-2 .panel-drive .backward {
                        grid-column: 1/-1;
                        justify-self: center;
                        align-self: center;
                    }

                    .site .panel_widgets .widget.widget-2 .panel-drive .left, .site .panel_widgets .widget.widget-2 .panel-drive .right {
                        justify-self: center;
                        align-self: center;
                    }

                    .site .panel_widgets .widget.widget-2 .panel-drive .value-drive {
                        justify-self: center;
                        align-self: center;
                    }

            .site .panel_widgets .widget.widget-3 {
                overflow: scroll;
                grid-row: 2/-1;
            }

                .site .panel_widgets .widget.widget-3 .taxi-view:hover {
                    transform: scale(1.5);
                }

            .site .panel_widgets .widget.widget-4 {
                grid-row: 3/-1;
                grid-column: 2;
                padding: 10px;
            }

                .site .panel_widgets .widget.widget-4 .list-actions {
                    justify-content: space-around;
                    display: flex;
                }

    .site .sidebar .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

    .site .openbtn {
        font-size: 20px;
        cursor: pointer;
        background-color: #111;
        color: white;
        padding: 10px 15px;
        border: none;
    }

        .site .openbtn:hover {
            background-color: #444;
        }

    .site #main {
        transition: margin-left 0.5s;
        padding: 16px;
    }

    .site h2 {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .site .top-panel {
        position: fixed;
        z-index: 1000;
        display: flex;
        z-index: 2;
        font-size: 15px;
    }

    .site .side-panel {
        position: fixed;
        right: -18%;
        width: 18%;
        height: 100%;
        background: #434343;
        color: white;
        transition: right 0.3s;
        z-index: 1000;
    }

    .site .side-panel-left-side {
        top: 56px;
        position: fixed;
        width: 14%;
        height: 100%;
        background: #434343;
        color: white;
        transition: right 0.3s;
        z-index: 1;
        word-break: break-word;
    }

    .site .side-panel-left-side-content {
        overflow: auto;
        scrollbar-width: thin;
    }

    .site .panel-content {
        height: 100%;
        padding-inline: 4px;
    }

    .site .side-panel.open {
        right: 0;
    }

    .site .panel-tools {
        display: flex;
        justify-content: space-between;
    }

    .site .toggle-btn {
        position: absolute;
        top: 5px;
        left: -40px;
        background-color: transparent;
        color: white;
        border: none;
        cursor: pointer;
        font-size: 24px;
        outline: 0px;
    }

        .site .toggle-btn:focus {
            outline: 0;
        }

.card {
    border-radius: 6pt;
    background-color: var(--white);
    /*height: 90vh;*/
}

.page-header {
    font-family: var(--header-font);
    font-size: 1.3rem;
    font-weight: 600;
}

.piechart .rz-chart {
    height: 260px;
}

    .piechart .rz-chart .rz-donut-content div:first-of-type {
        color: #737B8B;
    }

    .piechart .rz-chart .rz-donut-content div:last-of-type {
        font-size: 3.2rem;
        font-weight: 600;
    }

.table {
    display: flex;
    flex-direction: column;
}

    .table .thead {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        justify-content: space-evenly;
    }

    .table .trow {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        justify-content: space-evenly;
    }

.level-dropdown {
    width: 100%;
    padding-top: 2px;
}

.map-bar-title {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    justify-content: center;
}

.map-left-bar-title {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    justify-content: start;
}

.widget-transporters {
    display: flex;
    flex-direction: column;
    background-color: #434343;
    width: 100%;
    margin-bottom: 70px;
}

.widget-transporters ul {
  list-style-type: none;
  padding-left: 10px;
  font-family: "SourceSansSemiBold";
  font-weight: 600;
  font-size: 1rem;
  background-color: #828282;
  margin-block-start: 0em;
}

        .widget-transporters ul li {
            display: flex;
            gap: 10px;
            margin-top: 5px;
            margin-bottom: 5px;
        }

            .widget-transporters ul li.selected {
                background-color: #393434;
            }

            .widget-transporters ul li.unselected {
                background-color: #828282;
            }

    .widget-transporters li:hover {
        background-color: #f0f0f0;
    }

    .widget-transporters ul li span.inproduction {
        border-left: 5px red solid;
    }

    .widget-transporters ul li span.outproduction {
        border-left: 5px #f69b08 solid;
    }

    .widget-transporters ul li .hidden-checkbox {
        display: none;
    }

    .widget-transporters .widget-actions-production {
        background-color: #393434;
        border-radius: 0 0 8pt 8pt;
        padding: 10px;
    }

    .widget-transporters ul li .clear_err_btn {
        background-color: red !important;
        border-radius: 12px;
        font-family: "SourceSansSemiBold";
        font-weight: 600;
        font-size: 15px;
        margin-left: auto;
        border: none;
        font-weight: 100;
    }

    .widget-transporters .clear_err_label {
        font-weight: 600;
        font-size: 15px;
        font-weight: 100;
    }

.widget-in-out-prod {
    display: grid;
    grid-template-rows: 1fr;
    background: #393434;
    height: auto;
    overflow: hidden;
    padding-top: 10px;
    border-radius: 0.75rem;
    width: 230px;
}

    .widget-in-out-prod .widget-body {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 40px;
    }

    .widget-in-out-prod .list-transporters {
        grid-column: 1;
        grid-row: 1;
        list-style-type: none;
        padding-left: 10px;
        font-family: "SourceSansSemiBold";
        font-weight: 600;
        font-size: 1rem;
        overflow: auto;
        max-height: 140px;
    }

    .widget-in-out-prod .select-all {
        grid-column: 1;
        grid-row: 2;
        justify-self: flex-end;
        align-content: space-around;
    }

    .widget-in-out-prod .widget-actions {
        justify-content: space-evenly;
        align-items: center;
        background-color: #393434;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

        .widget-in-out-prod .widget-actions button {
            border-radius: 4pt;
            border: none;
            width: 100%;
        }

    .widget-in-out-prod .widget-actions-production {
        background-color: #393434;
        border-radius: 0 0 8pt 8pt;
        padding: 10px;
    }

.widget-in-out-prod-options {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-inline: 12px;
    width: 100%;
}

.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.taxis {
    display: none !important;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #333;
    width: 110px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 500;
}

.widget-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 5px;
    padding-right: 10px;
}

.manual-control-widget-header-icon {
    margin: 0.7rem;
}



.manual-control-title {
    color: white !important;
}

.in-out-production-title {
    color: white !important;
    padding-left: 5px;
}

.taxis.open {
    display: block !important;
}

.taxis ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .taxis ul li {
        padding: 12px 16px;
        cursor: pointer;
    }

        .taxis ul li:hover {
            background-color: #575757;
        }

button:focus {
    outline: none;
}
.icon-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10%;
    padding-right: 10%;
}
    .icon-navigation .text {
        flex-grow: 1;
        text-align: center;
    }

.conveyor-drive-container {
    max-height: 200px;
    display: flex;
    flex-direction: column;
}

.conveyor-drive-row {
    flex: 1;
    display: flex;
    height: 100%;
}

.conveyor-drive-button-column {
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    overflow-y: auto;
    max-height: 100%;
    flex: 1; /* Ensures equal column widths */
    min-width: 50%; /* Prevents shrinking below 50% */
}

.conveyor-drive-responsive-button {
    white-space: normal !important; /* Allows text to wrap */
    word-break: break-word; /* Prevents text from overflowing */
    text-align: center; /* Ensures text remains centered */
    align-items: center;
    max-width: 90%; /* Prevents unintended stretching */
    padding-bottom: 30px;
}

.conveyor-drive-column-title {
    margin: 0px 5px -5px 5px;
}

.conveyor-drive-controls {
    max-height: 200px;
}

.widget-conveyor-drive {
    color:white;
    width: 260px;
    height: 500px;
    display: grid;
    grid-template-rows: 40px 1fr 70px 1fr;
    background-color: #393434;
    font-family: SourceSansSemiBold;
    border-radius: 0.7rem;
}

.conveyor-drive-button-column {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    overflow-y: auto;
    max-height: 100%;
    flex: 1; 
    min-width: 50%; 
}

.conveyor-drive-responsive-button {
    white-space: normal !important;
    word-break: break-word;
    text-align: center;
    align-items: center;
    max-width: 90%; /* Prevents unintended stretching */
    padding-bottom: 30px;
}

.conveyor-drive-column-title {
    margin: 0px 5px -5px 5px;
}


    .widget-conveyor-drive .panel-manualtarget.open {
        display: block;
    }

    .widget-conveyor-drive .panel-manualtarget.close {
        display: none;
    }

    .widget-conveyor-drive .controls-nav {
        display: grid;
        grid-template-columns: repeat(2, 50px);
        grid-template-rows: auto;
        justify-content: center;
        align-content: center;
    }

    .widget-conveyor-drive .icon {
        border: 2px solid #fff;
        border-radius: 50%;
        padding: 0px;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-self: center;
    }

    .widget-conveyor-drive .forward, .widget-conveyor-drive .backward {
        grid-column: 1/-1;
        justify-self: center;
        align-self: center;
    }

    .widget-conveyor-drive .left, .widget-conveyor-drive .right {
        justify-self: center;
        align-self: center;
    }

    .widget-conveyor-drive .value-drive {
        justify-self: center;
        align-self: center;
    }

    .widget-conveyor-drive .controls-misc {
        display: flex;
        justify-content: center;
        padding-bottom: 5px;
    }

        .widget-conveyor-drive .controls-misc .controls-palette, .widget-conveyor-drive .controls-misc .controls-xy {
            display: flex;
            gap: 10px;
        }

    .widget-conveyor-drive .control-stop {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .widget-conveyor-drive .control-stop .icon {
            width: 100%;
            height: 100%;
            background-color: #EB233D;
            font-size: large;
            color: #ffffff;
            display: flex;
            justify-content: center;
        }

            .widget-conveyor-drive .control-stop .icon:hover {
                background-color: #EB233D;
                color: #111;
                cursor: pointer;
            }

    .widget-conveyor-drive .control-manual-target {
        background-color: #a5a5a5;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 40%;
    }

        .widget-conveyor-drive .control-manual-target.icon {
            width: 40px;
            height: 40px;
            color: #111;
            border-color: #EB233D;
            border-width: 3px;
        }

            .widget-conveyor-drive .control-manual-target.icon:hover {
                background-color: #EB233D;
                color: #111;
                cursor: pointer;
            }

.widget-conveyor-drive .control-options {
    background-color: #828282;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 5px;
    border-bottom-left-radius: 0.7rem;
    border-bottom-right-radius: 0.7rem;
}

        .widget-conveyor-drive .control-options .option-distance {
            display: grid;
            margin-left: 5px;
        }

        .widget-conveyor-drive .control-options .distance-slider {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0px;
        }

            .widget-conveyor-drive .control-options .distance-slider .radzen-slider {
                background-color: #d9d9d9;
                width: 130px;
                margin-left: 8px;
                margin-right: 8px;
            }

            .widget-conveyor-drive .control-options .distance-slider .radzen-numeric {
                width: 45px;
                height: 25px;
                font-size: 0.5rem;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .widget-conveyor-drive .control-options .distance-slider .right-align {
                font-size: 1rem;
            }

    .widget-conveyor-drive .rz-spinner input[type=number], .widget-conveyor-drive .rz-spinner input[type=text] {
        padding: 5px;
    }

    .widget-conveyor-drive .rz-slider-handle {
        background-color: #000 !important;
        width: 15px !important;
        height: 15px !important;
        font-size: 8px;
    }
    .widget-conveyor-drive .rz-slider {
        background-color: lightgray !important;
    }

    .widget-conveyor-drive .toggle-trigger {
        display: flex;
        gap: 10px;
    }

        .widget-conveyor-drive .toggle-trigger .checkbox {
            opacity: 0;
            position: absolute;
        }

        .widget-conveyor-drive .toggle-trigger .checkbox-label {
            background-color: #111 !important;
            width: 50px;
            height: 26px;
            border-radius: 50px;
            position: relative;
            padding: 0px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .widget-conveyor-drive .toggle-trigger .checkbox-label .ball {
                background-color: #fff;
                width: 22px;
                height: 22px;
                position: absolute;
                left: 2px;
                top: 2px;
                border-radius: 50%;
                transition: transform 0.2s linear;
            }

        .widget-conveyor-drive .toggle-trigger .checkbox:checked + .checkbox-label .ball {
            transform: translateX(12px);
        }

        .widget-conveyor-drive .toggle-trigger .checkbox-label {
            width: 30px;
            height: 18px;
        }

            .widget-conveyor-drive .toggle-trigger .checkbox-label .ball {
                width: 14px;
                height: 14px;
            }

            .widget-conveyor-drive .toggle-trigger .checkbox-label .checkbox:checked + .checkbox-label .ball {
                transform: translateX(12px);
            }

    .widget-conveyor-drive .stop-trigger {
        display: flex;
        gap: 10px;
    }

.widget-conveyor-drive .control-stop {
    margin: auto;
    width: 60px;
    height: 60px;
}

        .widget-conveyor-drive .stop-trigger .checkbox {
            opacity: 0;
            position: absolute;
        }

        .widget-conveyor-drive .stop-trigger .checkbox-label {
            background-color: #111 !important;
            width: 50px;
            height: 26px;
            border-radius: 50px;
            position: relative;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .widget-conveyor-drive .stop-trigger .checkbox-label .ball {
                background-color: #fff;
                width: 22px;
                height: 22px;
                position: absolute;
                left: 2px;
                top: 2px;
                border-radius: 50%;
                transition: transform 0.2s linear;
            }

        .widget-conveyor-drive .stop-trigger .checkbox:checked + .checkbox-label .ball {
            transform: translateX(12px);
        }

        .widget-conveyor-drive .stop-trigger .checkbox-label {
            width: 30px;
            height: 18px;
        }

            .widget-conveyor-drive .stop-trigger .checkbox-label .ball {
                width: 14px;
                height: 14px;
            }

            .widget-conveyor-drive .stop-trigger .checkbox-label .checkbox:checked + .checkbox-label .ball {
                transform: translateX(12px);
            }

.widget-manual-drive {
    width: 230px;
    background-color: #393434;
    font-family: SourceSansSemiBold;
    border-radius: 0.7rem;
}

    .widget-manual-drive .controls-nav {
        display: grid;
        grid-template-columns: repeat(3, 50px);
        grid-template-rows: repeat(3, 50px);
        justify-content: center;
    }

    .widget-manual-drive .forward, .widget-manual-drive .backward {
        grid-column: 1/-1;
        justify-self: center;
        align-self: center;
    }

    .widget-manual-drive .left, .widget-manual-drive .right {
        justify-self: center;
        align-self: center;
    }

    .widget-manual-drive .value-drive {
        justify-self: center;
        align-self: center;
        text-align:center;
    }

    .widget-manual-drive .controls-misc {
        display: flex;
        justify-content: space-between;
        padding-bottom: 5px;
        padding-inline: 5px;
    }

        .widget-manual-drive .controls-misc .controls-palette, .widget-manual-drive .controls-misc .controls-xy {
            display: flex;
            gap: 10px;
        }

    .widget-manual-drive .control-stop {
        width: 100%;
        height: 100%;
    }


        .widget-manual-drive .control-stop .icon {
            background-color: #425ec2;
            color: #FFF;
            width: 100%;
            height: 100%;
            border-radius: var(--rz-button-border-radius);
            font-size: 1.3rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .widget-manual-drive .control-stop .icon .panel-widgets {
                display: flex;
                flex-direction: column;
            }

            .widget-manual-drive .control-stop .icon .widget-READY {
                grid-column: 1;
                grid-row: 1/-1;
            }

            .widget-manual-drive .control-stop .icon .widget-CELL1 {
                grid-column: 2;
                grid-row: 1;
            }

            .widget-manual-drive .control-stop .icon .widget-CELL2 {
                grid-column: 3;
                grid-row: 1;
            }

            .widget-manual-drive .control-stop .icon .disabled {
                display: none;
            }

            .widget-manual-drive .control-stop .icon .tools-tr {
                display: flex;
                justify-content: space-around;
                list-style-type: none;
                margin: 0px;
                padding: 5px;
                border-top: 1px dotted #ccc;
                border-bottom: 1px dotted #ccc;
                margin-bottom: 5px;
            }

                .widget-manual-drive .control-stop .icon .tools-tr li:hover {
                    background: none;
                    color: #eb233d;
                    cursor: pointer;
                }

            .widget-manual-drive .control-stop .icon .transporters-status {
                position: relative;
            }

                .widget-manual-drive .control-stop .icon .transporters-status .open {
                    position: absolute;
                    display: block;
                }

                .widget-manual-drive .control-stop .icon .transporters-status .close {
                    display: none;
                }

            .widget-manual-drive .control-stop .icon .side-panel-widgets {
                position: fixed;
                top: 60px;
                right: 18%;
                width: 230px;
                height: 100%;
                color: white;
                transition: right 0.3s;
                z-index: 990;
            }

                .widget-manual-drive .control-stop .icon .side-panel-widgets > .close {
                    right: -18%;
                    opacity: 0;
                }

                .widget-manual-drive .control-stop .icon .side-panel-widgets > .open {
                    right: 18%;
                    opacity: 1;
                }

    .widget-manual-drive .control-stop .icon:hover {
        background-color: #3c4aaa;
        cursor: pointer;
    }

    .widget-manual-drive .control-options {
        background-color: #828282;
        display: grid;
        grid-template-rows: auto 1fr;
        padding-inline: 2px;
        border-bottom-left-radius: 0.7rem;
        border-bottom-right-radius: 0.7rem;
        padding:8px;
    }

        .widget-manual-drive .control-options .option-distance {
            display: grid;
            margin-left: 5px;
        }

        .widget-manual-drive .control-options .distance-slider {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0px;
        }

            .widget-manual-drive .control-options .distance-slider .radzen-slider {
                background-color: #d9d9d9;
                width: 130px;
                margin-left: 8px;
                margin-right: 8px;
            }

            .widget-manual-drive .control-options .distance-slider .radzen-numeric {
                width: 45px;
                height: 25px;
                font-size: 0.5rem;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .widget-manual-drive .control-options .distance-slider .right-align {
                font-size: 1rem;
            }

    .widget-manual-drive .rz-spinner input[type=number], .widget-manual-drive .rz-spinner input[type=text] {
        padding: 5px;
    }

    .widget-manual-drive .rz-slider-handle {
        background-color: #000 !important;
        width: 15px !important;
        height: 15px !important;
        font-size: 8px;
    }
    .widget-manual-drive .rz-slider {
        background-color: lightgray !important;
    }

    .widget-manual-drive .stop-trigger {
        display: flex;
        gap: 10px;
    }

        .widget-manual-drive .stop-trigger .checkbox {
            opacity: 0;
            position: absolute;
        }

        .widget-manual-drive .stop-trigger .checkbox-label {
            background-color: #111 !important;
            width: 50px;
            height: 26px;
            border-radius: 50px;
            position: relative;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .widget-manual-drive .stop-trigger .checkbox-label .ball {
                background-color: #fff;
                width: 22px;
                height: 22px;
                position: absolute;
                left: 2px;
                top: 2px;
                border-radius: 50%;
                transition: transform 0.2s linear;
            }

        .widget-manual-drive .stop-trigger .checkbox:checked + .checkbox-label .ball {
            transform: translateX(12px);
        }

        .widget-manual-drive .stop-trigger .checkbox-label {
            width: 30px;
            height: 18px;
        }

            .widget-manual-drive .stop-trigger .checkbox-label .ball {
                width: 14px;
                height: 14px;
            }

            .widget-manual-drive .stop-trigger .checkbox-label .checkbox:checked + .checkbox-label .ball {
                transform: translateX(12px);
            }

.widget-lift-drive {
    color:white;
    width: 230px;
    display: grid;
    grid-template-rows: 40px 1fr 70px 1fr;
    background-color: #393434;
    font-family: SourceSansSemiBold;
    border-radius: 0.7rem;
}

    .widget-lift-drive .panel-manualtarget.open {
        display: block;
    }

    .widget-lift-drive .panel-manualtarget.close {
        display: none;
    }

    .widget-lift-drive .controls-nav {
        display: grid;
        grid-template-columns: repeat(2, 50px);
        grid-template-rows: auto;
        justify-content: center;
        align-content: center;
    }

    .widget-lift-drive .icon {
        border: 2px solid #fff;
        border-radius: 50%;
        padding: 0px;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-self: center;
    }

    .widget-lift-drive .forward, .widget-lift-drive .backward {
        grid-column: 1/-1;
        justify-self: center;
        align-self: center;
    }

    .widget-lift-drive .left, .widget-lift-drive .right {
        justify-self: center;
        align-self: center;
    }

    .widget-lift-drive .value-drive {
        justify-self: center;
        align-self: center;
    }

    .widget-lift-drive .controls-misc {
        display: flex;
        justify-content: center;
        padding-bottom: 5px;
    }

        .widget-lift-drive .controls-misc .controls-palette, .widget-lift-drive .controls-misc .controls-xy {
            display: flex;
            gap: 10px;
        }

    .widget-lift-drive .control-stop {
        background-color: #a5a5a5;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .widget-lift-drive .control-stop .icon {
            width: 60px;
            height: 60px;
            color: #EB233D;
            border-color: #EB233D;
            border-width: 3px;
            display: flex;
            justify-content: center;
        }

            .widget-lift-drive .control-stop .icon:hover {
                background-color: #EB233D;
                color: #111;
                cursor: pointer;
            }

    .widget-lift-drive .control-manual-target {
        background-color: #a5a5a5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .widget-lift-drive .control-manual-target.icon {
            width: 40px;
            height: 40px;
            color: #111;
            border-color: #EB233D;
            border-width: 3px;
        }

            .widget-lift-drive .control-manual-target.icon:hover {
                background-color: #EB233D;
                color: #111;
                cursor: pointer;
            }

    .widget-lift-drive .control-options {
        background-color: #828282;
        display: flex;
        min-height: 280px;
        flex-direction: column;
        gap: 14px;
        padding-inline: 5px;
        border-bottom-left-radius: 0.7rem;
        border-bottom-right-radius: 0.7rem;

    }

        .widget-lift-drive .control-options .option-distance {
            display: grid;
            margin-left: 5px;
        }

        .widget-lift-drive .control-options .distance-slider {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0px;
        }

            .widget-lift-drive .control-options .distance-slider .radzen-slider {
                background-color: #d9d9d9;
                width: 130px;
                margin-left: 8px;
                margin-right: 8px;
            }

            .widget-lift-drive .control-options .distance-slider .radzen-numeric {
                width: 45px;
                height: 25px;
                font-size: 0.5rem;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .widget-lift-drive .control-options .distance-slider .right-align {
                font-size: 1rem;
            }

    .widget-lift-drive .rz-spinner input[type=number], .widget-lift-drive .rz-spinner input[type=text] {
        padding: 5px;
    }

    .widget-lift-drive .rz-slider-handle {
        background-color: #000 !important;
        width: 15px !important;
        height: 15px !important;
        font-size: 8px;
    }
    .widget-lift-drive .rz-slider {
        background-color: lightgray !important;
    }

    .widget-lift-drive .toggle-trigger {
        display: flex;
        gap: 10px;
    }

        .widget-lift-drive .toggle-trigger .checkbox {
            opacity: 0;
            position: absolute;
        }

        .widget-lift-drive .toggle-trigger .checkbox-label {
            background-color: #111 !important;
            width: 50px;
            height: 26px;
            border-radius: 50px;
            position: relative;
            padding: 0px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

            .widget-lift-drive .toggle-trigger .checkbox-label .ball {
                background-color: #fff;
                width: 22px;
                height: 22px;
                position: absolute;
                left: 2px;
                top: 2px;
                border-radius: 50%;
                transition: transform 0.2s linear;
            }

        .widget-lift-drive .toggle-trigger .checkbox:checked + .checkbox-label .ball {
            transform: translateX(12px);
        }

        .widget-lift-drive .toggle-trigger .checkbox-label {
            width: 30px;
            height: 18px;
        }

            .widget-lift-drive .toggle-trigger .checkbox-label .ball {
                width: 14px;
                height: 14px;
            }

            .widget-lift-drive .toggle-trigger .checkbox-label .checkbox:checked + .checkbox-label .ball {
                transform: translateX(12px);
            }

.widget-transporters-status {
    display: grid;
    grid-template-rows: auto 1fr 25px;
    background: #828282;
    width: 100%;
    height: 44dvh;
    overflow: hidden;
    grid-column: 1;
}

    .widget-transporters-status .widget-top {
        background-color: #b9b9b9;
    }

        .widget-transporters-status .widget-top h4 {
            color: #111;
            margin: 0;
        }

    .widget-transporters-status ul {
        list-style-type: none;
        padding-left: 10px;
        font-family: "SourceSansSemiBold";
        font-weight: 600;
        font-size: 0.9rem;
    }

        .widget-transporters-status ul li {
            display: flex;
            gap: 10px;
            margin-top: 5px;
            margin-bottom: 5px;
        }

            .widget-transporters-status ul li.selected {
                background-color: #393434;
            }

            .widget-transporters-status ul li.unselected {
                background-color: #828282;
            }

            .widget-transporters-status ul li span.inproduction {
                border-left: 5px red solid;
            }

            .widget-transporters-status ul li span.outproduction {
                border-left: 5px #f69b08 solid;
            }

            .widget-transporters-status ul li .hidden-checkbox {
                display: none;
            }

    .widget-transporters-status .widget-actions-production {
        background-color: #393434;
        border-radius: 0 0 8pt 8pt;
        padding: 10px;
    }

    .widget-transporters-status .widget-body {
        display: grid;
        grid-template-rows: 1fr 2fr;
    }

        .widget-transporters-status .widget-body.widget-card-container {
            perspective: 1000px;
            cursor: pointer;
        }

            .widget-transporters-status .widget-body.widget-card-container .widget-card {
                position: relative;
                width: 300px;
                height: 200px;
                transform-style: preserve-3d;
                transition: transform 0.6s;
            }

                .widget-transporters-status .widget-body.widget-card-container .widget-card .widget-card-front, .widget-transporters-status .widget-body.widget-card-container .widget-card .widget-card-back {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    backface-visibility: hidden;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 0.8rem;
                    color: white;
                }

                .widget-transporters-status .widget-body.widget-card-container .widget-card .widget-card-front {
                    /*background-color: #ff5722;*/
                }

                .widget-transporters-status .widget-body.widget-card-container .widget-card .widget-card-back {
                    background-color: #4caf50;
                    transform: rotateY(180deg);
                }

                .widget-transporters-status .widget-body.widget-card-container .widget-card .flipped {
                    transform: rotateY(180deg);
                }

    .widget-transporters-status .pallet-load {
        background-color: #393434;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .widget-transporters-status .pallet-info {
        display: flex;
        flex-direction: column;
    }

    .widget-transporters-status .widget-table {
        font-size: 0.8rem;
    }

    .widget-transporters-status .widget-table-header {
        display: grid;
        justify-content: space-evenly;
        grid-template-columns: repeat(3, 1fr);
    }

    .widget-transporters-status .datarow {
        display: grid;
        justify-content: space-evenly;
        grid-template-columns: repeat(3, 1fr);
    }

    .widget-transporters-status .sensors {
        padding: 5px;
    }

        .widget-transporters-status .sensors .list-sensors {
            list-style: none;
        }

            .widget-transporters-status .sensors .list-sensors li {
                border-left: 3px solid #fff;
                padding-left: 3px;
                flex-direction: column;
                gap: 0px;
            }

                .widget-transporters-status .sensors .list-sensors li.active {
                    border-left: 3px solid red;
                }

    .widget-transporters-status .messages {
        padding: 5px;
    }

        .widget-transporters-status .messages .list-messages {
            list-style: none;
        }

            .widget-transporters-status .messages .list-messages li {
                font-size: 0.9rem;
            }

    .widget-transporters-status .widget-footer {
        display: flex;
        justify-content: space-around;
        font-size: 0.8rem;
        color: #111;
    }

.panel-widgets {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.widget-READY {
    grid-column: 1;
    grid-row: 1/-1;
}

.widget-CELL1 {
    grid-column: 2;
    grid-row: 1;
}

.widget-CELL2 {
    grid-column: 3;
    grid-row: 1;
}

.tools-tr {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    margin: 0px;
    padding: 5px;
    border-top: 1px dotted #ccc;
    border-bottom: 1px dotted #ccc;
    margin-bottom: 5px;
    margin-top: auto;
}

    .tools-tr li:hover {
        background: none;
        color: #eb233d;
        cursor: pointer;
    }

.widget-camera {
    color: #ffffff;
}

    .widget-camera .tools-tr i {
        color: inherit;
    }

.transporters-status {
  display: flex;
  flex-direction: column;
  height: 37dvh;
  padding: 2px;
}

    .transporters-status .open {
        display: block;
    }

    .transporters-status .close {
        display: none;
    }


.side-panel-widgets-anchor {
    position: fixed;
    top: 75px;
    right: 18%;
}

.side-panel-widgets {
    position: fixed;
    top: 75px;
    right: 18%;
    color: white;
    transition: right 0.3s;
    z-index: 990;
    overflow: auto;
    scrollbar-width: thin;
}

/* Adjust widget when sidebar is collapsed */
.sidebar-collapsed .side-panel-widgets-anchor { 
    right: 0;
}

.sidebar-collapsed .side-panel-widgets { 
    right: 0;
}

    .side-panel-widgets > .change-conveyor-mode-panel {
        background: #393434;
        width: 300px;
        border-radius: 0.75rem;
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

    .side-panel-widgets > .close {
        right: -18%;
        opacity: 0;
    }

    .side-panel-widgets > .open {
        right: 18%;
        opacity: 1;
    }

.button-bar {
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 10px;
    padding: 0;
    border: none;
}

    .button-bar .button-bar__item {
        border-radius: 0;
        padding: 0;
        margin: 0;
        position: relative;
        overflow: hidden;
        box-sizing: border-box;
    }

        .button-bar .button-bar__item .button-bar__button {
            border: 1px solid #b1b4b8;
            padding: 5px;
            font-size: 0.8rem;
            font-weight: 700;
            background-color: transparent;
        }

            .button-bar .button-bar__item .button-bar__button:hover {
                background-color: #d0d5dd;
            }

        .button-bar .button-bar__item:first-child > .button-bar__button {
            border-left-width: 1px;
            border-radius: 20px 0 0 20px;
        }

        .button-bar .button-bar__item:last-child > .button-bar__button {
            border-right-width: 1px;
            border-radius: 0 20px 20px 0;
        }

.widget-top h4 {
  color: #111;
  margin: 0;
  text-transform: uppercase;
}

.spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

canvas {
    background-color: #ffffff;
    display: inline;
    border: 0px solid;
    height: 80%;
    aspect-ratio: 1/1;
}

.webgl-row {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
}

.webgl-column {
    padding: 0px;
}

.webgl {
    border-color: dimgray;
    background: black;
}

.tooltip_canvas {
    background: white;
    border-color: cornflowerblue;
    border-style: solid;
    border-width: 1px;
    z-index: 3;
}

.transporter-label-light {
    color: white;
}

.station-label {
    font-size: 11px;
    white-space: nowrap;
}

.transporter-label-dark {
    color: black;
}

.checkbox-text {
    color: white !important;
}

.three_level_select .mud-input-slot {
    color: white !important;
}

.three_menu {
    z-index: 2;
    position: fixed;
    top: var(--mud-appbar-height);
    right: -400px;
    height: 100%;
    width: 400px;
    transition: 0.4s;
    background-color: #2b2b2b;
}

.three_select {
    margin: 5;
}

.three_menu.open {
    right: 0px;
}

.three_menu_button {
    position: absolute;
    right: 100%;
}

.loader {
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.5019607843);
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    top: 50dvh;
    left: 50vw;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.selected_object_info {
    z-index: 3;
    position: fixed;
    bottom: 0px;
    background-color: white;
    padding: 10px;
}

.taxi_init_chip {
    z-index: 3;
    position: fixed;
    left: 0px;
    top: 0px;
}

#marqueeText {
    position: absolute;
    white-space: nowrap;
}

#marqueeTextParent {
    position: relative;
}

.pallet-sliding-text {
    font-size: 1.6vmax;
    text-align: left;
    overflow: hidden;
    max-width: 22vw;
}

.safety-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
}

.safety-table {
    flex: 1;
    width: auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .safety-table {
        flex: 1 0 100%;
    }
}

.draggable-modal {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    cursor: move;
    z-index: 5000;
    min-width: 300px;
    min-height: 200px;
    overflow: hidden;
}

.draggable-modal-header {
    padding: 10px;
    background: #f2f2f2;
    color: #333;
    border-bottom: 1px solid #ddd;
    user-select: none;
    height: 50px;
}

.draggable-modal-body {
    background-color: white;
    height: 90%;
    overflow: scroll;
    width: 100%;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: grey;
    cursor: se-resize;
}

.image-container {
    width: 100%;
    max-height: 1000px;
    padding: 10px;
    overflow-y: auto;
}

    .image-container img {
        width: 100%;
        height: auto;
        display: block;
    }

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.selected_agv {
    background-color: #1E88E5 !important;
}

.center-button {
    display: flex;
    justify-content: center;
}

.fpsStats {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
}

.msStats {
    position: fixed;
    top: 48px !important;
    left: 0 !important;
}

@font-face {
    font-family: "SourceSans";
    src: url("../assets/fonts/Source Sans 3/SourceSans3-Light.ttf") format("truetype");
}

@font-face {
    font-family: "SourceSansBold";
    src: url("../assets/fonts/Source Sans 3/SourceSans3-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "SourceSansSemiBold";
    src: url("../assets/fonts/Source Sans 3/SourceSans3-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "NotoSansSemiBold";
    src: url("../assets/fonts/NotoSans_SemiCondensed-SemiBold.ttf") format("truetype");
}

@font-face {
    font-family: "Oswald";
    src: url("../assets/fonts/Oswald-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "OswaldMedium";
    src: url("../assets/fonts/Oswald-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "OswaldSemiBold";
    src: url("../assets/fonts/Oswald-SemiBold.ttf") format("truetype");
}

html, body {
    font-family: var(--primary-font), Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
}

body {
    background-color: var(--bg-primary);
    color: var(--fg-primary);
    font-family: SourceSans;
    margin: 0;
    overflow: hidden;
}

h6 {
    padding: 5px;
    font-size: 1.3rem !important;
}

a {
    color: #fff !important;
}

.roboto-condensed-regular {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.source-sans-regular {
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.fas[data-count] {
    position: relative;
}

    .fas[data-count]:after {
        position: absolute;
        right: -0.75em;
        top: -20px;
        content: attr(data-count);
        padding: 3px;
        padding-right: 4px;
        border-radius: 17px;
        line-height: .9em;
        color: white;
        background: rgba(255, 0, 0, .75);
        text-align: center;
        min-width: 16px;
        font: bold .5em sans-serif;
    }

.fas[data-count="0"]:after {
    content: none;
}

.hoverable-box {
    position: relative;
    display: inline-block;
}

    .hoverable-box:hover .tooltip {
        visibility: visible;
        opacity: 1;
        top: 40px;
        bottom: auto
    }

.tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 1000000;
    bottom: 100%;
    white-space: nowrap;
    transition: opacity 0.3s;
    margin-top: -10px;
}

.throughput-wrapper {
    width:30px;
}

.throughput-in {
    font-size: xx-small;
    position: absolute;
    top: 0px;
    left: 0px;
    color: white;
}

.throughput-out {
    font-size: xx-small;
    position: absolute;
    bottom: 0px;
    left: 0px;
    color: white;
}

.device-health-summary-label {
    display: block;
    text-align: left;
    font-size: x-small;
    color: white;
}

.device-health-summary-health-bar {
    display: inline-block;
    height: 10px;
}

.device-health-summary-health-bar-wrapper {
    display: flex;
    gap: 1px
}

.global-status-bar-card {
    background-color: #082a36 !important;
    padding: 2px !important;
}

.side-bar-logo-image {
    display: block;
    height: auto;
    width: 150px;
    padding-left: 3px;
}

.status-icon {
    width: 1.25rem;
    height: 1.25rem;
}
.dashboard-custom-row {
    height: 95%;
}

.rz-text-overline.stats-subtitle {
    font-size: 0.7rem
}

.global-status-bar-card-wrapper {
    padding-top: 3px;
    padding-right: 25px;
    padding-left: 23px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    width: 100%;
    color: white;
    position: relative;
    z-index: 10;
}

.global-status-bar-card-NotConnected {
    font-size: 2em;
    color: orangered;
    padding-right: 40%
}

.key-label {
    display: block;
    text-align: left;
    font-size: x-small;
}

.key-label-icon {
    padding: 5px;
    display: inline-block;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.padding-1-rem {
    padding: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-start {
    justify-content: start;
}

.justify-content-end {
    justify-content: end;
}

.justify-content-center {
    justify-content: center;
}

.align-items-start {
    align-items: start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: end;
}

.text-muted {
    color: #6c757d;
    opacity: 0.6; 
}

.fw-bold {
    font-weight: bold;
}

.fw-semibold {
    font-weight: 500;
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
}

.search-bar-input {
    border-radius: 2rem !important;
    width: 100%;
    height: 2.5rem !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.search-bar-clear-icon {
    position: absolute;
    right: 0.75rem;
    top: 0.7rem;
    color: #a1a1a1;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-bar-input-icon {
    position: absolute;
    left: 0.6rem;
    top: 0.7rem;
    color: #a1a1a1;
    cursor: pointer;
}

.map-left-bar-close-button {
    padding-top: 7px;
    padding-right: 14px;
    cursor: pointer;
    font-size: 125%;
    position: absolute;
    right: 0;
}

.map-left-bar-title-container {
    padding: 6px;
    padding-inline-end: 24px;
    background-color: #5e5f61;
    padding-bottom: 0px;
}

.map-left-bar-title-container-middle {
    padding: 6px;
    background-color: #5e5f61;
    padding-bottom: 0px;
}

.hr-no-margin-start {
    margin-block-start: 0rem;
}

.hr-no-margin-end {
    margin-block-end: 0rem;
}

.map-left-bar-content-container {
    font-size: 14px;
    padding-inline: 6px;
}

.debug-panel-accordion {
    --rz-accordion-item-color: inherit;
    --rz-accordion-hover-color: inherit;
    --rz-accordion-item-background-color: transparent;
}

.map-left-bar-tools-content-container {
    font-size: 14px;
    padding-inline: 6px;
}

.map-left-bar-message-user {
    color: inherit;
}

.map-left-bar-message-content {
    color: #f0b84b;
}

.map-left-bar-errors-section{
    max-height: 200px;
    overflow: scroll;
}

.pallet-tools-actions .pallet-tools-action-button {
    height: auto;
    width: 100%;
    max-width: 100%;
}

.pallet-tools-actions {
    gap: 0.75rem !important;
    margin-top: 0.5rem;
}

.pallet-tools-actions .pallet-tools-action-button .rz-button-text {
    white-space: normal;
    text-align: center;
}

.checkbox-sm .rz-chkbox-box {
    width: 14px !important;
    height: 14px !important;
}

.space-pre-wrap {
    white-space: pre-wrap;
}

.dropdown-sm {
    height: 32px !important;
    font-size: 13px !important;
}

.user-menu-name-padding{
    padding-inline: 12px;
}

.menu-separator {
    border-bottom: var(--menu-separator);
}

.cursor-pointer {
    cursor: pointer;
}

.fs-inherit {
    font-size: inherit !important;
}

.border-radius-075rem {
    border-radius: 0.75rem;
}

.stop-button {
    margin-top: 7px !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
}
.rz-dialog-wrapper:has(.modal-no-mask) {
    position: unset !important;
}
.model-widget-dialog {
    width: unset !important;
}

.modal-no-mask {
    position: absolute !important;
}

.rz-dialog-wrapper:has(.modal-no-mask) .rz-dialog-mask {
    background-color: transparent !important;
    pointer-events: none !important;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 20px;
}

.rz-state-active{
    color: black !important;
}

.global-status-bar-tabs-wrapper .rz-tabview-title {
    color: white !important;
}

.taxi-force-button {
    margin-top : 10px !important;
}


.big-number.small-label.rejected-card-item-text {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    color: black;
}
.rz-dropdown-items-wrapper {
    max-height: 210px !important;
}
