/* Retained from reset */
ol, ul {
    list-style: none;
    padding: 0px !important;
}


/* Retain these existing styles*/
.ui-helper-hidden-accessible {
    display: none;
}

#errors a#close {
    color: #FFF;
}

a#close {
    float: right;
    margin: -10px -10px 15px 15px;
    font-size: 30px;
    text-decoration: none;
}

#patient_referrals ul li, #user_referrals ul li {
    padding: 10px;
    border-top: 1px #ddd solid;
    color: #ccc;
}

.round_white_box
{
  -moz-border-radius:20px;
  -webkit-border-radius:20px;
  -moz-box-shadow:0 0 5px #ccc;
  -webkit-box-shadow:0 0 5px #ccc;
  padding-bottom:20px;
  padding: 20px;
}

#group_context_switcher
{
  display: none;
  float: left
}

.ui-autocomplete {
  max-width: 400px;
  max-height:400px;
  overflow: auto;
}

.ui-autocomplete li {
  display: block;
  background:#EEE;
  border:1px solid #ccc;
  font-size:13px;
  padding:7px 5px 5px;
}

.ui-autocomplete li:hover {
  cursor:pointer;
  background:#FFF;
}

#errors, #notices
{
  position:fixed;
  top:15px;
  right:15px;
  max-width:350px;
  max-height:500px;
  overflow-x:hidden;
  overflow-y:auto;
  z-index: 100;

  background-color:white;
  padding:15px 20px;
  -moz-border-radius:5px 5px 5px 5px;
  -webkit-border-radius:5px 5px 5px 5px;

  -moz-box-shadow:0 0 5px #000000;
  -webkit-box-shadow:0 0 5px #000000;
  box-shadow:0 0 5px #000000;
  opacity:0.9;
}

#errors
{
  background:#cc0000;
  border:1px solid #ff6600;
  padding:15px 20px;
  color:#FFF;
}

#decline_referral_container, #forward_referral_container {
    display: none;
}

#notices
{
  background:#73ae57;
  padding:15px 20px;
  color:#FFF;
  border:1px solid #9bb826;
}

fieldset label {
  font-weight: bold;
  color: #555;
}

.visible-print
{
  display: none;
}

.referrals-show .col {
  margin: 20px;
}

/*#referral_extra_info
{
  background: #f1f1f1;
  -moz-box-shadow:0 0 3px #ccc;
  -webkit-box-shadow:0 0 3px #ccc;
  box-shadow: 0 0 3px #ccc;

  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;

  padding:0 15px 15px 15px;
}*/

#referral_extra_info.status_label_appointment_booked
{
  background: #f4f8ae;
  border: 1px solid #c0c757;
}

#referral_extra_info.status_label_appointment_booked #referral_appointment_at
{
  border-top: 1px #c0c757 solid;
}

#referral_extra_info.status_label_appointment_booked
{
  background: #f4f8ae;
  border: 1px solid #c0c757;
}

#referral_extra_info.status_label_appointment_booked #referral_appointment_at
{
  border-top: 1px #c0c757 solid;
}

#referral_attachments {
    margin-top: 70px;
    padding-top: 10px;
}

span.status_label_appointment_booked,
span.status_label_with_radiologist,
span.status_label_with_group,
span.status_label_with_clinic,
span.status_label_new,
span.status_label_pending,
span.status_label_accepted,
span.status_label_declined,
span.status_label_live,
span.status_label_updated,
span.status_label_cancelled
{
  display:block;
  color:#fff;
  padding:7px 0 6px 10px;
  background:#111;
  width:110px;
  font-size:10px;

  font-weight:normal;
  text-align:left;
  font-family:Georgia;
  font-style:italic;
  font-weight:normal;

  -moz-border-radius:12px;
  -webkit-border-radius:12px;
  -moz-box-shadow:1px 1px 3px #444 inset;
  -webkit-box-shadow:1px 1px 3px #444 inset;
  text-shadow:none;
}

span.status_label_appointment_booked a,
span.status_label_with_radiologist a,
span.status_label_with_group a,
span.status_label_with_clinic a,
span.status_label_new a,
span.status_label_pending a,
span.status_label_accepted a,
span.status_label_declined a,
span.status_label_live a,
span.status_label_updated a,
span.status_label_cancelled a
{
  text-shadow:none;
}

span.status_label_appointment_booked
{
  background:#517423;
}


span.status_label_appointment_booked.past
{
  background:#666;
}


span.status_label_with_radiologist
{
  background:#A73;
}

span.status_label_with_group
{
  /*background:#598fba;*/
  background:#7DD2B3;
}

span.status_label_with_clinic
{
  background:#598fba;
}


span.status_label_new
{
  background:#8CC63F;
}



span.status_label_pending
{
  background:#39B54A;
}

span.status_label_accepted
{
  background:#39B54A;
}

span.status_label_declined
{
  background:#C1272D;
}


span.status_label_live
{
  background:#F7931E;
}

span.status_label_updated
{
  background:#F7931E;
}

span.status_label_cancelled
{
  background:#cc0000;
}

#pdf_link a
{
  text-align:right;
  font-size:11px;
  color:#666;
}

#pdf_link a:hover
{
  color:#349bcb;
}

.pdf_icon
{
  padding:0;
}

/* Dashboard View */
div#message-of-the-day {
  padding: 15px 20px;
  border: 1px solid #9bb826;
  color: #242e33;
  background-color: #d9edf7;
  border-color: #50c9e2;
}

div#message-of-the-day p {
  margin: 5px 0px 5px 0px;
}

div#referral-audits div.audit table caption {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 500;
}

div#referral-audits div.audit table td {
  width: 33.3%;
  border-bottom: 1px solid #e8e8e8;
}

div#referral-audits div.audit table tr:last-child td {
  border: none;
}

div#referral-audits div.audit table td.to {
  color: #45b345;
}

div#referral-audits div.audit table td.from {
  color: #dc7474;
}

div#referral-audits div.audit {
  background: #f7f7f7;
  border: 1px solid #dad8d8;
  margin-bottom: 50px;
  margin-top: 15px;
  padding: 10px;
}

div#referral-audits div.audit p.date {
  color: #7d7d7d;
  font-weight: bold;
  margin-bottom: 5px;
}







/* Brand new styles after adding Bootstrap 4 to app */
@media screen and (max-width:767px) {
  #controls_top .btn-sm {
    padding: 5px;
    font-size: 0.8rem;
  }
  .dropdown-menu.show {
    font-size: 14px;
    min-width: initial;
  }
  #errors, #notice {
    position: relative;
    margin-bottom: 20px;
 }
  ul.nav.nav-pills {
    display: block !important;
  }
  input#q_search_terms_cont {
    width: 100%;
  }
}

#referrals-new-container, #referrals-edit-container {
 padding: 20px;
}

.patients-index #controls_top .btn {
  float: none;
    margin-bottom: 0px;
}

/*.groups-index #controls_top .btn {*/

.patients-index #controls_top #date-of-birth-select {
  /*margin-bottom: 1px;*/
}

.patients-index #controls_top #search-field {
  margin-bottom: 1px;
}



.login-form {
  background: white;
  max-width: 360px;
  padding: 35px;
  margin: 0 auto;
  margin-top: 60px;
  width: 100%;
}

#mip-container {
  background: #fff;
  -moz-box-shadow: 0 0 15px #666;
  -webkit-box-shadow: 0 0 15px #666;
  padding-bottom: 60px;
}

#main-nav-container {
  padding-top: 10px;
}

.form-create-link {
  font-weight: bold;
}

.badge-custom {
  padding: 0.75em 1.5em !important;
  width: 100%;
  text-align: inherit !important;
}
.badge-custom a {
    color: #fff;
}
.badge-updated {
  background: #F7931E;
}
.badge-with_clinic {
  background:#598fba;
}
.badge-with_group {
  background: #7DD2B3;
}
.badge-with_radiologist {
  background: #A73;
}
.badge-new {
  background: #8CC63F;
}
.badge-declined {
  background: #C1272D;
}
.badge-appointment_booked {
  background: #517423;
}
.badge-cancelled {
  background:#cc0000;
}
.badge-appointment_booked.past {
  background:#666;
}

#sub-tabs {
  margin-top: 10px;
}

body {
  font-size: 14px;
  background:#F6F6F5 !important;
}

a {
  color: #388bc2;
}

.bg-dark {
  background-color: #444 !important;
}

.table .thead-dark th {
  color: #fff;
  background-color: #444;
  border-color: #444;
}

#controls_top {
  padding: 10px 0px !important;
  margin-bottom: 20px;
}

#controls_top .btn {
 float: left;
 margin-right: 5px;
 margin-bottom: 20px;
}

#controls_top .btn {
  margin-bottom: 20px;
}

#groups-index #controls_top .btn {
  margin-bottom: 0px !important; 
}

/* Pagination */
nav.pagination span {
  margin-right: 5px;
}

/* Login Page */
#login_fields div {
  margin-top: 10px;
}

#referral_control_buttons .btn {
  margin-right: 10px;
}

.referrals-show #controls_top {
  margin-bottom: 0px !important;
}