.calendar-widget {
    padding: 20px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.calendar-widget .month-picker {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    height: 45px;
}

.calendar-widget .month-picker .nav-link {
    flex-shrink: 0;
    width: 45px;
    background: #f1f1f1;
    cursor: pointer;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 15px;
}

.calendar-widget .month-picker .month-year {
    flex-grow: 1;
    align-self: center;
    text-align: center;
}

.calendar-widget table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

.calendar-widget th {
    font-size: 15px;
}

.calendar-widget td {
    font-size: 14px;
}

.calendar-widget th,
.calendar-widget td {
    position: relative;
    text-align: center;
    width: 45px;
}

.calendar-widget th::after,
.calendar-widget td::after {
    content: '';
    display: block;
    margin-top: 100%;
}

.calendar-widget th > .label,
.calendar-widget td > .label {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.calendar-widget td.out-of-month {
    color: #e1e4e7;
}

.calendar-widget td.out-of-month.has-event {
    color: #000;
    background: #fff;
}

.calendar-widget td:not(.out-of-month).has-event {
    color: #fff;
    background: #888;
}
.calendar-widget td:not(.out-of-month).in-range {
    background-color: #eaeaea;
}

.calendar-widget td:not(.out-of-month):hover,
.calendar-widget td:not(.out-of-month):focus {
    background-color: #aaa;
    color: #000;
}

.calendar-widget .legend .dot {
    margin-left: 5px;
}

.calendar-widget .legend .dot::before {
    display: inline-block;
    content: '';
    width: 1em;
    height: 1em;
    border-radius: 1em;
    background-color: black;
    vertical-align: top;
    margin-right: 0.4em;
}
.calendar-widget .legend .event::before {
    background-color: #f38a00;
}

.calendar-widget .legend .selected::before {
    background-color: #eaeaea;
}

.calendar-widget .legend .today::before {
    background-color: #fff;
    border: 1px solid #f38a00;
}

.calendar-widget .legend,
.calendar-widget .jump-links {
    display: flex;
    font-size: 14px;
    line-height: 1;
    align-items: center;
    margin: 10px 0;
    padding: 0 3px;
}

.calendar-widget .legend .label,
.calendar-widget .jump-links .label {
    font-weight: bold;
    flex-grow: 1;
}

.calendar-widget .jump-links a {
    background-color: #bbbcbc;
    border-radius: 4px;
    padding: 5px 6px;
    margin-left: 8px;
    text-transform: uppercase;
    color: #000;
}

.calendar-widget .jump-links a:hover,
.calendar-widget .jump-links a:focus {
    background-color: #eaeaea;
    color: #333d47;
}

.calendar-widget hr {
    width: 100%;
    border: none;
    border-bottom: 1px solid #dddede;
}
