﻿#ui{
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

#ui .control, #ui .window {
    pointer-events: auto;
}

body {
    overflow: hidden;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/loader.gif') no-repeat center center;
    z-index: 30000;
}

.window {
    flex-grow: 1;
    flex-shrink: 0;
    width: -webkit-min-content; 
    width: -moz-min-content;
    width: -ms-min-content;
    width: -o-min-content;
    width: min-content;
    max-width: -webkit-max-content;
    max-width: -moz-max-content;
    max-width: -ms-max-content;
    max-width: -o-max-content;
    max-width: max-content;
    min-width: -webkit-min-content; 
    min-width: -moz-min-content; 
    min-width: -ms-min-content;
    min-width: -o-min-content;
    min-width: min-content;
}

.control {
    margin: 8px;
}

.panel {
    padding: 8px;
}

.network-panel {
    padding: 8px;
    max-width: 300px;
}

.network-panel .row {
    width: auto;
}

.dev .row {
    width: auto;
}

.dev .row div {
    display: inline-block;
}

.row {
    display: table;
    table-layout: fixed;
    width: 100%;
}

.row .item-name { display: block; }

.row div {
    display: table-cell;
    vertical-align: middle;
}

.clickable { cursor: pointer; }

.button {
    height: 32px;
    width: 32px;
}

.button img, .button svg {
    height: 24px;
    margin: 4px;
    width: 24px;
}

[placeholder]:empty:before {
    content: attr(placeholder);
    display: block;
}

.item-name {
    -moz-text-overflow: ellipsis;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    font-size: 16px;
    line-height: 32px;
    height: 32px;
    overflow: hidden;
    padding: 0 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-name:focus {
    -moz-text-overflow: clip;
    -ms-text-overflow: clip;
    -o-text-overflow: clip;
    text-overflow: clip;
}

.splitter {
    width: 1px;
    border-left: 1px solid gray;
    height: 100%;
    margin: 0 5px;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    pointer-events: auto;
}

.dialog .background {
    top: 0;
    left: 0;
    background-color: white;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.dialog .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid gray;
    max-width: 550px;
    max-height: 500px;
}

.message {
    overflow: auto;
    white-space: normal;
    text-overflow: clip;
    height: auto;
}

.dialog .buttons {
    display: flex;
    justify-content: center;
}

.dropdown-menu {
    position: fixed;
    margin-top: 32px;
    width: 250px;
    z-index: 500000;
}

.dropdown-menu .row {
    width: 100%;
}

.network-control {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.network-control-ui {
    opacity: 0.85;
}

.network-control-ui .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.no-events {
    pointer-events: none;
}

.events {
    pointer-events: auto;
}

.loading {
    background: url('/images/loader.gif') no-repeat center center;
    width: 32px;
    height: 32px;
}