/**
 * Main CSS for Vivanet's Front end UI.
 *
 * Updates:
 * 2020-04-10 - DCHIN - Added CSS for a new report window for showing rendered reports without the need to go into the
 *                      StudyViewer.
 */

html, body {
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: none;
    /* background: linear-gradient(0deg, rgba(0,38,62,1) 0%, rgba(255,255,255,1) 100%); */
    /* background-image: linear-gradient(to bottom right, #FFFFFF 0%, #00263E 100%); */
    /* background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0, #BDC2D6), color-stop(1, #4D5467)); */
    /* background-color: #BDC2D6; */
    background: rgb(77, 84, 103);
    background: linear-gradient(0deg, rgba(77, 84, 103, 1) 0%, rgba(189, 194, 214, 1) 100%);
    position: relative;
}

#vivanetWait {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

main {
    display: grid;
    height: 100vh;
    grid-template-areas: "header" "subheader" "body";
    grid-template-rows: 80px 35px 1fr;
}

header {
    grid-area: header;
    display: none;
}

#subHeader {
    grid-area: subheader;
    text-align: right;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    display: none;
}

#subHeaderContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#btnHideSelection {
    display: none;
}

#btnUnHideSelection {
    display: none;
}

/* 
    Grid "Body" which contains the elements for the worklist within 
*/

#mainContentArea {
    grid-area: body;
    overflow: hidden;
    display: flex;
    width: 100%;
    justify-content: center;
    align-content: baseline;
    flex-wrap: wrap;
}

/* 
    Main scrolling region for the worklist 
*/

#section-main {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
    overflow-x: hidden;
    overflow-y: auto;
    justify-content: center;
    align-content: baseline;
    width: 100%;
    height: 100%;
}

.modal-xxl {
    max-width: 98%;
}

/*
 Used to make a modal full page.
 */

.modal-fullpage {
    background-color: black;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/*
 Used for modal window that needs full page display of the content inside the modal.
 */

.modal-content-fullpage {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
}

/*
 Modal Full Page Close button, used for the studyviewer iframe to 
 close the modal window.
 */

.modal-fullpage-close {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0px;
    right: 0px;
    z-index: 999;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #FFF;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}

.modal-fullpage-close:hover {
    /* color: #000; */
    text-decoration: none;
}

.modal-fullpage-close:not(:disabled):not(.disabled) {
    cursor: pointer;
}

.modal-fullpage-close:not(:disabled):not(.disabled):hover, .modal-fullpage-close:not(:disabled):not(.disabled):focus {
    opacity: .75;
}

button.modal-fullpage-close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.bg-login {
    background-image: url("../images/slide01.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-login-overlay {
    /* background-color: black;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: -1; */
}

.bg-header {
    background-image: linear-gradient(to bottom, #FFFFFF 0%, #BDC2D6 100%);
    background-color: #BDC2D6;
}

.btn-header {
    color: #000;
    background-color: #BDC2D6;
    border-color: #222;
}

nav {
    background-color: #7897B7;
    box-shadow: 0 8px 6px -6px #222;
}

#loginError, #changePwdError {
    display: none;
}

.headerButton {
    border: 1px solid black;
    background-color: #BDC2D6;
    /* text-align: center; */
    width: 35px;
    height: 35px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
}

.navIconText {
    font-size: 6pt;
}

#searchArea {
    /* border: 1px solid black;
    padding: 5px; */
    margin-right: 20px;
    /* border-radius: 5px; */
}

#section-search {
    position: absolute;
    margin-top: 70px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: white;
    display: none;
}

#vivanetDialog {
    z-index: 9999;
}

#reportViewerModal {
    z-index: 9998;
}

#lesionDetailsModal, #secondOpinionModal {
    z-index: 9997;
}

.dialogShadow {
    box-shadow: 0px 0px 20px #555;
}

#tblTableView {
    font-size: 9pt;
}

#tblTableView td {
    padding: 0.25rem;
}

#tblTableView tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.10);
}

#tblTableView tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

#nothing {
    font-size: 20pt;
}

/**
 * ======== Table View CSS
 */

.fixed-table-header th {
    background-color: #BBB
}

/* This is the only way I can figure out how to style the header */

#tableViewModal .fixed-table-header th {
    font-size: 9pt
}

/* Target the tr's in my table to override default font. */

#tblTableView tr {
    font-size: 9pt;
}

/**
 * ======== Lesion Details
 */

#studyViewerFS {
    background-color: #222;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 9998;
    display: none;
}

#studyVieweriFrame {
    background-color: #222;
    width: 100%;
    height: 100%;
    border: 0;
}

#studyViewerCloseArea {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    background-color: #555;
}

/** 
 * Report Viewer Modal
 */

/* 
  * Modal Body that houses the iframe.
  * NOTE the height is a vh value, percent does not work.
  *
  */

#reportViewerBody {
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    height: 85vh;
}

/**
 * Bootstrap overrides
 */

/* tableview search box */

.search .form-control {
    font-size: 10pt;
}

#vivanetVersion {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #999;
    font-size: 8pt;
}

/* Debug */
#sTimersView {
    position: fixed;
    bottom:0;
    left:0;
    height:50px;
    width:150px;
    background-color: lightgray;
    display: none;
}