/* Allergies CSS */

/* Main allergies page */
.page-allergies .text .pt_allergies_content:before {
	background: #ef5238 url(/images/icons/allergies-white.png) no-repeat;
	background-size: 100%;
	content: '';
}

.page-allergies h2 {
  border-bottom: solid 1px #A2A3A5;
  padding: 12px;
}

.page-allergies h2,
.page-allergies h4 {
  text-align: center;
}

ul.allergies-list {
}

ul.allergies-list li {
	list-style-type: none;
    background-repeat: no-repeat;
    border-bottom: solid 1px #e8e8e8;
    color: #54565A;
    overflow: hidden;
    padding: 8px 8px 8px 25px;
    vertical-align: top;
}

ul.allergies-list li:nth-child(2n){
	background-color: white;
}

ul.allergies-list li.allergy-list-header {
	background-color: #f1f1f1;
	color: #A2A3A5;
}

ul.allergies-list li span {
	width: 40%;
	display: inline-block;
	vertical-align: top;
}

ul.allergies-list li span.actions {
	width: 15%;
}

ul.allergies-list li span.allergy strong {
	color: #cf4747;
}

ul.allergies-list li span.intolerance strong{ 
	color: #932323;
}

#add_nkda_f_form {
  background-color: white;
  display: flex;
  align-items: center;
}

#add_nkda_f_form  input {
  margin-right: 4px;
}

#add_nkda_f_form button {
  margin-left: auto;

}

/* Buttons */
.allergies-list .button.remove,
.allergies-list .button.edit,
.allergies-list .button.pending {
	padding: 0 !important;
	border-radius: 0 !important;
	background-color: transparent;
	width: auto;
	height: auto;
	min-width: auto;
	-webkit-font-smoothing: antialiased;
}


.allergies-list .button.remove:before,
.allergies-list .button.edit:before,
.allergies-list .button.pending:before {
    visibility: visible;
    display: inline-block;
    font: normal normal normal 25px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    transition: all .2s;
    width: 30px;
}

.allergies-list .button.remove:before {
    content: '\F057';
    color: #c00;
}

.allergies-list .button.edit:before {
    content: '\f044';
    color: #268ac8;
}

.allergies-list .button.pending:before {
	color: #f99c50;
	content: '\f017';
}

.allergies-list .button.pending:hover:after {
    color: #f99c50;
    content: 'Request Pending';
    float: left;
    padding: 5px;
    font-size: 11px;
    font-style: italic;
    letter-spacing: 0.08em;
}
.allergies-list .button.pending.removal_pending:hover:after {
    content: 'Removal Pending';
}
.allergies-list .button.pending.edit_pending:hover:after {
    content: 'Changes Pending';
}

/* box forms... */
#allergy_loading_block {
  padding: 15px;
}

.ui-menu {
  max-width: 500px;
}

.ui-menu .sup-0 {
  font-size:12px;
}

.ui-menu .sup-0 .allergy_strength {
  display:block;
  cursor:pointer;
  font-style:normal;
}

.ui-menu em.allergy_table {
  float:right;
  display:none; /* hide from patient but here troubleshooting */
}

.ui-menu em.none_found {
  display:block;
}

.add_allergy_step_2 .allergy_scope {
  margin:10px 30px;
}

.allergies_box_form.allergies_box_form > form {
  padding: 15px;
}

.add_allergy_to_database .allergen_name_input {
  display:inline-block;
  width: 175px;
  padding: 8px 12px;
}

@media screen and (max-width: 600px) {
  .allergy-list-header {
    display: none
  }

  ul.allergies-list li span,
  ul.allergies-list li span.actions {
    display: block;
    width: 100%;
    padding-bottom: 10px;
  }

  ul.allergies-list li span.actions {
  	text-align: center
  }

  ul.allergies-list li span.notes:before{
	content: "Notes: " ;
  }

}