:root {
    --map-width: 600px;
    
    --booking-color-available: #ccc;
    --booking-color-available-text: #000;
    --booking-color-available-bg: #fefefe;
    --booking-color-available-fg: #000;

    --booking-color-pending: #ffd500;
    --booking-color-pending-text: #000;
    --booking-color-pending-bg: #ffd50054;
    --booking-color-pending-fg: #000;

    --booking-color-confirmed: #2585e6;
    --booking-color-confirmed-text: #fff;
    --booking-color-confirmed-bg: #2585e654;
    --booking-color-confirmed-fg: #000;

    --booking-color-checked-in: #23b719;
    --booking-color-checked-in-text: #fff;
    --booking-color-checked-in-bg: #23b71954;
    --booking-color-checked-in-fg: #000;

    --booking-color-invalid: #ff2828;
    --booking-color-invalid-text: #fff;
    --booking-color-invalid-bg: #ff282854;
    --booking-color-invalid-fg: #000;

    --booking-color-archived: #d6d6d6;
    --booking-color-archived-text: #868686;
    --booking-color-archived-bg: #fafafa54;
    --booking-color-archived-fg: #868686;

    --booking-color-unavailable: #525252;
    --booking-color-unavailable-text: #d6d6d6;
    --booking-color-unavailable-bg: #86868654;
    --booking-color-unavailable-fg: #fafafa;
}

ul.key {
    list-style-type: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

ul.key li::before {
    display: inline-block;
    content: '';
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0.1em 0;
    box-shadow: inset 0 0 0px 1px #0003;
    background-size: cover;
    border-radius: 4px;
}

.use-shapes ul.key li::before
{
    border-radius: 0;
}

ul.key li.available::before {
    background-color: var(--booking-color-available);
}

ul.key li.pending::before {
    background-color: var(--booking-color-pending);
}

ul.key li.confirmed::before {
    background-color: var(--booking-color-confirmed);
}

ul.key li.checked-in::before {
    background-color: var(--booking-color-checked-in);
}

ul.key li.invalid::before {
    background-color: var(--booking-color-invalid);
}

ul.key li.unavailable::before {
    background-color: var(--booking-color-unavailable);
}

ul.key li::before {
    
}

body.use-shapes ul.key li::before {
    background-color: transparent;
    box-shadow: none;
}

body.use-shapes ul.key li.available::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="transparent" stroke-width="2.5" stroke="%23000"/></svg>');
}

body.use-shapes ul.key li.pending::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="1" y="1" width="30" height="30" fill="%23ffd500" stroke-width="3" stroke="%23000"/><text x="16" y="24" font-family="Arial" font-weight="bold" font-size="22" text-anchor="middle" fill="%23000">?</text></svg>');
}

body.use-shapes ul.key li.confirmed::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="1" y="1" width="30" height="30" fill="%23E1EBFA" stroke-width="2" stroke="%23004"/></svg>');
}


body.use-shapes ul.key li.checked-in::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="1" y="1" width="30" height="30" fill="%23C2E1BB" stroke-width="2" stroke="%23070"/><path d="M9 17 L15 23 L24 8" stroke="%23000" stroke-width="3" fill="none"/></svg>');
}


body.use-shapes ul.key li.invalid::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><polygon points="16,1 1,31 31,31" fill="%23faa" stroke-width="2" stroke="%23700"/><text x="16" y="27" font-family="Courier" font-size="24" font-weight="bold" text-anchor="middle" fill="%23000">!</text></svg>');
}


body.use-shapes ul.key li.unavailable::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="15" fill="%23eee" stroke-width="2" stroke="%23aaa" /><line x1="8" y1="8" x2="24" y2="24" stroke="%23000" stroke-width="3"/><line x1="24" y1="8" x2="8" y2="24" stroke="%23000" stroke-width="3"/></svg>');

}



body {
    font-family: sans-serif;
    background-color: #edede3;
    margin: 0;
}

a {
    color: #8b0b09;
    text-decoration: none;
}

a.button {
    color: #edede3;
    background: linear-gradient(to bottom, #D83A27, #7F1C14);
    box-shadow: 0 2px 5px #0005;

    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.6em;
    margin: -0.15em 0.1em;
    border-radius: 4px;
    
    cursor: pointer;
    user-select: none;
}

a.button.icon-only {
    background-color: transparent;
    color: #8b0b09;
}

a.button svg {
    position: relative;
    vertical-align: middle;
    height: 1.3em;
    fill: currentColor;
}

a.button svg + span {
    /* transform: translateY(1px); */
    margin-left: 5px;
}

a.button.icon-only svg {
    height: 1.7em;
}

section.error-section {
    padding: 0px; /* completely replace the section contents with the error list */
}

section.error-section.errAnimate {
    animation: errorSectionAnimate 0.5s forwards;
}

@keyframes errorSectionAnimate {
    0% {
        transform: scaleY(0);
    }
    50% {
        transform: scaleY(1.5);
    }
    100% {
        transform: scaleY(1);
    }
}


section.error-section.hidden {
    display: none;
}

ul.error-list,
ul.warning-list {
    margin: 1em 0;
    padding: 1em 1em 1em 2em;
    
    border: 1px solid #ec2212;
    border-top-width: 2em;
    border-radius: 4px;
    
    background-color: #ffd3d2;
    color: rgb(56, 0, 0);
}

ul.warning-list {
    border-color: #f8cf47;
    background-color: #fff6d8;
}

ul.error-list:first-child::before,
ul.warning-list:first-child::before {
    content: "Error";
    font-weight: bold;
    display: block;
    margin: -2.5em -1em 1em -1em;
    color: #fff;
}

ul.warning-list:first-child::before {
    content: "Warning";
    color: #000;
}

ul.error-list:empty,
ul.warning-list:empty {
    display: none;
}

header {
    display: grid;

    grid-template-columns: 120px auto 100px;
    align-items: center;
}

header img.logo {
    margin: 10px 18px;
    width: 110px;
    height: 60px;
}

header nav#main {
    text-align: center;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline-block;
    margin: 0.5em 0.1em;
    padding: 0;
}

header nav li a {
    padding: 0.3em 0.6em;
    vertical-align: middle;
}

header nav li a svg {
    vertical-align: middle;
    margin-top: -0.2em;
    margin-right: 0.4em;
    height: 1.3em;
    fill: currentColor;
}

header nav li.active a {
    color: #edede3;
    background: #8b0b09;

    display: inline-block;
    padding: 0.3em 0.6em;
    margin: -0.15em 0.1em;
    border-radius: 4px;
}

header nav#user {
    position: relative;
    text-align: right;
    margin-right: 2em;
}

header nav#user a.menu-toggle > svg {
    vertical-align: middle;
    width: 30px;
    fill: currentColor;
}

header nav#user a.menu-toggle > svg.arrow {
    width: 17px;
    transform: scaleY(1);
    transition: transform 0.08s ease-out;
}

header nav#user.open a.menu-toggle > svg.arrow {
    transform: scaleY(-1);
}

header nav#user > span {
    display: inline-block;
    vertical-align: middle;
}

header nav#user ul {
    position: absolute;
    top: 31px;
    right: -0.5em;
    background-color: #fff;
    box-shadow: 0 0.25em 0.5em #0002;
    border: 0.33px solid #0004;
    border-radius: 7px;
    text-align: left;
    padding: 0.3em 0;
}

header nav#user ul {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.08s ease-out;
}

header nav#user.open ul {
    transform: scaleY(1);
}

header nav#user ul li {
    display: block;
    margin: 0.3em 0.5em;
}

header nav#user ul li a {
    display: inline-block;
    min-width: 8em;
}

@media (max-width: 1000px) {
    header {
        grid-template-columns: 60px auto 40px;
    }
    header img.logo {
        width: 32px;
        height: 32px;
    }

    header nav a.menu-bars {
        display: block;
        margin: 0 0 0 auto;
        width: 23px;
        position: relative;
    }

    header nav a.menu-bars span {
        display: block;
        margin-top: 3px;
        width: 100%;
        height: 2.5px;
        border-radius: 3px;

        background-color: #8b0b09;

        transition: transform 0.08s ease-out, opacity 0.08s ease-out;
    }

    header nav a.menu-bars span:first-child {
        margin-top: 0;
    }

    header nav.open a.menu-bars span:nth-child(1) {
        transform: rotate(45deg) translateX(4px) translateY(4px);
    }

    header nav.open a.menu-bars span:nth-child(2) {
        opacity: 0;
    }

    header nav.open a.menu-bars span:nth-child(3) {
        transform: rotate(-45deg) translateX(4px) translateY(-3.5px);
    }

    header nav#main {
        position: relative;
    }

    header nav#main ul {
        position: absolute;
        top: 23px;
        right: 5px;
        background-color: #fff;
        box-shadow: 0 0.25em 0.5em #0002;
        border: 0.33px solid #0004;
        border-radius: 7px;
        text-align: left;
        padding: 0.3em 0;

        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.08s ease-out;
    }

    header nav#main.open ul {
        transform: scaleY(1);
    }

    header nav#main ul li {
        display: block;
    }

    header nav#main ul li a {
        display: inline-block;
        min-width: 8em;
    }

    header nav#user ul {
        right: -27px;
    }

    header nav#user a.menu-toggle svg.arrow {
        display: none;
    }
}

div#main-content > h1 {
    margin-left: 20px;
    margin-right: 20px;
}

div#main-content > section > h1 {
    font-size: 2em;
}

div#main-content > section > table th,
div#main-content > section > table td {
    padding-right: 1em;
    padding-bottm: 0.25em;
}

div#main-content > section > table thead th {
    text-align: left;
}

div#main-content > section > table tbody td {
    
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    color: #8b0b09;
}

/**
 * variant of h1 with a button on the right
 * 
 * example: <h1><span>Products</span><a class="button" href="add">Add Product</a></h1>
 */ 
h1:has(> a.button) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

h1:has(> a.button) > span {
  flex-grow: 1;
}

h1:has(> a.button) > a.button {
  white-space: nowrap;
  align-self: center;
    font-size: 0.5em;
    font-family: sans-serif;
    font-weight: normal;
}

div#main-content > section {
    margin: 0 20px 20px 20px;
}

section {
    padding: 1rem;
    background-color: #fff;
    background-color: #fff;
    box-shadow: 0 0.25em 0.5em #0002;
    border: 0.33px solid #0004;
    border-radius: 7px;
}

section.modal {
    z-index: 5000;
    
    position: fixed;
    top: 5em;
    left: 5em;
    right: 5em;
    bottom: 3em;
    overflow: auto;
    box-shadow: 0 0.25em 0.5em #0004, 0 0 10em 10em #000a;
}

@media (max-width: 1024px) { /* phone or ipad mini */
    div#main-content > section
    {
        margin: 0 -1px 20px -1px;
    }
    
    section
    {
        border-radius: 0;
    }
    
    section.modal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
}

section > *:first-child {
    margin-top: 0;
}
section > *:last-child {
    margin-bottom: 0;
}

/* loading spinner */
div.loading-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 13px;
}
div.loading-spinner div {
    position: absolute;
    top: 0px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #8b0b0966;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
div.loading-spinner div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}
div.loading-spinner div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}
div.loading-spinner div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}
div.loading-spinner div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}
@keyframes loading1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes loading3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes loading2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

.sales-wrapper
{
    vertical-align: top;
}

.piechart {
    border-radius: 100%;
    height: calc(var(--size, 200) * 1px);
    overflow: hidden;
    position: relative;
    width: calc(var(--size, 200) * 1px);
}

.piechart .segment {
    --a: calc(var(--over50, 0) * -100%);
    --b: calc((1 + var(--over50, 0)) * 100%);
    --degrees: calc((var(--offset, 0) / 100) * 360);
    -webkit-clip-path: polygon(
        var(--a) var(--a),
        var(--b) var(--a),
        var(--b) var(--b),
        var(--a) var(--b)
    );
    clip-path: polygon(
        var(--a) var(--a),
        var(--b) var(--a),
        var(--b) var(--b),
        var(--a) var(--b)
    );
    height: 100%;
    position: absolute;
    transform: translate(0, -50%) rotate(90deg)
        rotate(calc(var(--degrees) * 1deg));
    transform-origin: 50% 100%;
    width: 100%;
    z-index: calc(1 + var(--over50));
    color: var(--fg);
}
.piechart .segment:after,
.piechart .segment:before {
    background: var(--bg);
    content: '';
    height: 100%;
    position: absolute;
    width: 100%;
}
.piechart .segment:before {
    --degrees: calc((var(--value, 45) / 100) * 360);
    transform: translate(0, 100%) rotate(calc(var(--degrees) * 1deg));
    transform-origin: 50% 0%;
}
.piechart .segment:after {
    opacity: var(--over50, 0);
}

.piechart .segment span {
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: left;
    margin-left: 5px;
    width: 50%;
    z-index: 2;
    font-size: 12px;
}

.donutchart {
    border-radius: 100%;
    height: calc(var(--size, 200) * 1px);
    overflow: hidden;
    position: relative;
    width: calc(var(--size, 200) * 1px);
}

.donutchart .center-label {
    border-radius: 100%;
    height: calc(var(--size, 200) * 0.4px);
    position: absolute;
    left: calc(var(--size, 200) * 0.3px);
    top: calc(var(--size, 200) * 0.3px);
    width: calc(var(--size, 200) * 0.4px);
    z-index: 999;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--size, 200) * 0.1px);
}

.donutchart .segment {
    --a: calc(var(--over50, 0) * -100%);
    --b: calc((1 + var(--over50, 0)) * 100%);
    --degrees: calc((var(--offset, 0) / 100) * 360);
    -webkit-clip-path: polygon(
        var(--a) var(--a),
        var(--b) var(--a),
        var(--b) var(--b),
        var(--a) var(--b)
    );
    clip-path: polygon(
        var(--a) var(--a),
        var(--b) var(--a),
        var(--b) var(--b),
        var(--a) var(--b)
    );
    height: 100%;
    position: absolute;
    transform: translate(0, -50%) rotate(90deg)
        rotate(calc(var(--degrees) * 1deg));
    transform-origin: 50% 100%;
    width: 100%;
    z-index: calc(1 + var(--over50));
    color: var(--fg);
}
.donutchart .segment:after,
.donutchart .segment:before {
    background: var(--bg);
    content: '';
    height: 100%;
    position: absolute;
    width: 100%;
}
.donutchart .segment:before {
    --degrees: calc((var(--value, 45) / 100) * 360);
    transform: translate(0, 100%) rotate(calc(var(--degrees) * 1deg));
    transform-origin: 50% 0%;
}
.donutchart .segment:after {
    opacity: var(--over50, 0);
}

.donutchart .segment span {
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: left;
    margin-left: 5px;
    width: 50%;
    z-index: 2;
    font-size: 11px;
}

.barchart {
    height: 250px;
    margin-bottom: 100px;
    position: relative;
    width: 100%;
    display: flex;
    border-radius: 5px;
    align-items: end;
}

.barchart .segment {
    height: max(calc((var(--value) * 1%)), 1px);
    width: calc(100% / var(--count));

    display: flex;
    align-items: center;
    position: relative;
}

.barchart .segment span.x-label
{
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100px;
    
    transform: rotate(50deg) translateX(5%) translateY(-10%);
    transform-origin: 0% 0%;
    font-size: 12px;
}

.barchart .segment span.x-label.short
{
    left: 0;
    width: 100%;
    transform: translateY(10%);
    text-align: center;
}

.barchart .segment span.label {
    display: block;
    height: 100%;
    /* width is 90% plus whatever the gap is between the items to fit it to the end*/
    width: 100%;
    background: var(--bg);
    color: var(--fg);
    text-align: center;
    font-size: 12px;
    margin: 0 3%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.barchart .segment:first-child span.label
{
    margin-left: 0;
    border-bottom-left-radius: 5px;
}

.barchart .segment:last-child span.label
{
    margin-right: 0;
    border-bottom-right-radius: 5px;
}






.candychart {
    height: 50px;
    position: relative;
    width: 100%;
    display: flex;
    border-radius: 5px;
    overflow: clip;
}

.candychart .segment {
    height: 100%;
    width: calc(var(--value) * 1%);
    background: var(--bg);
    color: var(--fg);
    overflow: hidden;

    display: flex;
    align-items: center;
}

.candychart .segment span {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.legend-item
{
    display: inline-block;
    margin: 0.5em 2em 0 0;
}

.legend-item:before
{
    display: inline-block;
    margin-right: 0.2em;
    position: relative;
    top: 0.1em;
    content: '';
    width: 1em;
    height: 1em;
    background-color: var(--bg);
    border-radius: 3px;
}


form.f {
    
}

form.f .row {
    display: flex;
    flex-direction: column;
}

form.f .row.no-label {
    margin-left: 142px;
}

form.f .row label {
    vertical-align: top;
    display: inline-block;
    box-sizing: border-box;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color:transparent;
    line-height: 1.5;
    font-family: inherit;
    font-size: inherit;
    margin: 0 6px 6px 0;
    min-width: 120px;
}

form.f .row .value-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media screen and (min-width: 768px) {
    form.f .row {
        flex-direction: row;
        align-items: top;
        gap: 16px;
    }

    form.f .row .value-wrapper {
        flex-direction: row;
        align-items: top;
        gap: 8px;
    }
}


form.f input[type="text"],
form.f select,
form.f input[type="button"],
form.f input[type="submit"],
form.f input[type="file"],
form.f textarea,
form.f button,
a.button-alt,
form.f .value-display {
    display: inline-block;
    box-sizing: border-box;
    padding: 3px 10px;
    background: #EDEDE488;
    color: #000;
    border-radius: 4px;
    border: 1px solid #babab3cc;
    
    
    line-height: 1.5;
    font-family: inherit;
    font-size: inherit;
    margin: 0 6px 6px 0;
}

form.f select,
form.f input[type="button"],
form.f input[type="submit"],
form.f button,
a.button-alt
{
    border: 0;
    box-shadow: 0 2px 3px #0003, inset 0 1px 1px #e5e5db88;
    background: linear-gradient(to bottom, #ffffec88, #e5e5db88);
}

form.f .value-display:empty::before {
    /* stop the height from being 0px */
    display: inline-block;
    content: ' ';
}

form.f input[type="text"],
form.f .value-display {
    min-width: 200px;
}

form.f input.small[type="text"] {
    min-width: 100px;
    width: 100px;
}

form.f input.large[type="text"] {
    min-width: 400px;
}

form.f input.code[type="text"] {
    font-family: 'IntelOne Mono', 'Andale Mono', monospace;
}

form.f .value-display {
    border: 1px solid #EDEDE488;
    background-color: #EDEDE433;
}

form.f input[type="button"]:active,
form.f input[type="submit"]:active,
form.f button:active,
a.button-alt:active
{
    background-color: #edede3;
    transform: translateY(1px);
    box-shadow: 0 -1px 2px #0002;
}

form.f input[type="button"][disabled],
form.f input[type="submit"][disabled],
form.f button[disabled],
a.button-alt[disabled],
form.f input[type="button"][disabled]:active,
form.f input[type="submit"][disabled]:active,
form.f button[disabled]:active,
a.button-alt[disabled]:active
{
    color: #777c;
    background-color: #edede355;
    transform: translateY(0);
    box-shadow: none;
}

form.f input[type="submit"],
form.f button[type="submit"] {
    color: #edede3;
    background: linear-gradient(to bottom, #D83A27, #7F1C14);
    border: none;
}

form.f input[type="submit"]:active,
form.f button[type="submit"]:active {
    background-color: #680200;
    transform: translateY(1px);
    box-shadow: 0 -1px 2px #000c;
}

form.f textarea {
    width: 400px;
    height: 100px;
}

hr {
    border: none;
    border-top: 1px solid #cccc;
    margin: 14px 0 16px 0;
}

section > hr,
section > form.f > hr {
    margin-left: -1em;
    margin-right: -1em;
}

form.f fieldset {
    position: relative;
    border: 1px solid #cccc;
    border-left: none;
    border-right: none;
    margin: 0 -1em 16px -1em;
}

form.f .editable-field-wrapper input[type="text"],
form.f .editable-field-wrapper select,
form.f .editable-field-wrapper .cancel-btn {
    display: none;
}

form.f .editable-field-wrapper.editing span.value-display,
form.f .editable-field-wrapper.editing .edit-btn {
    display: none;
}

form.f .editable-field-wrapper.editing input[type="text"],
form.f .editable-field-wrapper.editing select,
form.f .editable-field-wrapper.editing .cancel-btn {
    display: inline-block;
}

@media print {
    .no-print {
        display: none;
    }
    
    header {
        display: none;
    }
    
    section {
        padding: 0;
        border: none;
        
        border-top: 1px solid #ccc;
        padding-top: 1em;
        border-radius: 0;
        
        box-shadow: none;
    }
}



ul.buttons
{
    list-style-type: none;
    display: flex;
    margin: 0.5em 0;
    padding: 0;
}


section .event-date-select:first-child h2:first-child {
    margin-top: 0;
}

.event-date-select {
    overflow-x: auto;
}

.event-date-select-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-gap: 5px; /* simulated border */
}

@media (max-width: 500px) {
    /* on mobile screens, switch to a much more compact calendar */
    .event-date-select-calendar {
        font-size: 0.7em;
        grid-gap: 0;
    }
}

.event-date-select-calendar > div {
    background-color: #edede4;
    border: 3px solid #d7d7c6;
    border-radius: 5px;
    padding: 5px;
}

@media (max-width: 500px) {
    .event-date-select-calendar > div {
        border-width: 1px;
        border-radius: 0;
    }
}

.event-date-select-calendar > *:nth-child(7n+6),
.event-date-select-calendar > *:nth-child(7n+7) {
    background-color: #dcdccf;
    border-color: #cbcbb9;
}

.event-date-select-calendar > div.selected {
    background-color: #8b0b09;
    border-color: #5f0200;
    color: #fff;
}

.event-date-select-calendar > div.day-header {
    background-color: transparent;
    border-color: transparent;
    margin-bottom: -8px;
}

@media (max-width: 500px) {
    .event-date-select-calendar > div.day-header {
        margin-bottom: -4px;
    }
}

.event-date-select-calendar > div:not(.empty) {
    cursor: pointer;
}

.event-date-select-calendar > div.today {
    background-color: #23b719;
    border-color: #18930f;
    color: #fff;
}

.event-date-select-calendar > div.empty {
    opacity: 0.3;
}

.event-date-select-calendar > div > ul {
    list-style-type: none;
    margin: 0;
    padding: 5px 0 0 0;
}

.event-date-select-calendar > div > ul > li {
    margin: 5px 0;
}

.loading {
    position: relative;
    margin: 0em 1em;
    height: 2.23em;
    font-size: 0.4em;
    z-index: 10;
    text-align: center;
}

.loading:after {
    content: '';
    position: absolute;
    
    top: 50%;
    left: 50%;
    width: 4em;
    height: 4em;
    transform: translate(-50%, -50%);
    
    border: 0.8em solid #ccc3;
    border-left-color: currentColor;
    box-shadow: 0 0 2px 2px #000, 0 0 2px 2px #000 inset;
    border-radius: 50%;
    opacity: 0.15;
    
    animation: loadingAnimationRotate 1.5s infinite linear;
    z-index: -1;
}

@keyframes loadingAnimationRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
