/**
 * Tempus Dominus Bootstrap 4 v5.1.2 (https://tempusdominus.github.io/bootstrap-4/)
 * Copyright 2016-2018 Jonathan Peterson
 * Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)
 */

/* ==========================================================================
   1. Accessibility / Screen-Reader Helpers
   ========================================================================== */

.sr-only,
.bootstrap-datetimepicker-widget .btn[data-action]::after,
.bootstrap-datetimepicker-widget .picker-switch::after,
.bootstrap-datetimepicker-widget table th.prev::after,
.bootstrap-datetimepicker-widget table th.next::after {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Screen-reader action labels */
.bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after   { content: "Increment Hours"; }
.bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after { content: "Increment Minutes"; }
.bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after   { content: "Decrement Hours"; }
.bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after { content: "Decrement Minutes"; }
.bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after        { content: "Show Hours"; }
.bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after      { content: "Show Minutes"; }
.bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after     { content: "Toggle AM/PM"; }
.bootstrap-datetimepicker-widget .btn[data-action="clear"]::after            { content: "Clear the picker"; }
.bootstrap-datetimepicker-widget .btn[data-action="today"]::after            { content: "Set the date to today"; }
.bootstrap-datetimepicker-widget .picker-switch::after                       { content: "Toggle Date and Time Screens"; }
.bootstrap-datetimepicker-widget table th.prev::after                        { content: "Previous Month"; }
.bootstrap-datetimepicker-widget table th.next::after                        { content: "Next Month"; }

/* ==========================================================================
   2. Base Container & Dropdown Popover
   ========================================================================== */

.bootstrap-datetimepicker-widget {
  list-style: none;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  display: block;
  width: 14rem;
  margin: 0;
  padding: 0;
}

.bootstrap-datetimepicker-widget.dropdown-menu.wider {
  width: 16rem;
}

/* Side-by-side timepicker view */
@media (min-width: 576px) {
  .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs {
    width: 38em;
  }
}

/* Popover Arrow Base */
.bootstrap-datetimepicker-widget.dropdown-menu::before,
.bootstrap-datetimepicker-widget.dropdown-menu::after {
  content: "";
  display: inline-block;
  position: absolute;
}

/* Bottom placement arrow */
.bootstrap-datetimepicker-widget.dropdown-menu.bottom::before {
  top: -7px;
  left: 7px;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(0, 0, 0, 0.2);
  border-left: 7px solid transparent;
}

.bootstrap-datetimepicker-widget.dropdown-menu.bottom::after {
  top: -6px;
  left: 8px;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
  border-left: 6px solid transparent;
}

/* Top placement arrow */
.bootstrap-datetimepicker-widget.dropdown-menu.top::before {
  bottom: -7px;
  left: 6px;
  border-top: 7px solid rgba(0, 0, 0, 0.2);
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
}

.bootstrap-datetimepicker-widget.dropdown-menu.top::after {
  bottom: -6px;
  left: 7px;
  border-top: 6px solid #fff;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}

/* Right-aligned arrow */
.bootstrap-datetimepicker-widget.dropdown-menu.float-right::before {
  right: 6px;
  left: auto;
}

.bootstrap-datetimepicker-widget.dropdown-menu.float-right::after {
  right: 7px;
  left: auto;
}

/* ==========================================================================
   3. Action Controls & Headers
   ========================================================================== */

.bootstrap-datetimepicker-widget .list-unstyled {
  margin: 0;
}

.bootstrap-datetimepicker-widget a[data-action] {
  padding: 6px 0;
}

.bootstrap-datetimepicker-widget a[data-action]:active {
  box-shadow: none;
}

.bootstrap-datetimepicker-widget button[data-action] {
  padding: 6px;
}

.bootstrap-datetimepicker-widget .timepicker-hour,
.bootstrap-datetimepicker-widget .timepicker-minute,
.bootstrap-datetimepicker-widget .timepicker-second {
  width: 54px;
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.bootstrap-datetimepicker-widget .picker-switch {
  text-align: center;
}

.bootstrap-datetimepicker-widget .picker-switch td {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.bootstrap-datetimepicker-widget .picker-switch td span {
  width: 100%;
  height: 2.5em;
  line-height: 2.5;
}

/* ==========================================================================
   4. Table Layout & Cells
   ========================================================================== */

.bootstrap-datetimepicker-widget table {
  width: 100%;
  margin: 0;
}

.bootstrap-datetimepicker-widget table th,
.bootstrap-datetimepicker-widget table td {
  text-align: center;
  border-radius: 0.25rem;
}

/* Table Headers */
.bootstrap-datetimepicker-widget table th {
  width: 20px;
  height: 20px;
  line-height: 20px;
}

.bootstrap-datetimepicker-widget table th.picker-switch {
  width: 145px;
}

.bootstrap-datetimepicker-widget table thead tr:first-child th {
  cursor: pointer;
}

.bootstrap-datetimepicker-widget table thead tr:first-child th:hover {
  background: #e9ecef;
}

/* Table Cells */
.bootstrap-datetimepicker-widget table td {
  width: 54px;
  height: 54px;
  line-height: 54px;
}

.bootstrap-datetimepicker-widget table td.cw,
.bootstrap-datetimepicker-widget table td.day {
  width: 20px;
  height: 20px;
  line-height: 20px;
}

.bootstrap-datetimepicker-widget table td.cw {
  font-size: 0.8em;
  color: #6c757d;
}

.bootstrap-datetimepicker-widget table td.day:hover,
.bootstrap-datetimepicker-widget table td.hour:hover,
.bootstrap-datetimepicker-widget table td.minute:hover,
.bootstrap-datetimepicker-widget table td.second:hover,
.bootstrap-datetimepicker-widget table td span:hover {
  background: #e9ecef;
  cursor: pointer;
}

/* Year / Month Selector Spans */
.bootstrap-datetimepicker-widget table td span {
  display: inline-block;
  width: 54px;
  height: 54px;
  line-height: 54px;
  margin: 2px 1.5px;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* 24-Hour Layout Modification */
.bootstrap-datetimepicker-widget.usetwentyfour td.hour {
  height: 27px;
  line-height: 27px;
}

/* Input group trigger */
.input-group [data-toggle="datetimepicker"] {
  cursor: pointer;
}

/* ==========================================================================
   5. Interactive States (Active, Today, Disabled)
   ========================================================================== */

/* Previous & Next Months */
.bootstrap-datetimepicker-widget table td.old,
.bootstrap-datetimepicker-widget table td.new,
.bootstrap-datetimepicker-widget table td span.old {
  color: #6c757d;
}

/* Today Indicator Triangle */
.bootstrap-datetimepicker-widget table td.today {
  position: relative;
}

.bootstrap-datetimepicker-widget table td.today::before {
  content: "";
  display: inline-block;
  position: absolute;
  right: 4px;
  bottom: 4px;
  border: solid transparent;
  border-width: 0 0 7px 7px;
  border-top-color: rgba(0, 0, 0, 0.2);
  border-bottom-color: #007bff;
}

/* Active / Selected State */
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active {
  color: #fff;
  background-color: #007bff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.bootstrap-datetimepicker-widget table td.active.today::before {
  border-bottom-color: #fff;
}

/* Disabled State */
.bootstrap-datetimepicker-widget table th.disabled,
.bootstrap-datetimepicker-widget table th.disabled:hover,
.bootstrap-datetimepicker-widget table td.disabled,
.bootstrap-datetimepicker-widget table td.disabled:hover,
.bootstrap-datetimepicker-widget table td span.disabled,
.bootstrap-datetimepicker-widget table td span.disabled:hover {
  color: #6c757d;
  background: none;
  cursor: not-allowed;
}