/* Custom font defintions.
-------------------------------------------------- */
@font-face {
  font-family: Roboto-Regular;
  src: url("../fonts/Roboto-Regular-webfont.eot");
  src: local("☺"), local(Roboto-Regular), url("../fonts/Roboto-Regular-webfont.woff") format("woff"), url("../fonts/Roboto-Regular-webfont.ttf") format("truetype"), url("../fonts/Roboto-Regular-webfont.svg#Roboto-Regular-webfont") format("svg");
}

@font-face {
  font-family: Roboto-Light;
  src: url("../fonts/Roboto-Light-webfont.eot");
  src: local("☺"), local(Roboto-Light), url("../fonts/Roboto-Light-webfont.woff") format("woff"), url("../fonts/Roboto-Light-webfont.ttf") format("truetype"), url("../fonts/Roboto-Light-webfont.svg#Roboto-Light-webfont") format("svg");
}

@font-face {
  font-family: Roboto-Bold;
  src: url("../fonts/Roboto-Bold-webfont.eot");
  src: local("☺"), local(Roboto-Bold), url("../fonts/Roboto-Bold-webfont.woff") format("woff"), url("../fonts/Roboto-Bold-webfont.ttf") format("truetype"), url("../fonts/Roboto-Bold-webfont.svg#Roboto-Bold-webfont") format("svg");
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 40px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 40px;
  background-color: #f5f5f5;
}
.strong, strong, b, .text-strong {
  font-family: Roboto-Bold;
}
.highlight {
  background-color: #ffffe0;
}
.dropdown-menu {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Sign-in page CSS
   Adapted from: http://getbootstrap.com/examples/signin/signin.css
-------------------------------------------------- */
.form-signin {
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
  margin-top: 70px;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
  margin-bottom: 10px;
}
.form-signin .checkbox {
  font-weight: normal;
}
.form-signin .form-control {
  position: relative;
  height: auto;
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Bootstrap Callout Styles
   Adapted from: http://getbootstrap.com/assets/css/docs.min.css
-------------------------------------------------- */
.bs-callout{padding:20px;margin:20px 0;border:1px solid #eee;border-left-width:5px;border-radius:3px}
.bs-callout h4{margin-top:0;margin-bottom:5px}
.bs-callout p:last-child{margin-bottom:0}
.bs-callout code{border-radius:3px}
.bs-callout+.bs-callout{margin-top:-5px}
.bs-callout-danger{border-left-color:#ce4844}
.bs-callout-danger h4{color:#ce4844}
.bs-callout-warning{border-left-color:#aa6708}
.bs-callout-warning h4{color:#aa6708}
.bs-callout-info{border-left-color:#1b809e}
.bs-callout-info h4{color:#1b809e}
.bs-callout-success{border-left-color:#5cb85c}
.bs-callout-success h4{color:#5cb85c}
.bs-callout-primary{border-left-color:#337ab7}
.bs-callout-primary h4{color:#337ab7}

/* Firefox and fieldsets (Firefox-specific hack that's not provided in Bootstrap)
   Adapted from: http://stackoverflow.com/questions/17408815/fieldset-resizes-wrong-appears-to-have-unremovable-min-width-min-content/17863685#17863685
-------------------------------------------------- */
@-moz-document url-prefix() {
  fieldset { display: table-cell; }
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container-fluid {
  padding: 70px 15px 0;
}
.container-fluid .text-muted {
  margin: 10px 0;
}

.footer > .container-fluid {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}

#navbar-brand {
  color: #ffffff;
  /** color: #e80000; **/
}

#notifn-badge {
  position: relative;
  top: -8px;
  left: -10px;
  font-size: 60%;
  background-color:#e80000
}

textarea {
  resize:none;
}

button {
  outline: none !important;
}

.text-hidden {
  display: none;
}

.text-nowrap {
  white-space: nowrap;
}

.clear {
  clear: both;
}

.strikethrough {
  text-decoration:line-through;
}

.text-hidden {
  display: none;
}

.cursor-pointer {
  cursor: pointer;
}

.cf-thumbnail {
  margin-top: 5px;
  display: inline-block;
}

.cf-thumbnail img {
  cursor: pointer;
  max-width: 100%;
  border: 1px solid #aaa;
}

/* Datepickers
-------------------------------------------------- */
/* .input-group.datepicker .input-group-addon {
  cursor: pointer;
} */
.input-group.datepicker .datepicker-dropdown {
  z-index: 1200 !important;
}

/* Utilities for spacing
-------------------------------------------------- */
.pad-0 {
  padding: 0;
}
/*
.mt-0 {
  margin-top: 0;
}
.mt-5 {
  margin-top: 5px;
}
.mt-10 {
  margin-top: 10px;
}
.mt-15 {
  margin-top: 15px;
}
.ml-5 {
  margin-left: 5px;
}
.ml-15 {
  margin-left: 15px;
}
.mr-15 {
  margin-right: 15px;
}
*/
.mt-0  { margin-top: 0;    }
.mt-5  { margin-top: 5px;  }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }

.mb-0  { margin-bottom: 0;    }
.mb-5  { margin-bottom: 5px;  }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }

.ml-0  { margin-left: 0;    }
.ml-5  { margin-left: 5px;  }
.ml-10 { margin-left: 10px; }
.ml-15 { margin-left: 15px; }

.mr-0  { margin-right: 0;    }
.mr-5  { margin-right: 5px;  }
.mr-10 { margin-right: 10px; }
.mr-15 { margin-right: 15px; }

/* Reduce the bottom margin for .form-group and .help-block */
.form-group,
.form-group .help-block {
  margin-bottom: 10px;
}

/* DataTables specific styles that are customized for SCMS */
.scms-data-table {
  width: 100% !important;
  border-bottom: 2px solid #999999;
}
.scms-data-table thead th, .scms-data-table tfoot th {
  border-top: 2px solid #999999 !important;
  border-bottom: 2px solid #999999 !important;
  background-color: #E4F1FE;
}
.scms-data-table tbody tr:hover {
  cursor: pointer;
  background-color: #C5EFF7;
}
/**.scms-data-table tbody td {
  word-break: break-all !important;
}**/
.scms-data-table .row-selected {
  background-color: #0072bc !important;
  color: #fff !important;
}
.scms-data-table-search {
  width: 250px;
  margin-top: 20px;
  margin-bottom: 10px;
}
#pnt-table_length, 
#pnt-table_filter { 
  display:none; 
}

/* Datepicker specific styles. */
.scms-datepicker {
  max-width: 150px;
}

/* Timepicker specific styles. */
.scms-timepicker {
  max-width: 150px;
}

/* Datetime specific styles. */
.scms-datetime-date {
  float: left;
  max-width: 150px;
  margin-top: 31px;
}
.scms-datetime-time {
  float: left;
  max-width: 150px;
}

.scms-report-min-height {
  min-height: 500px;
}

.package-info {
  border: solid 1px #dddddd;
  padding: 5px;
  margin-bottom: 10px;
}

.multi-line {
  white-space: pre-wrap;
}

input.error, select.error, textarea.error {
  border-color:#D9534F;
}

span.error {
  color:#D9534F;
  font-size:smaller;
}

.truncate-long-words {
  /* word-wrap: break-word; */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wrap-long-words {
  overflow-wrap: break-word; 
  word-wrap: break-word; 
  word-break: break-all;
}

.line-clamp {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-clamp-desc {
  overflow: hidden;
}

/* .patients-heading-search {
  height: 56px;
  position: relative;
}

.patients-heading-search > form {
  position: absolute;
  bottom: 0;
  right: 30px;
} */

.alert-danger {
  background-color: #f9bdbb;
}

.btn.btn-blue {
  background-color: #3A539B;
  border-color: transparent;
  color: #fff;
}
.btn-blue:hover, .btn-blue:active, .btn-blue:focus {
  background-color: #34495E;
}
.btn.btn-orange {
  background-color: #d35400;
  border-color: transparent;
  color: #fff;
}
.btn-orange:hover, .btn-orange:active, .btn-orange:focus {
  background-color: #c0392b;
}
.btn.btn-purple {
  background-color: #663399;
  border-color: transparent;
  color: #fff;
}
.btn-purple:hover, .btn-purple:active, .btn-purple:focus {
  background-color: #674172;
}
.btn.btn-yellow {
  background-color: #F5D76E;
  border-color: transparent;
  color: #333;
}
.btn-yellow:hover, .btn-yellow:active, .btn-yellow:focus,  .btn-yellow:active:hover, .btn-yellow.active:hover, .btn-yellow:active:focus, .btn-yellow.active:focus, .btn-yellow:active.focus, .btn-yellow.active.focus {
  background-color: #F7CA18;
}

@media screen and (max-device-width: 1400px) { 
  .btn.btn-large {
    padding: 5px 10px; /* auto-switch to btn-sm for small screens */
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
  }
}
@media screen and (min-device-width: 1401px) {
  .btn.btn-large {
  }
}

.form-group .tab-notes-rich-consultation {
  width: 100%;
  max-width: 542px;
  height: 410px; 
  border: 1px solid #ccc;
  padding: 5px;
  overflow: auto
}

/* Consultation tab - customised wizard style */
.nav-pills.consult-tab-wizard > li {
  position: relative;
  overflow: visible;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
}
.nav-pills.consult-tab-wizard > li + li {
  margin-left: 0;
}
.nav-pills.consult-tab-wizard > li:first-child {
  border-left: 0;
}
.nav-pills.consult-tab-wizard > li:first-child a {
  border-radius: 5px 0 0 5px;
}
.nav-pills.consult-tab-wizard > li:last-child {
  border-right: 0;
}
.nav-pills.consult-tab-wizard > li:last-child a {
  border-radius: 0 5px 5px 0;
}
.nav-pills.consult-tab-wizard > li a {
  border-radius: 0;
  background-color: #eee;
}
.nav-pills.consult-tab-wizard > li:not(:last-child) a:after {
  position: absolute;
  content: "";
  top: 0px;
  right: -20px;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 20px 0 20px 20px;
  border-color: transparent transparent transparent #eee;
  z-index: 150;
}
.nav-pills.consult-tab-wizard > li:not(:first-child) a:before {
  position: absolute;
  content: "";
  top: 0px;
  left: -20px;
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 20px 0 20px 20px;
  border-color: #eee #eee #eee transparent;
  z-index: 150;
}
.nav-pills.consult-tab-wizard > li:hover:not(:last-child) a:after {
  border-color: transparent transparent transparent #aaa;
}
.nav-pills.consult-tab-wizard > li:hover:not(:first-child) a:before {
  border-color: #aaa #aaa #aaa transparent;
}
.nav-pills.consult-tab-wizard > li:hover a {
  background-color: #aaa;
  color: #fff;
}
.nav-pills.consult-tab-wizard > li.active:not(:last-child) a:after {
  border-color: transparent transparent transparent #4183D7;
}
.nav-pills.consult-tab-wizard > li.active:not(:first-child) a:before {
  border-color: #4183D7 #4183D7 #4183D7 transparent;
}
.nav-pills.consult-tab-wizard > li.active a {
  background-color: #4183D7;
}

/* Patient File Nav Tabs customised with borders */
.nav.patient-tabs.patient-tabs-bordered > li > a {
  border-color: #ccc;
}
.nav.patient-tabs > li > a {
  border-bottom: transparent;
}
.nav.patient-tabs > li > a:hover, .nav.patient-tabs > li > a:focus {
  background-color: #DCC6E0;
  color: #fff;
  border-color: #DCC6E0;
}
.nav-tabs.patient-tabs {
  border-bottom-color: #674172;
}
.nav-tabs.patient-tabs > li {
  z-index: 0;
  margin-bottom: 0;
  background-color: #fff;
}
.nav-tabs.patient-tabs > li > a {
  -webkit-border-top-left-radius: 9px;
  -moz-border-radius-topleft: 9px;
  border-top-left-radius: 9px;
  -webkit-border-top-right-radius: 9px;
  -moz-border-radius-topright: 9px;
  border-top-right-radius: 9px;
  color: #6C7A89;
  margin-right: 0;
}
.nav-tabs.patient-tabs > li.active > a, .nav-tabs.patient-tabs > li.active > a:hover, .nav-tabs.patient-tabs > li.active > a:focus {
  color: #fff;
  background-color: #674172;
  border-color: #674172;
  border-bottom: transparent;
}

/* VitalOne Navbar */
.vitalone-navbar {
  min-height: 30px;
  border-bottom: transparent;
  background-color: #3498DB;
}
.vitalone-navbar > li > a {
  color: #fff;
}
.vitalone-navbar .navbar-nav>.active>a, .vitalone-navbar .navbar-nav>.active>a:hover, .vitalone-navbar .navbar-nav>.active>a:focus {
  background-color: #34495e;
  /* font-size: 1.1em; */
}
.vitalone-navbar .navbar-nav>li>a:hover, .vitalone-navbar .navbar-nav>li>a:focus {
  background-color: #59ABE3;
}
.vitalone-navbar .navbar-nav>.open>a, .vitalone-navbar .navbar-nav>.open>a:hover, .vitalone-navbar .navbar-nav>.open>a:focus {
  background-color: #336E7B;
}

/* VitalOne brand's font */
.vitalone-brand-font {
  font-size: 1.3em;
  font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
  display: block;
  padding: 15px 12px;
  letter-spacing: 1px;
}

/* Tablet Mode - Consultation - Accordion styled menu */
.vitalone-tablet {
}
.vitalone-tablet input[name='vitalone-tablet-menu'] {
  display: none;
}
.vitalone-tablet label {
  position: relative;
  display: block;
  padding: 1em;
  border-top: 1px solid #22313F;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 1.5em;
  color: #666;
  transition: all 0.4s cubic-bezier(0.865, 0.14, 0.095, 0.87);
  background: #E4F1FE;
  margin-bottom: 0;
}
.vitalone-tablet label:after {
  content: '+';
  position: absolute;
  right: 1em;
  width: 1em;
  height: 1em;
  color: #666;
  text-align: center;
  line-height: 1.3em;
}
.vitalone-tablet input:checked + label {
  color: #fff;
  background: #67809F;
}
.vitalone-tablet input:checked + label:after {
  content: '-';
  color: #fff;
  line-height: 1.3em;
}
.vitalone-tablet .menu-content {
  overflow-x: hidden;
  overflow-y: auto;
  height: 0px;
  position: relative;
  padding: 0 0.7em;
  background: #fff;
  color: #444;
  transition: height 0.4s cubic-bezier(0.865, 0.14, 0.095, 0.87);
  width: 290px;
  margin: 0 auto;
  margin-right: 0;
}
.vitalone-tablet .menu-content .menu-header {
  padding: 1em 0;
}
.vitalone-tablet .menu-content .menu-body {
  font-size: 1em;
  width: 270px;
  padding: 0px;
}
.vitalone-tablet .menu-content.menu-patient-info .menu-body tr>td {
  line-height: 0.7em;
}
.vitalone-tablet .menu-content.menu-visit .menu-body .visit-month {
  line-height: 1em;
  text-align: center;
}
.vitalone-tablet .menu-content.menu-visit .menu-body .visit-day {
  font-size: 2em;
}
.vitalone-tablet .menu-content.menu-visit .menu-body .visit-thumbnail {
   /*background-image:url( );*/
   background: black;
   width:50px;
   height:50px;
}
.vitalone-tablet .menu-content .menu-body tr:first-child >td {
   border:none;
}
.no-pad {
   padding: 2px;
}
.thumbnail-panel {
  min-height: 210px;
  height: 100%;
  border: 1px solid #eee; 
  overflow: hidden;
  padding: 0px 5px;
}
/* Height for each of the menu. Ensure it fits in Ipad resolution */
input[name='vitalone-tablet-menu']:checked ~ .menu-content.menu-salient-pt {
  height: 100%;
}
input[name='vitalone-tablet-menu']:checked ~ .menu-content.menu-patient-info {
  height: 100%;
}
input[name='vitalone-tablet-menu']:checked ~ .menu-content.menu-visit {
  height: 540px;
}

/* Form styles. */
textarea.form-control {
  width:100% !important;
}

.label-checkbox {
  width:120px; height:28px;
}

.label-checkbox-md {
  width:150px; height:28px;
}

.label-checkbox-lg {
  width:280px; height:28px;
}

.label-tag {
  margin-right: 5px;
  /* word-wrap: normal; */
  display: inline-block;
}

/* Thumbnail */
div.div-thumbnail {
  cursor: pointer;
  border: 1px solid #ccc;
  text-align: center;
  width: 100%;
  height: 150px;
  position: relative;
}
div.tbl-thumbnail {
  cursor: pointer;
  width: 100%;
  height: 150px;
  position: relative;
}

/* trash hover */
span.trash-attachment , span.trash-sketch{
  cursor: pointer;
}

/* identify active thumb */
div.div-active-thumbnail {
  border: 1px solid #81D4FA !important;
}

img.file-thumb {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

img.tbl-thumb {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* file icon */
.file {
  text-align: center;
  border: 1px solid #ccc;
}
.file-icon {
  font-size: 40px;
  line-height: 114px;
}

/* set border to attachment preview */
.img-attachment-preview, .pdf-attachment-preview {
  border : 1px solid #ccc;
  margin-bottom : 20px;
}

/* custom decoration for a in file preview */
.a-preview {
  color : #333;
  text-decoration : none;
  background-color : none;
}

/* Guided Tour styles */
/* Have to add "tour-hideable" class to each element on the page to overcome CSS quirk - child element cannot overwrite opacity of parent
   http://stackoverflow.com/questions/12613191/why-cant-child-elements-override-the-opacity-of-parent-with-a-greater-value */ 
.shepherd-active .tour-container .tour-hideable {
  -webkit-transition: opacity 0.4s;
  transition: opacity 0.4s;
  opacity: 0.3;
  pointer-events: none;
}
.tour-container .shepherd-target.shepherd-enabled {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.shepherd-active .tour-container .hide-table tr td {
  opacity: 0.3;
}
.shepherd-active .tour-container .reveal-last tr td:last-child {
  opacity: 1;
}
.shepherd-active .shepherd-step header h3 {
  font-family: "Roboto-bold","Helvetica Neue",Helvetica,Arial,sans-serif;
}
.shepherd-active .shepherd-step header .shepherd-cancel-link {
  /* opacity: 0.8 !important; */
}
.shepherd-active .shepherd-content {
  font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
}
.shepherd-btn-custom-primary {
  background-color: #00887e !important;
}
.shepherd-btn-custom-primary.transparent {
  /* background: transparent; */
  background-color: #f6f6f6 !important;
  border: none !important;
  color: #f6f6f6 !important;
}
.shepherd-button-secondary.transparent {
  background-color: #f6f6f6 !important;
  color: #f6f6f6 !important;
}

.btn {
  margin-bottom:3px;
}

#photo-upload {
  width:80%;
  margin:0 auto;
  text-align:center;
}
.pnt-photo {
  width:100%;
  position:relative;
}
.pnt-photo > .photo {
  background:rgba(255,255,255,.9);
  border:1px solid #ccc;
  border-radius:3px;
  cursor:pointer;
}
.pnt-photo > .photo.info {
  margin-left:10px;
  display:inline-block;
}
.pnt-photo > .photo.info > div {
  padding:20px 40px;
  text-align:center;
}
.pnt-photo > .photo.info > div:hover {
  color:#092dff;
}
.pnt-photo > .photo.float {
  overflow:hidden;
  position:absolute;
  top:0;
  right:0;
}
.pnt-photo > .photo > img {
  width:auto;
  height:auto;
  max-width:160px;
  max-height:120px;
}

.patient-modal-tab .bootstrap-tagsinput {
  display:block;
}

@media only screen and (min-width: 992px) {
  .container-fluid.scrollpane {
    height:calc(100vh - 30px);
    overflow:hidden;
  }
  .container-fluid.scrollpane > .row {
    height:100%;
    overflow:hidden;
  }
  .container-fluid.scrollpane > .row > div {
    height:100%;
    overflow-y:scroll;
  }
}
@media only screen and (max-width: 992px) {
  #queue-details .pnt-photo,
  #pnt-info-display .pnt-photo {
    display: none;
  }
}

::-webkit-scrollbar {
  width:8px;
  height:8px;
}
::-webkit-scrollbar-track {
  background-color:rgba(238,238,238,.9);
}
::-webkit-scrollbar-thumb {
  background-color:rgba(0,0,0,0.2);
}
::-webkit-scrollbar-button {
  background-color:rgba(221,221,221,.7);
}
::-webkit-scrollbar-corner {
  background-color:rgba(221,221,221,.7);
}

/* Add dash between time and title for booked resource*/
.fc-timeline-event .fc-time::after {
  content: "\A0-\A0";
}

/* Style for form error */
.input-error { /* follows help-block */
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
}
