/* div.ganttview-hzheader-month, div.ganttview-hzheader-day, div.ganttview-vtheader, div.ganttview-vtheader-item-name, div.ganttview-vtheader-series, div.ganttview-grid, div.ganttview-grid-row-cell { */
div.ganttview-hzheader-month, div.ganttview-hzheader-hour, div.ganttview-vtheader, div.ganttview-vtheader-series, div.ganttview-grid, div.ganttview-grid-row-cell, div.ganttview-vtheader-task, div.ganttview-vtheader-action {
    float: left;
}

div.ganttview-hzheader-month, div.ganttview-hzheader-hour {
    text-align: center;
    color: #fff;
    box-sizing: border-box;
}

div.ganttview-grid-row-cell.last, div.ganttview-hzheader-hour.last, div.ganttview-hzheader-month.last {
    border-right: none;
}

div.ganttview {
    border: 1px solid #999;
    border-radius: 5px;
    background-color: var(--header-background-color);
    padding-bottom: 3px;
    padding-right: 1px;
    margin-bottom: 20px;
}

div.ganttview-hzheader-month {
    width: 60px;
    height: 20px;
    /* border-right: 1px solid #d0d0d0; */
    border-right: 1px solid #999;
    line-height: 20px;
    overflow: hidden;
}

div.ganttview-hzheader-hour {
    width: 20px;
    height: 20px;
    /* border-right: 1px solid #f0f0f0;
    border-top: 1px solid #d0d0d0; */
    border-right: 1px solid #999;
    border-top: 1px solid #999;
    line-height: 20px;
    /* color: #555; */
}

/* 左半分( ジョブ・操作列 )表示エリア */
div.ganttview-vtheader {
    /* margin-top: 41px;
    width: 400px; */
    margin-top: 20px;
    width: 30%;
    overflow: hidden;
    /* background-color: #fff; */
    min-width: 300px;
}

/* div.ganttview-vtheader-item {
    color: #555;
} */

/* ジョブ列 */
/* div.ganttview-vtheader-series-name { */
div.ganttview-vtheader-series-task {
    /* width: 400px; */
    width: calc(100% - 140px);
    /* height: 31px; */
    /* line-height: 31px; */
    /* padding-left: 3px; */
    /* border-top: 1px solid #d0d0d0; */
    border-right: 1px solid #999;
    border-bottom: none;
    box-sizing: border-box;
    font-size: 0.9em;
    padding : 5px;
}

/* div.ganttview-vtheader-series-name a { */
div.ganttview-vtheader-series-task a {
    color: #555;
    text-decoration: none;
}

/* div.ganttview-vtheader-series-name a:hover {
    color: #333;
    text-decoration: underline;
} */

/* div.ganttview-vtheader-series-name a i {
    color: #000;
}

div.ganttview-vtheader-series-name a:hover i {
    color: #555;
} */

/* 右半分( 日付とガントチャート )表示エリア */
div.ganttview-slide-container {
    /* overflow: auto; */
    overflow-x: auto;
    overflow-y: hidden;
    border-left: 1px solid #999;
}

/* ガントチャート表示部分のセル( 時間単位 ) */
div.ganttview-grid-row-cell {
    width: 20px;
    /* height: 31px; */
    height: 100%;
    /* border-right: 1px solid #f0f0f0; */
    /* border-top: 1px solid #f0f0f0; */
    box-sizing: border-box;
}

/* div.ganttview-grid-row-cell.ganttview-weekend {
    background-color: #fafafa;
}

div.ganttview-grid-row-cell.ganttview-today {
    background-color: #fcf8e3;
} */

/* ガントチャート */
div.ganttview-blocks {
    margin-top: 40px;
}

/* ガントチャート( 行単位 ) */
div.ganttview-block-container {
    position: relative;
    /* height: 28px; */
    /* padding-top: 4px; */
    box-sizing: border-box;
    border-top: 1px solid #999;
}

/* ガントチャート( 棒グラフ ) */
div.ganttview-block {
    /* position: relative; */
    /* height: 25px; */
    height: 30px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #E5ECF9;
    /* border: 1px solid #c0c0c0; */
    /* border-radius: 3px; */
}

/* .ganttview-block-movable {
    cursor: move;
}

div.ganttview-block-text {
    position: absolute;
    height: 12px;
    font-size: 0.7em;
    color: #666;
    padding: 2px 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */

/* div.ganttview-block div.ui-resizable-handle.ui-resizable-s {
    bottom: 0;
} */

/* div.ganttview-progress-bar {
    z-index: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0.4;
} */

/* 現在時刻表示( 赤線 ) */
div.current-time-line {
    width: 2px;
    height: 100%;
    background-color: #dc3545;
    position: absolute;
    z-index: 50;
}

/* ジョブ列ヘッダー */
div.ganttview-vtheader-task {
    width: calc(100% - 140px);
    border-right: 1px solid #999;
}

/* 操作列ヘッダー */
div.ganttview-vtheader-action {
    width: 140px;
}

div.ganttview-vtheader-task, div.ganttview-vtheader-action {
    height: 20px;
    line-height: 20px;
    border-top: 1px solid #999;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

/* 操作列 */
div.ganttview-vtheader-series-action {
    width: 140px;
    font-size: 0.85em;
    box-sizing: border-box;
    flex-direction: row-reverse;
    align-items: center;
    text-align: right;
    padding : 5px;
}

/* ジョブ・操作列( 全体 ) */
div.ganttview-vtheader-series {
    width: 100%;
    background-color: #fff;
}

/* ジョブ・操作列( 行単位 ) */
div.ganttview-vtheader-series-row {
    border-top: 1px solid #999;
    padding: 0;
}

/* ガントチャート( 全体 ) */
div.ganttview-grid {
    background-color: #fff;
}

/* ガント画面でのホバースタイル */
.ganttview-hover {
    background-color: #ededed;
    background-clip: padding-box;
}

.ganttview-hover .table-list-row {
    background-color: #ededed;
}

/* ガントのベースdiv要素 */
div.gantt-base{
    /* スクロールバーの幅と左右余白(20px*2)を除いた幅を設定 */
    width: calc(100vw - (var(--scrollbar-width) + 40px));
    /* 左右の余白をautoにすることで中央配置にする */
    margin-left: auto !important;
    margin-right: auto !important;
    /* 最小幅の設定 */
    min-width: 700px;
}

/* 760px未満の場合は、左右の余白を20px固定にする設定 
　 760px = min-width + --scrollbar-width + 40px */
@media (max-width:759px) {
    div.gantt-base{
        margin-left:20px !important;
        margin-right:20px !important;
    }
}