html{
    min-height:100%;
    position:relative;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    margin-bottom: 50px;
    background-color:#eeeeee;
}

#logo{
    max-height:60px;
}

div.page-header{
    background-color:white;
}

.page-header{
    padding-top:10px;
    margin-top:0;
    margin-bottom:0;
    padding-bottom:0;
}

#crossmos_logo{
    max-height:40px;
    padding-top:10px;
}

.footer{
    position:absolute;
    bottom:0;
    width:100%;
    height:50px;
    border-top:3px solid #ccccff;
    background-color:white;
}

.middle {
    vertical-align: middle;
}

.preformatted {
    white-space: pre-wrap;
}

nav.navbar{
    margin-bottom:0;
}

.navbar-form .control-label{
    color:white;
}

form {
    margin: 0;
}

.indexForm {
    flex: 0 0 auto;
    height: 80px;
    background-color: #2e396d;
    padding: 10px 280px 0 0;
    background-image: url("../resources/img/CROSSMOS_white.png");
    background-repeat: no-repeat;
    background-position: right 20px top 10px;
    color: white;
}

.inline {
    display: inline-flex;
}

.ui-dialog label, fieldset.formRows label, form.formRows label {
    display: inline-block;
    width: 180px;
}

body .ui-datatable table { border: 1px solid #a8a8a8; word-wrap: break-word; white-space: normal; }
body .ui-datatable tr { border: none }
body .ui-datatable tbody td, body .ui-datatable thead th { border-color: #a8a8a8; border-width: 0 1px; }

form.horizontal > div > label {
    color: #aaa;
    font: 18px sans-serif;
    height: 22px;
}

.horizontal {
    display: flex;
    justify-content: space-around;
}

.horizontal > div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

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

.vertical > div {
    align-items: center;
    display: flex;
}

.split-horizontal {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

fieldset.formRows > .ui-fieldset-content > div {
    align-items: center;
    display: flex;
}

label + span {
    display: inline-flex;
}

.horizontal label + span {
    align-items: center;
    display: flex;
}

button.ui-datepicker-trigger {
    height: 30px;
    margin-left: 0.2em;
}

.withSpaces > div:not(:first-child), .withSpaces > button:not(:first-child), .withSpaces > form:not(:first-child),
.ui-fieldset-content > div:not(:first-child), fieldset + fieldset, #content > *:not(:first-child) {
    margin-top: 1em;
}

.withSpace {
    margin-top: 1em;
}

.ui-datatable button {
    height: 20px;
    vertical-align: middle;
}

.ui-datatable button .ui-button-text {
    line-height: 1;
    margin: auto;
    padding: 0 13px;
}

.ui-datalist-data {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.ui-datalist-content {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: medium none;
}

.ui-datatable .ui-datalist-item {
    background: none repeat scroll 0 0 #ddd;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: row;
    margin: 4px;
    padding: 4px;
    align-items: center;
}

.positionData {
    display: flex;
    flex-direction: column;
    margin-right: 1em;
}

.ui-datatable .ui-datalist button {
    height: 40px;
    width: 25px;
}

.menu, .submenu, .menuline {
    background-color: #2e396d;
}

.menuline {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5em;
}

.menu, .submenu {
    list-style: none outside none;
    margin: 0;
    font-weight: bold;
}

.menu {
    display: flex;
    padding: 0;
}

.submenu {
    border: 1px solid #fff;
    border-radius: 0 10px 10px;
    display: none;
    left: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.submenu > li {
    padding: 0 1em;
}

.menu li:hover > .submenu {
    display: flex;
    flex-direction: column;
}

ul.menu > li {
    padding-left: .5em;
    padding-right: .5em;
}

.menu li {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.menu a {
    color: #000;
    text-decoration: none;
}

.menu a, .menuitem {
    display: flex;
    padding: .5em 0;
    color: white;
}

.menu li:hover {
    background-color: #4d5fb6;
}

.breadcrumb {
    background-color: #ddd;
    font-family: sans-serif;
    margin-bottom: 1em;
    padding: 0.25em 1em;
    flex: 0 0 auto;
}

.ui-selectonemenu input.ui-selectonemenu-label[type="text"] {
    cursor: text;
}

.flex {
    display: flex;
}

.fill {
    flex-grow: 1;
}

.column {
    flex-direction: column;
}

.row {
    flex-direction: row;
}

.spaceAround {
    justify-content: space-around;
}

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

.nodeDetails {
    flex: 8 0 550px;
    margin-left: 1em;
    overflow: auto;
}

.navTree {
    display: flex;
    flex: 1 1 250px;
}

.navTree > .ui-tree {
    flex-grow: 2;
}

.pickerItemGridRow {
    background-color: #eee;
    border-spacing: 10px 5px;
    display: table;
    clear: left;
}

.pickerItemGridCell {
    background-color: #ddd;
    display: table-cell;
    height: 120px;
    width: 120px;
    position: relative;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pickerItemGridCell button {
    background-color: #fff;
    border: none;
    text-align: center;
    width: 20px;
}

.fileResource .image button {
    background-color: #fff;
    text-align: center;
    width: 20px;
    border: 1px solid #aaa;
}

.fileUpdateOverride {
    display: inline-block;
}

.fileUpdateOverride .ui-fileupload-buttonbar {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    padding: 0;
}

.fileUpdateOverride .ui-fileupload-content {
    display: none;
}

.fileUpdateOverride .ui-fileupload-choose {
    background-color: #fff;
    border: 1px solid #aaa;
    height: 35px;
    width: 20px;
}

.fileUpdateOverride .ui-icon {
    left: 50%;
    margin-left: -8px;
    background-position: -112px -80px;
}

.showImage { margin-right: 1em; }

.showImage + .pickerItemGridCell {
    display: none;
    position: absolute;
    z-index: 1;
}

.showImage:hover + .pickerItemGridCell {
    display: block;
}

.topLeft, .topRight, .bottomLeft, .bottomRight {
    position: absolute;
    z-index: 1;
}

.topLeft, .topRight {
    top: 0;
}

.bottomLeft, .bottomRight {
    bottom: 0;
}

.topLeft, .bottomLeft {
    left: 0;
}

.topLeft .ui-button {
    font-size: 12px;width: 100%; margin: 2px;
}

.topRight, .bottomRight {
    right: 0;
}

.pickerItemGridCell button .ui-button-text {
    padding: 0;
}

.pickerItemGridCell .gridCellButton {
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-image: none;
}

.pickerItem {
    display: flex;
    flex-direction: row-reverse;
}

@media (max-width: 1200px) {
    .pickerItem {
        flex-direction: column;
    }

    .itemInfo {
        margin-bottom: 1em;
    }
}

.itemContent {
    flex: 1 0 550px;
}

.itemInfo {
    margin-left: 1em;
    flex: 0 0 300px;
}

h2 {
    border-bottom: 1px solid #aaa;
    font-size: 16px;
    padding: 0.25em;
}

h2 .ui-icon {
    vertical-align: middle;
}

.ui-icon.red { background-image: url("../resources/img/ui-icons_cc0000_256x240.png"); }

.ui-icon.green { background-image: url("../resources/img/ui-icons_009900_256x240.png"); }

.inlineBlock {
    display: inline-block;
}

.selectedCell {
    box-shadow: 0 0 8px #85b2cb;
}

#fileGallery .ui-dialog-content {
    display: flex;
    justify-content: space-between;
}

.fileResource {
    padding: .5em;
    text-align: center;
}

.fileResource .image {
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    position: relative;
}

.fileResource .image:not(:hover) button, .fileResource .image:not(:hover) form {
    display: none;
}

.fileResource .description {
    font-size: 14px;
}

.fileResource.selected {
    background-color: #eee;
}

#fileGallery > .ui-dialog-content {
    padding: 0;
}

#fileGallery .ui-tabs-nav a {
    padding: 0.1em 1em;
}

#fileGallery .ui-datalist-item {
    list-style: none;
}

.ui-dialog .ui-datatable table {
    min-width: 450px;
    width: auto;
}

h3 {
    font-size: 14px;
    margin-bottom: 0;
    padding: .1em .5em;
    border-bottom: 1px dashed #aaa;
    display: inline;
}

.ui-cell-editor-output:empty:before {
    content: "";
    display: inline-block;
}

.ui-editable-column input {
    width: 100%;
    box-sizing: border-box;
}

.ui-cell-editor .ui-selectonemenu {
    width: 100%;
}

h2 button {
    height: 1.1em;
    vertical-align: middle;
}

.formFieldDefinitions {
    font-size: 12px;
}

.middle {
    vertical-align: middle;
}

.middle .ui-selectonemenu, .middle .ui-selectonemenu-label {
    height: 0.8em;
    font-size: 100%;
}

.deleteMode .ui-treenode-selected ul {
    background-color: #f00 !important;
}

.deleteMode .itemContent, .deleteMode .pickerItemGridRow, .deleteMode .formFieldDefinitions td {
    background-color: #f00;
}

.ui-selectonemenu + .ui-button {
    margin-left: 0.5em;
}

.narrow > .ui-button-text {
    line-height: 1em;
}

.itemInfo form {
    display: inline-block;
}

.varVal {
    border-collapse: collapse;
}

.varVal tr:nth-child(even) {
    background-color: #eee;
}

.varVal th:after {
    content: ":";
}

.varValbox {
    float: left;
    margin-bottom: 10px;
    margin-left: 20px;
    padding: 3px;
    border: 1px solid #aaa;
    border-radius: 3px;
}

.pickerItemContent {
    clear: left;
    margin-left: 20px
}

.pickerItem th {
    padding: .2em 1em;
    text-align: left;
}

.pickerItem td {
    padding-right: 1em;
}

.lopaContent ul {
    flex-direction: column;
}

.lopaContent li {
    padding: 0.2em 0;
}

.lopaContent button {
    height: 1.2em;
    vertical-align: middle;
}

.alignCenter {
    align-items: center;
}

.warning {
    background-color: #ff7;
    padding: 5px;
}

.navTree .ui-tree-container {
    box-sizing: border-box;
    height: 100%;
}

.combobox {
    width: 166px !important;
}

.combobox .ui-inputfield {
    width: 150px !important;
}

.gridCellButton .ui-button-text.ui-c {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
}

.ui-confirm-dialog {
    text-align: center;
}

.ui-confirm-dialog .ui-dialog-title {
    float: none;
}

.ui-confirm-dialog-severity {
    height: 0;
    width: 0;
}

.ui-dialog .ui-dialog-buttonpane {
    padding: 0 0 0 0.4em;
}

.dialog {
    overflow-y: auto;
}

.pre {
    white-space: pre;
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 12px;
}

#parent {
    position: relative; z-index:3;
}

#child-fixed {
    position:fixed; display: inline;
}

#dialog td {
    padding-left: 2em;
}

.ui-growl-message p {
    font-size: 70%;
}

.dialogcontent .ui-inputfield {
    width: 15em;
}

.dialogcontent div {
    display: flex;
    align-items: center;
    display: -webkit-flex;
    -webkit-align-items: center;
}

.dialogcontent .ui-selectonemenu {
    width: 9.5em !important;
}

.ui-paginator {
    font-size: 0.9em;
    margin: 0;
    padding: 2px;
    text-align: center;
}

.ui-datagrid-no-border .ui-datagrid-content, .ui-datagrid-data, .ui-datagrid-data table, .ui-datagrid-column {
    border: none;
    background-color: transparent;
    padding: 1px;
}

.ui-datagrid-no-border button .ui-button-text {
    text-overflow: ellipsis;
    width: 60px;
    white-space: nowrap;
    overflow: hidden;
    font-weight: lighter;
    font-size: 90%;
    padding: 0;
}

.ui-datagrid-no-border .ui-button {
    max-width: 100%;
    min-width: 75px;
    text-align: center;
}

.message .ui-message-error {
    display: flex;
    align-items: center;
    font-size: 0.8em;
    height: 0.8em;
    margin-bottom: -1.2em;
    margin-left: 12.8em;
    width: 10em;
    justify-content: center;
}

.messages .ui-message-error {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    font-size: 0.8em;
    height: 0.8em;
    margin-left: 12.8em;
    width: 10em;
    justify-content: center;
}

.noSpaces {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    height: 17px;
}

.centerInCell {
    display: block;
    margin: auto;
}

.centerInDialog {
    display: block;
    text-align: center;
    margin: auto;
}

.cellTable td {
    border:0 !important;
    padding: 0 2px 0 2px !important;
}

.cellTable td:first-child {
    width: 4.5em !important;
}

.cellTable td:last-child {
    width: auto !important;
}

.dashBoard .ui-datatable table {
    table-layout: auto !important;
}

.ui-growl {
    top: 100px;
}

.uppercase {
    text-transform:uppercase;
}

.no-border {
    border-style: hidden !important ; /* or none */

}

.webadmin-version{
    color: white;
    padding: 14px 0;
    float: right;
}

.flex-container{
    display:flex;
    align-items:center;
    flex-direction:column;
    justify-content:center;
    margin:20px;
    background-color:white;
    padding:20px;
    text-align: center;

}

.flex-item{
    margin:auto;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
