﻿:root {
    --gnt-backgound-head: #f5f5f5ff;
    --gnt-backgound-week: #ffffffff;
    --gnt-backgound-holiday-global: #DCDCDC;
    --gnt-backgound-holiday: #EAEAEA;
    --gnt-timebar-row-height: 20px;
    --gnt-timebar-nav-height: 25px;
    --gnt-head-height: calc(var(--gnt-timebar-nav-height) + 3 * var(--gnt-timebar-row-height));
    --gnt-head-border: darkgrey;
    --gnt-cell-border: lightgrey;
    --gnt-height-task: 40px;
    --gnt-height-row: 35px;
    --gnt-head-text: #424242ff;
    --gnt-typography-default-family: var(--body-font);
    --gnt-title-height: 40px;
    --gnt-title-width: 12%;
    --gnt-splitter-width: 8px;
}

.gantt {
    font-family: Arial;
    border: 1px solid #cecece;
    color: #6b6b6b;
    font-size: 12px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.gnt_layout_content {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.gnt_grid {
    width: 40vw;
}

.gnt_head {
    display: flex;
    height: var(--gnt-head-height);
    background-color: var(--gnt-backgound-head);
    color: var(--gnt-head-text);
    font-size: 12px;
    border-bottom: 1px solid #cecece;
    border-right-width: 1px;
    box-sizing: border-box;
    cursor: zoom-in;
}

.gnt_grid_head_cell {
    border-top: none !important;
    border-right: none !important;
    overflow: hidden;
}



.gnt_task_vscroll {
    background-color: #fff;
}


.gnt_grid_head_cell {
    display: inline-block;
    line-height: var(--gnt-head-height);
    vertical-align: top;
    border-right: 1px solid #cecece;
    text-align: center;
    cursor: default;
    height: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
}


.gnt_titles
.gnt_cell {
    border-right: none;
    color: #454545;
}

.gnt_day_cell {
    display: inline-block;
    white-space: nowrap;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid #cecece;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
}
    .gnt_day_cell:hover {
        border: 1px solid #D48E23;
    }

    .gnt_week_cell {
        border-bottom: 1px solid #cecece;
    }

.gnt_titles {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: overlay;
}

    .gnt_titles .gnt_row.odd:hover, .gnt_titles .gnt_row:hover {
        background-color: #e3e3e3;
    }


    .gnt_titles .gnt_last_cell,
    .gnt_grid_scale .gnt_last_cell,
    .gnt_task .gnt_task_scale .gnt_day_cell.gnt_last_cell,
    .gnt_task_bg .gnt_last_cell {
        border-right-width: 0
    }

.gnt_row {
    display: flex;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -moz-user-select: -moz-none;
    height: var(--gnt-height-row);
    line-height: var(--gnt-height-row);
    border-bottom: 1px solid var(--gnt-head-border);
    background-color: #fff;
}

    .gnt_row > div {
        flex-shrink: 0;
        flex-grow: 0
    }


    .gnt_row.gnt_project,
    .gnt_row.odd.gnt_project {
        background-color: #edffef;
    }
    .gnt_row.hovered {
        background-color: lightblue;
        border-color: #00aaff;
    }


    .gnt_task_row {
        border-bottom: 1px dashed var(--gnt-head-border);
        background-color: #fff;
        display: flex;
    }

    .gnt_row.gnt_title {
        background-color: var(--gnt-backgound-head);
    }

.gnt_cell,
.gnt_grid_head_cell,
.gnt_row,
.gnt_day_cell,
.gnt_task_cell,
.gnt_task_row {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}


.gnt_cell {
    display: flex;
    vertical-align: top;
    border-right: 1px solid #ebebeb;
    padding-left: 6px;
    padding-right: 6px;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
}

.gnt_cell_tree {
    display: flex;
    flex-wrap: nowrap;
}


.gnt_tree_indent {
    flex-grow: 0;
    flex-shrink: 0;
    width: 15px;
    height: 100%;
}

/*content*/
.gnt_task {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.timebar-rows {
    display: flex;
    flex-direction: column;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-box-flex: 1;
    flex: 1 1 100%;
    height: var(--gnt-head-height);
    min-height: var(--gnt-head-height);
}

.timebar-row {
    display: flex;
    flex-direction: row;
    height: var(--gnt-timebar-row-height);
    line-height: var(--gnt-timebar-row-height);
}

.timebar-nav {
    width:29px;
}

.timebar-nav:first-child {
    border-right: 1px solid #cecece;
}

.timebar-nav:last-child {
    border-left: 1px solid #cecece;
}

.timebar-row:first-child {
    cursor: default;
    height: var(--gnt-timebar-nav-height);
    line-height: var(--gnt-timebar-nav-height);
    min-height: var(--gnt-timebar-nav-height);
}

.arrow-svg {
    fill: #0000004d;
    width: 100%;
    height: 100%;
}

.gnt_layout_cell.gnt_ver_scroll {
    width: 0;
    background-color: transparent;
    height: 1px;
    overflow-x: hidden;
    overflow-y: scroll;
    position: absolute;
    right: 0;
    z-index: 1;
}

/*task area*/

.gnt_area {
    position: relative;
    overflow-x: hidden;
    /*overflow-y: hidden;*/
    user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
}

.gnt_task_bg {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gnt_links_area {
    overflow: hidden;
}

.gnt_events_area {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gnt_task_cell {
    display: inline-block;
    height: 100%;
}
    .gnt_task_cell:hover {
        border: 1px solid grey;
        cursor: pointer;
    }

/* events */
.gnt_link_horiz {
    padding: 0px;
    margin: 0px;
    height: 1px;
    background-color: black;
    line-height: 1px;
    position: absolute;
}

.gnt_link_vert {
    padding: 0px;
    margin: 0px;
    width: 1px;
    background-color: black;
    position: absolute;
}


.gnt_link_control {
    position: absolute;
    width: 20px;
    top: 0;
}

    .gnt_link_control div {
        display: none;
        cursor: pointer;
        box-sizing: border-box;
        position: relative;
        top: 50%;
        margin-top: -7.5px;
        vertical-align: middle;
        border: 1px solid #929292;
        border-radius: 6.5px;
        height: 13px;
        width: 13px;
        background-color: #f0f0f0;
    }

.triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #000000;
    position: absolute;
    display: block;
}

/*horizontal scroll*/
.gnt_hor_scroll {
    height: 0;
    background-color: transparent;
    width: 100%;
    clear: both;
    overflow-x: scroll;
    overflow-y: hidden;
}

.gnt_layout_cell .gnt_hor_scroll {
    position: absolute;
}

.gnt_hor_scroll > div {
    width: 5000px;
    height: 1px;
}

