@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(MaterialIcons/MaterialIcons-Regular.eot);
    /* For IE6-8 */
    src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url(MaterialIcons/MaterialIcons-Regular.woff2) format('woff2'),
    url(MaterialIcons/MaterialIcons-Regular.woff) format('woff'),
    url(MaterialIcons/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

body {
    background: #f0f0f0;
    font-family: helvetica, sans-serif;
    margin: 0px;
    height: 100%;
    color: #404040;
}

*:focus {
    outline: none;
}

.app-container {
    /*max-width: 1024px;*/
    margin: 0 auto;    
    height: 100%;
}

.view {
    height: 100%;    
}

@media only screen and (min-width: 1050px) {
    .overlay {
        height: 100%;
        position: absolute;
        width: 100%;
        max-width: 1050px;
        top: 0;
        left: calc((100% - 1050px) / 2);
        pointer-events: none;            
    }
}

@media only screen and (max-width: 1050px) {
    .overlay {
        height: 100%;
        position: absolute;
        width: 100%;        
        top: 0;        
        right: 0px;
        pointer-events: none;            
    }
}

.clickable-overlay {
    height: 100%;
    position: absolute;
    width: 100%;
    /*max-width: 1024px;*/
    top: 0;
    left: auto;
}

.app-content {    
    max-height: calc(100% - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 1050px;
    margin: 0 auto;
}

.app-content-margin{
    margin-top: 28px;
    padding-left: 16px;
    padding-right: 16px;
}

.shadow-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.shadow-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.shadow-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.shadow-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.shadow-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.30), 0 12px 12px rgba(0, 0, 0, 0.22);
}

.font-light {
    color: #555555;
    font-weight: bold;
}

.margin-t {
    margin-top: 12px;
}

.margin-b {
    margin-bottom: 12px;
}

.margin-r {
    margin-right: 12px;
}

.margin-l {
    margin-left: 12px;
}

.margin-tl {
    margin-top: 12px;
    margin-left: 12px;
}

.margin {
    margin: 12px;
}

.input {
    background-color: transparent;    
    border: 0;
    outline: none;
    font-size: 16px;
    height: 32px;
    width: calc(100% - 64px);
    border-bottom: 2px solid #8c8c8c;
    margin: 0;
    padding: 0;
    color: black;
}

.urlview-input {
    background-color: transparent;
    border: 0;
    outline: none;
    font-size: 16px;
    height: 32px;
    width: calc(100% - 64px);
    border-bottom: 0px;
    margin: 0;
    padding: 0;
    color: black;
}

.invalid {
    border-bottom: 2px #FF0000 solid;
}

.label-basic {
    margin: 0px;
    margin-top: 12px;
    color: #808080;
    font-size: 0.9em;
}

.button {
    display: inline-block;
    min-width: 106px;
    font-size: 1em;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    padding: 8px;
    border: none;
    outline: medium none inherit;
    border-radius: 6px;
    background-color: #505050;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.33);
    margin-top: 12px;
}

.urlview-button {
    display: inline-block;
    min-width: 106px;
    font-size: 0.9em;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    padding: 8px;
    border: none;
    outline: medium none inherit;
    border-radius: 6px;
    background-color: #b1b1b1;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.33);
    margin-bottom: 8px;
}

.button:disabled {
    background: #CCCCCC
}

.button-group {
    margin: 0 12px 12px 12px;
    padding: 0;
    text-align: center;
}

.title-bar {
    height: 50px;
    width: 100%;
    background: #FFFFFF;
    color: #3c3c3c;
    z-index: 1;
    position: relative;
    display: flex;
    justify-content: space-between;    
}

.title-bar-two-line {    
    width: 100%;
    background: #FFFFFF;
    color: #3c3c3c;
    z-index: 1;
    position: relative;
}

.title-bar-first-line {
    height: 50px;
    width: 100%;    
    display: flex;
    justify-content: space-between;    
    max-width: 1050px;
    margin: 0 auto;
}

.title-bar-second-line {
    padding-bottom: 8px;
    max-width: 1050px;
    margin: 0 auto;
}

.title-bar-left {
    margin: auto;
    margin-left: 12px;
    min-width: 24px;
}

.title-bar-center {
    margin: auto;
    font-size: 22px;
}

.title-bar-right {
    margin: auto;
    margin-right: 12px;
    min-width: 24px;
}

.fab {
    cursor: pointer;
    position: absolute;
    bottom: 12px;
    right: 12px;
    border-radius: 50%;
    background-color: #505050;
    width: 56px;
    height: 56px;
    padding: 0px;
    margin: 0px;
    text-align: center;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    pointer-events: auto;
}

.fab-icon {
    font-size: 24px;
    height: 24px;
    width: 24px;
    line-height: 24px;
    text-align: center;
    position: relative;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
}

.fab:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    background: #505050;
}

.menu {
    cursor: pointer;
    position: absolute;
    top: 48px;
    right: 12px;
    background: #FFFFFF;
    border-radius: 3px;
    pointer-events: auto;
    z-index: 3;
}

.menu-item {
    border-top: 1px #CCCCCC solid;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

.menu-item:first-of-type {
    border: none;
}

.list {    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    background: #FFFFFF;
}

.list-item {
    cursor: pointer;    
    padding-left: 16px;
    padding-right: 16px;
    border-top: 1px #f0f0f0 solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    height: 64px;
}

.list-item-two-line {
    cursor: pointer;    
    padding-left: 16px;
    padding-right: 16px;
    border-top: 1px #f0f0f0 solid;
    display: flex;
    flex-flow: column;   
    justify-content: space-around; 
    font-size: 16px;
    height: 64px;
}

.list-item:last-of-type{
    border-bottom: 1px solid silver;
}

.list-item:first-of-type {
    border: none;
}

.list-item-disabled {
    color: #808080;
    pointer-events: none;
}

.list-item-left {}

.list-item-right {
    color: #808080;
}

.list-item-top {
    font-weight: bold;
}

.list-item-bottom {
    font-size: 0.8em;
    color: #808080;
    height: auto;
}

.box-list {
    margin-top: 12px;
}

.button-box {
    background-color: #FFFFFF;
    border-radius: 6px;    
    margin: 0 8px 12px 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px #c0c0c0;
    cursor: pointer;
    padding:8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box {
    background-color: #FFFFFF;
    border-radius: 6px;    
    margin: 0 8px 12px 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px #c0c0c0;
}

.box-top {
    font-size: 16px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
}

.box-bottom {
    height: 28px;
    line-height: 28px;
    background-color: #f5f5f5;
    border-top: 1px solid #eaeaea;
    color: #606060;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    justify-content: space-between;
}

.box-bottom i{
    line-height: 28px;
    font-size: 16px;
    float:right;
}

.popup-content {
    width: calc(100% - 96px);
    max-width: 400px;
    padding: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    border-radius: 3px;
}

.popup {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .24);
    z-index: 2;    
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #505050;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
}

.reload {     
    position: fixed;
    width: 100%;
    /*max-width: 1024px;*/
    top: calc(50% - 50px);
    display: flex;
    align-items: center;
    flex-direction: column;    
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.popup-divider {
    border-top: 1px #CCCCCC solid;
    margin-top: 24px;
    margin-bottom: 24px;
    margin-left: -24px;
    margin-right: -24px;
}

.listbox-search {
    min-width: 200px;
    margin: 12px;
    margin-bottom: 0px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.33);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    padding: 4px 0 4px 4px;
    color: black;
    display: flex;
    justify-content: flex-start;
}

.listbox-search>input[type=text] {
    background-color: inherit;
    border: 0;
    font-size: 16px;
    height: 32px;
    width: calc(100% - 106px);
    margin: 0;
    padding: 0 0 0 4px;
}

.listbox-search>div>i {
    margin-top: 4px;
    margin-left: 4px;
    margin-right: 12px;
    padding: 3px;
    border-radius: 50%;
    background-color: #606060;
    color: #FFFFFF;
    font-size: 18px;
}

.listbox-search>.summary {
    width: 66px;
    overflow: hidden;
    height: 32px;
    line-height: 32px;
    padding: 0 6px 0 0;
    background-color: inherit;
    text-align: right;
    font-size: 13px;
    display: inline-block;
    border: 0;
    pointer-events: none;
}

.title-font {
    font-weight: bold;
    font-size: 1.5em;
    text-align: center;
}

.subtitle-font {
    font-weight: bold;
    color: #808080;
    font-size: 1.2em;
    text-align: center;
}

.control-box{    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;    
    cursor: pointer;
}

.control-box-disabled{    
    color: silver;
}

.control-box-disabled i{    
    color: silver;
}

.control-box:last-of-type{
    margin-top: 8px;
}

.control-box-right{    
    width: 100%;
    margin-left: 12px;
}

.control-box-name{
    font-size: 16px;
    font-weight: bold;
}

.control-box-descr{
    font-size: 16px;    
}

.controls-color{
    color: rgb(117,117,117);
}

.search-input {
    overflow: hidden;
    margin:0px 8px 0px 8px;
    padding:0;
    color:#000000;
    background-color:rgba(255,255,255,0.2);
    height:32px;
    border-radius: 6px;
}
.search-input > input[type=text] {
    background-color: transparent;
    float: left;
    border: 0;
    outline: none;
    font-size: 16px;
    height: 32px;
    width: calc(100% - 74px);
    margin: 0;
    padding: 0 8px;
    color: black;
}

.divider{    
    margin-bottom: 12px;
    margin-top: 12px;
    border-bottom: 1px solid silver;
}

.title-small{
    margin: 12px 0px 12px 8px;
    color: #808080;
    font-size: 0.9em;
}

.clickable{
    cursor: pointer;
}

.disabled-icon{
    color: silver;
}

.menu-disabled{
    color: silver;
}

.warn{    
    color: #800000;    
}

/* Sidebar */
.sidebar-button {
    z-index: 5;
}
.sidebar {
    width:280px;
    border-right: 1px solid silver;
    z-index: 10;
    position:fixed;
    left:-280px;
    top:0px;
    bottom:0;
    background-color:white;
    margin:0;
    padding:0;
    transition: left .15s ease-in-out;
}
.sidebar-visible {
    left: 0;
}
.sidebar > div > h1 {
    margin:0;
    padding:0 12px;
    height:50px;
    line-height:50px;
    font-weight:normal;
    font-size:22px;
}
.sidebar > h2 {
    margin:12px 12px 0 12px;
    padding:12px 12px 0 12px;
    font-size:0.8em;
    color:#808080;
    border-top: 1px solid silver;
}
.sidebar > ul {
    margin:0 12px;
    list-style-type: none;
    padding: 0;
}
.sidebar > ul > li {
    margin:0;
    padding:12px;
    cursor: pointer;
    display: flex;align-items: center;
}
.sidebar > ul > li:hover {
    background-color: rgba(128,128,128,0.1);
}

.sidebar-overlay {
    background-color:black;
    opacity:0;
    position:fixed;
    left:0;
    top:0;
    right:0;
    bottom:0;
    z-index:9;
    transition: opacity .15s linear, visibility .15s linear;
    visibility: hidden;
}
.sidebar-overlay-visible {
    opacity: 0.5;
    visibility: visible;
}