﻿html,
body,
.dx-viewport {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
}

.dx-inactive-view {
    display: none;
}


/* DESIGN TEMPLATE */

.content {
    margin: 10px 16px 75px 16px;
}

.hidden {
    display: none;
}

.hiddenButOccupySpace {
    visibility: hidden;
}

.input,
.input input {
    font-size: 17px;
}

.form-input {
    margin-bottom: 20px;
}

/* START navbar */

.navbar-container .dx-nav-item.dx-tab-selected {
    background: lightgrey;
    border: 0 !important;
}

/* END navbar */

/* START menu and toolbar */

.menubar {
    position: fixed;
    top: 51px;
    width: 100%;
    height: 56px;
    background: #EFEFEF;
}

.dx-device-android .menubar {
    top: 0;
}

.toolbar {
    position: fixed;
    top: 51px;
    right: 0;
    height: 56px;
}

.dx-device-android .toolbar {
    top: 0;
}

.toolbar.left {
    position: fixed;
    top: 51px;
    left: 0;
    height: 56px;
}

.dx-device-android .toolbar.left {
    top: 0;
}

.menubar .dx-button,
.toolbar .dx-button {
    font-size: 16px;
    padding: 10px;
    display: table-cell;
    border: none;
    border-radius: 0;
}

.toolbar .dx-button.dx-state-hover,
.toolbar .dx-button.dx-state-active {
    background: orange;
}

.toolbar .dx-button.dx-state-focus {
    background-color: #fff;
}

.title {
    position: fixed;
    top: 51px;
    padding: 18px 0 0 16px;
    font-size: 16px;
    font-weight: bold;
    color: #337ab7;
}

.dx-device-android .title {
    top: 0;
}

/* END menu and toolbar */

/* START titlebar */

.titlebar {
    font-weight: bold;
    padding: 0 0 8px 32px;
    margin: 32px -16px 0 -16px;
    color: #337ab7;
}

.titlebar.first {
    margin-top: 0;
}

.titlebar.aligned {
    position: absolute;
    margin-top: 5px;
    z-index: 999;
}

/* END titlebar*/

/* START footer */

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 56px;
    margin-left: -16px;
    background: #ccc;
    text-align: center;
}

.footer .title {
    position: absolute;
    bottom: 51px;
    padding: 18px 0 0 16px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    display: none; /* Not active for the time being. This may be unnecessary use of space... */
}

.dx-device-android .footer .title {
    bottom: 0;
}

.footer div:not(.title) {
    font-weight: bold;
    padding: 8px 16px 0 0;
    color: #333;
}

/* END footer */

/* START dx-stuff */

.dx-datagrid-content .dx-textbox,
.dx-datagrid-content .dx-numberbox,
.dx-datagrid-content .dx-button {
    display: table-cell;
    font-size: 18px;
    padding: 4px;
}

.large.dx-textbox,
.large.dx-numberbox {
    font-size: 18px;
    padding: 4px;
}

/*.dx-scrollable-scrollbar.dx-scrollbar-hoverable.dx-scrollbar-vertical,
.dx-scrollable-scrollbar.dx-scrollbar-hoverable.dx-scrollbar-vertical .dx-scrollable-scroll,
.dx-scrollable-scroll-content {
    width: 5px;
    float: right;
    background-color: #337ab7;
}*/

.dx-datagrid-content .dx-datagrid-table .dx-row > td {
    vertical-align: middle;
    font-size: 16px;
    padding: 12px;
    white-space: nowrap;
}

.dx-placeholder {
    opacity: .5;
}

/* END dx-stuff*/

/* Search stuff */

.search-section {
    background: #E8F0F6;
    padding: 16px;
    margin: 0 -16px 10px -16px;
}

.search-column,
.search-column-no-height {
    display: table-cell;
    padding-right: 30px;
}

/* END search stuff */

.last-column {
    padding-right: 0;
}

/* Start flexbox stuff */

.flexbox {
    display: flex;
}

.flexbox .flexbox-column {
    flex: 1;
    padding: 0;
}

/* END flexbox stuff */

/* Margin stuff  */

.margin-left-16 {
    margin-left: 16px;
}

.margin-right-16 {
    margin-right: 16px;
}

/* END margin stuff */