@charset "utf-8";

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/** General */
body,
html {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    color: #303030;
    background: rgb(245, 245, 245);
    font-size: 15px;
    height: 100%;
    overflow-x: hidden;
}

a,
a:hover,
a:visited,
a:active {
    text-decoration: none;
    color: #d8320d;
}

h1 {
    font-size: 22px;
}

h2 {
    font-size: 19px;
}

h3 {
    font-size: 16px;
}

main {
    margin: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

table {
    word-break: break-all;
    white-space: normal;
}

.flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.jc-center {
    justify-content: center;
}

.end {
    justify-content: flex-end;
}

.between {
    justify-content: space-between;
}

.ai-center {
    align-items: center;
}

.wrap {
    flex-wrap: wrap;
}

.pd20 {
    padding: 20px;
}

.h100 {
    height: 100%;
}

.w100 {
    width: 100%;
}

.mw500 {
    max-width: 500px;
}

.maxWidth {
    max-width: 1200px;
}

.mh500 {
    max-height: 500px;
}

.mBottom10 {
    margin-bottom: 10px;
}

.mBottom20 {
    margin-bottom: 20px;
}

.mTop15 {
    margin-top: 15px;
}

.mTop20 {
    margin-top: 20px;
}

.mTop200 {
    margin-top: 200px;
}

.mTopAuto {
    margin-top: auto;
}

.bgWhite {
    background: #ffffff;
}

.textCenter {
    text-align: center;
}

.textLeft {
    text-align: left;
}

.m20y {
    margin-top: 20px;
    margin-bottom: 20px;
}

.scrollableX {
    width: 100%;
    overflow-x: auto;
}

.scrollableY {
    height: 100%;
    overflow-y: auto;
}

.scrollWrapper {
    overflow: hidden;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.accent {
    color: #d8320d !important;
}

#shadow {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0);
    z-index: -1000;
    transition: background ease 0.2s;
}

#shadow.active {
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.mobile {
    display: none;
}

/** Messages */
.msgBox {
    padding: 20px 10px;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    position: fixed;
    bottom: 10px;
    right: 10px;
    left: 10px;
    cursor: pointer;
}

.msgBox span {
    width: 100%;
}

.msgBox.error {
    color: #000000;
    background: #ffeeee;
    border-color: #fc5631;
    border-width: 2px;
}

.msgBox.warning {
    color: #f2efe2;
    background: #ffa700;
    border-color: #ffcc00;
}

.msgBox.success {
    color: #efefef;
    background: #008600;
    border-color: #00b300;
}

.msgBox.info {
    color: #eff5ff;
    background: #d8320d;
    border-color: #3e8bff;
}

/** NavBar */
#mainNav {
    background: #d8320d;
    min-width: 220px;
}

#mainNav ul {
    display: flex;
    width: 100%;
    height: 59px;
}

#mainNav ul.subMenu {
    position: absolute;
    top: 59px;
    right: 0;
    width: auto;
    height: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

#mainNav ul.subMenu a {
    background: #ffffff;
    color: #303030;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-style: solid;
    border-width: 0 1px 1px 1px;
    border-color: #c0c0c0;
    min-width: 200px;
    width: auto;
    height: 50px;
}

#mainNav ul.subMenu i {
    margin: 0;
}

#mainNav ul.subMenu a:hover {
    background: #f0f0f0;
}

#mainNav li {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    position: relative;
}

#mobileNav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#mainNav li:first-Child {
    display: flex;
    align-items: center;
}

#mainNav li.devider {
    margin-left: auto;
}

#mobileNav li.devider {
    margin-top: auto;
}

#mainNav li.mobile {
    display: none;
}

#mainNav a,
#mainNav span {
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 0 20px;
    height: 100%;
    cursor: pointer;
}

#mobileNav a {
    border-left: 3px solid transparent;
    padding: 20px 40px 20px 20px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

#mainNav a:hover,
#mainNav a:active,
#mobileNav a:hover,
#mobileNav a:active,
#mainNav span:hover,
#mainNav span:active {
    background: #fc5631;
}

#mobileNav a.active,
#mainNav a.active,
#mainNav span.active {
    background: #fc5631;
}

#mainNav a i,
#mobileNav a i {
    margin-right: 20px;
    width: 20px;
    margin-bottom: 4px;
    text-align: center;
}

#mainNav li.little a {
    padding: 10px 40px 10px 20px;
    font-size: 14px;
}

#mobileNav li.little {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: #ffffff;
    padding: 0 40px;
}

#mobileNav li.little a {
    padding: 0;
    font-size: 14px;
    white-space: nowrap;
    width: auto;
}

#mobileNav li.little a:hover {
    background: unset;
}

#mainNav a#logo {
    font-size: 18px;
}

#mainNav a#logo i {
    margin: 0 10px 0 0;
}

#mainNav a#logo img {
    width: 100%;
}

#mainNav a#logo:hover,
#mainNav a#logo:active {
    background: #d8320d;
}

#userInfo {
    background: #e0e0e0;
    /* background: #94acda; */
    color: #909090;
    height: 50px;
    min-height: 50px;
    font-size: 12px;
    padding: 0 20px;
    cursor: default;
}

/** MobileNav */
#mobileNav {
    display: flex;
    width: 400px;
    position: fixed;
    right: -400px;
    top: 0;
    background: #d8320d;
    bottom: 0;
    transition: right ease 0.2s;
    z-index: 2000;
}

#mobileNav.open {
    right: 0px;
}

#mobileNav a {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    color: #ffffff;
}

#mobileNav li:first-child a {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    border-left: none;
}

#mobileNav li:first-child a i {
    color: red;
}

/** Login */
#login {
    display: flex;
    height: 100%;
    width: 100%;
}

/** Dashboard */
#dashboard {
    display: flex;
    height: 100%;
    width: 100%;
}

#dashboard-content.default {
    display: grid;
    width: 100%;
    grid-template-areas:
        "box box";
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    overflow-y: auto;
}

#dashboard-content div.grid {
    background: #ffffff;
}

/** Various */
.gridjsTable table {
    height: fit-content;
    border-bottom: none;
    width: 100%;
}

.gridjsTable table th,
.gridjsTable table th:hover,
.gridjsTable table th:focus {
    background: #d8320d;
    color: #ffffff;
    padding: 10px 5px;
    overflow: hidden;
    line-height: 25px;
}

.gridjsTable table td {
    padding: 10px 5px;
    overflow: hidden;
}

.gridjsTable table td>span {
    word-break: break-all;
    white-space: normal;
}

.gridjsTable table tr:nth-child(even) {
    background: #fafafa;
}

.gridjsTable table tr:last-child {
    background: none;
}

.gridjsTable table form {
    display: contents;
}

.gridjsTable table span.buttons {
    display: flex;
    justify-content: space-around;
}

.gridjsTable table a.button,
.gridjsTable table button.button {
    padding: 5px 10px;
    border: 2px solid #f0f0f0;
    border-radius: 5px;
    background: #ffffff;
    display: block;
    text-align: center;
    color: #000;
    margin: 0;
    cursor: pointer;
}

.gridjsTable .gridjs-container {
    padding: 0;
}

.gridjsTable .gridjs-head {
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gridjsTable .gridjs-head::after {
    display: none;
}

.gridjsTable input.gridjs-input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    margin: 5px 5px 10px 5px;
    background: #ffffff;
    appearance: auto;
    box-shadow: none;
}

.gridjsTable input.gridjs-input:focus {
    outline: auto;
}

.gridjsTable .gridjs-wrapper {
    width: 100%;
    height: 100%;
    overflow: auto;
    max-height: 500px;
}

.gridjsTable .gridjs-footer {
    box-shadow: none;
    border-top: 2px solid #e0e0e0;
    background-color: rgb(245, 245, 245);
    padding: 20px 0;
}

form.defaultForm {
    max-width: 500px;
}

.gridjs-pagination .gridjs-pages button.gridjs-currentPage {
    background-color: #ffffff !important;
}

.checkReFileTable {
    display: flex;
}

.checkReFileTable tr {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.checkReFileTable td {
    display: flex;
    width: 300px;
    padding: 10px 0;
}

table a.invisible {
    height: 31px;
    color: #000;
    display: flex;
    width: 100%;
    align-items: center;
}

/** Forms */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
textarea {
    padding: 10px;
    border: 2px solid #eaeaea;
    border-radius: 5px;
    margin: 5px 0 10px;
    background: #ffffff;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    font-size: 13px;
}

select {
    padding: 10px;
    border: 2px solid #eaeaea;
    border-radius: 5px;
    margin: 5px 0 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
}

input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="text"]:disabled,
input[type="date"]:disabled,
textarea:disabled,
select:disabled {
    background: #e0e0e0;
}

input[type="submit"],
button.action,
a.action,
.gridjs-head button.action {
    padding: 10px;
    background: #d8320d;
    color: #ffffff;
    border: 2px solid #d8320d;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-size: 14px;
    font-weight: normal;
}

input[type="submit"]:hover,
input[type="submit"]:active,
button.action:hover,
button.action:active,
a.action:hover,
a.action:active {
    background: #fc5631;
    border-color: #fc5631;
}

a.button {
    padding: 10px;
    background: #f5f5f5;
    color: #d8320d;
    border: 2px solid #d8320d;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 0 10px;
    text-align: center;
    font-size: 14px;
    font-weight: normal;
}

a.button:hover,
a.button:active {
    background: #fcfcfc;
}

select.multiple option {
    padding: 20px 10px;
    border-bottom: 1px solid #f0f0f0;
}

select.multiple option:hover {
    background: #f0f0f0;
}

textarea {
    font-size: 13px;
}

input#MAC {
    text-transform: lowercase;
}

/** Login */
#loginForm {
    max-width: 500px;
    margin: 50px 0 0;
    width: 100%;
}

/** TableTabs */
.tableTabs {
    display: flex;
    justify-content: flex-end;
}

.tableTabs a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    margin-left: 10px;
    color: #6b7280;
    border-radius: 5px;
}

.tableTabs a.active {
    background: #d8320d;
    border-color: #d8320d;
    color: #ffffff;
}

/** Toggle switch */
.toggleSwitch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggleSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggleSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 34px;
}

.toggleSlider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 50%;
}

input:checked+.toggleSlider {
    background-color: green;
}

input:checked+.toggleSlider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

/** Real-Estates */
.structure #defaultView,
#strutureView,
#uploadForm {
    display: none;
}

.structure #strutureView,
#defaultView,
.structure #uploadForm {
    display: inherit;
}

.importedDevice {
    padding: 20px;
    background: #ffffff;
    color: #606060;
    font-family: monospace;
}

#keyImportForm,
#csvExportForm,
#telegramImportForm {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#csvExportForm {
    display: none;
}

#keyImportForm>div,
#csvExportForm>div,
#telegramImportForm>div {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 200px;
}

#keyImportForm>div>div,
#csvExportForm>div>div,
#telegramImportForm>div>div {
    display: flex;
    justify-content: space-between;
}

#keyImportForm input,
#csvExportForm input,
#telegramImportForm input {
    margin: 5px 0 15px;
}

#export_device_dataset {
    margin: 0 10px 0 0;
}

.simpleTable td,
.simpleTable th {
    padding: 5px;
    border-width: 1px 1px 0 0;
    border-style: solid;
    border-color: #c0c0c0;
}

.simpleTable td:first-child,
.simpleTable th:first-child {
    border-left: 1px solid #c0c0c0;
}

.simpleTable tr:last-child td {
    border-bottom: 1px solid #c0c0c0;
}

.simpleTable {
    border-collapse: separate;
    border-spacing: 0px;
}

/** Breadcrumbs */
.breadcrumbs {
    display: flex;
    margin-top: 20px;
}

.breadcrumbs li {
    display: flex;
    margin: 0px 5px 5px 0;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    background-color: #ffffff;
}

.breadcrumbs a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    color: #606060;
}

.breadcrumbs li:last-child,
.breadcrumbs li:last-child a {
    color: #ffffff;
    background-color: #d8320d;
    border-color: #d8320d;
}

#filter_date_range_received_devices {
    margin-right: 10px;
}

#filter_date_range_received_devices input {
    margin: 0 2px;
}

#query_section div.heading {
    display: grid;
    grid-template-columns: minmax(270px, 1fr) minmax(300px, 1fr) minmax(100px, 1fr);
    margin-top: 40px;
}

#query_section div.heading span {
    display: flex;
    align-items: center;
    font-weight: 300;
    font-size: 20px;
}

.grey,
.grey a {
    color: #909090;
}

#query_section div.heading span:last-child {
    justify-content: flex-end;
}

#query_section h1 i {
    margin: 0 10px 0 0;
}

#query_section h2 {
    font-weight: 300;
}

#query_section input[type="text"] {
    border: 2px solid #d8320d;
    border-radius: 50px;
    background: #ffffff;
    height: 30px;
    width: 100%;
    max-width: 200px;
    margin: 0;
    padding: 10px 10px 10px 20px;
}

#query_section input[type="submit"] {
    height: 54px;
    width: 54px;
    border-radius: 50px;
}

#query_section button {
    background-color: #d8320d;
    color: #ffffff;
    height: 54px;
    width: 54px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin: 0 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#query_section h1.border {
    border: 2px solid #d8320d;
    border-radius: 50px;
    background: #ffffff;
    padding: 15px 50px;
    justify-content: center;
    font-weight: 600;
    display: flex;
}

#query_section #logo-big{
    font-size: 60px;
}

canvas.consumption {
    background-color: #ffffff;
    padding: 20px;
    border: 2px solid #d0d0d0;
}

@media only screen and (max-width: 1000px) {

    .breadcrumbs {
        flex-direction: column;
    }

    .breadcrumbs li {
        margin-right: 0px;
    }

    .mobile {
        display: unset;
    }

    #dashboard-content.default {
        grid-template-areas: "box";
        grid-template-rows: 400px 400px 400px 400px;
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }

    #dashboard,
    #login {
        flex-direction: column;
    }

    #mainNav {
        height: 59px;
    }

    #mainNav ul {
        flex-direction: row;
        height: 100%;
        overflow: hidden;
    }

    #mainNav li {
        display: none;
    }

    #mainNav li:first-child {
        display: flex;
    }

    #mainNav a {
        padding: 22px;
        justify-content: center;
    }

    #mainNav li.mobile {
        display: flex;
        align-items: center;
    }

    #mobileMenuIcon a {
        font-size: 24px;
    }

    #mainNav a i {
        margin: 0;
    }

    #mobileMenuIcon {
        margin-left: auto;
    }

    #logo {
        padding: 0 20px;
    }

    #loginForm {
        margin: 50px auto;
    }

    form.defaultForm {
        margin: 0 auto;
    }

    .gridjsTable table td {
        width: auto !important;
        display: flex;
        align-items: center;
        text-align: unset !important;
        border: none;
        padding: 15px 10px;
    }

    .gridjsTable table tr {
        display: flex;
        flex-direction: column;
    }

    .gridjsTable table th {
        display: none;
        align-items: center;
        text-align: unset !important;
        border: none;
        padding: 10px 10px !important;
    }

    .gridjsTable table th.gridjs-th-sort {
        display: flex;
    }

    .gridjsTable table td span {
        margin-right: 10px;
    }

    .gridjsTable .gridjs-tbody tr,
    .gridjsTable .gridjs-tbody tr:last-child {
        border-width: 2px;
        border-color: #e0e0e0;
        border-style: solid;
        margin: 15px 0px;
        border-radius: 5px;
        overflow: hidden;
    }

    .gridjsTable .gridjs-thead tr,
    .tableTabs {
        overflow: hidden;
        border-radius: 5px;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .gridjsTable .gridjs-thead th {
        width: auto;
        min-width: 200px;
        flex-grow: 1;
        margin: 5px;
        border-radius: 5px;
    }

    .tableTabs a {
        width: auto;
        min-width: 200px;
        flex-grow: 1;
        margin: 10px 5px;
    }

    .gridjsTable table tr:nth-child(even) {
        background: none;
    }

    .gridjsTable table td[data-column-id="aktion"] {
        justify-content: flex-end;
        border-top: 2px solid #f0f0f0;
    }

    .gridjsTable table a.button,
    .gridjsTable table button.button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50px;
        height: 50px;
        margin: 0 10px;
    }

    .gridjsTable .gridjs-wrapper {
        box-shadow: none;
        border: none;
    }

    .gridjsTable input.gridjs-search-input {
        margin: 10px 5px 0;
    }

    .gridjs-tbody {
        background-color: rgb(245, 245, 245) !important;
    }

    .gridjs-footer {
        background-color: rgb(245, 245, 245) !important;
    }

    .gridjsTable .gridjs-head {
        flex-direction: column;
        align-items: normal;
    }

    .gridjs-search {
        display: flex;
        flex-direction: column;
    }

    .gridjs-search .gridjs-search-input {
        width: auto;
    }

    #dcFormTable input[type=checkbox] {
        width: 25px;
        height: 25px;
    }

    .msgBox {
        left: 10px;
    }

    .actionsWrapper {
        flex-direction: column;
    }

    .actionsWrapper form,
    .actionsWrapper div {
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        max-width: none;
    }

    .actionsWrapper button {
        width: 100%;
        max-width: none;
    }

    .actionsWrapper {
        padding: 10px 5px;
    }

    table a.invisible {
        display: initial;
    }
}

@media only screen and (max-width: 700px) {
    #query_section div.heading {
        grid-template-columns: auto;
    }

    #query_section div.heading span {
        justify-content: center !important;
    }
}

@media only screen and (max-width: 500px) {
    .mobileW100 {
        width: 100%;
    }

    .mobileCol {
        display: flex;
        flex-direction: column;
    }

    #mobileNav.open {
        width: 100%;
    }

    .gridjsTable table td[data-column-id="aktion"] {
        justify-content: space-around;
    }

    .gridjsTable table span.buttons {
        margin: 0;
    }

    .gridjsTable table a.button {
        margin: 0 10px;
    }

    .gridjs-pages button {
        padding: 10px 20px !important;
        border-style: solid !important;
        border-width: 2px 0 2px 2px !important;
        border-color: #e0e0e0 !important;
    }

    .gridjs-pagination .gridjs-pages {
        width: 100%;
    }

    .gridjs-pages button:first-child,
    .gridjs-pages button:last-child {
        width: 100%;
        border: 2px solid #e0e0e0 !important;
        border-radius: 5px;
        overflow: hidden;
        margin: 5px 0;
    }

    .gridjsTable .gridjs-footer {
        padding: 10px 0 0;
        width: auto;
    }

    input[type="submit"],
    button.action,
    a.action,
    a.button {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #keyImportForm>div,
    #csvExportForm>div {
        margin-bottom: 100px;
    }
}