/*
  All a user has to do to change the calendar size is
  change the font-size on the container and everything
  magically resizes accordingly. Relative units ftw!
*/
.qs-datepicker-container {
    font-size: 1rem;
    font-family: sans-serif;
    color: black;
    position: absolute;
    width: 15.625em;
    display: flex;
    flex-direction: column;
    z-index: 9001;
    user-select: none;
    border: 1px solid gray;
    border-radius: 0.263921875em;
    overflow: hidden;
    background: white;
    box-shadow: 0 1.25em 1.25em -0.9375em rgba(0, 0, 0, 0.3);
}
.qs-datepicker-container * {
    box-sizing: border-box;
}

.qs-centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.qs-hidden {
    display: none;
}

.qs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    width: 100%;
    height: 100%;
    padding: 0.5em;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
}
.qs-overlay.qs-hidden {
    opacity: 0;
    z-index: -1;
}
.qs-overlay .qs-overlay-year {
    border: none;
    background: transparent;
    border-bottom: 1px solid white;
    border-radius: 0;
    color: white;
    font-size: 0.875em;
    padding: 0.25em 0;
    width: 80%;
    text-align: center;
    margin: 0 auto;
    display: block;
}
.qs-overlay .qs-overlay-year::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.qs-overlay .qs-close {
    padding: 0.5em;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
}
.qs-overlay .qs-submit {
    border: 1px solid white;
    border-radius: 0.263921875em;
    padding: 0.5em;
    margin: 0 auto auto;
    cursor: pointer;
    background: rgba(128, 128, 128, 0.4);
}
.qs-overlay .qs-submit.qs-disabled {
    color: gray;
    border-color: gray;
    cursor: not-allowed;
}
.qs-overlay .qs-overlay-month-container {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
}
.qs-overlay .qs-overlay-month {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% / 3);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.qs-overlay .qs-overlay-month.active, .qs-overlay .qs-overlay-month:hover {
    opacity: 1;
}

.qs-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 0;
    background: lightgray;
    filter: blur(0px);
    transition: filter 0.3s;
}
.qs-controls.qs-blur {
    filter: blur(5px);
}

.qs-arrow {
    height: 1.5625em;
    width: 1.5625em;
    position: relative;
    cursor: pointer;
    border-radius: 0.263921875em;
    transition: background 0.15s;
}
.qs-arrow:hover.qs-left:after {
    border-right-color: black;
}
.qs-arrow:hover.qs-right:after {
    border-left-color: black;
}
.qs-arrow:hover {
    background: rgba(0, 0, 0, 0.1);
}
.qs-arrow:after {
    content: "";
    border: 0.390625em solid transparent;
    position: absolute;
    top: 50%;
    transition: border 0.2s;
}
.qs-arrow.qs-left:after {
    border-right-color: gray;
    right: 50%;
    transform: translate(25%, -50%);
}
.qs-arrow.qs-right:after {
    border-left-color: gray;
    left: 50%;
    transform: translate(-25%, -50%);
}

.qs-month-year {
    font-weight: bold;
    transition: border 0.2s;
    border-bottom: 1px solid transparent;
}
.qs-month-year:not(.qs-disabled-year-overlay) {
    cursor: pointer;
}
.qs-month-year:not(.qs-disabled-year-overlay):hover {
    border-bottom: 1px solid gray;
}
.qs-month-year:focus, .qs-month-year:active:focus {
    outline: none;
}

.qs-month {
    padding-right: 0.5ex;
}

.qs-year {
    padding-left: 0.5ex;
}

.qs-squares {
    display: flex;
    flex-wrap: wrap;
    padding: 0.3125em;
    filter: blur(0px);
    transition: filter 0.3s;
}
.qs-squares.qs-blur {
    filter: blur(5px);
}

.qs-square {
    width: calc(100% / 7);
    height: 1.5625em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s;
    border-radius: 0.263921875em;
}
.qs-square:not(.qs-empty):not(.qs-disabled):not(.qs-day):not(.qs-active):hover {
    background: orange;
}

.qs-current {
    font-weight: bold;
    text-decoration: underline;
}

/*
  3 possibilities:
    1. Single, active date.
    2. Daterange start selection.
    3. Daterange end selection.
*/
.qs-active,
.qs-range-start,
.qs-range-end {
    background: lightblue;
}

.qs-range-start:not(.qs-range-6) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.qs-range-middle {
    background: #d4ebf2;
}
.qs-range-middle:not(.qs-range-0):not(.qs-range-6) {
    border-radius: 0;
}
.qs-range-middle.qs-range-0 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.qs-range-middle.qs-range-6 {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.qs-range-end:not(.qs-range-0) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.qs-disabled,
.qs-outside-current-month {
    opacity: 0.2;
}

.qs-disabled {
    cursor: not-allowed;
}

.qs-empty {
    cursor: default;
}

.qs-day {
    cursor: default;
    font-weight: bold;
    color: gray;
}

.qs-event {
    position: relative;
}
.qs-event:after {
    content: "";
    position: absolute;
    width: 0.46875em;
    height: 0.46875em;
    border-radius: 50%;
    background: #07f;
    bottom: 0;
    right: 0;
}