/*
 * jQuery UI Datepicker 1.10.3
 *
 * Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://jqueryui.com/datepicker/
 */

.tr-datepicker-container {
  width: 17em;
  display: none;
  z-index: 1000 !important;

  .ui-datepicker-header {
    position:relative;
    padding: .2em 0;
    border: 0;
    font-weight: bold;
    width: 100%;
    background: #F1F1F1;
    color: #808080;
    border-bottom: 1px solid #dfdfdf;
  }

  .ui-datepicker-prev,
  .ui-datepicker-next {
    position: absolute;
    top: 2px;
    width: 1.8em;
    height: 1.8em;
    text-indent: -9999px;
    cursor: pointer;
  }

  .ui-datepicker-prev {
    left: 2px;
  }

  .ui-datepicker-prev:after {
    content: '';
    display: block;
    border: 6px solid transparent;
    margin-left: 3px;
    margin-top: 6px;
    border-right-color: #999;
  }

  .ui-datepicker-next:after {
    content: '';
    display: block;
    border: 6px solid transparent;
    margin-right: 3px;
    margin-top: 6px;
    border-left-color: #999;
  }

  .ui-datepicker-prev:hover:after {
    border-right-color: #21759B;
    border-right-color: var(--tr-profile-color, #21759B);
  }

  .ui-datepicker-next:hover:after {
    border-left-color: #21759B;
    border-left-color: var(--tr-profile-color, #21759B);
  }

  .ui-datepicker-next {
    right: 2px;
  }

  .ui-datepicker-prev span,
  .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -8px;
    top: 50%;
    margin-top: -8px;
  }

  .ui-datepicker-title {
    margin: 0 2.3em;
    line-height: 1.8em;
    text-align: center;
    font-weight: normal;
    color: #333
  }

  .ui-datepicker-title select {
    font-size: 1em;
    margin: 1px 0;
  }

  select.ui-datepicker-month-year {
    width: 100%;
  }

  select.ui-datepicker-month,
  select.ui-datepicker-year {
    width: 49%;
  }

  table {
    width: 96%;
    font-size: .9em;
    border-collapse: collapse;
    margin:0 .4em .4em;
  }

  td {
    border: 0;
    padding: 1px;
  }

  td span,
  td a {
    display: block;
    padding: .2em;
    text-align: right;
    text-decoration: none;
  }

  .ui-datepicker-buttonpane {
    background-image: none;
    margin: .7em 0 0 0;
    padding:0 .2em;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .ui-datepicker-buttonpane button {
    float: right;
    margin: .5em .2em .4em;
    cursor: pointer;
    padding: .2em .6em .3em .6em;
    width: auto;
    overflow:visible;
  }

  .ui-datepicker-buttonpane button.ui-datepicker-current {
    float: left;
  }

}

.ui-datepicker.ui-datepicker-multi {
  width: auto;
}

.ui-datepicker-multi .ui-datepicker-group {
  float: left;
}

.ui-datepicker-multi .ui-datepicker-group table {
  width: 95%;
  margin: 0 auto .4em;
}

.ui-datepicker-multi-2 .ui-datepicker-group {
  width: 50%;
}

.ui-datepicker-multi-3 .ui-datepicker-group {
  width: 33.3%;
}

.ui-datepicker-multi-4 .ui-datepicker-group {
  width: 25%;
}

.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header {
  border-left-width: 0;
}

.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header {
  border-left-width: 0;
}

.ui-datepicker-multi .ui-datepicker-buttonpane {
  clear: left;
}

.ui-datepicker-row-break {
  clear: both;
  width: 100%;
  font-size: 0em;
}

/* RTL support */

.ui-datepicker-rtl {
  direction: rtl;
}

.ui-datepicker-rtl .ui-datepicker-prev {
  right: 2px;
  left: auto;
}

.ui-datepicker-rtl .ui-datepicker-next {
  left: 2px;
  right: auto;
}

.ui-datepicker-rtl .ui-datepicker-prev:hover {
  right: 1px;
  left: auto;
}

.ui-datepicker-rtl .ui-datepicker-next:hover {
  left: 1px;
  right: auto;
}

.ui-datepicker-rtl .ui-datepicker-buttonpane {
  clear: right;
}

.ui-datepicker-rtl .ui-datepicker-buttonpane button {
  float: left;
}

.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current {
  float: right;
}

.ui-datepicker-rtl .ui-datepicker-group {
  float: right;
}

.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header {
  border-right-width: 0;
  border-left-width: 1px;
}

.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header {
  border-right-width: 0;
  border-left-width: 1px;
}

/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
  display: none; /*sorry for IE5*/
  display/**/: block; /*sorry for IE5*/
  position: absolute; /*must have*/
  z-index: -1; /*must have*/
  filter: mask(); /*must have*/
  top: -4px; /*must have*/
  left: -4px; /*must have*/
  width: 200px; /*must have*/
  height: 200px; /*must have*/
}

.tr-datepicker-container th {
  color: gray;
  padding: .7em .3em;
  text-align: center;
  font-weight: normal;
  border: 0;
}

.ui-datepicker-today a:hover {
  background-color: #808080;
  color: #ffffff;

}
.ui-datepicker-today a {
  background-color: #BFBFBF;
  cursor: pointer;
  padding: 0 4px;
  margin-bottom: 0;
}

.tr-datepicker-container td a {
  margin-bottom: 0;
  border: 0;
}

.tr-datepicker-container td:hover {
  color: #ffffff;
}

.tr-datepicker-container td .ui-state-default {
  color: #333333;
  font-size: 13px;
  line-height: normal;
  border: 1px solid #ccc;
  border-bottom-color: #bbb;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); /* Safari 4 */
  -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); /* Firefox 3.6 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  -webkit-transition: 0.1s linear background-image;
  -moz-transition: 0.1s linear background-image;
  -o-transition: 0.1s linear background-image;
  transition: 0.1s linear background-image;
  overflow: visible;
  border: 0;
  background: #fff;
  margin-bottom: 0;
  padding: 5px;
  color: gray;
  text-align: center;
  filter: none;
}

.tr-datepicker-container td .ui-state-highlight{
  color: #404040;
  background: #ffeda4;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border-color: #eedc94 #eedc94 #e4c652;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.tr-datepicker-container td .ui-state-active {
  background: #bfbfbf;
  margin-bottom: 0;
  font-size: 1em;
  text-shadow: 0;
  color: #ffffff;
}

.tr-datepicker-container td .ui-state-hover {
  background-color: #21759B;
  background-color: var(--tr-profile-color, #21759B);
  border-color: #21759B;
  border-color: var(--tr-profile-color, #21759B);
  border-bottom-color: #1E6A8D;
  border-bottom-color: var(--tr-profile-color, #21759B);
  box-shadow: inset 0 1px 0 rgba(120, 200, 230, 0.5);
  box-shadow: inset 0 1px 0 var(--tr-profile-color, #7cc8e3);
  color: #FFF;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}


#ui-datepicker-div {
  background: #F5F5F5;
  border: 1px solid #dfdfdf;
  margin-top: 5px;
}