/* prevent 'bounce' in scrolling */
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: rgba(242,242,242,0.85) !important;
}

body {
    height: 100%;
    width: 100%;
    overflow: auto;
    font-family: "Myriad Pro Regular","Lucida Grande","Helvetica Neue","Helvetica","Arial","Verdana","sans-serif";
    font-size: 12px;
    line-height: 1.5;
    color: #666 !important;
    background: #eee url("../img/main-back.png") repeat;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0px 0px 6px rgba(0,0,0,0.5);
}

#wrap
{
    height:100%;
    display: none;
}

.hidden {
    display: none;
}

/* images are displayed in viewports */
.viewport {
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    position:absolute
}

.overlay {
    position: absolute;
    color: #e4ad00;
}

.myNav{
    margin: 0;
    border:0;
    background-color: #f8f8f8 !important;
    background: -webkit-gradient(linear, left top, left bottom, from(#f8f8f8), to(#f2f2f2)) !important;
    background: -webkit-linear-gradient(top, #f8f8f8, #f2f2f2) !important;
    background: -moz-linear-gradient(top, #f8f8f8, #f2f2f2) !important;
    background: -ms-linear-gradient(top, #f8f8f8, #f2f2f2) !important;
    background: -o-linear-gradient(top, #f8f8f8, #f2f2f2) !important;
    background: linear-gradient(top, #f8f8f8, #f2f2f2) !important;
    border-bottom: 1px solid #ddd !important;
    box-shadow: inset 0px 1px 1px #fff !important;
}

.nav-tabs > li > a {
    padding: 8px 12px;
}

.navbar .navbar-nav > li > a, .navbar .navbar-nav > li > a:hover, .navbar .navbar-nav > li > a:focus {
    font-size: 13px;
    text-shadow: none;
    color: #666;
}

.nav-tabs
{
    color: #669fc7;
}

.nav-tabs > li > a,
.nav-tabs > li > a:focus {
    background: #F7F7F7;
    color: #669fc7;
    margin-right: -1px;
    line-height: 16px;
    position: relative;
    z-index: 11;
    border-radius: 0 !important;
    margin-top: -1px;
    border: 1px solid #CCC;
}


.nav-tabs > li > a:hover {
    z-index: 12;
    box-shadow: 0 -2px 3px 0 rgba(0, 0, 0, 0.15);
    background-color: #7BABCD !important;
    border-color: #4e4e4e;
    border: 1px solid #CCC;
    color: #fff;
}

.nav-tabs li .close
{
    float: none!important;
    font-size: 13px !important;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
    color: #fff;
    background-color: rgb(102, 159, 199) !important;
    border-color: #4e4e4e;
    border: 1px solid #CCC;
    margin-top: -1px;
}

.tab-close
{
    font-size: 12px !important;
    line-height: 12px !important;
    color: #FFF !important;
    opacity: 0.5;
}

a.list-group-item.active, a.list-group-item.active:hover, a.list-group-item.active:focus
{
    background-color: rgba(102, 159, 199, 0.8) !important;
}

.widget-box {
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    margin: 3px 0;
    color: #fff;
}

.widget-header > .widget-caption, .widget-header > :first-child {
    line-height: 36px;
    padding: 0;
    margin: 0;
    display: inline;
}

.widget-header-small {
    min-height: 20px;
    padding-left: 10px;
    position: relative;
}

.widget-header-small
{
    border-radius: 3px 3px 0px 0px !important;
    min-height: 20px !important;
    height: 20px !important;
    background: #F7F7F7;
    color: #669fc7;
    border: 1px solid #CCC;
}

.widget-header-small > .widget-caption, .widget-header-small > :first-child
{
    line-height: 21px !important;
}

.widget-header-small > .widget-toolbar {
line-height: 29px;
}

.widget-toolbar {
    display: inline-block;
    padding: 0 10px;
    line-height: 37px;
    float: right;
    position: relative;
}

.widget-body {
    border-top: none;
    border-bottom: none;
    background:#F7F7F7;
}

.imageViewer {
    padding: 2px;
}

.imageViewerActive
{
    color: #fff;
    background-color: rgb(102, 159, 199) !important;
}

.csthumbnail {
    color: white;
    background-color:black;
    min-width: 65px;
    /*width:100px;*/
    height: 80px;
    border: 0px;
    padding: 0px;
}

.viewer {
    position: absolute;
    width: 100%;
    left: 110px;
}

.thumbnailSelector {
    /*width:106px;
    float:left;
    margin-left:0px;*/
    padding:0px;
}

.studyContainer {
    margin-top: 2px;
    margin-left:0px;
    margin-right:0px;
    padding: 0px;
}
.container {
}

.thumbnails {
    margin:0px;
    margin-bottom: 0px;
    overflow-y:scroll!important;
    overflow-x:hidden!important;
}
.studyRow {
    margin-left: 0px;
    margin-rigth: 0px;
    height:100%;
}
.row {
    margin:0;
}

a.list-group-item {
    background-color: black;
    padding: 2px;
}

.tab-content
{
    padding: 5px;
}

.modal-content {
    position: relative;
    border: 1px solid #999;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    outline: 0;
    -webkit-box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    box-shadow: 0 3px 9px rgba(0,0,0,0.5);
    background-clip: padding-box;
    background-color: #eee;
}
.modal-open {
 overflow: auto !important;
}

.modal-title{
    color: #666 !important;
}

.modal-footer .btn-default {
    color: #666!important;
    background-color: #fff!important;
    border-color: #ccc!important;
}

.modal-footer .btn-default:hover, .modal-footer .btn-default:focus, .modal-footer .btn-default:active {
    color: #333!important;
    background-color: #ebebeb!important;
    border-color: #adadad!important;
}

.slider .slider-selection {
    background: rgba(111, 149, 186, 0.58);
}

.progress-bar {
    background: rgba(76, 130, 182, 0.58);
}

.slider
{
    width: 98%;
}

.slider-container
{
    text-align: center;
}

.close
{
    font-size: 17px !important;
    padding-left: 5px !important;
}

.btn:focus, .btn-default:focus {
    background-color: #3398DB !important;
}

.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open .dropdown-toggle.btn-default
{
    background-color: #87C1E7 !important;
}

.btn
{
    border-radius: 3px !important;
}

.activeTool
{
    background-color: #3398DB !important;
    border-color: rgba(136, 136, 136, 0.64)!important;
}

.tools-buttons
{
    background-color: #6fb3e0;
    border-color: #fff !important;
    border-radius: 3px !important;
    width: 35px !important;
    height: 30px !important;
}

table {
    max-width: 100%;
    background-color: transparent;
    border-spacing: 2px;
    border-color: gray;
    color: #000 !important;
}

.table-bordered th {
    border-bottom: 1px solid #ddd !important;
}

thead th, thead th {
    background-image: linear-gradient(to bottom, #FFF, #E6E6E6);
}

.table-striped>tbody>tr:nth-child(odd)>td, .table-striped>tbody>tr:nth-child(odd)>th {
    background-color: rgba(100, 100, 100, 1) !important;
}

tbody td {
    cursor: pointer;
    font-size: 0.9em;
    vertical-align: middle;
    padding: 3px 6px;
    background-color: rgba(255, 255, 255, 1);
}

.table-bordered td {
    border-top: 0px !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0px !important;
}

.table-hover>tbody>tr:hover>td, .table-hover>tbody>tr:hover>th {
    background-color: #f5f5f5!important;
}

.table-hover>tbody>tr:hover>td, .table-hover>tbody>tr:hover>th {
    background-color: #f5f5f5 !important;
}

.table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {
    border: 1px solid #ddd !important;
}

.thumbseries-collapse
{
    font-size: 20px;
    text-decoration: none;
    color: #fff;
    background-color: rgb(102, 159, 199);
    border-color: #ccc;
    border-radius: 50%;
    padding: 1px 9px 1px 7px;
}

.thumbseries-collapse:hover
{
    text-decoration: none;
    color: #fff;
}

.logo-img
{
    width: 160px;
}

.nav-tabs {
    border-bottom: 0px;
 }

.loader-mask
{
	position:absolute;
	width:100%;
	height: 100%;
	background-color: rgba(0,0,0,0.3);
	/*background:url("../img/loader.gif") no-repeat center center;*/
}

.loader-mask img{
	width: 80px;
	position: absolute;
	margin: auto;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.progress
{
    margin-bottom: 0px !important;
    background-color: #D3D3D3 !important;
}
.tr-hover
{
    background-color: rgba(255, 176, 85, 0.67);
}

.lengthMenu {
    float: right;
    margin-top: -2em;
}

table.dataTable tbody td {
    padding: 0.5em;
    line-height: 1em;
}
.imageViewer.fullscreenViewer div.widget-body {
    height: 100vh;
}
.imageViewer.fullscreenViewer div.viewportWrapper {
    height: calc(100vh - 55px) !important;
}

/* RESPONSIVE */
@media screen and (max-width: 767px) {
    /** HEADER */
    .container-fluid {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .container-fluid::before,
    .container-fluid::after,
    .navbar-header::before,
    .navbar-header::after,
    .navbar-nav::before,
    .navbar-nav::after {
        content: none;
    }
    .navbar-header {
        margin: 0;
    }
    .navbar-nav {
        margin: 16px;
    }
    .navbar-header .logo.col-md-2.col-sm-3.col-xs-4.pull-left {
        width: 100%;
        margin-left: 16px;
    }
    .navbar-nav > li > a#help {
        display: flex !important;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 70px;
        padding: 10px;
    }
    .navbar-nav > li > a#help > span {
        font-size: 20px;
    }
    /* TOOLS */
    .btn-group.buttonsTools {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        overflow: scroll;
    }
    .btn-group.buttonsTools > .tools-buttons {
        width: 40px !important;
        height: 35px !important;
        margin: 0 4px;
    }
    .btn-group.buttonsTools > .tools-buttons > span.fa {
        min-width: 20px;
    }
    /* THUMBNAILS */
    .thumbnailSelector {
        float: none;
        width: auto;
    }
    .thumbnails.scrollable.list-group {
        background-color: white;
        top: 6px;
    }
    .viewers.col-xs-11 {
        width: 100%;
    }
    /** VIEWERS */
    .imageViewer > .widget-box > .widget-header {
        min-height: 30px !important;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .imageViewer > .widget-box > .widget-header p.serie-title {
        font-size: 14px;
    }
    .imageViewer > .widget-box > .widget-header .widget-toolbar {
        width: 80px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }
    .imageViewer > .widget-box > .widget-header .widget-toolbar button.close > span {
        font-size: 20px;
    }
    .viewportWrapper {
        max-height: calc(100vh - 216px);
    }
    .viewport {
        max-height: 95%;
    }
    /* FULLSCREEN */

    .imageViewer.fullscreenViewer div.widget-body {
        height: 100vh;
    }
    .imageViewer.fullscreenViewer div.viewportWrapper {
        height: calc(100vh - 75px) !important;
        max-height: unset;
    }
    .imageViewer.fullscreenViewer div.viewportWrapper .viewport {
        max-height: unset;
    }
}

#wrap_denied .main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: calc(100vh - 54.05px);
    background-color: rgb(35 195 254 / 10%);
}
#wrap_denied .denied_msg {
    background-color: #fff;
    border: 2px solid #e86d6d;
    border-radius: 4px;
    padding: 1rem 1.6rem;
    margin-top: 50px;
}
#wrap_denied .denied_msg h3 {
    color: #e86d6d;
    margin: 0;
    text-align: center;
}
#wrap_denied .denied_msg p {
    margin: 0;
    font-size: 15px;
    text-align: center;
}