/* DevExtreme patches */
.dx-datagrid-toolbar-custommenu .dx-dropdownbutton-content .dx-list-item {
    display: block;
}



/* MES */
@font-face {
    font-family: mainfont;
    src: url(../fonts/GothicA1-Regular.ttf);
}

@font-face {
    font-family: boldfont;
    src: url(../fonts/GothicA1-Bold.ttf);
}

:root {
    --buttoncolor: rgba(0, 57, 102, 1);
    --buttonhovercolor: rgba(0, 57, 102, 0.7);
    --secondarybuttoncolor: rgba(240, 240, 240, 1);
    --secondarybuttonhovercolor: rgba(240, 240, 240, 0.7);
    --rowhovercolor: rgba(0, 57, 102, 0.2);
    --bs-body-font-family: mainfont;
}

html {
    width: 100%;
    height: 100%;
    position: relative;
}

body {
    width: 100%;
    height: 100%;
    position: relative;
}

button {
    background-color: var(--buttoncolor);
}

    button:hover {
        background-color: var(--buttonhovercolor);
    }

button.secondary {
    background-color: var(--secondarybuttoncolor);
}

    button.secondary:hover {
        background-color: var(--secondarybuttonhovercolor);
    }

.main {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 60px auto;
    position: relative;
}

    .main .header {
        display: grid;
        grid-template-columns: 60px max-content auto max-content max-content 120px;
        box-shadow: 0px 2px 10px 0 rgba(0,0,0,0.14);
        background-color: white;
        z-index: 2;
        position: fixed;
        width: 100%;
        height: 60px;
    }

        .main .header.notloggedin {
            grid-template-columns: max-content auto max-content;
        }

        .main .header > .menu {
            align-self: center;
            justify-self: center;
            width: 100%;
            height: 100%;
            border-right: 1px solid #ddd;
        }

            .main .header > .menu > button {
                display: table-cell;
                width: 100%;
                height: 100%;
                border: 0;
                text-align: center;
                vertical-align: middle;
                font-size: 12px;
            }

                .main .header > .menu > button i {
                    font-size: 30px;
                }

        .main .header > .logo {
            align-self: center;
            justify-self: left;
            padding-left: 10px;
        }

            .main .header > .logo img {
                max-height: 30px;
            }

        .main .header > .custom {
            align-self: center;
            justify-self: left;
            padding-left: 20px;
            padding-right: 20px;
        }

        .main .header > .username {
            align-self: center;
            padding-right: 20px;
            font-size: 12px;
            white-space: nowrap;
        }

            .main .header > .username i {
                vertical-align: text-bottom;
            }

            .main .header > .username .version {
                padding-top: 5px;
                color: #666;
                font-size: 8px;
            }

        .main .header > .language {
            align-self: center;
            padding-right: 20px;
            white-space: nowrap;
        }

        .main .header > .logout {
            align-self: center;
            justify-self: center;
            width: 100%;
            height: 100%;
        }

            .main .header > .logout > form {
                width: 100%;
                height: 100%;
                display: table;
                border-left: 1px solid #ddd;
            }

                .main .header > .logout > form > button {
                    display: table-cell;
                    width: 100%;
                    height: 100%;
                    border: 0;
                    text-align: center;
                    vertical-align: middle;
                    font-size: 12px;
                }

.contentholder {
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: 170px auto;
    z-index: 1;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
}

    .contentholder.nomenu {
        grid-template-columns: 100%;
    }

    .contentholder > .menu {
        width: 170px;
        height: 100%;
        align-self: start;
        justify-self: left;
        box-shadow: 2px 0 10px 0 rgba(0,0,0,0.14);
        position: fixed;
        padding-top: 60px;
        padding-bottom: 48px;
        margin-top: -60px;
        background-color: white;
    }

        .contentholder > .menu .dx-list-item.dx-list-item-selected {
            background-color: var(--buttoncolor);
            color: white;
        }

        .contentholder > .menu .dx-list-item:hover {
            background-color: var(--buttonhovercolor);
            color: white;
        }

    .contentholder.nomenu > .menu {
        display: none;
    }

    .contentholder.nomenu > .menufake {
        display: none;
    }

    .contentholder > .firmaware {
        position: absolute;
        bottom: 5px;
        left: 5px;
        width: 101px;
        height: 12px;
        z-index: 2;
    }

    .contentholder > .content {
        width: 100%;
        height: 100%;
        align-self: start;
        justify-self: left;
        box-sizing: border-box;
        padding: 10px;
        overflow-y: auto;
        z-index: 4;
    }

        .contentholder > .content > main {
            width: 100%;
            height: 100%;
            position: relative;
        }

.languageitem {
}

    .languageitem img {
        padding-right: 5px;
    }

/* popup */

.popupmain {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 40px auto;
    position: relative;
}

    .popupmain .header {
        display: grid;
        grid-template-columns: max-content auto max-content;
        box-shadow: 0px 2px 10px 0 rgba(0,0,0,0.14);
        background-color: white;
        z-index: 2;
        position: fixed;
        width: 100%;
        height: 40px;
    }

        .popupmain .header.notloggedin {
        }

        .popupmain .header > .logo {
            align-self: center;
            justify-self: left;
            padding-left: 10px;
        }

            .popupmain .header > .logo img {
                max-height: 20px;
            }

        .popupmain .header > .custom {
            align-self: center;
            justify-self: left;
            padding-left: 20px;
            padding-right: 20px;
        }

        .popupmain .header > .username {
            align-self: center;
            padding-right: 20px;
            font-size: 12px;
            white-space: nowrap;
        }

            .popupmain .header > .username i {
                vertical-align: text-bottom;
            }
