/**
 * Bookings module for Craft CMS
 *
 * Bookings CSS
 *
 * @author    Yello Studio Ltd
 * @copyright Copyright (c) 2022 Yello Studio Ltd
 * @link      https://www.yello.studio/
 * @package   Bookings
 * @since     1.0.1
 */
#fields-participants-field > .heading > label {
    display: none;
}

a {
    color: #64b4ca;
}

.tick {
    color: green;
}

.cross {
    color: red;
}

/* Auto Approved clearing status tooltip */
.text-warning {
    color: #ffc107;
}
.tooltip {
    min-width: 150px;
}
.tooltip > .dl-horizontal {
    display: block;
}
.dl-horizontal {
    margin-top: 0;
    display: none;
}
.dl-horizontal dd {
    margin-left: 180px;
}
.dl-horizontal dt {
    font-weight: 700;
    float: left;
    width: 170px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-dropdown {
    position: relative;
    display: inline-block;
    background-color: #47c04d;
    border-radius: 4px;
    width: fit-content;
    font-size: 14px;
}

.download-dropdown > span {
    padding: 0.5em calc(1em + 5px) 0.5em 0.5em;
    color: white;
    cursor: pointer;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
    position: relative;
    font-weight: 500;
}

.download-dropdown > span:after {
    position: absolute;
    right: 1em;
    top: 50%;
    cursor: none;
    border: solid;
    border-width: 0 2px 2px 0;
    content: "";
    display: block;
    font-size: 0;
    height: 7px;
    position: relative;
    transform: rotate(45deg) translateY(-50%);
    transform-origin: 50% 50%;
    width: 7px;
}

.download-dropdown input[type="checkbox"] {
    position: absolute;
    display: block;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    margin: 0px;
    opacity: 0;
    cursor: pointer;
}

.download-dropdown input[type="checkbox"]:checked {
    position: fixed;
    z-index: +0;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

.download-dropdown input[type="checkbox"]:checked + ul {
    display: block;
}

.download-dropdown ul {
    position: absolute;
    left: 0;
    top: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    list-style: none;
    padding: 0.22222em 0;
    display: none;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.175);
}

.download-dropdown ul li {
    display: block;
    padding: 0.33333em 1.11111em;
    white-space: nowrap;
}

.download-dropdown ul li:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.download-dropdown ul li a {
    text-decoration: none;
    display: block;
    color: black;
}

table.stats {
}

table.stats tbody tr td {
    text-align: center;
    padding: 20px;
}

table.stats tbody tr:first-child td {
    border: none;
}

table.stats .metric {
    user-select: none;
    font-size: 2em;
    font-weight: bold;
    color: black;
    display: block;
}

table.stats .metric span {
    font-size: 0.75em;
    font-weight: normal;
    color: #ccc;
}

table.stats .label {
    display: block;
    text-transform: uppercase;
    font-size: 0.85em;
    margin-top: 1em;
    color: #999;
}

/* Entry Aside Styles */
@keyframes fa-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

#details-container button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}
#details-container button [data-icon]:before {
    margin-top: -4px;
}
#details-container button.working [data-icon]:before {
    content: "refresh";
    -webkit-animation: fa-spin 2s infinite linear;
    animation: fa-spin 2s infinite linear;
}
