#calendar-container {
    position: relative;
}

#event-detail-reservations .table-sm td, #event-detail-reservations .table-sm th {
    font-size: 0.8rem;
}

.main-title {
    margin-bottom: 0 !important;
}

.main-title h1 .month {
    margin-left: 1rem;
}

.main-title h1 a:first-child {
    margin-right: 1rem;
}

.main-title h1 a {
    color: var(--black);
}

div.calendar-row {
    display: flex;
    flex: 1 1 0;
    height: 150px;
    border-bottom: 1px solid #aaa;
}

div.calendar-row:first-child {
    border-top: 1px solid #aaa;
}

div.calendar-cell {
    border-right: 1px solid #aaa;
    flex: 1 1 0;
    overflow: hidden;
}

div.calendar-cell.weekend {
    background-color: var(--white-50);
}

div.calendar-cell.without-date {
    /*background-color: var(--gray-light);*/
}

div.calendar-cell:first-child {
    border-left: 1px solid #aaa;
}

div.calendar-cell .cell-events {
    overflow: hidden;
    margin: 0 0.1rem;
    padding: 0 0.2rem;
}

div.expand-events, div.shrink-events {
    text-align: center;
    font-weight: bold;
    font-size: 0.7rem;
}

div.expand-events > span, div.shrink-events > span {
    border: 2px solid var(--black);
    border-radius: 1rem;
    width: 1.4rem;
    display: inline-block;
}

div.expand-events:hover > span, div.shrink-events:hover > span {
    background-color: #ddd;
}

div.calendar-cell.expanded {
    overflow-x: clip;
    overflow-y: initial;
    z-index: 500;
}

div.calendar-cell.expanded .cell-events {
    background-color: var(--white);
    border: 1px solid var(--black);
    border-radius: 10px;
    padding-bottom: 0.2rem;
    box-shadow: 0 0.125rem 0.25rem rgb(33 37 41 / 50%);
}

div.calendar-cell.expanded .cell-events .cell-event.hidden-event {
    display: block;
}

div.calendar-cell .cell-date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;

    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 0.2rem 3px 0.2rem;
    position: relative;
}

div.calendar-cell .cell-date.today {
    text-decoration: underline;
}

div.calendar-cell .cell-date .add-event-button {
    display: none;
    position: absolute;
    bottom: 0.1rem;
    right: 10px;
    font-size: 1rem;
}

div.calendar-cell .cell-date:hover .add-event-button {
    display: block;
}

div.calendar-cell .cell-events .cell-event {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.1rem 0.1rem 0.1rem 0.5rem;
    cursor: pointer;
    margin-bottom: 0.2rem;
    border-radius: 2px;
}

div.calendar-cell .cell-events .cell-event.hidden-event {
    display: none;
}

div.calendar-cell .cell-events .cell-event:not(.all-day-event) {
    border-width: 1px;
    border-style: solid;
    padding-top: calc(0.1rem - 1px);
    padding-bottom: calc(0.1rem - 1px);
}

div.calendar-cell .cell-events .cell-event.not-available-event {
    opacity: 0.7;
}

div.calendar-cell .cell-events .cell-event.event-with-registration {
    font-weight: bold;
}

div.event-detail-row {
    display: flex;
    align-items: baseline;
}

div.event-detail-row > i.fa {
    color: #90999b;
    width: 3rem;
}

div.event-category-row {
    margin: 0.5rem 0;
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    display: flex;
    justify-content: space-between;
}

div.form-control.ql-container {
    border-top-right-radius: inherit;
    border-top-left-radius: inherit;
}

div.form-group div.ql-toolbar {
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
}

.ql-editor{
    max-height: 400px;
    overflow: auto;
}

/* External */
.main-title.iframe {
    margin: 0 !important;
}

.container-lg.iframe {
    max-width: inherit !important;
}

.main-container.iframe {
    min-height: calc(100vh - 100px);
}
