/**
 * mySchedule.css
 *
 * @author Peter Gunold  <pg@eventclass.com>
 * @since  2022-11-07
 *
 * @todo: alle Regeln für ".btn-group-justified" mit ".group-label" darin, können entfernt werden, wenn das finale Design durch ist
 */


.btn[data-my-schedule-bookmark]:not(.active) span.on,
.btn[data-my-schedule-bookmark].active span.off {
    display: none;
}

.btn.checkbox-btn:not(.active) span.on,
.btn.checkbox-btn.active span.off {
    display: none;
}

.radio-btn input,
.checkbox-btn input {
    opacity: 0;
    width: 0;
    height: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* custom button-group-design */
.btn-group > .group-label {
    white-space: nowrap;
    vertical-align: middle;
}

.btn-group-justified > .group-label {
    display: table-caption;
}

.btn-group-rounded.btn-group {
    border-radius: 5px;
    padding: 2px;

    background-color: #E1E1E1;
}

.btn-group-rounded .btn {
    padding-top: 0;
    padding-bottom: 0;
}

/** debug */
.checkbox-inline.checkbox-switch.switch-primary,
.group-label {
    /* background-color: red; */
}

.btn-group-rounded .btn,
.btn-group-rounded .btn:hover,
.btn-group-rounded .btn.active,
.btn-group-rounded .btn.active:hover {
    border-color: transparent;
}

.btn-group-rounded .btn-default {
    background-color: transparent;
}

.btn-group-rounded .btn-default:hover {
    background-color: #E7E7E8;
}

/* extra log selector is needed to overwrite default button corners */
.btn-group-rounded.btn-group > .btn.active:last-child:not(:first-child), .btn-group > .dropdown-toggle:not(:first-child),
.btn-group-rounded.btn-group > .btn.active:not(:first-child):not(:last-child):not(.dropdown-toggle),
.btn-group-rounded.btn-group > .btn.active {
    border-radius: 4px;
}

/* simulate bootstrap sm-breakpoint */
@media (min-width: 768px) {
    .group-label {
        padding: 3px 0;
        display: inline-block;
        position: absolute;
        right: 0;
    }

    .btn-group > .group-label {
        padding: 3px 12px;
    }

    /* should be label left of a button-group */
    .btn-group-justified > .group-label {
        display: table-cell;
        float: none;
        width: 1%;
    }

    /* @todo when we upgrade to bootstrap 4 or above wen can remove this class here */
    .text-sm-right {
        text-align: right;
    }
}



/**
 // Colors must be defined separately in the viewfile, because they need php

.btn[data-my-schedule-bookmark] span {
    color: '.Yii::$app->params['onlineProgram_myScheduleIcons']['default']['off']['color'].';
}
.btn[data-my-schedule-bookmark]:disabled span {
    color: '.Yii::$app->params['onlineProgram_myScheduleIcons']['pinned']['off']['color'].';
}
.btn[data-my-schedule-bookmark].active span {
    color: '.Yii::$app->params['onlineProgram_myScheduleIcons']['default']['on']['color'].';
}
.btn[data-my-schedule-bookmark].active:disabled span {
    color: '.Yii::$app->params['onlineProgram_myScheduleIcons']['pinned']['on']['color'].';
}
*/


/** ####################################################################################################
                                Listview with Timeline
    #################################################################################################### */
/* reset colors ans pseudo-colors for a that re no links */
a:not([href]),
a:not([href]):hover,
a:not([href]):active,
a:not([href]):focus
{
    color: #555;
}

a[href] i.fa {
    /* color: #FFF; */
}

.my-schedule.error {
    padding: 0 20px;
}

.session-element .debug span {
    min-width: 60px;
    display: inline-block;
}

/** hide elements depending on display settings */
.is-empty,
.is-passed,
.show-bookmarked .session-element:not(.is-active),
.show-session .session-element-container {
    display: none;
}

/* move timeline icon in same height like bookmark-Icon of the session */
.my-schedule.timeline > li > .fa {
    top: 18px;
}

.my-schedule.timeline > .time-label .container-fluid {
    padding-top: 5px;
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 22px;
}

.my-schedule.timeline > .time-label > span,
.my-schedule.timeline > .time-label {
    background-color: #648CC0;
    color: #FFF;
    border-radius: 4px;
}

.my-schedule.timeline > .time-label .time {
    font-size: 22px; /* obsolete in bootstrap style */
    padding-left: 20px;
}

.my-schedule.timeline .col-details-link {
    text-align: right;
    padding-left: 0;
}

.my-schedule.timeline > .time-label > span {
    width: 100%;
    font-size: 22px;
    padding-left: 20px;
    padding-right: 0;
    position: relative;
}

.my-schedule.timeline .session-element .details-link {
    top: 1px;
}

.my-schedule.timeline > .time-label .details-link .link-icon {
    color: #FFF;
    font-size: 16px;
}

.my-schedule.timeline > .time-label .details-link .link-icon:hover,
.my-schedule.timeline > .time-label .details-link .link-icon:active,
.my-schedule.timeline > .time-label .details-link .link-icon:focus {
    color: #72afd2;
}

.my-schedule-navigation {
    margin-bottom: 30px;
    background-color: #FFF;
}

.my-schedule-navigation .row {
    padding: 1em 20px;
}

.my-schedule.timeline > li,
.my-schedule.timeline > li > .timeline-item {
    margin-right: 0;
}

.my-schedule.timeline > li > .timeline-item > .timeline-header {
    background-color: #E0EEFF;
    padding: 15px 0;
    line-height: 1.2;
}

.my-schedule.timeline > li > .timeline-item > .timeline-body {
    padding-left: 0;
}

.timeline-header {
    position: relative;
}


.session-element .col-bookmark,
.timeline-header .col-bookmark {
    text-align: center;
}

.timeline-header [data-my-schedule-bookmark] {
    font-size: 30px;
    padding: 0;
    vertical-align: top;
}

.timeline-body .session-element .text,
.timeline-header div.text {
    padding-left: 0;
}

.timeline-header .time,
.timeline-header .title {
    font-weight: bold;
}

.timeline-header .text .details span {
    margin-right: 30px;
    /* padding-right: 3px; */
    display: block;
}

.timeline-header .text,
.timeline-header .title {
    font-size: 20px;
}

.timeline-header .text i.fa {
    font-size: 18px;
}

.link-icon {
    vertical-align: +0.15em;
    line-height: 1;
}

.timeline-header .title .link-icon {
    font-size: 14px;
    /* top: -.2em; */
}

.timeline-header h3 {
    margin: 0;
}

.timeline-body .session-element {
    margin-bottom: 10px;
    /* padding-left: 40px; */
    /*padding-left: 3px;*/
    min-height: 40px;
}

.timeline-body .session-element .text {
    line-height: 1.1;
}

.timeline-body .session-element .title,
.timeline-body .session-element .time {
    font-weight: bold;
    font-size: 16px;
}

.timeline-body .session-element .text,
.timeline-body .session-element .text .container-fluid
/*.timeline-body .session-element .row.presenter > div:first-of-type,
.timeline-body .session-element .time*/ {
    padding: 0;
}

.timeline-body .session-element .title small {
    font-weight: initial;
}

.timeline-body .session-element [data-my-schedule-bookmark] {
    padding: 0;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.3;
}

/* simulate bootstrap md-breakpoint */
@media (min-width: 992px) {
    .timeline-header .text .details span {
        display: inline;
    }
}


