/* Same close control as the overview calendar popups. */

.close-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8fafc;
    color: #475569;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.modal-close:hover {
    background: #f8fafc;
    color: #475569;
    transform: none;
}

.modal-close:not(:has(> i)) {
    font-size: 0 !important;
}

.modal-close:not(:has(> i))::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    font-size: 0.95rem;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.modal-close > i {
    font-size: 0.95rem;
    line-height: 1;
}
