
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;    
    display: block;
}

.grey {
    color: rgb(135, 150, 150);
}

.blue {
    color: rgb(0, 132, 255);
}

.green {
    color: rgb(5, 122, 48);
}

.orange {
    color: rgb(255, 140, 0);
}

.icon-button {
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    color: white;
    padding: 1px 1px 0 0;
    background-color: rgb(0, 132, 255);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 1px -2px rgba(0,0,0,.2), 0 1px 3px 0 rgba(0,0,0,.12);
}

header {
    height: 64px;
    border-bottom: 1px solid #CCC;
    /*
    color: rgb(255,255,255);
    max-height: 1000px;
    background: rgb(33,150,243);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12)*/
}

header a {
    padding-left: 20px;
    display: block;
    color: rgb(255,255,255);
    line-height: 64px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 400;
    opacity: .87;            
}

.header-title {
    display: block;
    position: relative;
    font-size: 30px;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 400;
    box-sizing: border-box;
}

.header-row {
    height: 64px;
    display:flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
    padding: 0 0 0 20px;
}

.header-sub-row {
    height: 24px;
    display:flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
    padding: 0 20px 0 20px;
}

.profile-img {
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

#profile_button {
    margin-left: 15px;
    margin-right: 20px;
    cursor: pointer;
}

.f0 {
	flex: 0.001;
}

.f1 {
	flex: 1;
}

.f2 {
	flex: 2;
}

.f3 {
	flex: 3;
}

.f4 {
	flex: 4;    
}

.f5 {
	flex: 5;    
}

.f6 {
	flex: 6;    
}

.f7 {
	flex: 7;    
}

.f8 {
	flex: 8;    
}
.f9 { flex: 9 }
.f10 { flex: 10 }
.f15 { flex: 15 }

.cell {
    padding: 5px;
}

strong, b {
	font-style: normal;
    font-weight: bold;
}

.page {
    font-size: 1rem;
    margin-top: .5rem;
}

.error {
	color: red;
}

/* items flex/expand vertically */
.vbox {
	display: flex;
	flex-direction: column;
}

.hbox {
	display: flex;
	flex-direction: row;
}

.v-center {
    align-items: center; 
}

.h-center {
    justify-content: center;
}

.input {
    font-size: 16px; 
    color: rgb(81, 81, 81); 
    border: 2px solid #CCC; 
    border-radius: 5px; 
    padding: 1px 5px;
}

.input:invalid {
    border: 2px solid red;
}

input[type=text] {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.12);
}

input[type=text]:focus {
    border: none;
    border-bottom: 1px solid #3f51b5;
}

.hidden {
    display: none;
}

main {
    margin-top: 64px;
    -ms-flex: 0 1 auto;
    margin-left: 240px;
    position: relative;
    display: inline-block;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    z-index: 1;    
}

.page-error, .dialog-error {
    color: red;
    text-align: center;
}

/* The Modal (background) */
.modal {
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    /*padding-top: 50%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    max-width: 400px;
    position: relative;
    top: 35%;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.modal-wait {
    z-index: 10; 
    background-color: rgba(0,0,0,0.1); 
}

.modal-dim {
    background-color: rgba(0,0,0,0.1); 
}

.modal-title {
    margin-top: 10px;
	font-size: 1.4rem;
	color:  #42addf;
}

.modal-confirm {
    max-width: 400px;
    position: relative;
    top: 25%;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
}

.dropdown-modal {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto; 
}

.dropdown-content {
    position: absolute;
    width: 150px;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 11;
    overflow-y: auto;
}

/* Links inside the dropdown */
.dropdown-content a {
    min-height: 40px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    display: block;
    white-space: nowrap;
    text-align: left;
    padding: 12px 24px; 
    line-height: 32px;    
    font-size: 16px;
    font-weight: 400;
    opacity: .87;    
    border-top: 1px solid #EEE;
}

.dropdown-content a:hover {
    background-color: #b3d4fc;
}

.status-label {
    font-size: 14px;
    font-weight: bold;
    padding: 16px 0 2px 0;
    margin: 0 16px;
    color: rgba(0,0,0,.54);
}

.status-value {
    font-size: 14px;
    margin: 0 16px;
    color: rgba(0,0,0,.87);
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.app-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.button-icon {
    cursor: pointer;
    position: relative;
    background-color: rgb(215 215 215);
    border-radius: 50%;
    border: none;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 5px;
    margin-bottom: 3px;
}

.button-selected {
    background-color: rgb(2, 168, 243);
}

.button-icon i {
    fill: rgb(70 70 70);
    opacity: .6;
    position: absolute;
    transform: translate(6px, 6px);
}

.button-selected i {
    opacity: 1;
    color: white;
    fill: white;
}


@media (max-width: 600px) {
    .form-button {
        padding: 0 2px;
        margin: 0 5px;
        font-size: .9em;
        font-weight: 500;
        min-width: 80px;
    }

    .app-only {
        display: none;
    }

    .mobile-only {
        display: inherit;
    }

    .list-item-parts {
        flex-direction: column;
    }

    .item-header {
        flex-direction: row;
    }
}

@media (min-width: 601px) {
    .form-button {
        padding: 0 20px;
        margin: 0 20px;
        font-size: 1em;
        font-weight: 500;
    }

    .app-only {
        display: inherit;
    }

    .mobile-only {
        display: none;
    }

    .list-item-parts {
        flex-direction: row;
    }
    
    .item-header {
        flex-direction: column;
    }
}

@media (max-width: 800px) {
	.status-display {
        max-width: 300px;
        max-height: 400px;
    }
}

@media (min-width: 801px) {
    .status-display {
        max-width: inherit;
        max-height: inherit;
    }
}