:root {
  --main-color: #c71622;
  --secondary-color: #820e16;
  --main-menu-item-focus-shadow: 0 0 0 0.2rem rgba(0, 214, 215, 0.9);
  --focus-color: rgba(0, 214, 215, 0.9);
}
.prevMonth::before {
    content: '\f104';
    font-family: fontawesome;
    display: block;
}
.prevYear::before {
    content: '\f100';
    font-family: fontawesome;
    display: block;
}
.nextMonth::before {
    content: '\f105';
    font-family: fontawesome;
    display: block;
}
.nextYear::before {
    content: '\f101';
    font-family: fontawesome;
    display: block;
}
.datepicker-block{
  overflow: unset!important;
}
.datepicker {
  position: relative;
  overflow: unset!important;
  float: none !important;
  margin-bottom: 5px;
}
.datepicker .date{
  width:100%;
}.datepicker label {
  display: inline-block;
  margin-top: 10px;
}
.datepicker button.icon {
  padding: 0;
  margin: 0;
  text-align: left;
  background-color: transparent;
  position: relative;
  top: 6px;
  border: none;
  display: inline-block;
  transform: translateY(-5px);
  padding: 5px;
}
.datepicker button.icon:focus {
  outline: none;
  border-color: var(--main-color);
  border-radius: 0px;
}
.datepicker button.calendar-icon::before {
  display: block;
  content: "\f073";
  font-family: "fontawesome";
  color: var(--main-text-color);
}
.datepicker span.arrow {
  margin: 0;
  padding: 0;
  display: none;
  background: transparent;
}

.datepicker input {
  margin: 0;
  width: 20%;
}

.datepicker .datepickerDialog {
  position: absolute;
  width: auto;
  clear: both;
  display: none;
  border: 2px solid var(--main-color);
  margin-top: 1em; 
  padding: 0;
  background-color: var(--main-background);
  margin: 0;
  left: 33%;
  transform: translateY(-1.2rem);
}
@media screen and (max-width: 767.8px) {
  .datepicker .datepickerDialog {
  left: -15px;
  }
}
  

.datepicker .header {
  cursor: default;
  background-color: var(--main-color);
  padding: 7px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  justify-content: space-around;
  align-items:center;
}

.datepicker .header h2 {
  margin: 0;
  padding: 0;
  display: inline-block;
  font-size: 1em;
  color: var(--white);
  text-transform: none;
  font-weight: bold;
  flex: 0 0 50%;
}

.datepicker .header button {
  border-style: none;
  background: transparent;
}

.datepicker .datepickerDialog button::-moz-focus-inner {
  border: 0;
}

.datepicker .prevYear,
.datepicker .prevMonth,
.datepicker .nextMonth,
.datepicker .nextYear {
  padding: 4px 8px;
  color: var(--white);
}

.datepicker .prevYear:focus,
.datepicker .prevMonth:focus,
.datepicker .nextMonth:focus,
.datepicker .nextYear:focus {
  border-radius: 4px;
  outline: 0;
  box-shadow: var(--main-menu-item-focus-shadow);
}

.datepicker .dialogButtonGroup {
  text-align: right;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-right: 1em;
}

.datepicker .dialogButton {
  padding: 5px;
  margin-left: 16px;
  width: 80px;
  background-color: var(--main-bg-color);
  font-size: 13.6px;
  color: #fff;
  outline: none;
  border: 1px solid var(--main-bg-color);
 
}
.datepicker .dialogButton:focus{
  padding: 5px!important;
}

.datepicker .dialogButton:focus {
  padding: 4px;
  border: 2px solid black;
}

.datepicker .fa-calendar-alt {
  color: hsl(216, 89%, 72%);
}

.datepicker .monthYear {
  display: inline-block;
  text-align: center;
}

.datepicker table.dates {
  width: 100%;
  margin-top: 16px;
}

.datepicker table.dates th,
.datepicker table.dates td {
  text-align: center;
}

.datepicker .dateCell {
  outline: 0;
  border: 0;
  padding: 1px;
  margin: 0;
  height: 40px;
  width: 40px;
}

.datepicker .dateButton {
  padding: 0;
  margin: 0;
  line-height: inherit;
  height: 100%;
  width: 100%;
  border: 1px solid #eee; 
  font-size: 15px;
  background: #eee;
}

.datepicker .dateButton:focus,
.datepicker .dateButton:hover {
  padding: 0;
  background-color: var(--main-bg-color);
  color:#fff;
}

.datepicker .dateButton:focus {
  border-width: 2px;
  border-color: var(--focus-color);
  outline: 0;
  box-shadow: none;
}

.datepicker .dateButton[aria-selected] {
  border-color: rgb(100, 100, 100);
}

.datepicker .dateButton[tabindex="0"] {
  background-color: var(--main-bg-color);
  color: #fff;
}

.datepicker .disabled {
  pointer-events: none;
}

.datepicker .disabled:hover {
  color: #fff;
}

.datepicker .dateButton:disabled {
  color: #777;
  background-color: #fff;
  border: none;
  cursor: not-allowed;
}

.datepicker .message {
  padding: 0.75em;
  height: 3.85em;
  background: var(--main-color);
  color: var(--white);
}
@media screen and (max-width: 600px) {
  .datepicker .datepickerDialog {
    width: calc(100% + 30px);
  }
}
