@font-face {
    font-family: 'Roboto';
    src: url("/fonts/Roboto/Roboto-Thin.ttf") format("truetype");
    font-weight: 100;
}

@font-face {
    font-family: 'Roboto';
    src: url("/fonts/Roboto/Roboto-Light.ttf") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: 'Roboto';
    src: url("/fonts/Roboto/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: 'Roboto';
    src: url("/fonts/Roboto/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: 'Roboto';
    src: url("/fonts/Roboto/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: 'Roboto';
    src: url("/fonts/Roboto/Roboto-Black.ttf") format("truetype");
    font-weight: 900;
}

@font-face {
    font-family: 'HelveticaNeueLT';
    src: url("/fonts/HelveticaNeueLTW1G_Lt.otf") format("opentype");
}

@font-face {
    font-family: 'Montserrat';
    src: url("/fonts/Montserrat-Regular.otf") format("opentype");
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url("/fonts/fa-regular-400.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    src: url("/fonts/fa-solid-900.ttf") format("truetype");
    font-weight: 400;
}


/*
html, body {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}
*/

body {
    page: main;
    counter-reset: page 1;
    font-family: "Roboto", "Montserrat", sans-serif;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* text-rendering: optimizeLegibility; */
}

@page {
    size: 21.0cm 29.7cm;
    margin-top: 2cm;
    margin-bottom: 1.5cm;
    margin-left: 2cm;
    margin-right: 2cm
}

@media print {
    .pagebreak {
        page-break-after: always;
    }

    .no_print {
        display: none !important;
    }

    body {
        font-size: 11pt;
    }

    .footer {
        position: fixed;
        bottom: 1em;
    }

    .pagenumber:after {
        counter-increment: page;
        content: counter(page);
    }
}

@media screen {
    .no_display {
        display: none !important;
    }
}

a:visited {
    text-decoration: #000000;
    text-decoration: none;
}

a {
    text-decoration: #000000;
    text-decoration: none;
}

.dot {
    height: 20px;
    width: 20px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin-top: 50%;
}

#desktop_navigation {
    position: relative;
    margin: 0px;
    border: 0px;
    top: 0em;
    z-index: 999;
    clear: both;
    font-size: medium;
    overflow: hidden;
}

#desktop_navigation div {
    background-color: #ffffff;
    text-align: center;
    width: 105px;
    height: 85px;
    top: 0px;
    float: left;
    padding: 8px;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}

#desktop_navigation div a,
#desktop_navigation div a:visited {
    color: black;
    font-weight: 700;
}

#desktop_navigation div img {
    width: 50px;
    height: 50px;
}

.messages_content tr {
    background-color: #f8e9cd;
    color: #000000;
    cursor: pointer;
}

.messages_content tr.row {
    background-color: transparent;
    color: #000000;
    cursor: pointer;
}

.device_table_content_wrapper {
    margin: 0px auto;
    max-width: 80em;
    border: 1px solid #eeeeee;
    clear: both;
    max-height: calc(100vh - 220px);
    overflow: auto;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.device_table_title_row {
    font-weight: bold;
    border-bottom: 1px solid #ffffff;
    clear: both;
    overflow: hidden;
}

.device_table_title_row .text {
    display: block;
    float: left;
    padding: 0.2em;
    overflow: hidden;
}

.device_table_content_meta {
    display: block;
    clear: both;
    padding: 0.2em;
    overflow: hidden;
}

.device_table_content {
    clear: both;
    line-height: 48px;
    max-width: 100%;
    padding: 0px;
    overflow: hidden;
    background-color: #ffffff
}

.device_table_content:hover {
    background-color: #f5f5f5
}

.device_table_content>div {
    float: left;
    padding: 0.2em;
    overflow: hidden;
    line-height: 48px;
    display: block;
    border-top: 1px solid #dddddd;
    cursor: pointer;
    min-height: 55px;
}

.device_table_content div img {
    width: 42px;
    height: 42px;
}

#table_edit {
    margin: 0px auto;
    display: inline-table;
    width: 100%;
    overflow: hidden;
}

#table_edit .button_header {
    position: relative;
    background: transparent;
    float: left;
    line-height: 56px;
    border: 0px;
    padding: 0px;
    margin: -0.2em 0px 0px 2em;
    height: 56px;
    width: 56px;
    cursor: pointer;
}

.device_table_content .device_table_edit_form {
    margin: 0px auto;
    clear: both;
    overflow: hidden;
    background-color: rgb(248, 248, 248);
    float: none;
    display: none;
    max-width: 100vw;
    cursor: default;
}

.device_table_edit_form {
    max-width: 700px;
    margin: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0.5em;
}

.device_table_content .device_table_edit_form div {
    border: 0;
    min-height: unset;
    clear: both;
    float: left;
    display: block;
    overflow: hidden;
    width: 100%;
    line-height: 1.4em;
    font-size: 1.0em;
}

.device_table_edit_form label {
    float: left;
    width: 25%;
    clear: both;
    text-align: right;
    margin: 5px;
    display: block;
    line-height: 1.6em;
    font-size: 1.0em;
}

.device_table_edit_form input {
    width: 50%;
    line-height: 1.6em;
    font-size: 1.0em;
    max-width: 100%;
    display: block;
    border: 1px solid #aaaaaa;
    border-radius: 2px;
    margin: 5px;
    float: left;
}

.device_table_content .device_table_edit_form .gateway_info {
    clear: both;
    width: 100%;
    font-size: 0.8em;
}

.device_table_content .device_table_edit_form .gateway_info div {
    float: right;
    display: block;
    overflow: hidden;
    width: 15em;
    right: 0px;
}

.device_table_edit_form .button_device_data {
    text-align: center;
    width: 60px;
    cursor: pointer;
    padding-top: 20px;
    padding-bottom: 10px;
    max-width: fit-content;
}

.device_table_edit_form .button_device_data img {
    width: 60px;
    height: 60px;
}

.device_table_edit_form .save {
    float: left;
    margin: 0 calc(15% - 30px) 0 calc(35% - 30px);
}

.device_table_edit_form .cancel {
    float: right;
    margin: 0 calc(35% - 30px) 0 calc(15% - 35px);
}

/* edit user form*/
#edit_user_form_meta {
    display: none;
}

#user_form {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding-top: 2em;
}

.edit_user_data_title {
    clear: both;
    font-weight: bold;
    vertical-align: middle;
    line-height: 4em;
}

.edit_user_data_left_side, .edit_user_data_right_side {
    float: left;
    width: 45%;
    min-width: 340px;
}

.edit_user_data_row {
    clear: both;
    padding-bottom: 3.6em;
}

.label {
    width: 37%;
    float: left;
    text-align: right;
    vertical-align: middle;
    line-height: 2em;
    margin-right: 0.5em;
}

.input_container {
    width: 50%;
    float: left;
    vertical-align: middle;
    line-height: 2em;
}

.input_container input, .input_container select {
    width: 90%;
    line-height: 1.4em;
    font-size: 1.2em;
    max-width: 50%;
    display: block;
    border: 1px solid #aaaaaa;
    border-radius: 2px;
}

.user_group_name {
    width: 90%;
    line-height: 1.4em;
    font-size: 1.2em;
    max-width: 100%;
    display: block;
    border: 1px solid #dddddd;
    border-radius: 2px;
    text-align: left;
}

.button_save_user_data {
    clear: both;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
}


div.search {
    width: 450px;
    position: relative;
    top: 0px;
    display: block;
    float: left;
    border-bottom: 4px solid #dedede;
    height: 40px;
    line-height: 40px;
    border-radius: 2px;
    padding: 0px;
    overflow: hidden;
    max-width: 100%;
}

div.search input#search_input {
    width: 400px;
    display: inline-table;
    float: left;
    height: 40px;
    border: 0px;
    font-size: 32px;
    line-height: 40px;
    padding: 0px;
    color: #888888;
    outline: none;
}

#search_button {
    background: transparent;
    border: 0px;
    float: left;
    cursor: pointer;
    display: inline-table;
    right: 0px;
    height: 40px;
    padding: 0px;
    width: 38px;
    padding-left: 6px;
    padding-right: 6px;
}

/* datapoint view*/
.device_offline_text {
    position: relative;
    z-index: 999;
    margin: 0 auto;
    width: 400px;
    height: 150px;
    line-height: 150px;
    text-align: center;
    padding: 1em;
    font-size: xx-large;
    border: 1px solid #aaaaaa;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
}

.DataPointsBodyElements {
    margin: 0 auto;
    min-width: 800px;
    max-width: 900px;
    padding-top: 2em;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

#datapoints_list .gridjs-wrapper {
    overflow: hidden scroll;
    max-height: 500px;
}

#datapoints_list .gridjs-wrapper .gridjs-table {
    max-height: 500px;
}

#devices_all .gridjs-wrapper,
#devices_all .gridjs-wrapper .gridjs-table {
    max-height: calc(-271px + 100vh);
}

#devices_all .gridjs-container {
    margin: 0 6px;
}

#datapoints_form {
    width: 50%;
    height: 45em;
    padding-top: 50px;
}

#legend_datapoints {
    font-weight: bold;
}

.input-group {
    margin-top: 2em;
    display: flex;
    align-items: center;
}

.input-group label {
    width: 100px;
}

.input-group input[type="text"] {
    width: 10em;
    height: 1.8em;
    font-size: large;
    border-radius: 0.2em;
    border: 1px solid #cccccc;
    text-align: right;
}

.input-group input:disabled {
    background-color: #cccccc;
}

.input-group button {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    padding: 0;
}

#data_point_button {
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    margin-top: 1em;
}

#datapoints_form img {
    width: 30px;
    height: 30px;
}

#data_point_button img {
    width: 40px;
    height: 40px;
}

/* view_header */
body {
    margin: 0;
}

.menu {
    display: flex;
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background-image: url(/images/logo2.svg);
    background-repeat: no-repeat;
    background-size: 14em;
    background-position: calc(100% - 0px);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-item#device {
    width: unset;
    position: absolute;
    right: 220px;
}

.menu-item#device span {
    max-width: unset;
}

/*
.menu-item#device:hover {
    color: black;
    transform: unset;
}
*/


.menu .menu-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.menu .active img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(4125%) hue-rotate(345deg) brightness(84%) contrast(98%);
}

.menu .active span {
    color: #c10c25;
}

.menu .active {
    border-bottom: 4px solid #c10c25;
    margin-bottom: -4px;
}

.menu-item span {
    font-family: 'Roboto';
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
}

.menu-item:hover {
    color: #c10c25;
    transform: scale(1.1);
}

.menu-item:hover img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(97%) saturate(4125%) hue-rotate(345deg) brightness(84%) contrast(98%);
}

.menu-item:active {
    transform: scale(0.9);
}

.main_menu_container {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style the hamburger menu */
.main_menu_container a.icon {
    display: none;
}

/* Style the active link (or home/logo) */
/*
.active {
    background-color: #04AA6D;
    color: white;
}
*/

@media (max-width: 1450px) {
    .main_menu_container a.icon {
        /*background: #5d5d5c;*/
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        color: rgb(0, 0, 0);
        padding: 16px 16px;
        text-decoration: none;
        font-size: 36px;
        display: block;
    }

    .main_menu_container {
        height: 79px;
        overflow: hidden;
        margin-bottom: 15px;
    }

    .menu {

        flex-direction: column;
        background-size: 14em;
        background-position: top;
        padding: 75px 10px 20px 10px;
    }

    .menu-item {
        margin: 10px 0;
    }

    .menu-item#device {
        width: unset;
        position: unset;
        right: unset;
    }
}