// =============================================================================
// DATEPICKER.SCSS
// -----------------------------------------------------------------------------
// Admin styles.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Container
//   02. Header
//   03. Previous / Next Buttons
//   04. Calendar
//   05. Right to Left
// =============================================================================

// Container
// =============================================================================

.ui-datepicker {
  display: none;
  border: 1px solid #ddd;
  padding: 5px;
  width: 275px;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  background-color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}



// Header
// =============================================================================

.ui-datepicker .ui-datepicker-header {
  position: relative;
  margin-bottom: 5px;
  height: 24px;
  line-height: 24px;
}

.ui-datepicker .ui-datepicker-title {
  margin: 0 35px;
  line-height: 26px;
  text-align: center;
}



// Previous / Next Buttons
// =============================================================================

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute;
  top: 2px;
  width: 24px;
  height: 24px;
  text-align: center;
  color: #444;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.ui-datepicker .ui-datepicker-prev:before,
.ui-datepicker .ui-datepicker-next:before {
  display: inline-block;
  font-family: 'dashicons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 24px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  cursor: pointer;
  opacity: 1;
}

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

.ui-datepicker .ui-datepicker-prev:before {
  content: "\f141";
}

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

.ui-datepicker .ui-datepicker-next:before {
  content: "\f139";
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none;
}



// Calendar
// =============================================================================

.ui-datepicker table {
  width: calc(100% - 1px);
  font-size: 12px;
  border-collapse: collapse;
}

.ui-datepicker th {
  border: 0;
  padding: 8px 0;
  text-align: center;
  color: #c5c5c5;
}

.ui-datepicker td {
  border: 1px solid #ddd;
  padding: 0;
  width: 14.275%;
  text-align: center;
  background-color: #fff;
}

.ui-datepicker td span,
.ui-datepicker td a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #c5c5c5;
}

.ui-datepicker td a:hover {
  color: #444;
}

.ui-datepicker td a.ui-state-active {
  color: #fff;
  background-color: #444;
}



// Right to Left
// =============================================================================

.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;
}