/*
 * Copyright (c) 2019. Partners HealthCare and other members of
 * Forome Association
 *
 * Developed by Sergey Trifonov based on contributions by Joel Krier,
 * Michael Bouzinier, Shamil Sunyaev and other members of Division of
 * Genetics, Brigham and Women's Hospital
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

div#wrapper {
    margin: 0px;
    padding: 0px;
    border: none;
    display: inline;
    height: 100%;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
}

a {
    color: #526ca5;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

p.error {color: red;}

div.wide {
    margin: 0px;
    padding: 0px;
    width: 100%;
    display: flex;
}

div.panel-space {
    background-color: white;
    margin: 0px; 
    padding: 0px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/****************************************/
.combobox {
     position:relative;
     background-color:white;
     border:solid grey 1px;
     width: 200px;
     height: 25px;
     display: inline;
 }
 .combobox select {
     position: absolute;
     top: 3px;
     left: 0px;
     font-size: 14px;
     border: none;
     width: 200px;
     margin: 0;
 }
 .combobox input {
     position: absolute;
     top: 0px;
     left: 0px;
     width: 180px;
     padding: 1px;
     font-size: 14px;
     border: none;
     height: 23px;
 }

 .combobox select:focus, .combobox input:focus {
     outline:none;
 }

 .combobox input:disabled {
    opacity: 0;
 }

/****************************************/
/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
    overflow: visible !important;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    overflow: visible !important;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 2px 20px;
    text-decoration: none;
    display: block;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-content a.disabled {
    color: grey;
    cursor: inherit;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    border: 1px black solid;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/********************common controls*****************************/
button.op-button {
    margin-left: 5px;
}

button {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

button.action {
    padding: 3px !important;
    margin: 1px !important;
}

input.bad {
    background-color: #fff0f0;
    color: red;
}

.bad {
    color: red;
}

.message {
    color: #338833;
}

.warn {
    color: magenta;
}

.blocked {
    color: #e0e0e0;
}

.bold {
    font-weight: bold;
}

.comment {
    font-style: italic;
}

.hit {
    font-weight: bold;
    color: #500000;
}

.nomargins {
    margin: 0px;
    padding: 0px;
}

span.note-time {
    margin-left: 10px;
    font-size: 80%;
    font-style: italic;
}

.note {
    font-size: 90%;
    font-style: italic;    
}

div.list-items {
    margin: 5px;
    padding: 5px;
    white-space: nowrap;
    overflow: auto;
    font-size: 12px;
}

div.wait {
    background-color: #E0E0E0;
}

div.upd-note {
    text-align: right;
    font-style: italic;
    color: grey;
    font-size: 80%;
    margin-right: 20px;
}

span.count {
    color: grey;
    font-style: italic;
    margin: 10px;
}

.w50 {
    width: 50px;
}
/****************************************/
span#control-open {
    border: 1px solid white;
    padding: 0px 5px;
    font-size: 16px;
    cursor: pointer;
}

div#control-menu {
    padding: 10px;
    color: black;
    background-color: white;
    border: 1px solid black;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

div#control-menu a {
    color: black;
    padding: 3px 20px;
    font-size: 16px;
    font-weight: bold
}

/****************************************/
div.modal-back {
    display: none;
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

span.close-it {
    color: #aaa;
    font-size: 20px;
    font-weight: bold;
    margin: 0px 10px 0px 10px;
    float: right;
}

span.close-it:hover, span.close-it:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
} 

/********************Modal Note*****************************/
#note-back {
    display: none;
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

#note-mod {
    background-color: #fffefe;
    margin: 3% 3% 2% 2%; 
    padding: 0px;
    border: 1px solid black;
    border-radius: 7px;
    height: 380px; 
    min-height: 380px;
    width: 75%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/********************note top controls*****************************/
#note-top {
    width: 100%;
    height: 30px;
    min-height: 30px;
    margin: 0px;;
    padding: 0px;
}

#note-title {
    margin: 3px 0px 3px 30px;
    padding: 0px;
    font-weight: bold;
    font-size: 18px;
    height: 20px;
}

div#work-note-area {
    flex-grow: 1;
    width: 100%;
    padding-left: 10px;
}

textarea#note-content {
    padding: 10px;
    width: 95%;
    height: 300px;
}

div#work-note-ctrl {
    height: 40px;
    margin: 5px;
    padding: 5px;
    text-align: center;
}

div.wrapped {
    padding: 10px;
}

.hide {
    display: none;
}

.dark {
    color: grey;
}
