* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.main-language-pending body {
    visibility: hidden;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 14px;
    font-weight: 300;

    overflow: hidden;
    position: absolute;

    font-family: Arial, Helvetica, sans-serif;
}

.global-notice-banner {
    position: fixed;
    top: 62px;
    left: 50%;
    z-index: 2500;
    width: min(680px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: start;
    padding: 13px 13px;
    border: 1px solid #d7b46a;
    border-left: 5px solid #c78922;
    border-radius: 5px;
    background: #fff9eb;
    color: #231d11;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}
.global-notice-banner.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}
.global-notice-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: #f2dfb4;
    color: #8f5b00;
}
.global-notice-copy { min-width: 0; }
.global-notice-copy strong { display: block; font-size: 14px; font-weight: 700; }
.global-notice-time { display: block; margin-top: 2px; color: #745a28; font-size: 11px; }
.global-notice-copy p { margin: 4px 0 0; white-space: pre-wrap; line-height: 1.42; font-size: 13px; }
.global-notice-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #594624;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.global-notice-close:hover { background: rgba(93, 68, 20, 0.1); }

.hidden {display:none;}

.ellipsis-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#overlay {
    display: block;
    position: fixed;
    inset: 0;
    width: auto;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(237, 241, 238, 0.72);
    z-index: 995;
}

#loader {
    display: grid;
    place-items: center;
    position: fixed;
    top: 50vh;
    top: 50dvh;
    left: 50%;
    width: 92px;
    height: 92px;
    border: 1px solid #cfd8d1;
    border-radius: 8px;
    transform: translate(-50%, -50%);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(23, 35, 26, 0.18);
    z-index: 1000;
}

#loader .loader-gear,
#loader .loader-core {
    position: absolute;
    will-change: transform;
}

#loader .loader-gear {
    display: grid;
    place-items: center;
}

#loader .loader-gear-driver {
    background: #2f7d32;
    clip-path: polygon(
        44% 0%, 56% 0%, 59% 8%, 68% 11%, 75% 5%, 84% 12%,
        80% 21%, 88% 29%, 97% 27%, 100% 39%, 92% 44%, 92% 56%,
        100% 61%, 97% 73%, 88% 71%, 80% 79%, 84% 88%, 75% 95%,
        68% 89%, 59% 92%, 56% 100%, 44% 100%, 41% 92%, 32% 89%,
        25% 95%, 16% 88%, 20% 79%, 12% 71%, 3% 73%, 0% 61%,
        8% 56%, 8% 44%, 0% 39%, 3% 27%, 12% 29%, 20% 21%,
        16% 12%, 25% 5%, 32% 11%, 41% 8%
    );
}

#loader .loader-gear-driver::before {
    content: "";
    width: 48%;
    height: 48%;
    border: 1px solid #dce6dd;
    border-radius: 50%;
    background: #ffffff;
    box-sizing: border-box;
}

@property --loader-fill-start {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

@property --loader-fill-end {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

#loader .loader-gear-outer {
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    z-index: 1;
    border-radius: 50%;
    --loader-fill-start: 0deg;
    --loader-fill-end: 0deg;
    background: conic-gradient(
        from -90deg,
        #dce6dd 0deg var(--loader-fill-start),
        #4caf50 var(--loader-fill-start) var(--loader-fill-end),
        #dce6dd var(--loader-fill-end) 360deg
    );
    animation: loader-ring-cycle 3.6s linear infinite;
}

#loader .loader-gear-outer::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    height: 74%;
    z-index: 1;
    border: 1px solid #dce6dd;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

#loader .loader-gear-outer::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74%;
    height: 74%;
    z-index: 2;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #dce6dd 0deg var(--loader-fill-start),
        #4caf50 var(--loader-fill-start) var(--loader-fill-end),
        #dce6dd var(--loader-fill-end) 360deg
    );
    transform: translate(-50%, -50%);
    -webkit-mask:
        repeating-conic-gradient(from -7.5deg, #000 0deg 14deg, transparent 14deg 30deg),
        radial-gradient(circle, transparent 0 64%, #000 66% 100%);
    -webkit-mask-composite: source-in;
    mask:
        repeating-conic-gradient(from -7.5deg, #000 0deg 14deg, transparent 14deg 30deg),
        radial-gradient(circle, transparent 0 64%, #000 66% 100%);
    mask-composite: intersect;
}

#loader .loader-core {
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    margin: -7.5px 0 0 -7.5px;
    z-index: 3;
    background: #2f7d32;
    clip-path: polygon(
        50% 0%, 62% 31%, 100% 50%, 69% 62%,
        50% 100%, 38% 69%, 0% 50%, 31% 38%
    );
    animation: loader-core-counter 1.2s linear infinite;
}

#loader .loader-core::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #ffffff;
    transform: translate(-50%, -50%) rotate(45deg);
}

#loader .loader-gear-driver {
    top: 50%;
    left: calc(50% + 18px);
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    z-index: 4;
    animation: loader-driver-clockwise 0.9s linear infinite;
}

@keyframes loader-ring-cycle {
    0% {
        --loader-fill-start: 0deg;
        --loader-fill-end: 0deg;
        transform: rotate(0deg);
    }
    45%, 50% {
        --loader-fill-start: 0deg;
        --loader-fill-end: 360deg;
    }
    95%, 100% {
        --loader-fill-start: 360deg;
        --loader-fill-end: 360deg;
        transform: rotate(360deg);
    }
}

@keyframes loader-driver-clockwise {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-core-counter {
    to {
        transform: rotate(-360deg);
    }
}

body.field-loading-active #loader {
    top: calc(50dvh + 25px);
}

@media (prefers-reduced-motion: reduce) {
    #loader .loader-gear-outer {
        animation-duration: 7.2s;
    }

    #loader .loader-core {
        animation-duration: 2.4s;
    }

    #loader .loader-gear-driver {
        animation-duration: 1.8s;
    }
}

@media screen and (max-width: 480px) {
    #loader {
        width: 76px;
        height: 76px;
    }

    #loader .loader-gear-outer {
        width: 62px;
        height: 62px;
        margin: -31px 0 0 -31px;
    }

    #loader .loader-core {
        width: 13px;
        height: 13px;
        margin: -6.5px 0 0 -6.5px;
    }

    #loader .loader-gear-driver {
        left: calc(50% + 14px);
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
    }
}

#sortingContainer {
    align-items: center;
    position: fixed;
    top: 0px;
    height: 50px;
    width: 100%;
    overflow: hidden;
    padding-left: 1rem;
    background-color: #333;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#sortingContainer .sort-button {
    padding: .5em;
    padding-right: 1.5em;
    line-height: 1rem;
    margin-top: 10px;
    margin-right: 1rem;
}

.sort-button {
    position: relative;
    padding-right: 20px;
}

.sort-button::after {
    content: '⇅';
    /* Up and down arrows */
    position: absolute;
    right: 5px;
    font-size: 0.8em;
}

.sort-button.asc::after {
    content: '↑';
    /* Up arrow */
    position: absolute;
    right: 5px;
    font-size: 0.8em;
}

.sort-button.desc::after {
    content: '↓';
    /* Down arrow */
    position: absolute;
    right: 5px;
    font-size: 0.8em;
}

#system-message {
    display: none;
    color: white;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    width: 60%;
    max-width: 600px;
    padding: 1.5rem;
    margin: 0 auto;
    background-color: rgba(220, 53, 69, 0.9);
    position: absolute;
    z-index: 990;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

body:has(#replay_icon.replay-active) #system-message,
body:has(#replay_icon.replay-paused) #system-message {
    display: none !important;
}

body:has(#replay_icon.replay-active) #system-message.license-state,
body:has(#replay_icon.replay-paused) #system-message.license-state {
    display: block !important;
}

#system-message .inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#system-message .status {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

#system-message .message {
    display: flex;
    justify-content: center;
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

#system-message .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#system-message .close-btn:hover {
    opacity: 1;
}

#system-message .offline-state-icon,
#system-message .license-state-icon,
#system-message .license-guidance,
#system-message .license-contact,
#system-message .license-brand {
    display: none;
}

#system-message.offline-state {
    position: fixed;
    top: 66px;
    left: 50%;
    width: min(460px, calc(100vw - 28px));
    max-width: none;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    border: 1px solid #dfb8b8;
    border-left: 4px solid #a73737;
    border-radius: 6px;
    background: #ffffff;
    color: #182019;
    text-align: left;
    box-shadow: 0 10px 30px rgba(20, 32, 23, 0.16);
    z-index: 2400;
}

#system-message.offline-state .inner-container {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
        "icon status"
        "icon message";
    column-gap: 12px;
    align-items: center;
    padding: 13px 16px;
}

#system-message.offline-state .offline-state-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dfb8b8;
    border-radius: 4px;
    background: #f8eaea;
    color: #a73737;
    font-size: 1rem;
}

#system-message.offline-state .status {
    grid-area: status;
    margin: 0;
    color: #752929;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

#system-message.offline-state .message {
    grid-area: message;
    display: block;
    justify-content: initial;
    margin-top: 2px;
    color: #647068;
    font-size: 0.88rem;
    line-height: 1.4;
    letter-spacing: 0;
}

#system-message.offline-state .close-btn {
    top: 5px;
    right: 7px;
    color: #647068;
}

@media screen and (min-width: 1280px) {
    body.home-device-split-active #system-message.offline-state {
        left: calc(var(--home-device-split-list-width) + ((100vw - var(--home-device-split-list-width)) / 2));
        width: min(460px, calc(100vw - var(--home-device-split-list-width) - 28px));
    }
}

@media screen and (max-width: 600px) {
    #system-message.offline-state {
        top: 60px;
        left: 50%;
        width: min(60vw, 360px);
    }

    #system-message.offline-state .inner-container {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 10px;
        padding: 11px 12px;
    }

    #system-message.offline-state .offline-state-icon {
        width: 38px;
        height: 38px;
    }
}

#system-message.license-state {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 18px;
    overflow-y: auto;
    transform: none;
    border-radius: 0;
    background: #edf1ee;
    color: #182019;
    text-align: left;
    box-shadow: none;
    z-index: 1100;
}

#system-message.license-state .inner-container {
    align-items: flex-start;
    width: min(100%, 760px);
    margin: clamp(24px, 12vh, 110px) auto 24px;
    padding: clamp(26px, 5vw, 40px);
    border: 1px solid #d3dbd5;
    border-top: 4px solid #a73737;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(20, 32, 23, 0.09);
}

#system-message.license-state .license-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border: 1px solid #dfb8b8;
    border-radius: 4px;
    background: #f8eaea;
    color: #a73737;
    font-size: 1.2rem;
}

#system-message.license-state .status {
    margin: 0 0 12px;
    color: #182019;
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

#system-message.license-state .message {
    display: block;
    max-width: 560px;
    color: #647068;
    font-size: 1.05rem;
    line-height: 1.55;
    letter-spacing: 0;
}

#system-message.license-state .license-guidance {
    display: block;
    max-width: 560px;
    margin-top: 10px;
    color: #647068;
    font-size: 0.95rem;
    line-height: 1.5;
}

#system-message.license-state .license-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    margin-top: 26px;
    padding: 0.65rem 1rem;
    border: 1px solid #2f7d32;
    border-radius: 4px;
    background: #2f7d32;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#system-message.license-state .license-contact:hover,
#system-message.license-state .license-contact:focus-visible {
    border-color: #256628;
    background: #256628;
}

#system-message.license-state .license-brand {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid #d3dbd5;
    opacity: 0.82;
}

#system-message.license-state .license-brand img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 160px;
    object-fit: contain;
}

#system-message.license-state .close-btn {
    display: none !important;
}

@media screen and (max-width: 600px) {
    #system-message.license-state {
        left: 0;
        width: 100%;
        padding: 12px;
    }

    #system-message.license-state .inner-container {
        margin: 12px auto;
        padding: 26px 22px;
    }

    #system-message.license-state .license-contact {
        width: 100%;
    }

    #system-message.license-state .license-brand {
        justify-content: flex-end;
    }
}

.AllCharts {
    padding-top: calc(48px + var(--stats-toolbar-height, 50px) + 1rem);
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding-bottom: 2rem;
    background: #f5f7f9;
}

.TextStats {
    min-height: 100%;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding-top: calc(48px + var(--stats-toolbar-height, 50px) + 1rem);
    padding-bottom: 2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #f5f7f9;
}

.stats-summary {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.stats-summary-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

#stat_title {
    margin: 0;
    color: #394655;
    font-size: 0.92rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

#stat_date_title {
    margin: 0;
    color: #687586;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: right;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.stats-summary-item {
    min-width: 0;
    min-height: 72px;
    box-sizing: border-box;
    padding: 0.7rem 0.8rem;
    border: 1px solid #dce3ea;
    border-radius: 6px;
    background: #fff;
}

.stats-summary-label {
    margin: 0;
    color: #687586;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.stats-summary-value {
    margin: 0.35rem 0 0;
    color: #26313f;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.TextDetails {
    width: 100%;
    max-width: 1120px;
    box-sizing: border-box;
    margin: 1.25rem auto 0;
    padding: 0 0 2rem;
}

.stats-details-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stats-details-heading::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #dce3ea;
}

#stat_details_title {
    flex: 0 0 auto;
    margin: 0;
    color: #394655;
    font-size: 0.86rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

#statDetailsTableContainer {
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid #dce3ea;
    border-radius: 6px;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #9aa7b2 #eef2f5;
}

#statDetailsTableContainer::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

#statDetailsTableContainer::-webkit-scrollbar-track {
    background: #eef2f5;
}

#statDetailsTableContainer::-webkit-scrollbar-thumb {
    border: 2px solid #eef2f5;
    border-radius: 6px;
    background: #9aa7b2;
}

#statDetailsTable {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #394655;
    background: #fff;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

#statDetailsTable thead {
    display: table-header-group;
}

#statDetailsTable tbody {
    display: table-row-group;
    overflow: visible;
}

#statDetailsTable tr {
    display: table-row;
    position: static;
}

#statDetailsTable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #cfd8e1;
    background: #e9eef2;
    color: #394655;
    font-weight: 700;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

#statDetailsTable thead th:first-child,
#statDetailsTable tbody td:first-child {
    text-align: left;
}

#statDetailsTable tbody td {
    position: static;
    width: auto;
    padding: 0.62rem 0.75rem;
    border-bottom: 1px solid #e4e9ee;
    color: #596675;
    text-align: right;
    white-space: nowrap;
}

#statDetailsTable tbody tr:nth-child(even) td {
    background: #f8fafb;
}

#statDetailsTable tbody tr:hover td {
    background: #eef4f7;
}

#statDetailsTable tbody tr:last-child td {
    border-bottom: 0;
}

@media screen and (max-width: 860px) {
    .stats-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 520px) {
    .TextStats {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .stats-summary-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }

    #stat_date_title {
        text-align: left;
    }

    .stats-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.deviceListIcons {
    width: 1.5rem;
    height:
        1.5rem;
    opacity: 0.5;
}

.home-autopilot-container {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
}

.home-autopilot-time {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 0.62rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.offlineDeviceListIcons {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.5;
}
.steer-time-container {
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-right: 4px;
}
.steer-main-container{
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: end;
    align-items: center;
}
.steer-wrapper{
    display: flex;
    justify-content: end;
}

.work-finished-container {
    background: #22c55e;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
    color: #ffffff; /* readable on green */
}

.bumper-hit-container,
.lamp-arm-sensor-container {
    background: #FA003F;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgb(250 0 63 / 0.3);
    color: #ffffff; /* readable on red */
}

.offline-last-seen-container {
    display: flex;
    flex-direction: column;
}
.offline-last-seen-container #last_online{
    color: #5c5c5c;
    font-size: .6rem;
}

@media screen and (max-width:880px) {
    .deviceListIcons {
        width: 1rem;
        height:
            1rem;
    }

    .offlineDeviceListIcons {
        width: 1rem;
        height: 1rem;
    }

}
#home,
#deviceList{
    overflow-anchor: none;
}

.device_button_container.home-filter-hidden {
    display: none !important;
}

.home-robot-search-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-sizing: border-box;
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #d3dbd5;
    background: #f5f7f5;
    color: #333333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    -webkit-user-select: none;
    user-select: none;
}

.home-robot-search-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

.home-robot-search-bar i {
    flex: 0 0 auto;
    color: #666666;
}

.home-robot-search-bar input {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.15rem;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    padding: 0 0.65rem;
    background: #ffffff;
    color: #222222;
    font-size: 0.95rem;
    outline: none;
}

.home-robot-search-bar input:focus {
    border-color: #555555;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.home-robot-search-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid #c8d1ca;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.home-robot-search-action:hover {
    border-color: #8e9b91;
    background: #edf1ee;
}

.home-robot-search-action:focus-visible {
    outline: 2px solid #2f7d32;
    outline-offset: 2px;
}

.home-robot-search-action.active {
    border-color: #2f7d32;
    background: #e7f2e8;
    color: #245f27;
}

.home-robot-search-action.active i {
    color: #245f27;
}

.home-robot-search-filter[hidden] {
    display: none;
}

.home-robot-search-filter {
    position: relative;
}

.home-robot-search-filter .filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #F03A3E;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    pointer-events: none;
}

.home-robot-search-split {
    display: none;
}

@media screen and (min-width: 1280px) {
    .home-robot-search-split {
        display: inline-flex;
    }
}

.home-robot-search-empty {
    display: none;
    margin: 0;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eeeeee;
    background: #fafafa;
    color: #555555;
    font-size: 0.95rem;
}

.home-robot-search-empty.visible {
    display: block;
}

#deviceList{
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    box-sizing: border-box;
    overflow: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.home-device-list-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1.1rem;
    min-height: 84px;
    margin-top: auto;
    padding: 18px 20px;
    border-top: 1px solid #d3dbd5;
    background: #f5f7f5;
}

.home-device-list-footer > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.78;
    transition: opacity 0.16s ease;
}

.home-device-list-footer > a:hover {
    opacity: 1;
}

.home-device-list-footer .home-app-hub-link {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #aeb6b0;
    border-radius: 4px;
    padding: 0.45rem 0.85rem;
    background: #fff;
    color: #343a35;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 1;
}

.home-device-list-footer button.home-app-hub-link {
    font: inherit;
    cursor: pointer;
}

.home-device-list-footer .home-app-hub-link:hover {
    background: #f1f4f2;
}

.cloud-login-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 23, 20, 0.62);
}

.cloud-login-dialog.hidden {
    display: none;
}

.cloud-login-card {
    position: relative;
    width: min(420px, 100%);
    padding: 24px;
    border: 1px solid rgba(55, 73, 61, 0.18);
    border-radius: 8px;
    background: #f7f9f7;
    color: #1f2a23;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
}

.cloud-login-card h2 {
    margin: 0 32px 8px 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.cloud-login-description {
    margin: 0 0 18px;
    color: #59645d;
}

.cloud-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #384139;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.cloud-login-card form,
.cloud-login-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cloud-login-card form {
    gap: 13px;
}

.cloud-login-card label span {
    font-size: 0.86rem;
    font-weight: 600;
    color: #3b463f;
}

.cloud-login-card input[type="text"],
.cloud-login-card input[type="password"] {
    min-height: 42px;
    border: 1px solid #bac5bd;
    border-radius: 5px;
    padding: 0 11px;
    background: #fff;
    color: #17211b;
    font-size: 1rem;
}

.cloud-login-remember-row {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
}

.cloud-login-remember-row input {
    width: 16px;
    height: 16px;
}

.cloud-login-error {
    min-height: 1.2em;
    margin: 0;
    color: #b42318;
    font-size: 0.9rem;
}

.cloud-login-submit {
    min-height: 42px;
    border: 0;
    border-radius: 5px;
    background: #233027;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.cloud-login-submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.home-device-list-footer > a:not(.home-app-hub-link) {
    grid-column: 2;
    grid-row: 1;
}

.home-device-list-footer img {
    display: block;
    width: min(132px, 38vw);
    height: auto;
}

@media screen and (max-width:480px) {
    .home-device-list-footer {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        justify-items: center;
        align-content: center;
        min-height: 122px;
        gap: 0.7rem;
        padding: 16px 12px;
    }

    .home-device-list-footer .home-app-hub-link {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .home-device-list-footer > a:not(.home-app-hub-link) {
        grid-column: 1;
        grid-row: 2;
    }

    .home-device-list-footer img {
        width: min(126px, 46vw);
    }

    .steer-time-container {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}


.stream_iframe_class {
    width: 100%;
}

@media screen and (max-width: 1200px) and (orientation: landscape) {
    .stream_iframe_class {
        width: 50%;
        height: 500px;
    }
}

/* #root {  display: flex;  flex-direction: row; } */
#device_list {
    margin-right: 4rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    transform-origin: "top left";
    /* border: 1px solid blue; */
}

.device_button_container {
    background-color: rgb(255, 176, 176);
    color: #444;
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    border-bottom: 1px solid;
    border-color: #b9b7b7;
}

.device_button_container.path-progress {
    position: relative;
    --path-progress-percentage: 0%;
    --path-progress-scale: 0;
}

.device_button_container.path-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: lightgreen;
    z-index: -1;

    transform-origin: left;
    transform: scaleX(var(--path-progress-scale));
    transition: transform 1s ease-out;
}

.multi-robot-selection-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1001;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #c9c9c9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
    background: #ffffff;
    color: #333;
}

.multi-robot-selecting .multi-robot-selection-bar {
    display: flex;
}

#home.multi-robot-selecting:not(.multi-robot-selection-integrated) #deviceList {
    height: calc(100vh - var(--multi-robot-selection-bar-height, 0px));
    height: calc(100dvh - var(--multi-robot-selection-bar-height, 0px));
}

.home-robot-search-bar .multi-robot-selection-bar {
    position: static;
    flex: 1 0 100%;
    width: 100%;
    padding: 0.55rem 0 0;
    border-top: 1px solid #d3dbd5;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
}

.multi-robot-selection-summary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.multi-robot-selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.multi-robot-selection-actions button {
    border: 1px solid #444;
    background: #fff;
    border-radius: 4px;
    color: #222;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}

.multi-robot-selection-actions button[data-action="open"] {
    background: #222;
    color: #fff;
}

@media screen and (max-width: 600px) {
    .multi-robot-selection-bar {
        gap: 0;
        padding: 0.55rem 0.55rem;
    }

    .multi-robot-selection-summary {
        display: none;
    }

    .multi-robot-selection-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: stretch;
        gap: 0.35rem;
    }

    .multi-robot-selection-actions button {
        flex: 1 1 5.5rem;
        min-width: 0;
        padding: 0.42rem 0.35rem;
    }

    .home-robot-search-bar .multi-robot-selection-bar {
        padding: 0.55rem 0 0;
    }
}

.multi-robot-inline-check {
    display: none;
}

.multi-robot-selecting .device_button_container {
    position: relative;
}

.multi-robot-selecting .multi-robot-inline-check {
    display: flex;
    position: absolute;
    left: 0.45rem;
    top: 50%;
    z-index: 3;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    transform: translateY(-50%);
    cursor: pointer;
}

.multi-robot-inline-input {
    width: 1.25rem;
    height: 1.25rem;
}

.multi-robot-selecting .device_button_container > button {
    padding-left: 2rem;
}

.online_home_device_second_info{
    display: grid;
    grid-template-columns: 22% 22% 13% 17% 13% 13%;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.device_button_online {
    display: grid;
    grid-template-columns: 46% 8% 8% 38%;
    background-color: transparent;
    color: #444;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 80%;
    transition: 0.4s;
    align-items: center;
}

.device_button_online.pump_function_online {
    grid-template-columns: 46% 8% 8% 38%;
}

.device_button_online.drilling_function_online {
    grid-template-columns: 22% 8% 8% 8% 8% 8% 38%;
}

.home-device-stat-container {
    display: flex;
    justify-content: end;
    min-width: 0;
}

.device_button_offline {
    display: grid;
    grid-template-columns: 14% 45% 2% 39%;
    background-color: rgb(255, 176, 176);
    color: #444;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 80%;
    transition: 0.4s;
    align-items: center;
}

.device_button_last {
    border-bottom-width: 3px;
}

.device_users {
    display: block;
    font-size: 0.8em;
    color: #666;
}

.panel {
    padding: 0 18px;
    /* display: none; */
    background-color: white;
    overflow: hidden;
}

.panel div {
    width: 200px;
}

.panel div p {
    float: right;
    width: 100px;
}

@media screen and (orientation: portrait) {

    .device_button_online #rowid,
    .device_button_offline #rowid {
        display: none;
    }

    .device_button_online #heading,
    .device_button_offline #heading {
        display: none;
    }

    .device_button_online #direction,
    .device_button_offline #direction {
        display: none;
    }

    .device_button_online #pressure,
    .device_button_offline #pressure {
        display: none;
    }

    .device_button_online #water_flow_sensor_value_current,
    .device_button_offline #water_flow_sensor_value_current {
        display: none;
    }

    .device_button_online #water_flow_sensor_value_total,
    .device_button_offline #water_flow_sensor_value_total {
        display: none;
    }

    .device_button_online #all_drilling,
    .device_button_offline #all_drilling {
        display: none;
    }

    .device_button_online #drilling_count,
    .device_button_offline #drilling_count {
        display: none;
    }

    .device_button_online #two_drilling_pulse_time,
    .device_button_offline #two_drilling_pulse_time {
        display: none;
    }

    .device_button_online {
        /*grid-template-columns: 42% 8% 8% 42%;*/
        grid-template-columns: 22% 15% 10% 53%;
    }

    .online_home_device_second_info {
        grid-template-columns: 28% 28% 19% 12% 13%;
    }

    .device_button_online.pump_function_online {
        grid-template-columns: 22% 15% 10% 53%;
    }

    .device_button_online.drilling_function_online {
        grid-template-columns: 22% 15% 10% 53%;
    }

    .device_button_offline {
        grid-template-columns: 29% 30% 2% 38%;
    }
}

/* For landscape, we want the tool bar stick on the left */

@media screen and (orientation: landscape) {
    /*.device_button_online #rowid, .device_button_offline #rowid              { display: inline;  }
    .device_button_online #heading, .device_button_offline #heading            { display: inline;  }
    .device_button_online #direction, .device_button_offline #direction          { display: inline;  }
    .device_button_online #pressure, .device_button_offline #pressure           { display: inline;  }
    .device_button_online #water_flow_sensor_value_current, .device_button_offline #water_flow_sensor_value_current  { display: inline;  }
    .device_button_online #water_flow_sensor_value_total, .device_button_offline #water_flow_sensor_value_total    { display: inline;  }*/
}

#interval_button_container {
    display: flex;
    justify-content: space-between;
}

.interval_button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 1rem 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.8rem;
    margin: 0.2rem 0.1rem;
    width: 4.5rem;
    cursor: pointer;
    border-radius: 0.2rem;
    text-align: center;
}

#infoContent div {
    padding: 0.2rem;
}

.selectMainContainer {
    display: flex;
    padding-left: 1rem;
    background-color: white;
    position: fixed;
    top: 48px;
    width: 100%;
    height: 50px;
    z-index: 2;
    border-bottom: 1px solid rgb(126, 129, 144);
}

.selectContainer {
    background-color: white;
    justify-content: center;
    padding-right: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.stats_controls_line_break {
    display: none;
}

#stats_range_controls_container p {
    margin: 0;
    cursor: pointer;
}

.datepicker {
    background: transparent;
    color: rgb(126, 129, 144);
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
}

.arrow-left {
    margin-top: 1px;
    margin-right: 10px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid LightGrey;
    float: left;

}

.arrow-right {
    margin-top: 1px;
    margin-left: 10px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid LightGrey;
    float: right;
}

.normal_button {
    background: transparent;
    border: 1px solid rgb(126, 129, 144);
    color: rgb(126, 129, 144);
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    font-weight: 'Helvetica-neue';
    letter-spacing: .25px;
    line-height: 14px;
    outline: none;
    padding: 7px 24px;
    position: relative;
    text-align: center;
    display: flex;
    transition: background-color 0.5s ease;
}

.active_button {
    color: rgb(0, 111, 255);
    background: rgb(229, 240, 255);
    border: 1px solid rgb(229, 240, 255);
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    font-weight: 'Helvetica-neue';
    letter-spacing: .25px;
    line-height: 14px;
    outline: none;
    padding: 7px 24px;
    position: relative;
    text-align: center;
    display: flex;
}

.group {
    align-items: center;
    display: inline-flex;
    flex: none;
    vertical-align: middle;
    white-space: nowrap;
    border-radius: 1rem;
}

#all_type_button.active_button {
    border-right: 1px solid rgb(126, 129, 144);
}

#info_button.active_button {
    border-right: 1px solid rgb(126, 129, 144);
}

#today_button.active_button {
    border-right: 1px solid rgb(126, 129, 144);
}

#all_date_button.active_button {
    border-left: 1px solid rgb(126, 129, 144);
}


#error_button.active_button {
    border-left: 1px solid rgb(126, 129, 144);
}

.event_row {
    display: grid;
    justify-items: stretch;
    grid-template-columns: 2.4rem minmax(0, 1fr) max-content;
    gap: 0.75rem;
    margin: 0.5rem 0.75rem 0;
    padding: 0.7rem 0.85rem;
    color: #26313f;
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-left: 4px solid #9aa6b2;
    border-radius: 6px;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.event_row:hover {
    border-color: #b8c5d2;
    box-shadow: 0 2px 7px rgba(31, 45, 61, 0.08);
}

.event_row[row_type="info"] {
    border-left-color: #367fca;
}

.event_row[row_type="warning"] {
    border-left-color: #c99021;
}

.event_row[row_type="error"] {
    border-left-color: #c64f55;
}

.event_row.event-row-new {
    background: #fff7df;
    border-color: #e4c46f;
    border-left-color: #d59a16;
}

.event_row > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
}

.event_row .grid {
    display: block;
    min-width: 0;
    padding: 0;
}

.event_row .event_title {
    margin: 0 0 0.18rem;
    color: #26313f;
    font-size: 0.9rem;
    line-height: 1.25;
    font-weight: 700;
}

.event_row .event-live-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.08rem 0.3rem;
    color: #185a77;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    vertical-align: 0.12rem;
    background: #e5f5fa;
    border: 1px solid #acd8e5;
    border-radius: 4px;
}

.event_row .date {
    align-self: start;
    padding-top: 0.1rem;
    color: #687586;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.event_row .event-row-meta {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.35rem;
}

.event_row .event-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.event_row .event-similarity-filter-button,
.event_row .event-context-button {
    display: inline-flex;
    flex: 0 0 1.9rem;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    color: #526274;
    background: #f3f6f8;
    border: 1px solid #d6dee6;
    border-radius: 6px;
    cursor: pointer;
}

.event_row .event-similarity-filter-button:hover,
.event_row .event-similarity-filter-button:focus-visible,
.event_row .event-context-button:hover,
.event_row .event-context-button:focus-visible {
    color: #185aa5;
    background: #e9f2ff;
    border-color: #9ebfdf;
    outline: none;
}

.event_row .event-similarity-filter-button.active {
    color: #ffffff;
    background: #185aa5;
    border-color: #185aa5;
}

.event_row .event-similarity-filter-button.active:hover,
.event_row .event-similarity-filter-button.active:focus-visible {
    color: #ffffff;
    background: #12487f;
    border-color: #12487f;
}

#eventsContent:not(.events-type-filtered):not(.events-similarity-filtered) .event-context-button {
    display: none;
}

@keyframes event-row-context-focus {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(24, 90, 165, 0);
    }

    35% {
        border-color: #4f8fcf;
        box-shadow: 0 0 0 4px rgba(24, 90, 165, 0.18);
    }
}

.event_row.event-row-context-focus {
    position: relative;
    z-index: 1;
    animation: event-row-context-focus 1.2s ease 2;
}

.event_row .description {
    margin: 0;
    color: #687586;
    font-size: 0.82rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: 25% 75%;
    align-items: center;
}

img#user_location {
    cursor: pointer;
}

#canvas {
    position: absolute;
    top: 0;
    z-index: 0;
}

#viewContent.svgMapMode #canvas,
#viewContent.svg-route-field-loading #canvas {
    display: none !important;
}

#viewContent.svg-route-field-loading::after {
    content: "";
    position: fixed;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 990;
    background: #fff;
}

#device {
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
}

.hideit {
    visibility: hidden;
}

@media screen and (min-width: 1280px) {
    body.home-device-split-active {
        --home-device-split-list-width: 390px;
    }

    body.home-device-split-active #home {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: var(--home-device-split-list-width);
        max-width: var(--home-device-split-list-width);
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        border-right: 1px solid #cfcfcf;
        background: #ffffff;
        z-index: 2;
    }

    body.home-device-split-active #device {
        position: fixed;
        top: 0;
        left: var(--home-device-split-list-width);
        width: calc(100vw - var(--home-device-split-list-width));
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body.home-device-split-active #viewContent.svg-route-field-loading::after {
        left: var(--home-device-split-list-width);
    }

    body.home-device-split-active.field-loading-active #loader {
        left: calc(var(--home-device-split-list-width) + ((100vw - var(--home-device-split-list-width)) / 2));
    }

    body.home-device-split-active #deviceList {
        height: 100vh;
        height: 100dvh;
        scrollbar-width: thin;
        scrollbar-color: #758279 #edf1ee;
    }

    body.home-device-split-active #deviceList::-webkit-scrollbar {
        width: 10px;
    }

    body.home-device-split-active #deviceList::-webkit-scrollbar-track {
        background: #edf1ee;
        border-left: 1px solid #d3dbd5;
    }

    body.home-device-split-active #deviceList::-webkit-scrollbar-thumb {
        border: 2px solid #edf1ee;
        border-radius: 8px;
        background: #758279;
    }

    body.home-device-split-active #deviceList::-webkit-scrollbar-thumb:hover {
        background: #56635a;
    }

    body.home-device-split-active .topnav {
        left: var(--home-device-split-list-width);
        width: calc(100vw - var(--home-device-split-list-width));
    }

    body.home-device-split-active #statsContent > .selectMainContainer,
    body.home-device-split-active #eventsContent > .selectMainContainer {
        left: var(--home-device-split-list-width);
        width: calc(100vw - var(--home-device-split-list-width));
    }

    body.home-device-split-active .global-notice-banner {
        left: calc(var(--home-device-split-list-width) + ((100vw - var(--home-device-split-list-width)) / 2));
        max-width: calc(100vw - var(--home-device-split-list-width) - 28px);
    }

    body.home-device-split-active .popup-container {
        left: calc(var(--home-device-split-list-width) + ((100vw - var(--home-device-split-list-width)) / 2));
        width: calc(100vw - var(--home-device-split-list-width) - 24px);
    }

    body.home-device-split-active #root_stream_container .stream-item {
        flex: 1 1 360px;
        min-width: 0;
    }

    body.home-device-split-active .cloud-control-stream-container {
        width: min(640px, calc(100vw - var(--home-device-split-list-width)));
        max-width: calc(100vw - var(--home-device-split-list-width));
    }

    body.home-device-split-active #cloud-control-stream-container-0 {
        left: var(--home-device-split-list-width);
    }

    body.home-device-split-active #deviceList .device_button_container {
        padding: 0.55rem 0.6rem;
    }

    body.home-device-split-active #deviceList .device_button_online,
    body.home-device-split-active #deviceList .device_button_online.pump_function_online,
    body.home-device-split-active #deviceList .device_button_online.drilling_function_online {
        grid-template-columns: minmax(0, 1fr) repeat(5, auto) auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "name all drilling pulse speed gps stats"
            "name secondary secondary secondary secondary secondary stats";
        column-gap: 0.38rem;
        row-gap: 0.18rem;
        font-size: 72%;
        line-height: 1.15;
    }

    body.home-device-split-active #deviceList .device_button_online > p[id^="header_"] {
        grid-area: name;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.18;
    }

    body.home-device-split-active #deviceList .device_button_online > #all_drilling {
        grid-area: all;
    }

    body.home-device-split-active #deviceList .device_button_online > #drilling_count {
        grid-area: drilling;
    }

    body.home-device-split-active #deviceList .device_button_online > #two_drilling_pulse_time {
        grid-area: pulse;
    }

    body.home-device-split-active #deviceList .device_button_online > #speed {
        grid-area: speed;
    }

    body.home-device-split-active #deviceList .device_button_online > #gps {
        grid-area: gps;
    }

    body.home-device-split-active #deviceList .device_button_online > #all_drilling,
    body.home-device-split-active #deviceList .device_button_online > #drilling_count,
    body.home-device-split-active #deviceList .device_button_online > #two_drilling_pulse_time,
    body.home-device-split-active #deviceList .device_button_online > #speed,
    body.home-device-split-active #deviceList .device_button_online > #gps,
    body.home-device-split-active #deviceList .online_home_device_second_info > p {
        display: inline-block;
        margin: 0;
        white-space: nowrap;
    }

    body.home-device-split-active #deviceList .online_home_device_second_info {
        grid-area: secondary;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.14rem 0.34rem;
        width: auto;
        min-width: 0;
    }

    body.home-device-split-active #deviceList .home-device-stat-container {
        grid-area: stats;
        align-self: center;
        justify-content: flex-end;
    }

    body.home-device-split-active #deviceList .deviceListIcons,
    body.home-device-split-active #deviceList .offlineDeviceListIcons {
        width: 1rem;
        height: 1rem;
    }

    body.home-device-split-active #deviceList .steer-main-container {
        gap: 2px;
    }

    body.home-device-split-active #deviceList .steer-time-container {
        margin-right: 2px;
    }

    body.home-device-split-active #deviceList .device_users {
        font-size: 0.72em;
        line-height: 1.1;
    }

    body.home-device-split-active #deviceList .device_button_offline {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
        grid-template-areas: "name last stats";
        column-gap: 0.45rem;
        font-size: 72%;
        line-height: 1.15;
    }

    body.home-device-split-active #deviceList .device_button_offline > p[id^="header_"] {
        grid-area: name;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.home-device-split-active #deviceList .device_button_offline .offline-last-seen-container {
        grid-area: last;
        min-width: 0;
        line-height: 1.15;
    }

    body.home-device-split-active #deviceList .device_button_offline > div:nth-last-child(1) {
        grid-area: stats;
        justify-self: end;
        align-self: center;
    }
}

#eventsContent {
    height: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

#statsContent {
    --stats-toolbar-height: 50px;
    min-height: 100%;
    box-sizing: border-box;
    background: #f5f7f9;
}

#statsContent > .selectMainContainer {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 50px;
    height: auto;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid #dce3ea;
    background: #f5f7f9;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

#statsContent .selectContainer,
#statsContent .exportContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

#statsContent #stats_period_controls_container {
    gap: 0.35rem;
}

#statsContent .group {
    align-items: stretch;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #fff;
}

#statsContent #stats_view_type_group {
    background: transparent;
}

#statsContent .normal_button,
#statsContent .active_button {
    min-height: 1.85rem;
    align-items: center;
    justify-content: center;
    padding: 0.36rem 0.75rem;
    border-color: #dce3ea;
    color: #687586;
    background: #fff;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

#statsContent .normal_button:hover {
    border-color: #b8c5d2;
    color: #26313f;
    background: #f0f4f7;
}

#statsContent .active_button {
    border-color: #c8dcef;
    color: #185aa5;
    background: #e9f2ff;
}

#statsContent #text_view_button {
    border-right: 0;
}

#statsContent .normal_button p,
#statsContent .active_button p {
    margin: 0;
}

#statsContent .datepicker input {
    border-color: #dce3ea !important;
    background: #fff;
}

#eventsContent .thegrid {
    margin-top: 96px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 96px);
    /* background-color: yellow; */
    overflow-y: auto;
    scroll-behavior: smooth;
}

#eventsContent .loadmore {
    margin-top: 96px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100% - 96px);
    /* background-color: yellow; */
    overflow-y: auto;
    scroll-behavior: smooth;
}

#eventsContent {
    background: #f5f7f9;
    --events-toolbar-min-height: 42px;
    --events-toolbar-height: 42px;
    --events-scroll-offset: calc(48px + var(--events-toolbar-height));
}

#eventsContent .selectMainContainer {
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: var(--events-toolbar-min-height);
    height: auto;
    padding: 0.28rem 0.75rem;
    background: #f5f7f9;
    border-bottom: 1px solid #dce3ea;
    box-sizing: border-box;
    overflow-x: auto;
    user-select: none;
    -webkit-user-select: none;
}

#eventsContent .selectContainer {
    display: flex;
    flex: 0 0 auto;
    padding-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
}

#eventsContent .events-action-select-container {
    gap: 0.55rem;
}

#eventsContent .events-layout-select-container {
    display: none;
}

#eventsContent .group {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-radius: 6px;
}

#eventsContent .normal_button,
#eventsContent .active_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 1.85rem;
    padding: 0.36rem 0.75rem;
    border: 0;
    border-right: 1px solid #e2e7ed;
    border-radius: 0;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

#eventsContent .group button:last-child {
    border-right: 0;
}

#eventsContent .normal_button {
    color: #687586;
    background: #ffffff;
}

#eventsContent .normal_button:hover {
    color: #26313f;
    background: #f0f4f7;
}

#eventsContent .active_button {
    color: #185aa5;
    background: #e9f2ff;
}

#eventsContent .normal_button p,
#eventsContent .active_button p {
    margin: 0;
}

#eventsContent .thegrid {
    margin-top: var(--events-scroll-offset);
    right: 0;
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    height: calc(100% - var(--events-scroll-offset));
    background: #f5f7f9;
    box-sizing: border-box;
    padding: 0.35rem max(0.9rem, calc((100% - 1120px) / 2)) 1rem;
    scrollbar-color: #9eabb8 #e8edf1;
    scrollbar-width: thin;
}

#eventsContent .thegrid::-webkit-scrollbar {
    width: 10px;
}

#eventsContent .thegrid::-webkit-scrollbar-track {
    background: #e8edf1;
}

#eventsContent .thegrid::-webkit-scrollbar-thumb {
    background: #9eabb8;
    border: 2px solid #e8edf1;
    border-radius: 6px;
}

#eventsContent .loadmore {
    margin-top: var(--events-scroll-offset);
    right: 0;
    width: calc(100% - 1.8rem);
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    height: calc(100% - var(--events-scroll-offset));
}

#eventsContent,
#eventDetails,
#statsContent,
#infoContent {
    display:none;
}

#infoContent .info_page {
    margin-top: 48px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    height: calc(100% - 48px);
    /* background-color: yellow; */
    overflow-y: auto;
    scroll-behavior: smooth;
}

#eventDetails {
    margin-top: 48px;
    overflow: auto;
    height: calc(100% - 48px);
    padding: 0.75rem 0.9rem 1.25rem;
    background: #f5f7f9;
    box-sizing: border-box;
}
#eventDetails > div {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.stats_page {
    margin-top: 48px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    height: calc(100% - 48px);
    /* background-color: yellow; */
    overflow-y: auto;
    scroll-behavior: smooth;
}

#device_is_offline_rectangle {
    color: white;
    top: calc(60px + 5rem);
    left: 20%;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 2px;
    width: 60%;
    height: 100px;
    margin: 0 auto;
    background-color: rgb(255, 0, 0, 0.6);
    position: absolute;
    z-index: 5
}

.unseen_events_container {
    display: flex;
    align-items: center;
}

#unseen_error_counter {
    font-size: 80%;
    margin-left: 1%;
    margin-right: 1%;
}

#unseen_warning_counter {
    font-size: 80%;
    margin-left: 1%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* (A2) CONTAINER - SMOL SCREEN */
@media screen and (max-width:768px) {
    .normal_button {
        padding: 7px 10px;
    }

    .active_button {
        padding: 7px 10px;
    }

    .grid {
        grid-template-columns: auto;
        padding: 1rem;
        grid-gap: 0.5rem;
    }

    .selectContainer {
        background-color: white;
        display: flex;
        justify-content: center;
        margin-top: 5px;
        margin-bottom: 5px;
        padding-right: 0;
    }

    .selectMainContainer {
        display: flex;
        height: auto;
        padding: 0;
    }
}

@media screen and (max-width:1010px) {
    .grid {
        grid-template-columns: auto;
        padding: 1rem;
        grid-gap: 0.5rem;
    }

    .selectContainer {
        background-color: white;
        justify-content: center;
        display: inline-block;
        align-items: center;
        margin-top: 5px;
        margin-bottom: 3px;
        padding-right: 0;
        align-items: center;
        text-align: center;
    }

    .selectMainContainer {
        justify-content: center;
        display: inline-grid;
        height: auto;
        padding: 0;
        align-items: center;
        display: inline-block;
        text-align: center;
    }

    #statsContent .stats_controls_line_break {
        display: block;
        width: 100%;
        height: 0;
    }


}

@media screen and (max-width:768px) and (orientation: portrait) {
    #eventsContent .thegrid {
        margin-top: 156px;
        height: calc(100% - 156px);
    }
}

@media screen and (max-width:768px) and (orientation: landscape) {
    /*#eventsContent .thegrid {
        padding-top: 25%;
    }*/
}

@media screen and (max-width:880px) and (orientation: landscape) {
    #eventsContent .thegrid {
        margin-top: 156px;
        height: calc(100% - 156px);
    }
}

@media screen and (max-width:768px) {
    #eventsContent .selectMainContainer {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.35rem 0.5rem;
        background: #f5f7f9;
        box-sizing: border-box;
    }

    #eventsContent .thegrid,
    #eventsContent .loadmore {
        margin-top: var(--events-scroll-offset);
        height: calc(100% - var(--events-scroll-offset));
    }

    #eventsContent .selectContainer {
        display: flex;
        justify-content: center;
        padding-right: 0;
        margin: 0;
        background: transparent;
    }

    #eventsContent .normal_button,
    #eventsContent .active_button {
        min-height: 1.75rem;
        padding: 0.3rem 0.36rem;
        font-size: 0.68rem;
    }

    #eventsContent #date_select_group .normal_button,
    #eventsContent #date_select_group .active_button,
    #eventsContent #allview .normal_button,
    #eventsContent #loadmore .normal_button {
        padding-right: 0.32rem;
        padding-left: 0.32rem;
    }

    #eventsContent .events-action-select-container {
        gap: 0.25rem;
    }

    #eventsContent .event_row {
        grid-template-columns: 2rem minmax(0, 1fr) max-content;
        gap: 0.55rem;
        margin: 0.45rem 0.25rem 0;
        padding: 0.65rem 0.55rem;
    }

    #eventsContent .event_row > div:first-child {
        grid-row: auto;
    }

    #eventsContent .event_row .date {
        grid-column: auto;
        justify-self: end;
        text-align: right;
    }

}

@media screen and (max-width:480px) {
    #eventsContent .thegrid,
    #eventsContent .loadmore {
        width: 100%;
    }

    #eventsContent .thegrid {
        padding-right: 0.3rem;
        padding-left: 0.3rem;
    }
}

@media screen and (max-width:1100px) {
    #eventsContent .selectMainContainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
    }

    #eventsContent .thegrid,
    #eventsContent .loadmore {
        margin-top: var(--events-scroll-offset);
        height: calc(100% - var(--events-scroll-offset));
    }

    #eventsContent .selectContainer:has(#type_select_group) {
        flex-basis: 100%;
        justify-content: center;
    }

    #eventsContent .events-action-select-container {
        justify-content: center;
    }
}

@media screen and (min-width:1180px) {
    #eventsContent .events-layout-select-container {
        display: flex;
        position: absolute;
        top: 50%;
        right: 0.75rem;
        transform: translateY(-50%);
        z-index: 1;
    }

    #eventsContent.events-two-column-enabled .thegrid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 0.55rem;
        padding: 0.55rem max(0.9rem, calc((100% - 1120px) / 2)) 1rem;
    }

    #eventsContent.events-two-column-enabled .event_row {
        margin: 0;
    }
}

@media screen and (max-width:1179px) {
    #eventsContent .events-layout-select-container {
        display: none;
    }
}

/** top navigation *****************************************************/

.topnav {
    align-items: center;
    position: fixed;
    top: 0px;
    min-height: 50px;
    width: 100%;
    overflow: hidden;
    background-color: #333;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 15px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a.active {
    background-color: #4CAF50;
    color: white;
}

.topnav .icon {
    display: none;
}

.topnav.responsive {
    z-index: 2501;
}

#back_to_home {
    cursor: pointer;
    padding: 0;
    line-height: 1rem;
    margin-top: 5px;
    margin-right: .5rem;
}

#home_ {
    display: grid;
    grid-template-columns: 8% 21% 8% 10% 15% 12.5% 12.5% 12.5%;
    align-items: center;
    height: 50px;
    width: 70%;
    gap: 4px;
}

#robot_name {
    font-size: 9px;
}

#robot_name.robot-name-selector-enabled {
    cursor: pointer;
}

#robot_name.robot-name-selector-enabled::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

.robot-name-selector-popup {
    position: fixed;
    z-index: 4000001;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 12rem;
    max-width: min(20rem, calc(100vw - 16px));
    max-height: min(18rem, calc(100vh - 16px));
    overflow: auto;
    padding: 0.4rem;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #fff;
    color: #222;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.robot-name-selector-popup button {
    min-height: 2.25rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    color: #222;
    cursor: pointer;
    padding: 0.45rem 0.6rem;
    text-align: left;
}

.robot-name-selector-popup button.active {
    border-color: #222;
    background: #eef6ff;
    font-weight: 600;
}

#home_direction {
    width: 1rem;
    height: 1rem;
}

.nav-info-group {
    font-size: 75%;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-info-group p:first-child {
    font-size: 40%;
    opacity: 0.7;
    font-weight: bold;
}

.nav-info-group p:nth-child(2) {
    text-align: left;
    font-size: 60%;
}

.nav-info-group p:nth-child(2) small{
    font-size: 80%;
    display: none;
}

.nav-info-item {
    display: flex;
    align-items: center;
    gap: 1px;
}

#nav_menu a {
    cursor: pointer;
}

.multi-robot-nav-hidden,
.permission-nav-hidden {
    display: none !important;
}

@media screen and (max-width: 600px) {
    #nav_menu {
        display: none;
    }
    .icon {
        display: block;
    }
    .topnav.responsive #nav_menu {
        display: block;
    }
}

.exportContainer {
    right: 10px;
    position: absolute;
    top: 10px;
}

@media screen and (max-width:880px) {
    .exportContainer {
        right: 0px;
        position: relative;
        text-align: center;
        display: inline-block;
        justify-content: center;
        top: 0px;
        margin-bottom: 5px;
    }
}

@media screen and (max-width: 945px) {
    .topnav a {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }
    #nav_menu {
        display: none;
    }
    .topnav.responsive #nav_menu {
        display: block;
    }
    #home_ {
        width: 85%;
    }
}

#nav_menu{
    position: absolute;
    right: 0;
}

.topnav.topnav-compact #nav_menu {
    display: none;
}

.topnav.topnav-compact a {
    display: none;
}

.topnav.topnav-compact a.icon {
    float: right;
    display: block;
}

.topnav.topnav-compact.responsive .icon {
    position: absolute;
    top: 0;
    right: 0;
}

.topnav.topnav-compact.responsive a {
    float: none;
    display: block;
}

.topnav.topnav-compact.responsive #nav_menu {
    display: block;
    position: unset;
    margin-top: 10px;
}

@media screen and (max-width: 945px) {
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
    }
    .topnav.responsive #nav_menu {
        position: unset;
        margin-top: 10px;
    }


    #device_is_offline_rectangle {
        width: 60%;
        left: 20%;
    }

    #system-message {
        width: 60%;
        left: 20%;
    }
}

/** robot dashboard styles *****************************************************/

.ExitButton {
    width: 20px;
    height: 43px;
    border-radius: 6px;
    background-color: #cccccc;
    border: 1px solid grey;
    margin: 4px;
    margin-top: 8px;
    background-color: gray;
    font-size: 24px;
    color: lightgray;
    cursor: pointer;
}

.Dashboard {
    z-index: 31;
    position: absolute;

    top: 60px;
    right: -120px;

    transform: translate(-50%, 0);
    margin: 0 auto;
    /*background-color: #969696;*/
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;

    width: 335px;
    height: 552px;
    padding-top: 0px;
    display:none;
}

.OilTextInfo {
    display: inline-flex;
    position: relative;
}

.OilPressure {
    position: relative;
    padding-top: 10px;
    display: inline-flex;
}

.OilPressureNumber {
    position: absolute;
    left: 2px;
    font-family: "Teko", sans-serif;
    font-size: 16px;
    text-align: right;

}

.OilPressureText {
    position: absolute;
    top: 2px;
    left: 42px;
    font-family: "Teko", sans-serif;
    font-size: 14px;
    text-align: center;
    color: #696969;

}

.TempNumber {
    position: absolute;
    right: 2px;
    bottom: -7px;
}

.TempTitle {
    display: inline-flex;
    width: 167px;
    position: relative;
}


.Tacho {
    position: relative;
    left: 45px;
    top: 20px;
}


.Arm {
    position: absolute;
    left: 227px;
    top: 30px;
    transform: rotate(301deg);
    transform-origin: bottom;
    transition: all 0.3s;
    opacity: 0.7;
    padding-bottom: 164px;
}

.KmHNumber {
    font-family: "Teko", sans-serif;
    font-size: 22px;
    text-align: center;
    left: 175px;
    top: 240px;

}

.KmHText {
    font-family: "Teko", sans-serif;
    font-size: 12px;
    text-align: center;
    left: 230px;
    top: 250px;
    padding-left: 2px;
    padding-top: 5px;
    color: #696969;
    position: absolute;
    top: 21px;
    left: -5px;
    width: 78px;
}

.RPMText {
    position: absolute;
    right: 12px;
    top: 29px;
    font-size: 10px;
    font-family: "Teko", sans-serif;
    font-style: italic;
    color: #696969;
}

.WorkingHoursContainer {
    position: absolute;
    top: 100px;
    left: 140px;
    width: 250px;
    height: 40px;
}

.WorkingHoursNumber {
    font-family: "Teko", sans-serif;
    font-size: 25px;
    color: #333;
    width: 25px;
    display: inline-block;
    background-color: #666;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 2px solid darkgray;
    background: linear-gradient(180deg, rgb(136, 136, 136) 0%, rgb(89, 89, 89) 90%);
}

.WorkingHoursNumber.digit {
    color: #D3D3D3;
    /*text-shadow: 1px 1px #916;*/
}

.TemperatureNumbers {
    position: absolute;
    left: 296px;
    top: 16px;
    width: 80px;
    height: 325px;
}

.TemperatureNumber {
    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: large;
    padding: 31px 0 0 0;
    text-align: right;
}

.Celsius {
    position: absolute;
    left: 10px;
    top: 0px;
    padding: 31px 0 0 0;
    font-family: "Teko", sans-serif;
    font-size: large;
}

.TemperatureTable,
.TemperatureTable th,
.TemperatureTable td,
.TemperatureTable tr {
    border: 0;
    position: relative;
    left: 0px;
    top: 0px;
}

.TemperatureTable,
.TemperatureTable td,
.TemperatureTable tr {
    padding: 0;
}

.TemperatureProgressBars {
    position: absolute;
    left: 90px;
    top: 0px;
    width: 190px;
    height: 325px;
    border-radius: 2px;
}

.temperatureBars {
    width: 95px;
    height: 12px;
    margin-top: 15px;
    background-color: #3b3b3b;
    border-radius: 2px;
    padding: 2px;
}

.TemperatureProgressBar {
    background-color: transparent;
    border: none;
    width: 0px;
    height: 100%;
    transition: width 0.3s;
}

.BatteryRect {
    display: inline-block;
    position: relative;
    left: 0px;
    top: 0px;
    background-color: #969696;
    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: 20px;
    display: block;
    width: 50%;
}

.VoltageUnit {
    position: relative;
    color: #696969;
    font-size: 16px;
    align-self: center;
    right: -7px;
}

.VoltageNumber {
    text-align: right;
    font-size: 35px;
}

.BatteryProgressBarContainer {
    transform: scale(0.7);
    transform-origin: left;
}

.BatteryProgressBarBg {
    position: absolute;

}

.OilBar {
    text-align: left;
}

.FuelBlock {
    background-color: lightgreen;
    width: 25px;
    height: 11px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    filter: invert(20%) brightness(120%);
}


.SignalsBg {
    background-color: #a7a7a7;
    width: 45px;
    height: 45px;
    display: flex;
    align-self: center;
    border-style: solid;
    border-color: #8c8c8c;
    margin: 2px;
    border-radius: 9px;
    border-width: 2px;
    justify-content: center;
}

.TemperatureRect {
    left: 0px;
    top: 0px;
    background-color: #f4f4f6;

    background-image: linear-gradient(225deg, #c4c4c4 10%, #979797 50%, #8f8f8f 100%);
    height: 220px;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;

    position: relative;

    background-color: #f4f4f6;

    font-size: 13px;
    height: 220px;
}

.tachometerContainer2 {
    transform: scale(0.7);
    transform-origin: left;
    position: absolute;
    left: 15px;
    top: 4px;
}

.RevNumber {
    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: 18px;
    position: absolute;
    min-width: 5ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    text-shadow: 2px 2px #956;

    right: 15px;
    top: -6px;
}

.TachoBg {
    position: absolute;
    left: 45px;
    top: 20px;
}

.KmHContainer {
    display: flex;
    position: absolute;
    transform: scale(0.7);
    transform-origin: top;
}

.OilPressureMarker {
    position: absolute;
    top: 25px;
    left: 60px;
    border-right: 8px solid #a9a9a9;
    width: 18px;
    height: 16px;
}

.BatteryProgressBarLine {
    position: absolute;
    background-color: #864;
    border-top: 25px solid red;
    width: 200px;
    transform: scale(0.5, 1);
    transform-origin: bottom left;
    mix-blend-mode: multiply;
}

.FuelNumber {
    font-size: 25px;
    margin: 7px;
}

.TachoRect {
    background-color: #969696;

    position: relative;
    top: 0;
    left: 0;
    height: 120px;
    /* width: 435px; */
    display: block;
}

.FuelIcon {
    position: absolute;
    left: 9px;
    height: 30px;
    margin: 7px;
}

.BatteryIcon {
    position: relative;
    height: 32px;
    margin: 8px;
    margin-left: 20px;
}

.OilPressureRect {
    position: relative;
    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: xx-large;
    background-image: linear-gradient(225deg, #c4c4c4 1%, #979797 30%, #8f8f8f 100%);
    text-align: left;
}

.SignalsRect {
    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: xx-large;
    display: flex;
    justify-content: center;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;

    position: relative;
    left: 0px;
    top: 0px;
    height: 60px;
    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: xx-large;
    background-image: linear-gradient(225deg, #c4c4c4 1%, #979797 30%, #8f8f8f 100%);
}

.Signals {
    position: relative;
    max-width: 28px;
    border-radius: 9px;
    padding: 0px;
    padding-top: 0px;
    filter: invert(0.7) brightness(0.52);
}

.tempScale {
    padding-top: 10px;
    padding-bottom: 10px;
}

.tempScaleIcon {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 44px;
    width: 51px;
}

.tempBarRow {
    display: inline-flex;
}

.tempBarAndIcon {
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    width: 100%;
}

.tempBarInfo {
    display: block;
    position: relative;
    text-align: center;
    transform: scale(0.88);
}

.FuelRect {
    position: relative;
    display: inline-flex;
    align-self: center;
    justify-content: center;

    font-family: "Teko", sans-serif;
    font-style: italic;
    font-size: xx-large;

    background-color: #969696;
    width: 50%;
    text-align: center;
}


@media screen and (max-width:800px) {
    .Dashboard {
        z-index: 100;
        top: 50px;
        left: 50%;
    }


    #stream_iframe {
        width: 320px;
        height: 180px;
    }
}

.SignalsBg.ignition_active {
    background-color: white;
}


.Signals.ignition_active {

    filter: invert(20%) sepia(40%) saturate(1352%) hue-rotate(87deg) brightness(159%) contrast(120%);

}

.Signals.glow_active {

    filter: invert(50%) sepia(18%) saturate(50000%) hue-rotate(779deg) brightness(291%) contrast(120%);
}

.Signals.oilPressure_active {

    filter: invert(50%) sepia(50%) saturate(5000%) hue-rotate(330deg) brightness(100%) contrast(120%);
}

.Signals.waterHot_active {

    filter: invert(50%) sepia(50%) saturate(50000%) hue-rotate(360deg) brightness(100%) contrast(120%);
}

.Signals.charging_active {

    filter: invert(30%) sepia(10%) saturate(1352%) hue-rotate(87deg) brightness(129%) contrast(119%);
}

.Signals.charging_active {
    filter: invert(20%) sepia(40%) saturate(50000%) hue-rotate(350deg) brightness(159%) contrast(120%);
}

/** table styles *****************************************************/

table tbody,
table thead {
    display: block;
}

table tbody {
    overflow: auto;
}

table {
    width: auto;
    border: 1px;
    border-collapse: collapse;
    empty-cells: hide;
    table-layout: fixed;
}

th {
    text-align: right;
}

tr {
    position: sticky;
    text-align: right;
}

td {
    position: sticky;
    text-align: right;
    width: 150px;
}


table tr:nth-child(odd) td {
    background: #fff;
}

table tr:nth-child(even) td {
    background: #f6f6f6;
}

.lidar-icon {
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% 600%;
}

/** device view styles *****************************************************/
.popup-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
}
.popup-container .open-events-on-new-tab {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.popup-container .open-events-on-new-tab:hover {
    opacity: 0.7;
}
.popup-container .close-button {
    content: '×';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}

.popup-container .popup-content {
    width: 100%;
}

.stream-item {
    flex: 0 1 calc(50% - 20px);
    max-width: 640px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stream_iframe_class {
    width: 100%;
    height: 100%;
    border: none;
}

.popup-container.hidden {
    display: none;
}

.cloud-control-stream-container {
    position: fixed;
    max-width: 1300px;
    width: 640px;
    max-width: 100%;
    background-color: #ffffff;
    z-index: 990;
    max-height: 80vh;
    overflow-y: hidden;
    border: 1px solid red;
}

.cloud-control-stream-container.hidden {
    display: none;
}

.cloud-control-stream-container .stream-item {
    border-radius: 0;
}

.cloud-control-stream-container .content {
    position: relative;
    z-index: 0;
}

.cloud-control-stream-touch-shield {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: auto;
    touch-action: none;
    background: transparent;
}

#cloud-control-stream-container-0 {
    top: 50px;
    left: 0px;
}

#cloud-control-stream-container-1 {
    bottom: 0px;
    right: 0px;
}

@media (max-width: 1200px) {
    .stream-item {
        flex: 0 1 100%;
    }
}

@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        padding: 10px;
    }
}

.popup-container::-webkit-scrollbar {
    width: 10px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#view_right .stream-icon {
    display: none;
}

#view_error_cm_check_wrapper {
    display: block;
    position: fixed;
    height: 100%;
    left: 10%;
    z-index: 100;
}

#miniPrecisionMode_SVG_WrapperDiv {
    top:auto !important;
    bottom: 2rem;
}

#miniPrecisionMode_SVG_WrapperDiv.hidden {
    display: none;
    margin-top:auto !important;
}

#DevModePanel {
    top:20px !important;
    right: .5rem !important;
}

#EditMode_Wrapper {
    top: 70px !important;
}

#showAllButton_EditMode {
    width: 4rem !important;
    height: 4rem !important;
    margin-right: auto !important;
    margin-left: .5rem;
}

.squareButtonImage {
    width: 3rem !important;
    height: 3rem !important;
}

/* feature buttons on the right */

#view_right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: calc(50px + .5rem);
    right: 0.5rem;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    width: 3rem;
    padding: 0.5rem;
}

#view_right > * {
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

#view_right > *:hover {
    transform: scale(1.1);
}

#view_right img {
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    cursor: pointer;
}

#auto_pilot {
    opacity: 0.5;
}

#pump {
    opacity: 0.5;
}

#lidar_icon {
    opacity: 0.5;
    background-position-y: 20%;
}

.drilling_icon_number {
    color: rgb(0, 0, 0);
    font-size: x-small;
    text-align: center;
    position: relative;
    width: 2.5rem;
    height: 1rem;
    right: 0.5rem;
    display: none;
}

#drilling_icon {
    opacity: 0.1;
}

#turn_direction_icon.turn_right {
    transform: scaleX(-1);
}

/*********************************/

#system-message {
    color: white;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    width: 60%;
    max-width: 600px;
    padding: 1.5rem;
    margin: 0 auto;
    background-color: rgba(220, 53, 69, 0.9);
    position: absolute;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

#system-message .inner-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#system-message .close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#view_right {
    position: absolute;
    top: calc(50px + .5rem);
    right: 0.5rem;
    z-index: 20;
}

#view_right img {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

#replay_icon {
    display: none;
    opacity: 0.78;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
    border-radius: 10px;
}

body.replay-icon-enabled #replay_icon {
    display: inline-block;
}

#event_replay_section {
    display: none;
}

body.replay-icon-enabled #event_replay_section.event-replay-available {
    display: flex;
    justify-content: flex-end;
}

#event_replay_button {
    width: auto;
    min-width: 10rem;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: #2d7ef7;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

#event_replay_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#replay_icon.replay-active {
    opacity: 1;
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(45, 126, 247, 0.22) 0%, rgba(32, 201, 151, 0.22) 100%);
    box-shadow: 0 0 0 2px rgba(45, 126, 247, 0.28), 0 4px 14px rgba(32, 201, 151, 0.28);
}

#replay_icon.replay-paused {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 224, 178, 0.8) 0%, rgba(255, 183, 77, 0.85) 100%);
    box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.45), 0 4px 14px rgba(240, 173, 78, 0.28);
    filter: drop-shadow(0 3px 8px rgba(240, 173, 78, 0.5));
}

.replay-panel {
    position: fixed;
    top: 70px;
    right: 60px;
    z-index: 1002;
    width: 320px;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.replay-panel.hidden {
    display: none;
}

.replay-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.replay-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.replay-panel-header h4 {
    margin: 0;
    color: #333;
}

#replay_advanced_toggle,
#replay_help_button,
#replay_close_button {
    border: none;
    background: transparent;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    color: #555;
    font-size: 1rem;
    font-weight: 700;
}

#replay_advanced_toggle {
    width: 2.35rem;
    font-size: 0.72rem;
    background: #f4f7fb;
    color: #425466;
}

#replay_help_button {
    background: #eef5ff;
    color: #37506b;
}

.replay-panel-help {
    margin-bottom: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #eef5ff;
    color: #37506b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.replay-panel-help.hidden {
    display: none;
}

.replay-panel label {
    font-size: 0.8rem;
    color: #555;
}

.replay-panel input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d2d7df;
    border-radius: 8px;
    font-size: 0.9rem;
}

.replay-panel input[type="range"] {
    padding: 0;
    border: none;
}

#replay_current_time {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: #f8fafc;
    color: #4d5966;
    font-size: 0.78rem;
    line-height: 1.25;
}

.replay-advanced {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.45rem;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    background: #fafbfd;
}

.replay-advanced.hidden {
    display: none;
}

.replay-advanced-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}

.replay-advanced-row-single {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.replay-step-button {
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    background: #fff;
    color: #364152;
    padding: 0.34rem 0.1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.68rem;
    line-height: 1.05;
}

.replay-step-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#replay_panel_status {
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #f2f5f8;
    color: #4d5966;
    font-size: 0.85rem;
}

.replay-panel-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.replay-panel-actions button {
    flex: 1 1 0;
    border: none;
    border-radius: 8px;
    min-width: 0;
    padding: 0.65rem 0.35rem;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

#replay_start_button {
    background: #2d7ef7;
}

#replay_pause_button {
    background: #f0ad4e;
    color: #1f1f1f;
}

#replay_resume_button {
    background: #28a745;
}

#replay_stop_button {
    background: #c9302c;
}

#replay_pause_button:disabled,
#replay_resume_button:disabled,
#replay_stop_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    .replay-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }

}

#auto_pilot, #pump {
    opacity: 0.5;
}

#lidar_icon {
    opacity: 0.5;
    background-position-y: 20%;
}

#drilling_icon {
    opacity: 0.1;
}

/* Generalized icon container pattern */
.icon-container {
    position: relative;
    max-width: 1.5rem !important;
}
.icon-container.has-icon-number-above {
    padding-top: 0.75rem;
}
.icon-container.has-icon-number-below {
    padding-bottom: 0.75rem;
}

.icon-number-above,
.icon-number-below {
    color: #000;
    font-size: x-small;
    text-align: center;
    position: absolute;
    min-width: 1.5rem;
    height: 1rem;
    display: none;
    white-space: nowrap;
    right: 0;
}

.icon-number-above {
    top: 0;
}

#view_error_cm_check {
    position: absolute;
    top: 40%;
    left: 2%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

#view_error_cm_check #arrow {
    height: 5rem;
}

#view_error_cm_check #distance_from_plant {
    font-size: 2rem;
    margin-right: 0.2rem;
}

#eventDetails .event-details-section {
    margin: 0 0 0.65rem;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-radius: 5px;
}

#eventDetails .event-details-extended-section {
    margin: 0 0 0.65rem;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce3ea;
    border-radius: 5px;
}

#eventDetails .event-details-section h4 {
    color: #2f3a48;
    text-transform: uppercase;
    padding: 0.72rem 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    background: #eef2f5;
    border-bottom: 1px solid #dce3ea;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

#eventDetails .event-details-section h4 #icon {
    padding-left: 0.5rem;
    margin: 0;
}

#eventDetails .event-detail-item {
    display: grid;
    grid-template-columns: minmax(10rem, 32%) minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
    margin: 0;
    color: #26313f;
    border-bottom: 1px solid #e8edf2;
}

#eventDetails .event-detail-item:last-child {
    border-bottom: 0;
}

#eventDetails .event-detail-item p:first-child {
    padding-right: 0;
    margin: 0;
    color: #687586;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#eventDetails .event-detail-item p:last-child {
    margin: 0;
    color: #202b38;
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

#event_replay_section {
    padding: 0.75rem 0.95rem;
}

#event_map {
    width: 100%;
    min-height: 28rem;
    height: clamp(28rem, 62vh, 44rem);
    background: #dce3ea;
    border: 1px solid #dce3ea;
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

#event_svgmap_root {
    width: 100%;
    height: 100%;
}

#event_svgmap_root svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 700px) {
    #eventDetails {
        padding: 0.55rem;
    }

    #eventDetails .event-detail-item {
        grid-template-columns: minmax(0, 46%) minmax(0, 54%);
        gap: 0.45rem;
        min-height: 2.8rem;
        padding: 0.55rem 0.8rem;
    }

    #eventDetails .event-detail-item p:last-child {
        text-align: right;
    }

    #event_map {
        min-height: 32rem;
        height: 72vh;
    }

    body.replay-icon-enabled #event_replay_section.event-replay-available {
        display: block;
    }

    #event_replay_button {
        width: 100%;
    }
}

#dashboard .battery-fuel-container {
    display: flex;
    width: 100%;
    height: 96px;
}

#dashboard .battery-inner, #dashboard .fuel-info {
    padding: 10px;
}

#dashboard .battery-info, #dashboard .fuel-info {
    display: flex;
    align-items: center;
}

#dashboard .fuel-blocks {
    position: absolute;
    right: 13px;
}

#dashboard .temperature-container {
    display: inline-block;
    text-align: center;
    width: 100%;
}

#dashboard .tempBarRow {
    padding-top: 10px;
}

#dashboard .oil-pressure-icon {
    width: 39px;
    margin: 4px;
}

#dashboard .oil-pressure-bg {
    background-color: #818181;
}

#cloud-control, #cloud-control-manual, #cloud-control-maintenance {
    max-width: 600px;
}

#cloud-control, #cloud-control-manual, #cloud-control-maintenance {
    transform: none;
    /* initial approximate values */
    top: calc(50vh - 100px);
    left: calc(50vw - 300px);
    bottom: auto;
    background-color: rgba(255,255,255,1);
    transition: background-color 1s;

    user-select: none;
    -webkit-user-select: none;
}

.cloud-control-manual-active .map-container {
    pointer-events: none;
}

/* While cloud-control streams are visible they are view-only (no_controls=1).
   Disable iframe hit-testing so iOS Safari does not steal taps from control popups. */
.cloud-control-streams-active .cloud-control-stream-container,
.cloud-control-streams-active .cloud-control-stream-container iframe,
.cloud-control-manual-active .cloud-control-stream-container,
.cloud-control-manual-active .cloud-control-stream-container iframe {
    pointer-events: none;
}

.cloud-control-streams-active .cloud-control-stream-touch-shield,
.cloud-control-manual-active .cloud-control-stream-touch-shield {
    display: block;
    pointer-events: auto;
}

#cloud-control,
#cloud-control-manual {
    pointer-events: auto;
    z-index: 1100;
    touch-action: manipulation;
}

#cloud-control button,
#cloud-control-manual button,
#cloud-control-manual input[type="range"] {
    pointer-events: auto;
    touch-action: manipulation;
}

#cloud-control-joystick {
    touch-action: none;
}

#cloud_control_joystick_sensitivity {
    touch-action: pan-x;
}

#cloud-control-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: transparent;
    z-index: 995;
}

#cloud-control-overlay.consent {
    background-color: rgba(255, 165, 0, 0.8);
}

#cloud-control-maintenance-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4000010;
    background-color: rgba(12, 18, 16, 0.48);
    backdrop-filter: blur(1px);
    pointer-events: auto;
}

#cloud-control-maintenance-overlay.hidden {
    display: none;
}

#cloud-control-consent {
    border: orange 2px solid;
    max-width: 900px;
}

#cloud-control-maintenance {
    width: min(520px, calc(100vw - 24px));
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    padding: 0;
    border: 1px solid #dba1a1;
    overflow: hidden;
    z-index: 1002;
}

body.cloud-control-maintenance-modal-open #cloud-control-maintenance {
    z-index: 4000011;
}

body.cloud-control-maintenance-modal-open {
    overflow: hidden;
}

#cloud-control-overlay.hidden {
    display: none;
}

#cloud-control-joystick {
    width: 200px;
    height: 200px;
    margin:10px auto;
    border: 1px solid green;
    opacity: 1;
    transition: opacity 1s;
}

#cloud_control_joystick_sensitivity_info,
#cloud_control_sms_timer,
#cloud_control_sms_timer_joystick {
    min-width: 4em;
    white-space: nowrap;
}

.control-group {
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 1em;
}
.control-group:last-child {
    margin-bottom: 0;
}
.control-group .control-label {
    /*text-wrap: nowrap;*/
    text-overflow: ellipsis;
}
.control-group .control-buttons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
    gap: 1em;
}
.control-group .control-buttons button {
    padding: 1em;
    font-size: 0.9rem;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
    /*white-space: nowrap;*/
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
}
.control-group .control-buttons > button {
    border-radius: 7px;
}
.control-group .control-buttons.width-eq > button {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.control-group .control-buttons button.warning {
    background-color: #AF4C50;
}
.control-group .control-buttons button[disabled] {
    color: gray;
    background-color: lightgray;
    cursor: wait;
}
.control-group .control-buttons.consent {
    justify-content: center;
	margin-top: 1em;
}
.control-group .control-buttons.consent button.consent {
    color: orange;
    border: 1px solid orange;
    background-color: white;
    margin: 0;
    font-size: inherit;
}
.control-group .control-buttons .button-group {
    display: inline-flex;
    vertical-align: middle;
}
.control-group .control-buttons .button-group > button {
    border-right: 1px solid white;
    display: inline-block;
    margin: 0;
    flex: 1 1 auto;
}
.control-group .control-buttons .button-group > button.first-visible {
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}
.control-group .control-buttons .button-group > button.last-visible {
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border-right: none;
}
.control-group .control-subgroup {
    flex-grow: 1;
}
.control-group .control-subgroup .control-label {
    font-variant: small-caps;
    color: gray;
    background: rgba(250,250,250,0.6);
    display: inline-block;
    padding: 0.25em;
    font-size: 0.8rem;
}
.control-group .control-subgroup .control-buttons {
    justify-content: flex-start;
}
#engine_ignition_warning {
    font-weigth: bold;
    color: red;
    font-variant: normal;
}
#engine_ignition_warning img {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

#terms_of_use {
    font-size:20px;
    background: white url('/images/warning_intro.png') no-repeat 30px 30px;
    z-index: 4000000;
    position: relative;
    padding: 30px 30px 30px 170px;
}

#terms_of_use div.heading {
    font-size:50px;
    text-transform: uppercase;
    letter-spacing:5px;
    font-weight:bold;
}

#terms_of_use .term {
    margin: 10px 0;
}

@media screen and (max-width:768px) {
    #terms_of_use {
        padding: 15px;
        background-position: 20px 20px;
        background-size: 50px;
        font-size: 1em;
    }

    #terms_of_use div.heading {
        padding-left: 60px;
        font-size: 30px;
        height: 60px;
        display: flex;
        align-items: flex-end;
    }

    .control-group .control-buttons button {
        padding: 0.5em;
        font-size: 0.8rem;
    }

    .control-group .control-label {
        font-size: 0.8rem;
    }
}

#consent_flags {position: absolute;bottom:95px; left:30px; width:60px;}
#consent_flags img {margin:15px 0px;}
#consent_current_flag {position: absolute;bottom:30px; left:30px;}



/* Base styles = below 360px */

/* Small phones */
@media (min-width: 360px) {

    #robot_name {
        font-size: 9px;
    }

    .nav-info-group p:first-child {
        font-size: 50%;
    }

    .nav-info-group p:nth-child(2) {
        font-size: 70%;
    }

    .nav-info-group p:nth-child(2) > small{
        display: unset;
        font-size: 90%;
    }
}

/* Large phones */
@media (min-width: 576px) {

    #robot_name {
        font-size: 10px;
    }

    .nav-info-group p:first-child {
    }

    .nav-info-group p:nth-child(2) {
        font-size: 80%;
    }

    .nav-info-group p:nth-child(2) > small{
    }
}

/* Tablets */
@media (min-width: 768px) {

    #robot_name {
        font-size: 75%
    }

    .nav-info-group p:first-child {
        font-size: 60%;
    }

    .nav-info-group p:nth-child(2) {
        font-size: 90%;
    }

    .nav-info-group p:nth-child(2) > small{
    }
}

/* Small laptops */
@media (min-width: 992px) {

}

/* Desktops */
@media (min-width: 1200px) {

}

/* Large desktops / 2K */
@media (min-width: 1400px) {

}


.swipe-item {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.swipe-content {
    will-change: transform;
    background: white;
}

.swipe-item.dragging .swipe-content {
    transition: none;
}


.swipe-action {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 120px;

    background: #ef4444; /* default */
    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    transition: background 0.15s ease;
}

.hide-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* smooth iOS scrolling */

    /* Firefox */
    scrollbar-width: none;

    /* IE / old Edge */
    -ms-overflow-style: none;
}

/* Chrome, Safari, Edge (WebKit) */
.hide-scroll-x::-webkit-scrollbar {
    display: none;
}
.swipe-item.dragging {
    user-select: none;
    cursor: grabbing;
}


.app-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Overlay */
.app-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    animation: overlayIn 180ms ease;
    overscroll-behavior: contain;
    touch-action: none;
}

@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Popup card */
.app-popup {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: popupIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.app-popup.closing {
    animation: popupOut 160ms ease forwards;
}

@keyframes popupIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popupOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(8px) scale(0.97); }
}

/* Header */
.app-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem 1rem;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

/* Close button */
.app-popup-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #888;
    transition: background 120ms, color 120ms;
    flex-shrink: 0;
}
.app-popup-close:hover  { background: #f2f2f2; color: #111; }
.app-popup-close:active { transform: scale(0.92); }

/* Body */
.app-popup-body {
    padding: .5rem;
    font-size: 14px;
    color: #555;
    line-height: 1.65;
}

/* Footer */
.app-popup-footer {
    padding: 0.85rem 1.25rem;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.app-popup-footer:empty { display: none; }

/* Home device filters */
.home-filter-popup {
    z-index: 4000000;
    touch-action: pan-y;
}

.home-filter-popup .app-popup {
    max-width: 420px;
    border: 1px solid #cfd8d1;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(23, 35, 26, 0.24);
}

.home-filter-popup .app-popup-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #d3dbd5;
    background: #f5f7f5;
    color: #182019;
    font-weight: 700;
}

.home-filter-popup .app-popup-body {
    padding: 0;
    background: #edf1ee;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-height: min(70vh, 560px);
    padding: 14px;
    overflow-y: auto;
    touch-action: pan-y;
}

.filter-container::-webkit-scrollbar {
    width: 5px;
}

.filter-container::-webkit-scrollbar-track {
    background: transparent;
}

.filter-container::-webkit-scrollbar-thumb {
    background: #b0bfae;
    border-radius: 4px;
}

.filter-container::-webkit-scrollbar-thumb:hover {
    background: #8e9b91;
}

.filter-section {
    display: grid;
    gap: 7px;
}

.filter-section-title {
    padding: 0 2px;
    color: #4f5d52;
    font-size: 0.78rem;
    font-weight: 700;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1rem;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd8d1;
    border-radius: 6px;
    background: #ffffff;
    color: #1e2921;
    cursor: pointer;
    text-align: left;
    user-select: none;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.filter-row:hover {
    border-color: #97a59a;
    background: #f9fbf9;
}

.filter-row:focus-visible {
    outline: 2px solid #2f7d32;
    outline-offset: 2px;
}

.filter-row.active {
    border-color: #2f7d32;
    background: #e7f2e8;
    color: #245f27;
}

.filter-row-label {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    font-weight: 600;
}

.filter-row-check {
    justify-self: end;
    color: #2f7d32;
    opacity: 0;
}

.filter-row.active .filter-row-check {
    opacity: 1;
}

@media (max-width: 480px) {
    .filter-container {
        padding: 10px;
    }

    .filter-row {
        min-height: 42px;
        padding: 9px 10px;
    }
}

.cloud-control-maintenance-warning {
    padding: 18px;
    color: #182019;
}

.cloud-control-maintenance-warning h2 {
    margin: 0;
    color: #8f2828;
    font-size: 20px;
}

.cloud-control-maintenance-warning p {
    margin: 10px 0;
    color: #48514b;
    line-height: 1.45;
}

.cloud-control-maintenance-warning ul {
    margin: 0 0 14px;
    padding-left: 18px;
}

.cloud-control-maintenance-warning li {
    margin: 5px 0;
    font-weight: 700;
}

.cloud-control-maintenance-warning .control-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cloud-control-maintenance-warning .control-buttons > button {
    flex: 1 1 0;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 7px;
    white-space: normal;
}

.cloud-control-maintenance-warning .control-buttons > button.warning {
    color: #ffffff;
    border-color: #af4c50;
    background-color: #af4c50;
}

@media (max-width: 520px) {
    .cloud-control-maintenance-warning .control-buttons {
        flex-direction: column;
    }
}
