/* Root element for current uib-modal dialog */
.ums_dialog {
    /* Make text non-selectable for all Dialog elements */
    -webkit-touch-callout: none;    /* iOS Safari */
    -webkit-user-select: none;      /* Chrome/Safari/Opera */
    -khtml-user-select: none;       /* Konqueror */
    -moz-user-select: none;         /* Firefox */
    -ms-user-select: none;          /* Internet Explorer/Edge */
    user-select: none;              /* Non-prefixed version, currently
                                        not supported by any browser */

    /* Remove 'bottom: 10%', set by Bootstrap */
    bottom: 0 !important;
    position: fixed !important;
}

/* Main container for the Unfeasible Milestones Dialog(without backdrop) */
.ums_dialog > .modal-dialog {
    position: absolute;
    width: 762px;
    /* Position window in the middle vertically, but always 50px from the top,
    /* set height by content, but position dialog at least 50 px from the bottom */
    margin-top: auto;
    margin-bottom: auto;
    top: 50px;
    bottom: 50px;
    /* Center dialog horizontally */
    left: 0;
    right: 0;
}

    .ums_dialog > .modal-dialog  > .modal-content {
        min-height: 118px;
        overflow-y: hidden;
        /* Set height by content, but respect the '50px from the bottom' rule on the parent */
        max-height: 100%;
    }

        /* Vertical line, which splits dialog to "Remaining time" on the left and "Lack of time" on the right */
        .ums_redVerticalLine {
            position: absolute;
            left: 432px;
            width: 1px;
            height: calc(100% - 59px);
            background-color: #d00101;
            /* TODO: Remove after critical paths are implemented */
            z-index: 1;
        }
        .ums_redVerticalLine.beforeToday {
            background-color: #D8B2AF;
        }

        .ums_grayHorizontalHeaderLine {
            position: absolute;
            top: 44px;
            width: 100%;
            height: 1px;
            background-color: #EBEBEB;
        }

        .ums_dialogHeader {
            height: 29px;
        }

            .ums_topCriticalPathsTextContainer {
                float: left;
                height: 29px;
                width: 150px;
                padding-top: 5px;
            }

                .ums_topCriticalPathsText {
                    float: left;
                    font-family: GlowSemiBold;
                    margin-left: 4px;
                }

                .ums_topCriticalPathsInfoButton {
                    float: left;
                    position: relative;
                    top: 2px;
                    margin-left: 6px;
                    cursor: pointer;
                }

            .ums_currentMilestoneDateNameContainer {
                float: right;
            }

                .ums_currentMilestoneDate {
                    float: left;
                    margin-right: 10px;
                }

                .ums_currentMilestoneDate .milestoneDeadlinePicker{
                    width: 110px;
                    height: 28px;
                    -ms-border-radius: 4px;
                    border-radius: 4px;
                    background-color: #ffffff;
                    border: solid 1px #dcdcdc;
                    outline: none;
                    font-family: GlowRegular;
                    font-size: 13px;
                    color: #4a4a4a;
                    background: url('../../../images/shared/small-calendar.png') no-repeat;
                    background-position: right 10px center;
                    padding: 0 30px 0 10px;
                    cursor: pointer;
                }

                .ums_currentMilestoneDate .milestoneDeadlineLabel{
                    height: 28px;
                    font-family: GlowRegular;
                    font-size: 13px;
                    color: #4a4a4a;
                    padding: 5px 0 0 10px;
                }

                .ums_currentMilestoneName {
                    position: relative;
                    left: 10px;
                    padding-right: 18px;
                    width: 313px;
                    float: right;
                }
                    .ums_currentMilestoneName .nameValue {
                          padding-top: 5px;
                          white-space: nowrap;
                          overflow: hidden;
                          text-overflow: ellipsis;
                    }

                    .ums_currentMilestoneName .milestoneNameInput {
                        padding-left: 10px;
                        width: 100%;
                    }

                     .ums_currentMilestoneName .milestoneNameInput.invalidValue {
                         border: 1px solid red;
                    }

        .ums_remainingLackOfTimeHeaderContainer {
            height: 34px;
            margin-bottom: 7px;
        }

            .ums_remainingTimeHeaderText {
                position: absolute;
                left: 299px;
                margin-top: 11px;
                font-family: GlowSemiBold;
            }

            .ums_lackOfTimeHeaderText {
                position: absolute;
                right: 218px;
                margin-top: 11px;
                font-family: GlowSemiBold;
            }

        .ums_criticalPathsScrollViewport {
            /* nice scroll will set it to scroll itself, don't show-blink the default scroll */
            overflow-y: hidden;

            /*overflow-x: hidden;*/
            /* Negative offset to show nicescroll 5 px from the dialog right border */
            margin-right: -10px;
            /*padding-top: 7px;*/
        }

            .ums_criticalPathsContainer {
                /* This way container is 30px from the left and 30 px from the right. */
                margin-left: 15px;
                margin-right: 25px;
                /*background-color: #F7F7F7;*/
            }

                .ums_criticalPathGroupContainer {
                    margin-bottom: 20px;
                }
                .ums_criticalPathGroupContainer:last-child {
                    margin-bottom: 0;
                }

                    .ums_rightGroupContainer {
                        position: relative;
                        overflow: hidden;
                        height: 100%;
                    }

                        .ums_rightBarsContainer {
                            position: relative;
                        }

                            .ums_rightBarContainer {
                                position: relative;
                                height: 18px;
                                margin-top: 10px;
                            }
                            .ums_rightBarContainer:first-child {
                                margin-top: 0;
                            }


                                .ums_rightBar {
                                    position: absolute;
                                    height: inherit;
                                    min-width: 2px;
                                    background-color: #F8F8F8;
                                    border-top-right-radius: 9px;
                                    border-bottom-right-radius: 9px;
                                    cursor: pointer;
                                }

                                .ums_rightBar.blue {
                                    border-right: 1px dashed #66bcff;
                                    border-top: 1px dashed #66bcff;
                                    border-bottom: 1px dashed #66bcff;
                                }

                                .ums_rightBar.green {
                                    border-right: 1px dashed #6cda66;
                                    border-top: 1px dashed #6cda66;
                                    border-bottom: 1px dashed #6cda66;
                                }

                                .ums_rightBar.yellow {
                                    border-right: 1px dashed #ffd266;
                                    border-top: 1px dashed #ffd266;
                                    border-bottom: 1px dashed #ffd266;
                                }

                                .ums_rightBar.red {
                                    border-right: 1px dashed #ff667f;
                                    border-top: 1px dashed #ff667f;
                                    border-bottom: 1px dashed #ff667f;
                                }

                                .ums_rightBar.corrupted {
                                    border-right: 1px dashed #6e6e6e;
                                    border-top: 1px dashed #6e6e6e;
                                    border-bottom: 1px dashed #6e6e6e;
                                }

                                .ums_rightBarContainer.ums_active .ums_rightBar.blue {
                                    border-right: 1px solid #0090ff;
                                    border-top: 1px solid #0090ff;
                                    border-bottom: 1px solid #0090ff;
                                }

                                .ums_rightBarContainer.ums_active .ums_rightBar.green {
                                    border-right: 1px solid #0ac200;
                                    border-top: 1px solid #0ac200;
                                    border-bottom: 1px solid #0ac200;
                                }

                                .ums_rightBarContainer.ums_active .ums_rightBar.yellow {
                                    border-right: 1px solid #ffb400;
                                    border-top: 1px solid #ffb400;
                                    border-bottom: 1px solid #ffb400;
                                }

                                .ums_rightBarContainer.ums_active .ums_rightBar.red {
                                    border-right: 1px solid #ff002b;
                                    border-top: 1px solid #ff002b;
                                    border-bottom: 1px solid #ff002b;
                                }

                                 .ums_rightBarContainer.ums_active .ums_rightBar.corrupted {
                                    border-right: 1px solid #4a4a4a;
                                    border-top: 1px solid #4a4a4a;
                                    border-bottom: 1px solid #4a4a4a;
                                }

                                .ums_rightBarText {
                                    position: absolute;
                                    margin-top: -1px;
                                    font-family: GlowSemiBold;
                                    font-size: 14px;
                                    color: #4a4a4a;
                                    cursor: pointer;
                                }

                                .ums_rightBarWarning {
                                    position: absolute;
                                    margin-top: 1px;
                                    font-family: GlowSemiBold;
                                    font-size: 14px;
                                    color: #4a4a4a;
                                    cursor: pointer;
                                    width: 16px;
                                    height: 16px;
                                    background-size: cover;
                                    background: url('../../images/shared/warrning.svg') no-repeat;
                                }

                    .ums_leftGroupContainer {
                        position: relative;
                        float: left;
                        width: 403px;
                        height: 100%;
                        overflow: hidden;
                    }
                        
                        .ums_leftBarsContainer {
                            position: relative;
                        }
                        
                            .ums_leftBarContainer {
                                position: relative;
                                height: 18px;
                                margin-top: 10px;
                            }
                            .ums_leftBarContainer:first-child {
                                margin-top: 0;
                            }
                            
                                .ums_leftBar {
                                    position: absolute;
                                    /* Align bar to the right side */
                                    right: 0;
                                    min-width: 2px;
                                    height: inherit;
                                    border-top-left-radius: 9px;
                                    border-bottom-left-radius: 9px;
                                    cursor: pointer;
                                }

                                .ums_leftBar.blue {
                                    background-color: #66bcff;
                                }

                                .ums_leftBar.green {
                                    background-color: #6cda66;
                                }

                                .ums_leftBar.yellow {
                                    background-color: #ffd266;
                                }

                                .ums_leftBar.red {
                                    background-color: #ff667f;
                                }

                                 .ums_leftBar.corrupted {
                                    background-color: #6e6e6e;
                                }

                                .ums_leftBarContainer.ums_active .ums_leftBar.blue {
                                    background-color: #0090ff;
                                }
                                
                                .ums_leftBarContainer.ums_active .ums_leftBar.green {
                                    background-color: #0ac200;
                                }

                                .ums_leftBarContainer.ums_active .ums_leftBar.yellow {
                                    background-color: #ffb400;
                                }

                                .ums_leftBarContainer.ums_active .ums_leftBar.red {
                                    background-color: #ff002b;
                                }

                                 .ums_leftBarContainer.ums_active .ums_leftBar.corrupted {
                                    background-color: #4a4a4a;
                                }

                                .ums_leftBarText {
                                    position: absolute;
                                    margin-top: -1px;
                                    font-family: GlowSemiBold;
                                    font-size: 14px;
                                    color: white;
                                    cursor: pointer;
                                }

                        .ums_leftDiamondAndPointingLinesContainer {
                            position: absolute;
                            min-width: 14px;
                            min-height: 14px;
                        }

                            .ums_leftPointingLine {
                                position: relative;
                                width: 30px;
                                height: 1px;
                                margin-bottom: 27px;
                                background-color: #ABB8F8;
                                margin-left: 7px;
                            }
                            .ums_leftPointingLine:last-child {
                                margin-bottom: 0;
                            }
                            .ums_leftGroupContainer.beforeToday .ums_leftPointingLine {
                                background-color: #B6B6B6;
                            }

                            .ums_leftVerticalLine {
                                position: absolute;
                                height: 100%;
                                width: 1px;
                                background-color: #ABB8F8;
                                margin-left: 7px;
                            }
                            .ums_leftGroupContainer.beforeToday .ums_leftVerticalLine {
                                background-color: #B6B6B6;
                            }

                            .ums_leftDiamondContainer {
                                position: absolute;
                                /*min-width: 14px;*/
                                /*min-height: 14px;*/
                                z-index: 10;
                            }

                                /* Diamond shape for the day. Top triangle part */
                                .ums_leftDiamond {
                                    position: absolute;
                                    width: 0;
                                    height: 0;
                                    /* Half of width */
                                    border: 7px solid transparent;
                                    /* Move triangle to the top half of diamond */
                                    top: -7px;
                                }

                                     .ums_leftDiamond.blue {
                                        /* Make triangular shape from the middle-center to the bottom-corners.
                                        Half the height of the diamond */
                                        border-bottom: 7px solid #0090ff;
                                     }

                                     .ums_leftDiamond.green {
                                        /* Make triangular shape from the middle-center to the bottom-corners.
                                        Half the height of the diamond */
                                        border-bottom: 7px solid #0ac200;
                                     }

                                     .ums_leftDiamond.yellow {
                                        /* Make triangular shape from the middle-center to the bottom-corners.
                                        Half the height of the diamond */
                                        border-bottom: 7px solid #ffb400;
                                     }

                                     .ums_leftDiamond.red {
                                        /* Make triangular shape from the middle-center to the bottom-corners.
                                        Half the height of the diamond */
                                        border-bottom: 7px solid #ff002b;
                                     }

                                      .ums_leftDiamond.hasCorruptedRanges {
                                        /* Make triangular shape from the middle-center to the bottom-corners.
                                        Half the height of the diamond */
                                        border-bottom: 7px solid #4a4a4a;
                                     }

                                /* Diamond shape for the day. Bottom triangle part */
                                .ums_leftDiamond:after {
                                    position: absolute;
                                    content: '';
                                    left: -7px;
                                    top: 7px;
                                    width: 0;
                                    height: 0;
                                    border: 7px solid transparent;
                                }

                                    .ums_leftDiamond.blue:after {
                                        border-top-color: #0090ff;
                                    }

                                    .ums_leftDiamond.green:after {
                                        border-top-color: #0ac200;
                                    }

                                    .ums_leftDiamond.yellow:after {
                                        border-top-color: #ffb400;
                                    }

                                    .ums_leftDiamond.red:after {
                                        border-top-color: #ff002b;
                                    }

                                    .ums_leftDiamond.hasCorruptedRanges:after {
                                        border-top-color: #4a4a4a;
                                    }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.blue {
                                    border-bottom: 7px solid #66bcff;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.green {
                                    border-bottom: 7px solid #6cda66;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.yellow {
                                    border-bottom: 7px solid #ffd266;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.red {
                                    /*border-bottom: 7px solid #ff667f;*/
                                }

                                 .ums_leftGroupContainer.beforeToday .ums_leftDiamond.grayedOut {
                                    border-bottom: 7px solid #b6b6b6;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.hasCorruptedRanges {
                                    border-bottom: 7px solid #4a4a4a;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.blue:after {
                                    border-top-color: #66bcff;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.green:after {
                                    border-top-color: #6cda66;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.yellow:after {
                                    border-top-color: #ffd266;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.red:after {
                                    /*border-top-color: #ff667f;*/
                                }

                                 .ums_leftGroupContainer.beforeToday .ums_leftDiamond.grayedOut:after {
                                    border-top-color: #b6b6b6;
                                }

                                .ums_leftGroupContainer.beforeToday .ums_leftDiamond.hasCorruptedRanges:after {
                                    border-top-color: #4a4a4a;
                                }

                    .ums_chainDateAndTextContainer {
                        position: absolute;
                        font-family: GlowRegular;
                        font-size: 14px;
                        text-align: right;
                        line-height: 19px;
                    }

                        .ums_chainDateText {
                            color: #808080;
                        }
                        .ums_leftGroupContainer.ums_active .ums_chainDateText {
                            color: #5774e7;
                        }

                        .ums_chainNameText {
                            color: #4a4a4a;
                            word-break: break-all;
                        }
                        .ums_leftGroupContainer.ums_active .ums_chainNameText {
                            color: #5774e7;
                        }


    /* Horizontal container, located on top of a dialog.
       Hides all days elements at the sides which do not fit.(via overflow-x: hidden) */
.ums_daysViewportContainer {
    height: 20px;
    z-index: 99;
    position: absolute;
    /* Viewport borders are in the middle of three dots elements, so that it trims diamonds nicely */
    left: 309px;
    right: 203px;
    /* Placed above the top border of a dialog */
    top: -9px;
    /* Truncates days to the left and days to the right */
    overflow-x: hidden;
    overflow-y: hidden;
}

    /* This container moves horizontally to set active day on the red line */
    .ums_daysContainer {
        position: absolute;
        overflow-y: hidden;
        white-space: nowrap;
    }

        /* Diamond Container */
        .ums_dayContainer {
            position: relative;
            display: inline-block;
            width: 20px;
            height: 20px;
            margin-right: 5px;
            text-align: center;
            cursor: pointer;
        }

            /* Diamond shape for the day. Top triangle part */
            .ums_dayDiamond {
                position: absolute;
                width: 0;
                height: 0;
                /* Half of width */
                border: 10px solid transparent;
                 /* Make triangular shape from the middle-center to the bottom-corners.
                   Half the height of the diamond */
                border-bottom: 10px solid #ff002b;
                /* Move triangle to the top half of diamond */
                top: -10px;
            }

                .ums_dayDiamond.blue {
                    border-bottom: 10px solid #0090ff;
                }

                 .ums_dayDiamond.green {
                    border-bottom: 10px solid #0ac200;
                }

                  .ums_dayDiamond.yellow {
                    border-bottom: 10px solid #ffb400;
                }

                   .ums_dayDiamond.red {
                    border-bottom: 10px solid #ff002b;
                }

                 /*Diamond before today should be lighter*/
                .ums_dayDiamond.beforeToday {
                    /*border-bottom: 10px solid #ff667f;*/
                }

                 .ums_dayDiamond.blue.beforeToday {
                    border-bottom: 10px solid #66bcff;
                }

                  .ums_dayDiamond.green.beforeToday {
                    border-bottom: 10px solid #6cda66;
                }
                   .ums_dayDiamond.yellow.beforeToday {
                    border-bottom: 10px solid #ffd266;
                }
                    .ums_dayDiamond.red.beforeToday {
                    /*border-bottom: 10px solid #ff667f;*/
                }

                .ums_dayDiamond.grayedOut.beforeToday {
                    border-bottom: 10px solid #b6b6b6;
                }

                .ums_dayDiamond.blue.hasCorruptedRanges,
                .ums_dayDiamond.green.hasCorruptedRanges,
                .ums_dayDiamond.yellow.hasCorruptedRanges,
                .ums_dayDiamond.red.hasCorruptedRanges,
                .ums_dayDiamond.blue.beforeToday.hasCorruptedRanges,
                .ums_dayDiamond.green.beforeToday.hasCorruptedRanges,
                .ums_dayDiamond.yellow.beforeToday.hasCorruptedRanges
                .ums_dayDiamond.red.beforeToday.hasCorruptedRanges {
                  border-bottom: 10px solid #4a4a4a;
                }

            .ums_dayContainer.hovered .ums_dayDiamond.blue {
                border-bottom: 10px solid #1082dc;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.green {
                border-bottom: 10px solid #18ab10;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.yellow {
                border-bottom: 10px solid #db9f0f;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.red {
                border-bottom: 10px solid #db0f31;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.blue.beforeToday {
                border-bottom: 10px solid #60a5db;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.green.beforeToday {
                border-bottom: 10px solid #65bd60;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.yellow.beforeToday {
                border-bottom: 10px solid #dbb760;
            }

            .ums_dayContainer.hovered .ums_dayDiamond.red.beforeToday {
                /*border-bottom: 10px solid #db6074;*/
            }
            .ums_dayContainer.hovered .ums_dayDiamond.grayedOut.beforeToday {
                border-bottom: 10px solid #808080;
            }
             .ums_dayContainer.hovered .ums_dayDiamond.blue.hasCorruptedRanges,
             .ums_dayContainer.hovered .ums_dayDiamond.green.hasCorruptedRanges,
             .ums_dayContainer.hovered .ums_dayDiamond.yellow.hasCorruptedRanges,
             .ums_dayContainer.hovered .ums_dayDiamond.red.hasCorruptedRanges,
             .ums_dayContainer.hovered .ums_dayDiamond.blue.beforeToday.hasCorruptedRanges,
             .ums_dayContainer.hovered .ums_dayDiamond.green.beforeToday.hasCorruptedRanges,
             .ums_dayContainer.hovered .ums_dayDiamond.yellow.beforeToday.hasCorruptedRanges
             .ums_dayContainer.hovered .ums_dayDiamond.red.beforeToday.hasCorruptedRanges {
                   border-bottom: 10px solid #2c2c2c;
             }

            /* Diamond shape for the day. Bottom triangle part */
            .ums_dayDiamond:after {
                content: '';
                position: absolute;
                left: -10px;
                top: 10px;
                width: 0;
                height: 0;
                border: 10px solid transparent;
                border-top-color: #ff002b;
            }
                .ums_dayDiamond.blue:after {
                    border-top-color:#0090ff;
                }

                 .ums_dayDiamond.green:after {
                    border-top-color: #0ac200;
                }

                  .ums_dayDiamond.yellow:after {
                    border-top-color: #ffb400;
                }

                   .ums_dayDiamond.red:after {
                    border-top-color: #ff002b;
                }

             /*Diamond before today should be lighter*/ 
            .ums_dayDiamond.beforeToday:after {
                /*border-top-color: #ff667f;*/
            }
            .ums_dayDiamond.blue.beforeToday:after {
                border-top-color: #66bcff;
            }
            .ums_dayDiamond.green.beforeToday:after {
                border-top-color: #6cda66;
            }
            .ums_dayDiamond.yellow.beforeToday:after {
                border-top-color: #ffd266;
            }
            .ums_dayDiamond.red.beforeToday:after {
                /*border-top-color: #ff667f;*/
            }
             .ums_dayDiamond.grayedOut.beforeToday:after {
                border-top-color: #b6b6b6;
            }
            .ums_dayContainer.hovered .ums_dayDiamond.blue:after {
                border-top-color: #1082dc;
            }
            .ums_dayContainer.hovered .ums_dayDiamond.green:after {
                border-top-color: #18ab10;
            }
            .ums_dayContainer.hovered .ums_dayDiamond.yellow:after {
                border-top-color: #db9f0f;
            }
            .ums_dayContainer.hovered .ums_dayDiamond.red:after {
                border-top-color: #db0f31;
            }
            .ums_dayContainer.hovered .ums_dayDiamond.blue.beforeToday:after {
                border-top-color: #60a5db;
            }
             .ums_dayContainer.hovered .ums_dayDiamond.green.beforeToday:after {
                border-top-color: #65bd60;
            }
              .ums_dayContainer.hovered .ums_dayDiamond.yellow.beforeToday:after {
                border-top-color: #dbb760;
            }
               .ums_dayContainer.hovered .ums_dayDiamond.red.beforeToday:after {
                /*border-top-color: #db6074;*/
            }
              .ums_dayContainer.hovered .ums_dayDiamond.grayedOut.beforeToday:after {
                border-top-color: #808080;
            }

             .ums_dayDiamond.blue.hasCorruptedRanges:after,
             .ums_dayDiamond.green.hasCorruptedRanges:after,
             .ums_dayDiamond.yellow.hasCorruptedRanges:after,
             .ums_dayDiamond.red.hasCorruptedRanges:after,
             .ums_dayDiamond.beforeToday.hasCorruptedRanges:after,
             .ums_dayDiamond.blue.beforeToday.hasCorruptedRanges:after,
             .ums_dayDiamond.green.beforeToday.hasCorruptedRanges:after ,
             .ums_dayDiamond.yellow.beforeToday.hasCorruptedRanges:after ,
             .ums_dayDiamond.red.beforeToday.hasCorruptedRanges:after {
                  border-top-color:#4a4a4a;
             }
             .ums_dayContainer.hovered .ums_dayDiamond.blue.hasCorruptedRanges:after ,
             .ums_dayContainer.hovered .ums_dayDiamond.green.hasCorruptedRanges:after ,
             .ums_dayContainer.hovered .ums_dayDiamond.yellow.hasCorruptedRanges:after ,
             .ums_dayContainer.hovered .ums_dayDiamond.red.hasCorruptedRanges:after ,
             .ums_dayContainer.hovered .ums_dayDiamond.blue.beforeToday.hasCorruptedRanges:after ,
             .ums_dayContainer.hovered .ums_dayDiamond.green.beforeToday.hasCorruptedRanges:after,
             .ums_dayContainer.hovered .ums_dayDiamond.yellow.beforeToday.hasCorruptedRanges:after,
             .ums_dayContainer.hovered .ums_dayDiamond.red.beforeToday.hasCorruptedRanges:after {
                 border-top-color:#2c2c2c;
             }

            /* Text inside diamond(count of unfeasible milestones for current day */
            .ums_dayText {
                position: absolute;
                color: white;
                font-size: 10px;
                font-family: GlowBold;
                left: 0;
                right: 0;
                top: 2px;
            }

    /* Container for three dots diamonds(on the left and on the right) */
    .ums_threeDotsContainer {
        position: absolute;
        overflow-y: hidden;
        left: 0;
        width: 720px;
    }

        /* Left and right 'three dots' diamonds */
        .ums_dayContainer.left,
        .ums_dayContainer.right {
            position: absolute;
            overflow-y: hidden;
            margin-right: 0;
            z-index: 100;
            top: -9px;
            /* Do not show by default */
            opacity: 0;
        }

        .ums_dayContainer.left {
            left: 299px;
        }
        .ums_dayContainer.right {
            left: 549px;
        }

            .ums_threeDotsTextContainer {
                position: absolute;
                color: white;
                left: 5px;
                right: 0;
                top: 9px;
            }

                /* Small dots to emulate '...' */
                .ums_dot {
                    width: 2px;
                    height: 2px;
                    background-color: white;
                    float: left;
                    margin-right: 2px;
                }


/* Dropdown with the list of Unfeasible Milestones(appears on diamond hover) */
.ums_dropdownContainer {
    position: absolute;
    max-width: 400px;
    /* Dropdown is always 68px from the top of the browser */
    top: 68px;
    /* Dropdown should be displayed above everything else */
    z-index: 9999;
    background-color: white;
    box-shadow: 0 2px 10px 2px rgba(0, 17, 40, 0.3);
    border-radius: 4px;
    font-family: GlowRegular;
    font-size: 12px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;

    /* make text non-selectable for all children elements */
    -webkit-touch-callout: none;    /* iOS Safari */
    -webkit-user-select: none;      /* Chrome/Safari/Opera */
    -khtml-user-select: none;       /* Konqueror */
    -moz-user-select: none;         /* Firefox */
    -ms-user-select: none;          /* Internet Explorer/Edge */
    user-select: none;              /* Non-prefixed version, currently
                                        not supported by any browser */
}

    /* Triangle above the Dropdown */
    .ums_dropdownContainer > .ums_dropdownTriangle {
        content: " ";
        width: 0;
        height: 0;
        border-bottom: 5px solid #ffffff;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        position: absolute;
        top: -5px;
        margin-bottom: -6px;
    }

        /* Header "Milestones for <date>" */
        .ums_dropdownHeader {
            font-family: GlowSemiBold;
            font-size: 13px;
            color: #4a4a4a;
            padding-top: 8px;
            padding-left: 25px;
            padding-right: 25px;
        }

        /* List of milestones container */
        .ums_milestonesListContainer {
            margin-top: 7px;
            margin-bottom: 7px;
            max-height: 600px;
        }

            /* Milestone item container */
            .ums_milestoneItemContainer {
                height: 23px;
                cursor: pointer;
            }
            .ums_milestoneItemContainer:hover {
                background-color: #F6F7FE;
            }
            .ums_milestoneItemContainer.active {
                cursor: default;
            }

                /* List item diamond container */
                .ums_milestoneItemDiamondContainer {
                    position: relative;
                    float: left;
                    padding-left: 10px;
                    margin-top: 5px;
                }

                    /* List item diamond top of the diamond */
                    .ums_milestoneItemDiamond {
                        position: absolute;
                        width: 0;
                        height: 0;
                        /* Half of width */
                        border: 4px solid transparent;
                        /* Make triangular shape from the middle-center to the bottom-corners.
                           Half the height of the diamond */
                        border-bottom: 4px solid #CB0D00;
                        /* Move triangle to the top half of diamond */
                        top: -3px;
                    }
                        .ums_milestoneItemDiamond.blue {
                            border-bottom: 4px solid #0090ff;
                        }
                         .ums_milestoneItemDiamond.green {
                            border-bottom: 4px solid #0ac200;
                        }
                          .ums_milestoneItemDiamond.yellow {
                            border-bottom: 4px solid #ffb400;
                        }
                           .ums_milestoneItemDiamond.red {
                            border-bottom: 4px solid #ff002b;
                        }
                       .ums_milestoneItemDiamond.hasCorruptedRanges {
                                border-bottom: 4px solid #4a4a4a;
                       }
                    /* List item Diamond before today should be light-red */
                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.blue {
                        border-bottom: 4px solid #66bcff;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.green {
                        border-bottom: 4px solid #6cda66;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.yellow {
                        border-bottom: 4px solid #ffd266;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.red {
                        /*border-bottom: 4px solid #ff667f;*/
                    }
                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.grayedOut {
                        border-bottom: 4px solid #b6b6b6;
                    }
                     .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.blue.hasCorruptedRanges,
                     .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.green.hasCorruptedRanges,
                     .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.yellow.hasCorruptedRanges,
                     .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.red.hasCorruptedRanges {
                          border-bottom: 4px solid #4a4a4a;
                     }

                    /* List item diamond bottom of the diamond */
                    .ums_milestoneItemDiamond:after {
                        content: '';
                        position: absolute;
                        left: -4px;
                        top: 4px;
                        width: 0;
                        height: 0;
                        border: 4px solid transparent;
                    }

                     .ums_milestoneItemDiamond.blue:after {
                            border-top-color:  #0090ff;
                        }
                         .ums_milestoneItemDiamond.green:after {
                            border-top-color: #0ac200;
                        }
                          .ums_milestoneItemDiamond.yellow:after {
                            border-top-color:  #ffb400;
                        }
                        .ums_milestoneItemDiamond.red:after {
                            border-top-color: #ff002b;
                        }
                        .ums_milestoneItemDiamond.hasCorruptedRanges:after {
                            border-top-color: #4a4a4a;
                        }

                     /*List item Diamond before today should be light-red*/ 
                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.blue:after {
                        border-top-color: #66bcff;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.green:after {
                        border-top-color: #6cda66;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.yellow:after {
                        border-top-color: #ffd266;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.red:after {
                        /*border-top-color: #ff667f;*/
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.grayedOut:after {
                        border-top-color: #b6b6b6;
                    }

                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.blue.hasCorruptedRanges:after,
                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.green.hasCorruptedRanges:after,
                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.yellow.hasCorruptedRanges:after,
                    .ums_milestoneItemContainer.beforeToday .ums_milestoneItemDiamond.red.hasCorruptedRanges:after {
                        border-top-color: #4a4a4a;
                    }

                /* List item text */
                .ums_milestoneItemText {
                    font-family: GlowRegular;
                    font-size: 13px;
                    color: #4a4a4a;
                    margin-left: 25px;
                    padding-right: 24px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    top: 1px;
                    position: relative;
                }
                .ums_milestoneItemContainer.active .ums_milestoneItemText {
                    font-family: GlowSemiBold;
                }

/* Dropdown with the list of Unfeasible Milestones(appears on diamond hover) */
.ums_infoDropdownContainer {
    position: absolute;
    width: 455px;
    /* Info Dropdown is always 92px from the top */
    top: 92px;
    /* Info Dropdown should be above everything else */
    z-index: 9999;
    background-color: white;
    box-shadow: 0 3px 10px 2px rgba(0, 17, 40, 0.3);
    border-radius: 4px;
    font-family: GlowRegular;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;

    /* make text non-selectable for all children elements */
    -webkit-touch-callout: none;    /* iOS Safari */
    -webkit-user-select: none;      /* Chrome/Safari/Opera */
    -khtml-user-select: none;       /* Konqueror */
    -moz-user-select: none;         /* Firefox */
    -ms-user-select: none;          /* Internet Explorer/Edge */
    user-select: none;              /* Non-prefixed version, currently
                                        not supported by any browser */
}

    /* Triangle above the Dropdown */
    .ums_infoDropdownContainer > .ums_infoDropdownTriangle {
        content: " ";
        width: 0;
        height: 0;
        border-bottom: 5px solid #ffffff;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        position: absolute;
        top: -5px;
        margin-bottom: -6px;
        left: 123px;
    }

.ums_infoDropdownContainer > .ums_infoDropdownText {
    padding: 15px 18px;
}
.ums_dialog .modal-body {
    padding-bottom: 0;
    padding-top: 11px;
}

.ums_dialog .footer {
    text-align: right;
    padding-right: 30px;
    padding-bottom: 20px;
    padding-top: 20px;
}

    .ums_dialog .footer .ui-btn-light {
        width: 130px;
    }
    .ums_dialog .footer .ui-btn-grey {
         width: 100px;
    }