$dtp-today-bg: $brand-info;
$dtp-today-color: $gray-dark;
$dtp-today-border: darken($dtp-today-bg, 20%);

.datetimepicker {
    padding: 4px;
    margin-top: 1px;
    white-space: normal;
    -webkit-border-radius: $border-radius-base;
    -moz-border-radius: $border-radius-base;
    border-radius: $border-radius-base;
    direction: ltr;
    &.datetimepicker-rtl {
        direction: rtl;
        table {
            tr {
                td {
                    span {
                        float: right;
                    }
                }
            }
        }
    }
    & > div {
        display: none;
    }
    &.minutes {
        div {
            &.datetimepicker-minutes {
                display: block;
            }
        }
    }
    &.hours {
        div {
            &.datetimepicker-hours {
                display: block;
            }
        }
    }
    &.days {
        div {
            &.datetimepicker-days {
                display: block;
            }
        }
    }
    &.months {
        div {
            &.datetimepicker-months {
                display: block;
            }
        }
    }
    &.years {
        div {
            &.datetimepicker-years {
                display: block;
            }
        }
    }
    table {
        margin: 0;
        tr {
            td {
                &.minute {
                    &:hover {
                        background: $gray-lighter;
                        cursor: pointer;
                    }
                }
                &.hour {
                    &:hover {
                        background: $gray-lighter;
                        cursor: pointer;
                    }
                }
                &.day {
                    &:hover {
                        background: $gray-lighter;
                        cursor: pointer;
                    }
                }
                span {
                    display: block;
                    width: 23%;
                    height: 54px;
                    line-height: 54px;
                    float: left;
                    margin: 1%;
                    cursor: pointer;
                    -webkit-border-radius: $border-radius-base;
                    -moz-border-radius: $border-radius-base;
                    border-radius: $border-radius-base;
                    &:hover {
                        background: $gray-lighter;
                    }
                    &.old {
                        color: $btn-link-disabled-color;
                    }
                }
            }
        }
    }
    .datetimepicker-hours {
        span {
            height: 26px;
            line-height: 26px;
        }
    }
    .datetimepicker-minutes {
        span {
            height: 26px;
            line-height: 26px;
        }
    }
    th {
        &.switch {
            width: 145px;
        }
    }
}
.datetimepicker-inline {
    width: 220px;
}
.datetimepicker-dropdown, .datetimepicker-dropdown-left {
    top: 0;
    left: 0;
}
[class*="datetimepicker-dropdown"]:before {
    content: '';
    display: inline-block;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid $dropdown-border;
    position: absolute;
}
[class*="datetimepicker-dropdown"]:after {
    content: '';
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid $dropdown-bg;
    position: absolute;
}
[class*="datetimepicker-dropdown-top"]:before {
    content: '';
    display: inline-block;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid $dropdown-border;
    border-bottom: 0;
}
[class*="datetimepicker-dropdown-top"]:after {
    content: '';
    display: inline-block;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid $dropdown-bg;
    border-bottom: 0;
}
.datetimepicker-dropdown-bottom-left {
    &:before {
        top: -7px;
        right: 6px;
    }
    &:after {
        top: -6px;
        right: 7px;
    }
}
.datetimepicker-dropdown-bottom-right {
    &:before {
        top: -7px;
        left: 6px;
    }
    &:after {
        top: -6px;
        left: 7px;
    }
}
.datetimepicker-dropdown-top-left {
    &:before {
        bottom: -7px;
        right: 6px;
    }
    &:after {
        bottom: -6px;
        right: 7px;
    }
}
.datetimepicker-dropdown-top-right {
    &:before {
        bottom: -7px;
        left: 6px;
    }
    &:after {
        bottom: -6px;
        left: 7px;
    }
}
.datetimepicker  td,
.datetimepicker th {
    text-align: center;
    width: 30px;
    height: 30px;
    -webkit-border-radius: $border-radius-base;
    -moz-border-radius: $border-radius-base;
    border-radius: $border-radius-base;
    border: none;
}
.table-striped .datetimepicker table tr td,
.table-striped .datetimepicker table tr th {
    background-color: transparent;
}
.datetimepicker table tr td.old,
.datetimepicker table tr td.new {
    color: $btn-link-disabled-color;
}
.datetimepicker table tr td.disabled,
.datetimepicker table tr td.disabled:hover {
    background: none;
    color: $btn-link-disabled-color;
    cursor: default;
}
.datetimepicker table tr td.today,
.datetimepicker table tr td.today:hover,
.datetimepicker table tr td.today.disabled,
.datetimepicker table tr td.today.disabled:hover {
    background-color: $dtp-today-bg;
    background-image: -moz-linear-gradient(top, $dtp-today-bg, $dtp-today-bg);
    background-image: -ms-linear-gradient(top, $dtp-today-bg, $dtp-today-bg);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from($dtp-today-bg), to($dtp-today-bg));
    background-image: -webkit-linear-gradient(top, $dtp-today-bg, $dtp-today-bg);
    background-image: -o-linear-gradient(top, $dtp-today-bg, $dtp-today-bg);
    background-image: linear-gradient(top, $dtp-today-bg, $dtp-today-bg);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$dtp-today-bg', endColorstr='$dtp-today-bg', GradientType=0);
    border-color: $dtp-today-bg $dtp-today-bg $dtp-today-bg;
    //border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.datetimepicker table tr td.today:hover,
.datetimepicker table tr td.today:hover:hover,
.datetimepicker table tr td.today.disabled:hover,
.datetimepicker table tr td.today.disabled:hover:hover,
.datetimepicker table tr td.today:active,
.datetimepicker table tr td.today:hover:active,
.datetimepicker table tr td.today.disabled:active,
.datetimepicker table tr td.today.disabled:hover:active,
.datetimepicker table tr td.today.active,
.datetimepicker table tr td.today:hover.active,
.datetimepicker table tr td.today.disabled.active,
.datetimepicker table tr td.today.disabled:hover.active,
.datetimepicker table tr td.today.disabled,
.datetimepicker table tr td.today:hover.disabled,
.datetimepicker table tr td.today.disabled.disabled,
.datetimepicker table tr td.today.disabled:hover.disabled,
.datetimepicker table tr td.today[disabled],
.datetimepicker table tr td.today:hover[disabled],
.datetimepicker table tr td.today.disabled[disabled],
.datetimepicker table tr td.today.disabled:hover[disabled] {
    background-color: $dtp-today-bg;
}
.datetimepicker table tr td.today:active,
.datetimepicker table tr td.today:hover:active,
.datetimepicker table tr td.today.disabled:active,
.datetimepicker table tr td.today.disabled:hover:active,
.datetimepicker table tr td.today.active,
.datetimepicker table tr td.today:hover.active,
.datetimepicker table tr td.today.disabled.active,
.datetimepicker table tr td.today.disabled:hover.active {
    background-color: $dtp-today-bg \9;
}
.datetimepicker table tr td.active,
.datetimepicker table tr td.active:hover,
.datetimepicker table tr td.active.disabled,
.datetimepicker table tr td.active.disabled:hover {
    background-color: $btn-primary-bg;
    background-image: -moz-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: -ms-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from($btn-primary-bg), to($btn-primary-bg));
    background-image: -webkit-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: -o-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$btn-primary-bg', endColorstr='$btn-primary-bg', GradientType=0);
    border-color: $btn-primary-bg $btn-primary-bg $btn-primary-bg;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    color: $btn-primary-color;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datetimepicker table tr td.active:hover,
.datetimepicker table tr td.active:hover:hover,
.datetimepicker table tr td.active.disabled:hover,
.datetimepicker table tr td.active.disabled:hover:hover,
.datetimepicker table tr td.active:active,
.datetimepicker table tr td.active:hover:active,
.datetimepicker table tr td.active.disabled:active,
.datetimepicker table tr td.active.disabled:hover:active,
.datetimepicker table tr td.active.active,
.datetimepicker table tr td.active:hover.active,
.datetimepicker table tr td.active.disabled.active,
.datetimepicker table tr td.active.disabled:hover.active,
.datetimepicker table tr td.active.disabled,
.datetimepicker table tr td.active:hover.disabled,
.datetimepicker table tr td.active.disabled.disabled,
.datetimepicker table tr td.active.disabled:hover.disabled,
.datetimepicker table tr td.active[disabled],
.datetimepicker table tr td.active:hover[disabled],
.datetimepicker table tr td.active.disabled[disabled],
.datetimepicker table tr td.active.disabled:hover[disabled] {
    background-color: $btn-primary-bg;
}
.datetimepicker table tr td.active:active,
.datetimepicker table tr td.active:hover:active,
.datetimepicker table tr td.active.disabled:active,
.datetimepicker table tr td.active.disabled:hover:active,
.datetimepicker table tr td.active.active,
.datetimepicker table tr td.active:hover.active,
.datetimepicker table tr td.active.disabled.active,
.datetimepicker table tr td.active.disabled:hover.active {
    background-color: $brand-primary \9;
}
.datetimepicker .datetimepicker-hours table tr td span.hour_am,
.datetimepicker .datetimepicker-hours table tr td span.hour_pm {
    width: 14.6%;
}
.datetimepicker .datetimepicker-hours fieldset legend,
.datetimepicker .datetimepicker-minutes fieldset legend {
    margin-bottom: inherit;
    line-height: 30px;
}
.datetimepicker table tr td span.disabled,
.datetimepicker table tr td span.disabled:hover {
    background: none;
    color: $btn-link-disabled-color;
    cursor: default;
}
.datetimepicker table tr td span.active,
.datetimepicker table tr td span.active:hover,
.datetimepicker table tr td span.active.disabled,
.datetimepicker table tr td span.active.disabled:hover {
    background-color: $btn-primary-bg;
    background-image: -moz-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: -ms-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from($btn-primary-bg), to($btn-primary-bg));
    background-image: -webkit-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: -o-linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-image: linear-gradient(top, $btn-primary-bg, $btn-primary-bg);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$btn-primary-bg', endColorstr='$btn-primary-bg', GradientType=0);
    border-color: $btn-primary-bg $btn-primary-bg $btn-primary-bg;
    //border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    color: $btn-primary-color;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.datetimepicker table tr td span.active:hover,
.datetimepicker table tr td span.active:hover:hover,
.datetimepicker table tr td span.active.disabled:hover,
.datetimepicker table tr td span.active.disabled:hover:hover,
.datetimepicker table tr td span.active:active,
.datetimepicker table tr td span.active:hover:active,
.datetimepicker table tr td span.active.disabled:active,
.datetimepicker table tr td span.active.disabled:hover:active,
.datetimepicker table tr td span.active.active,
.datetimepicker table tr td span.active:hover.active,
.datetimepicker table tr td span.active.disabled.active,
.datetimepicker table tr td span.active.disabled:hover.active,
.datetimepicker table tr td span.active.disabled,
.datetimepicker table tr td span.active:hover.disabled,
.datetimepicker table tr td span.active.disabled.disabled,
.datetimepicker table tr td span.active.disabled:hover.disabled,
.datetimepicker table tr td span.active[disabled],
.datetimepicker table tr td span.active:hover[disabled],
.datetimepicker table tr td span.active.disabled[disabled],
.datetimepicker table tr td span.active.disabled:hover[disabled] {
    background-color: $btn-primary-bg;
}
.datetimepicker table tr td span.active:active,
.datetimepicker table tr td span.active:hover:active,
.datetimepicker table tr td span.active.disabled:active,
.datetimepicker table tr td span.active.disabled:hover:active,
.datetimepicker table tr td span.active.active,
.datetimepicker table tr td span.active:hover.active,
.datetimepicker table tr td span.active.disabled.active,
.datetimepicker table tr td span.active.disabled:hover.active {
    background-color: $brand-primary \9;
}
.datetimepicker thead tr:first-child th,
.datetimepicker tfoot tr:first-child th {
    cursor: pointer;
}
.datetimepicker thead tr:first-child th:hover,
.datetimepicker tfoot tr:first-child th:hover {
    background: $gray-lighter;
}
.input-append.date .add-on i,
.input-prepend.date .add-on i {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

