﻿.gantt-view {
    --row-header-width: 50px;
    --row-height: 60px;
    --col-width: 40px;
    display: block;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

    .gantt-view .gantt-body {
        position: relative;
        border-bottom: solid 1px rgba(117, 117, 117, 0.5);
    }

        .gantt-view .gantt-body .connectors {
            position: absolute;
            left: 50px;
            top: 0px;
        }

            .gantt-view .gantt-body .connectors > .connector {
                position: absolute;
                pointer-events: none; /* don't hide tooltips from underlying elements */
                border: dashed 1px rgba( 0, 75, 255, 0.50 );
                background: transparent;
                margin-left: 33px;
            }

                .gantt-view .gantt-body .connectors > .connector:not(.bottom-up) {
                    border-top: none;
                    border-right: none;
                    margin-top: 18px;
                }

                .gantt-view .gantt-body .connectors > .connector.bottom-up {
                    border-right: none;
                    border-bottom: none;
                    margin-top: 7px;
                }

        .gantt-view .gantt-body .gantt-crosshair {
            position: absolute;
            top: 0px;
            left: 0px;
            border-left: dashed 1px rgba(202, 202, 202, 0.75);
            border-top: dashed 1px rgba(202, 202, 202, 0.75);
        }

            .gantt-view .gantt-body .gantt-crosshair.vertical {
                width: 1px;
                height: 100%;
            }

            .gantt-view .gantt-body .gantt-crosshair.horizontal {
                height: 1px;
                width: 100%;
            }

        .gantt-view .gantt-body .gantt-crosshair-today {
            position: absolute;
            top: 0px;
            left: 0px;
            background: rgba( 100, 100, 100, 0.1 );
            border-right: solid 1px var(--primary);
            width: 1px;
            height: 100%;
        }

    .gantt-view .gantt-header {
    }

        .gantt-view .gantt-header .gantt-row-header {
            background: rgba(117, 117, 117, 0.25);
            border-right: solid 1px rgba( 117, 117, 117, 0.25 );
        }

    .gantt-view .gantt-row {
        width: 100%;
        height: var(--row-height);
    }

    .gantt-view .gantt-footer .gantt-row {
        background-color: rgba(117, 117, 117, 0.25);
    }

    .gantt-view .gantt-row .gantt-row-content .drydock {
        position: absolute;
        background: repeating-linear-gradient( -45deg, #cacaca, #cacaca 10px, #aeaeae 10px, #aeaeae 20px );
        height: var(--row-height);
    }

    .gantt-view .gantt-row.small {
        height: 32px;
    }

    .gantt-view .gantt-row,
    .gantt-view .gantt-header {
        white-space: nowrap;
        width: 100%;
        font-size: 0;
    }

    .gantt-view .gantt-row-content {
        display: inline-block;
        margin-left: var(--row-header-width);
        height: var(--row-height);
        position: relative;
        overflow: hidden;
        font-size: 0;
        border-bottom: solid 1px rgba(117, 117, 117, 0.25);
    }

    .gantt-view .gantt-row.small .gantt-row-content {
        height: 32px;
    }

    .gantt-view .gantt-row-header {
        width: var(--row-header-width);
        min-width: var(--row-header-width);
        max-width: var(--row-header-width);
        display: inline-block;
    }

        .gantt-view .gantt-row-header > * {
            width: var(--row-header-width);
            padding-left: 5px;
            text-overflow: ellipsis;
            overflow: hidden;
            font-weight: bold;
            font-size: 12pt;
        }

    .gantt-view .gantt-row .gantt-row-header {
        height: var(--row-height);
        vertical-align: 20px;
        position: sticky;
        position: -webkit-sticky;
        left: 0;
        margin-right: calc(-1 * var(--row-header-width));
        padding-top: 20px;
        background-color: rgba(117, 117, 117, 0.25);
        z-index: 30;
    }

    .gantt-view .gantt-row.small .gantt-row-header {
        height: 32px;
        vertical-align: 5px;
        padding-top: 5px;
    }

    .gantt-view .gantt-col-header {
        width: var(--col-width);
        min-width: var(--col-width);
        max-width: var(--col-width);
        display: inline-block;
        text-align: center;
        background: rgba(117, 117, 117, 0.25);
        border-right: solid 1px rgba( 117, 117, 117, 0.25 );
    }

        .gantt-view .gantt-col-header.first-of-month {
            font-weight: bold;
        }

        .gantt-view .gantt-col-header.today {
            color: white;
            background: var(--primary);
        }

        .gantt-view .gantt-col-header.weekend {
            background: rgba(50, 50, 50, 0.25);
        }

        .gantt-view .gantt-col-header span {
            font-size: 12pt;
        }

    .gantt-view .legend {
        float: right;
        width: 60%;
        font-size: 80%;
        line-height: 180%;
        margin-top: 3px;
        text-align: right;
    }

        .gantt-view .legend ul {
            list-style: none;
            padding: 5px;
            margin: 0;
        }

            .gantt-view .legend ul li {
                display: inline-block;
                list-style: none;
                padding-right: 5px;
                margin-right: 5px;
                border-right: solid 1px rgba(117, 117, 117, 0.25);
            }

                .gantt-view .legend ul li span {
                    display: block;
                    float: left;
                    height: 16px;
                    width: 30px;
                    margin-right: 5px;
                    margin-left: 0;
                    border: 1px solid #999;
                }

.ui-draggable-handle {
    cursor: move;
}

.gantt-view .conflict {
    position: absolute;
    background: rgba( 255, 0, 0, 0.75 );
    bottom: 2.5px;
    height: 10px;
}

.gantt-view .readonly .lifting {
    cursor: default;
}

.gantt-view .lifting {
    opacity: 0.5;
    position: absolute;
    font-size: 0;
    height: 45px;
    top: 0px;
    white-space: nowrap;
    overflow: hidden;
    border-right: solid 0.5px white;
    border-left: solid 0.5px white;
}

    .gantt-view .lifting.fixed-dpst {
        cursor: no-drop;
    }

    .gantt-view .lifting .lifting-window,
    .gantt-view .lifting .delivery-window {
        position: absolute;
        top: 13px;
        height: 3px;
    }

    .gantt-view .lifting .lifting-window {
        background: #4c73ffaa;
        z-index: 3;
    }

    .gantt-view .lifting .delivery-window {
        background: #0019b5aa;
        z-index: 2;
    }

.gantt-view .deadline-flag {
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: 3px;
    margin-top: 15px;
    padding-top: 3px;
    padding-left: 5px;
    font-size: 10pt;
    z-index: 3;
}

    .gantt-view .deadline-flag.deadline-due {
        color: #ce9701;
    }

    .gantt-view .deadline-flag.software-failure {
        color: red;
    }

.gantt-view .gantt-element:not(.ui-draggable-dragging) {
    opacity: 0.8;
    transition: all 0.5s ease-in-out;
}

.gantt-view .gantt-element:hover {
    opacity: 1.0;
}

.gantt-view .activity:not(.fixed):hover {
    border-bottom: solid 3px rgba(120, 120, 120, 0.75);
    border-top: solid 1px rgba(120, 120, 120, 0.25);
}

.gantt-view .activity .gantt-state {
    display: inline-block;
    margin-top: 15px;
    top: 0px;
    height: 25px;
    width: 100%;
}

.gantt-view .activity.warning .gantt-state {
    height: 30px;
    border-bottom: solid 5px orange;
}

.gantt-view .activity.warning .gantt-state-info {
    color: yellow;
}

.gantt-view .lifting .caption {
    position: absolute;
    z-index: 5;
    top: 0px;
    height: 20px;
    width: 100%;
    text-align: center;
}

.gantt-view .lifting.fixed-dpst .caption a,
.gantt-view .lifting.fixed-dpst .caption div {
    background: rgba( 153, 153, 153, 0.20 );
}

.gantt-view .lifting.unmatched-coload .caption .btn,
.gantt-view .lifting.unmatched-coload .caption div {
    background-color: rgba(255, 0, 0, 0.30);
}

.gantt-view .lifting .caption .btn,
.gantt-view .lifting .caption div {
    padding: 0;
    margin: 0;
    font-size: 10px;
    overflow: hidden;
    height: 15px;
    width: 100%;
    background: rgba( 130, 159, 255, 0.20 );
}

.gantt-view .lifting .caption a:hover {
    color: white;
    background: rgba( 76, 115, 255, 0.53 );
}

.gantt-view .lifting .caption img {
    width: 10px;
    margin-bottom: 5px;
}

.gantt-view .lifting.shell .caption img {
    display: none;
}

.gantt-view .lifting.unmatched-coload .caption a:hover {
    background-color: rgba( 255, 0, 0, 0.53 );
}

.gantt-view .activity {
    position: absolute;
    width: 0;
}

    .gantt-view .activity a.gantt-state {
        text-decoration: none;
    }

        .gantt-view .activity a.gantt-state[href] :hover {
            font-weight: bold;
        }

    .gantt-view .activity .gantt-state-info {
        font-size: 10pt;
        text-align: center;
        color: white;
        text-overflow: ellipsis;
        overflow: hidden;
        padding-left: 5px;
        padding-right: 5px;
        mix-blend-mode: hard-light;
        opacity: 0.8;
    }

    .gantt-view .activity .gantt-state-idle > .gantt-state-info {
        color: #3c3c3c;
        padding-left: 12px;
        padding-right: 12px;
    }

        .gantt-view .activity .gantt-state-idle > .gantt-state-info.dpst-idle-time-below-minimum {
            color: #ff5b5b;
            mix-blend-mode: normal;
        }

.gantt-view .gantt-state-loading {
    background-color: #0097BB /*changed to shell-mid-blue, was: #4c73ff */;
}

.gantt-view .gantt-state-floating {
    background-color: #d1d1d1;
}

.gantt-view .gantt-state-offloading {
    background-color: #003c88 /* changed to shell-dark-blue, was: #0019b5*/;
}

.gantt-view .gantt-state-busy {
    background-color: #e9a400;
}

.gantt-view .gantt-state-sailing {
    background-color: #EB8705 /* changed to shell-orange, was : #a050b7 */;
}

.gantt-view .gantt-state-anchorage {
    background-color: #DD1D21 /* changed to shell-red, was: #005b13 */;
}

.gantt-view .deadline {
    position: absolute;
    height: 100%;
}

    .gantt-view .deadline .caption {
        font-size: 8pt;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        position: absolute;
        bottom: 0px;
        padding-bottom: 0;
    }

    .gantt-view .deadline a.caption:hover {
        text-decoration: none;
        padding-top: 0;
        padding: 2px;
    }

    .gantt-view .deadline.not-fulfilled a.caption {
        color: red;
        border-bottom: solid 2px red;
    }

    .gantt-view .deadline.missed a.caption {
        color: purple;
        border-bottom: solid 2px purple;
    }

        .gantt-view .deadline.not-fulfilled a.caption:hover,
        .gantt-view .deadline.missed a.caption:hover {
            background-color: rgba( 255, 0, 0, 0.6 );
            color: white;
        }

    .gantt-view .deadline.fulfilled .caption {
        border-bottom: solid 2px green;
    }

    .gantt-view .deadline.fulfilled a.caption:hover {
        color: green;
        background: rgba( 0, 255, 0, 0.6 );
    }

.gantt-view .dpst-availability {
    position: absolute;
    top: 10px;
    height: 12px;
}

    .gantt-view .dpst-availability .caption {
        text-align: center;
        color: #ccffcc;
        position: absolute;
        top: 0;
        font-size: 12px;
    }

    .gantt-view .dpst-availability.ok {
        background-color: green;
    }

    .gantt-view .dpst-availability.critical {
        background-color: yellow;
    }

    .gantt-view .dpst-availability.none {
        background-color: red;
    }
