#globsiteLoader {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.9);
}

#globsiteLoader span {
  position: absolute;
  top: 54%;
}

/* Data Tables */
.dataTables_wrapper {
  text-align: center;
}

.dt-bootstrap4 th,
.dt-bootstrap4 td {
  text-align: left;
}

.dataTables_wrapper .dt-buttons {
  float: none !important;
  margin: 0 auto 10px auto;
  display: inline-block !important;
}

.dataTables_wrapper .dt-buttons .btn {
  float: left;
}

.dataTables_paginate .page-item.active .page-link {
  background-color: #23b7e5 !important;
  border-color: #23b7e5 !important;
}

/* Data Tables */

.datepicker {
  padding: 0.375rem 1rem !important;
}

.ms-choice {
  height: 35px;
  border: 1px solid #dde6e9 !important;
}

.ms-choice>span {
  color: #656565 !important;
  line-height: 35px !important;
}

.ms-drop {
  color: #656565 !important;
  border: 1px solid #dde6e9 !important;
}

.cls-filter-btn .cls-filter-on {
  display: none;
}

.cls-filter-btn .cls-filter-off {
  display: block;
}

.cls-filter-btn.collapsed .cls-filter-on {
  display: block;
}

.cls-filter-btn.collapsed .cls-filter-off {
  display: none;
}

.select2-container--bootstrap4 .select2-selection__clear {
  padding-left: .18em !important;
  line-height: 0.9em !important;
}

select.is-invalid~.select2-container--bootstrap4 .select2-selection,
form.was-validated select:invalid~.select2-container--bootstrap4 .select2-selection {
  border-color: #dc3545 !important;
}

#div-user-settings a {
  padding: 5px !important;
}

.user-block-status .img-thumbnail {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
}

.table .actionbuttons:hover {
  text-decoration: none !important;
}

.user-block-info .cls-icon-settings:hover,
.user-block-info .cls-icon-calendar:hover {
  text-decoration: none !important;
}

#select2-animal_ids-results li[aria-selected=true] {
  display: none !important;
}

.hr-text {
  margin-top: 1rem;
  margin-bottom: 0rem;
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  height: 1.5em;
  opacity: .5;

  &:before {
    content: '';
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
  }

  &:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;

    padding: 0 .5em;
    line-height: 1.5em;
    color: #818078;
    background-color: #fcfcfa;
  }
}

.tooltip-text {
  font-weight: bold;
  font-size: 15px;
  color: #FFFFFF;
  display: block;
  line-height: 25px;
}
.col-md-2.custom {
  padding-right: 2px;
  margin-top: 12px;
}
.col-md-4.custom {
  padding-right: 2px;
  margin-top: 12px;
}
.drop {
  padding-right: 2px;
  margin-top: 12px;
}
/* .user-modal .modal-body .tooltip-container {
  left: 80px;
} */

.bs-tooltip-right .arrow::before,
.bs-tooltip-left .arrow::before {
  border-right-color: #8c8c8c !important;
}

button.tooltip-btn:not(:disabled):not(.disabled):active,
button.tooltip-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #8c8c8c;
  cursor: pointer;
  line-height: 18px;
  box-shadow: inherit;
  margin-left: 2px;
}

.btn-circle:hover,
.btn-circle:focus,
.btn-circle:active {
  box-shadow: inherit;
  background-color: #8c8c8c;
  color: #8c8c8c;
}

.tooltip.show {
  opacity: 1;
}

.tooltip-inner {
  max-width: 156px;
  padding: 0.25rem 0.5rem;
  color: #fff;
  text-align: center;
  background-color: #8c8c8c;
  border-radius: 0.25rem;
}

.btn.btn-gray {
  color: #fff;
  background-color: #9CA3AF;
  border-color: #9CA3AF;
}
.btn.btn-gray:hover{
  background-color: #7f838b;
  border-color: #7f838b;
}

.user-modal .modal-body label.col-form-label {
  padding: 0 10px 10px;
}

.tooltip-flex {
  position: relative;
}

.user-modal .modal-body label.col-form-label {
  padding: 0 10px 10px;
  display: flex;
}

.user-modal .modal-body .tooltip-container {
  width: 40px;
}

.user-modal .modal-body .tooltip-icon {
  margin: 0 0 0 2px;
}

.user-modal .modal-body .tooltip-content {
  top: -8px;
  position: absolute;
  left: 100%;
}

.tooltip-header .tooltip-container {
  position: relative;
}

.header-toolipbox {
  width: 0;
  padding-left: 10px;
}

/* Hide the default checkbox */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 20px;
  width: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  /* Add cursor style */
}

/* Style the custom checkbox */
input[type="checkbox"]:checked {
  background-color: #007bff;
  border-color: #007bff;
}

/* Add a custom indicator (checkmark) */
input[type="checkbox"]:checked::after {
  content: '\2713';
  /* Checkmark character */
  font-size: 14px;
  color: #fff;
  position: relative;
  left: 3px;
  top: -1px;
}

@-moz-document url-prefix() {
  input[type="checkbox"]:checked::after {
    top: -2.2px;
  }
}

.mail-notification-input {
  width: 100px;
  margin-left: 70px;
}

.mail-notification-checkbox {
  padding-left: 30px;
  padding-right: 15px;
}

.mail-notification .form-group {
  padding-left: 15px;
  display: flex;
}

.tab-page .form-group {
  padding-left: 15px;
}

.tab-page-input {
  width: 100px;
}

.date-range-filter-col {
  flex-wrap: nowrap;
}

.date-range-filter {
  width: 100%;
  margin-left: -65px;
  justify-content: center;
}

.date-range-notification {
  max-width: 240px;
  width: 100%;
  padding: 0 10px;
}

.bg-pro {
    background-color: #D4AF37 !important; color: #fff !important; }

.bg-reg {
    background-color: #CD7F32 !important; color: #fff !important; }

/* Columns Visibility dropdown */
.dt-button-collection {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1050;
}

.dt-button-collection .dt-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
    background: #fff !important;
    border: none !important;
    width: 100%;
    text-align: left;
    box-shadow: none !important;
    cursor: pointer;
}

.dt-button-collection .dropdown-menu {
  border: unset;
}

.dt-button-collection .dt-button > a {
    color: #656565 !important;
    text-decoration: none !important;
}

.dt-button-collection .dt-button:hover {
    background: #f5f5f5 !important;
}
.dt-button-collection .dt-button > a:hover {
    color: #656565 !important;
    text-decoration: none !important;
}

.dt-button-collection .dt-button.active:after {
    content: "✓";
    font-weight: bold;
    color: #656565;
    margin-left: auto;
}

/* Animal Pedigree  */
* {margin: 0; padding: 0;}
/* .tree{overflow-x: auto} */
.tree ul {
	padding-top: 20px; position: relative;
	display: flex;
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree .form-control {
    max-width: 182px;
    width: 100%;
    margin: 0 auto;
    /* width: calc(100% - 10px); */
}
.tree li {
  width: 100%;
	float: left; text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree li::before, .tree li::after{
	content: '';
	position: absolute; top: 0; right: 50%;
	border-top: 1px solid #ccc;
	width: 50%; height: 20px;
}

.tree li::after{
	right: auto; left: 50%;
	border-left: 1px solid #ccc;
}

.tree li:only-child::after, .tree li:only-child::before {
	display: none;
}

.tree li:only-child{ padding-top: 0;}

.tree li:first-child::before, .tree li:last-child::after{
	border: 0 none;
}

.tree li:last-child::before{
	border-right: 1px solid #ccc;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after{
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}

.tree ul ul::before{
	content: '';
	position: absolute; top: 0; left: 50%;
	border-left: 1px solid #ccc;
	width: 0; height: 20px;
}

.tree .input-box {
    max-width: max-content;
    margin: 0 auto;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
}
.tree .male span, .tree .female span {
  background-color: #6da9f0;
  padding: 0px 4px 0px 4px;
  color: #fff;
  border-radius: 3px;
}
.tree .female span {
  background-color: #ed6ce3;
  padding: 0px 5px 0px 5px;
}
.tree li a{
	border: 1px solid #ccc;
	padding: 5px 10px;
	text-decoration: none;
	color: #666;
	font-family: arial, verdana, tahoma;
	font-size: 11px;
	display: inline-block;
	
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree li a:hover, .tree li a:hover+ul li a {
	background: #c8e4f8; color: #000; border: 1px solid #94a0b4;
}

.tree li a:hover+ul li::after, 
.tree li a:hover+ul li::before, 
.tree li a:hover+ul::before, 
.tree li a:hover+ul ul::before{
	border-color:  #94a0b4;
}

img.img-thumbnail.rounded-circle.user-thumbnail-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* tree css start */
.tree li {padding: 2px 5px 2px 5px;}
/* .tree .ul-level-0 > .li-level-1 { padding: 20px 5px; } */
.tree .ul-level-0 > .li-level-1 > .input-box {padding-left: 5px;}

.li-level-1,
.li-level-2,
.li-level-3,
.li-level-4 {display: flex;align-items: center;gap: 60px;}

.ul-level-1,
.ul-level-2,
.ul-level-3,
.ul-level-4 {display: flex;flex-direction: column;}
.tree .input-box { margin: 0px;}
.tree .input-box {padding-left: 40px;position: relative;}
.tree .input-box > span {position: absolute;left: 10px;top: 0;bottom: 0;margin: auto;height: 21px;}
.tree .li-level-1 .input-box > span {padding-left: 5px;}
.tree ul ul::before {
	content: '';
	position: absolute;
	top: 0;
	right: calc(100% + 14px);
	border-top: 1px solid #ccc;
	width: 46px;
	height: 0px;
	bottom: 0;
	margin: auto;
  left: unset;
}
.tree .form-control {
	margin: 5px !important;
  height: 25px !important;
}

.tree li::before, .tree li::after {
	content: '';
	position: absolute;
	top: 0;
	right: 100%;
	border-top: 1px solid #ccc;
	width: 20px;
	height: 100%;
}
.tree li::after {
	right: auto;
	/* left: 50%; */
	border-left: 1px solid #ccc;
	left: -15px;
	top: 50%;
}
.tree li:last-child::before {
	border-left: 1px solid #ccc;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0;
	-moz-border-radius: 0 5px 0 0;
	border-top: 0px;
	border-bottom: 1px solid #ccc;
	left: -15px;
  height: 50%;
  border-right: 0 !important;
}
.tree li:first-child::before, .tree li:last-child::after {
	/* border: 0 none; */
	opacity: 0;
  font-display: none;
}
.tree ul { padding-top: 0px !important;}
.tree .li-level-2 {padding-top: 0px !important;}
.tree .ul-level-2 {padding-top: 0px;}
.li-level-2:first-child .ul-level-2:last-child .li-level-3:first-child {padding-top: 0px;}

.tree ul.ul-level-2 li.li-level-3:last-child:after,
.tree ul.ul-level-1 li.li-level-2:last-child:after { display: none; }
.ul-level-0 > .li-level-1::after {display: none;}
/* tree css end */

body.print .input-box {
  padding: 0;
  border-radius: 0;
  background-color: #ffffff;
}

body.print .tree .form-control {
  margin: 0px !important;
  border-radius: 0 !important;
  font-size: 9px !important;
  padding: 1px 1px !important;
  height: 18px !important;
}

body.print .tree .input-box>span {
  left: -24px;
  height: 20px;
  z-index: 2;
  width: 20px;
}

body.print .tree .ul-level-0>.li-level-1>.input-box {
  padding-left: 0;
}

body.print .tree .female span {
  padding: 3px 5px 0px 5px;
}
.tree .male span, .tree .female span {
  padding: 2px 4px 0px 4px;
}

@media screen and (max-width: 767px) {
  .tab-page {
    max-width: 188px;
    width: 100%;
    justify-content: center;
  }

  .date-range-filter-col {
    flex-wrap: wrap;
    justify-content: center;
  }

  .date-range-filter {
    margin-left: 0;
    margin-top: 15px;
    justify-content: center;
  }

}

@media screen and (max-width: 991px) {
  .date-range-notification {
    max-width: 200px;
  }
}

/* print.css */
@media print {

  #medicationTable,
  #birthdayTable,
  #gestationTable {
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    background-color: #ffffff;
    text-align: center;
  }
}
