/* ***** EPG START ***** */
#agenda-container {
    position: relative;
    width: calc(100% - 53px);
    margin-top: 4rem;
}

.storytile-sites-agenda-pixel-per-minute {
    /*
        The width of this element determines the number of pixels used for each minute
        in the agenda's timeline. Default is 6px per minute
    */
    width: 14px;
}

.storytile-sites-agenda-small {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
}

.storytile-sites-agenda-small * {
    box-sizing: border-box;
    user-select: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day {
    position: relative;
    display: inline-flex;
    flex-flow: column nowrap;
    color: var(--main-color-dark);
    width: 100%;
    text-align: left;
    --storytile-sites-agenda-time-progress: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day:not([data-visible]) {
    display: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-stage,
.storytile-sites-agenda-small .storytile-sites-agenda-day-select {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 7rem 1fr 2rem;
    grid-template-rows: minmax(2rem, auto);
    grid-template-areas: "stage slots arrow";
    column-gap: 1rem;
    align-items: center;
    justify-items: stretch;
    --storytile-sites-agenda-stage-height: 5rem;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-select {
    display: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-stage.storytile-sites-agenda-selected-stage {
    background-color: var(--color-light-tuerkis);
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector-box {
    position: relative;
    display: flex;
    grid-area: slots;
    flex-flow: row wrap;
    margin-bottom: 0.5rem;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector {
    display: inline-block;
    color: #ffffff;
    background: var(--color-grey);
    padding: 5px 15px;
    border-radius: 3px;
    margin: 0 5px 15px 0;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector:hover {
    background-color: var(--color-red-hover);
    color: #ffffff;
}

.storytile-sites-agenda-small .storytile-sites-agenda-day-selector-selected {
    background: var(--color-red);
}

.storytile-sites-agenda-small .storytile-sites-agenda-stagename {
    position: relative;
    grid-area: stage;
    overflow: hidden;
    line-height: var(--storytile-sites-agenda-stage-height);
    align-self: end;
    text-align: left;
    color: #ffffff;
}

.storytile-sites-agenda-small .storytile-sites-agenda-timezone-info {
    position: relative;
    grid-area: stage;
    overflow: hidden;
    min-height: var(--storytile-sites-agenda-stage-height);
    line-height: var(--storytile-sites-agenda-stage-height);
    align-self: end;
    text-align: right;
    opacity: 0.7;
    font-size: 11px;
}

.storytile-sites-agenda-small .storytile-sites-agenda-slotbox {
    /* Don't use "border" here! That causes a display issue of the live time visualisation */
    position: relative;
    grid-area: slots;
    overflow: hidden;
    height: var(--storytile-sites-agenda-stage-height);
}

.storytile-sites-agenda-small .storytile-sites-agenda-slotbox-with-hr .storytile-sites-agenda-slots::before {
    position: absolute;
    display: block;
    content: "";
    top: calc(50% - 1px);
    left: 0;
    right: 0;
    height: 0;
    background-color: currentColor;
    opacity: 0.1;
}

.storytile-sites-agenda-small .storytile-sites-agenda-slots::after {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    border-right: 1px solid var(--color-red);
    width: var(--storytile-sites-agenda-time-progress);
    background-color: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.storytile-sites-agenda-small .storytile-sites-agenda-slots {
    position: absolute;
    height: 100%;
    min-width: 100%;
    width: auto;
    top: 0;
    left: 0;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-stage:first-child,
.storytile-sites-agenda-small .storytile-sites-agenda-stage:first-child .storytile-sites-agenda-slots {
    --storytile-sites-agenda-stage-height: 3rem;
    padding: 0;
    overflow: hidden;
}

.storytile-sites-agenda-small .storytile-sites-agenda-timeslot {
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    text-align: left;
    line-height: 2rem;
    color: var(--welcome-text-color);
    font-weight: 400;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot {
    position: absolute;
    display: block;
    padding: 6px 11px;
    text-align: left;
    background: #337c99;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot.side_event {
    background: var(--color-grey);
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot.storytile-sites-agenda-favorite-slot::before {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    left: 0;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: #f80;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot[onclick] {
    cursor: pointer;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot:nth-child(even) {
    border-top-left-radius: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-sessionslot:nth-child(odd) {
    border-bottom-right-radius: 0;
}

.storytile-sites-agenda-small .storytile-sites-agenda-arrow {
    position: relative;
    justify-self: center;
    align-self: center;
    line-height: 0;
    height: var(--storytile-sites-agenda-stage-height);
    display: flex;
    align-items: center;
}

.storytile-sites-agenda-small .storytile-sites-agenda-arrow:before {
    content: '';
    display: block;
    background: #ffffff;
    mask-image: url('/_assets/img/ic_send.svg');
    -webkit-mask-image: url('/_assets/img/ic_send.svg');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: 11px center;
    -webkit-mask-position: 11px center;
    mask-size: auto 23px;
    -webkit-mask-size: auto 23px;
    height: 21px;
    width: 23px;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.storytile-sites-agenda-tooltip {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 1rem;
    background-color: #4d8da6;
    color: #ffffff;
    /*
        use the transform to change position of the
        tooltip relative to the mouse pointer
    */
    transform: translateX(calc(-25% - 0.5rem)) translateY(1.5rem);
}

.storytile-sites-agenda-tooltip::before {
    position: absolute;
    display: block;
    content: "";
    background-color: inherit;
    width: 1.4rem;
    height: 1.4rem;
    transform: rotate(45deg);
    left: 25%;
    top: -0.7rem;
}

.storytile-sites-agenda-tooltip-title {
    position: relative;
    font-weight: bold;
}

.storytile-sites-agenda-tooltip-time {
    position: relative;
    font-weight: lighter;
    font-style: italic;
    margin: 0.5rem 0;
}

.storytile-sites-agenda-tooltip-body {
    position: relative;
}

.storytile-sites-agenda-small .storytile-sites-agenda-arrow svg {
    display: none;
}

/* ***** EPG END ***** */