﻿

#timeline-side-panel-div {
    position: absolute;
    background-color: #eee;
    z-index: 100;
    height: 100%;
    transition: 0.5s;
    width: 100%;
}

#timeline-menu-div {
    /*position: absolute;*/
    position: sticky;
    width: 24px;
    height: 24px;
    transition: 0.5s;
    z-index: 99;
    margin: 5px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    top: 5px;
}


#timeline-menu-div:hover {
    cursor: pointer;
}


#timeline-side-panel-menu-image {
    width: 24px;
    height: 24px;
}

#timeline-close-button-div {
    margin: 5px 0 5px 10px;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
}

    #timeline-close-button-div:hover {
        cursor: pointer;
    }

#timeline-content-div {
    margin: 0px 3px 3px 3px;
    height: auto;
    overflow-y: scroll;
    height: 320px;
    width: 100%;
}

.proposallog-date {
    color: var(--darkgrey);
}

.proposallog-description {
    font-size: var(--text-m);
    flex: 1;
}

.proposallog-body {
    font-size: 12px;
}

.proposallog-proposaldiv {
    background-color: var(--white);
    border: var(--border);
    padding: 12px 16px;
    border-left: 2px solid var(--boardPrimary);
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0;
    border-radius: var(--borderRadius);
    font-size: 12px;
    line-height: 1.4;
    gap: 2px;
}

.proposallog-date-div {
    font-weight: 500;
    font-size: var(--text-l);
}

.timeline-closed {
    width: 0 !important;
    opacity: 0 !important;
}

.timeline-opened {
    opacity: 1;
    width: initial;
}


/* proposal timeline */
.proposal-timeline .proposal-timeline-chart {
    position: relative;
}

.proposal-timeline .tl {
    position: relative;
    height: 320px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--background);
    border: var(--border);
    border-radius: var(--borderRadius);
    text-align: left;
    user-select: none;
}

.proposal-timeline .tl-band {
    position: relative;
    overflow: hidden;
    outline: none;
    cursor: grab;
}

.proposal-timeline .tl-band--dragging {
    cursor: grabbing;
}

.proposal-timeline .tl-band--main {
    height: 85%;
}

.proposal-timeline .tl-band--overview {
    height: 15%;
    background-color: var(--lightgrey);
    border-top: var(--border);
}

.proposal-timeline .tl-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.proposal-timeline .tl-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px 0 4px 8px;
    border-left: var(--border);
    font-family: sans-serif;
    font-size: 12px;
    line-height: 12px;
    color: var(--mediumgrey);
    box-sizing: border-box;
    pointer-events: none;
}

.proposal-timeline .tl-tick--major {
    font-size: 11px;
    font-weight: 600;
    color: var(--darkgrey);
    text-transform: uppercase;
}

.proposal-timeline .tl-band--overview .tl-tick {
    border-left-color: var(--background);
}

.proposal-timeline .tl-events {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: calc(100% - 29px);
    overflow-x: hidden;
    overflow-y: auto;
    border-bottom: var(--border);
    box-sizing: border-box;
}

.proposal-timeline .tl-events-layer {
    position: relative;
    width: 100%;
    will-change: transform;
}

.proposal-timeline .tl-event {
    position: absolute;
    margin-left: -6px;
    padding: 6px 10px;
    white-space: nowrap;
    border-left: 2px solid var(--boardPrimary);
    font-size: var(--text-s);
    line-height: 1;
    box-shadow: 0 2px 3px rgb(0 0 0 / 8%);
}

.proposal-timeline .tl-event:hover {
    border-left: 2px solid var(--boardPrimary) !important;
}

.proposal-timeline .tl-event--open {
    box-shadow: 0 2px 12px rgb(0 0 0 / 12%);
}

.proposal-timeline .tl-events-shadow {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 12px;
    box-shadow: inset -5px 5px 6px 0 #00000030;
    pointer-events: none;
    z-index: 1;
}

.proposal-timeline .tl-pins {
    top: auto;
    bottom: 21px;
    height: 8px;
}

.proposal-timeline .tl-pin {
    position: absolute;
    width: 2px;
    height: 8px;
    background-color: var(--boardPrimary);
}

.proposal-timeline .tl-window {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
}

.proposal-timeline .tl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--lightgrey);
    border-radius: 100%;
    color: var(--boardPrimary);
    cursor: pointer;
    z-index: 2;
}

.proposal-timeline .tl-nav--left {
    left: 20px;
}

.proposal-timeline .tl-nav--right {
    right: 20px;
}

.proposal-timeline .tl-nav > img {
    width: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
}

.proposal-timeline .tl-nav--left > img {
    transform: translate(-50%, -50%) rotate(90deg);
}

.proposal-timeline .tl-nav--right > img {
    transform: translate(-50%, -50%) rotate(-90deg);
}

.proposal-timeline .tl-bubble {
    position: absolute;
    width: 270px;
    background-color: var(--white);
    border: 1px solid var(--lightgrey);
    border-radius: var(--borderRadius);
    box-shadow: 0 8px 56px rgb(0 0 0 / 10%);
    font-size: 14px;
    text-align: left;
    z-index: 3;
}

.proposal-timeline .tl-bubble-body {
    padding: 12px 16px;
    font-size: 12px;
}

.proposal-timeline .tl-bubble-close {
    position: absolute;
    right: 10px;
    top: 4px;
    padding: 0;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--black);
    opacity: 0.5;
    cursor: pointer;
}

.proposal-timeline .tl-bubble-close:hover {
    opacity: 1;
    border: none !important;
}

.proposal-timeline .tl-bubble h4 {
    margin: 0;
    font-weight: normal;
    line-height: 1.2;
    width: calc(100% - 10px);
}

.proposal-timeline .tl-bubble .date {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    color: darkgrey;
}

.proposal-timeline .tl-bubble .description {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 16px 0 0 0;
    white-space: pre-wrap;
}



@media (max-width:700px) {
    .proposal-timeline {
        margin-top: 12px;
    }
}