@import url("https://fonts.googleapis.com/css?family=Roboto:100,400,700");

/* ============================================================
   Gantt Chart — Core Stylesheet
   All classes prefixed with 'gc-' to avoid collisions with
   Bootstrap or other frameworks in the host application.
   Colour values are exposed as CSS custom properties so
   developers can override them without touching this file.

   Font: Roboto is imported above and set as the default via
   --gc-font-family. Override this variable in your own CSS
   to use a different font:
       :root { --gc-font-family: "My Font", sans-serif; }
   ============================================================ */

:root {
    --gc-heading-text-colour:       #ffffff;
    --gc-heading-background-colour: #d3d3d3;
    --gc-alternate-row-colour:      #f6f6f6;
    --gc-now-colour:                rgba(255, 0, 0, 0.08);
    --gc-weekend-colour:            rgba(0, 0, 255, 0.05);
    --gc-bar-default-colour:        #55de84;
    --gc-hover-background-colour:   #8B8000;
    --gc-border-colour:             rgba(0, 0, 0, 0.1);
    --gc-name-column-width:         150px;
    --gc-font-family:               "Roboto", sans-serif;
}

.gc-wrapper {
    font-family: var(--gc-font-family);
    font-size: 14px;
    color: inherit;
    line-height: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: transparent;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* ── Hyperlink reset — prevents host application's global a{}
   and a:hover{} rules from affecting bar links ────────────── */
.gc-wrapper a {
    color: inherit;
    text-decoration: none;
    transition: none;
}

.gc-wrapper a:hover {
    color: inherit;
    text-decoration: none;
}

/* ── Image reset — prevents host application's global img{}
   rules (e.g. display:block, max-width:100%) from affecting
   any images inside the chart ─────────────────────────────── */
.gc-wrapper img {
    display: inline;
    max-width: none;
}

.gc-gantt {
    display: grid;
    border: 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /*box-shadow: 0 75px 125px -57px #7e8f94;*/
    box-shadow: 0 20px 40px -15px rgba(126, 143, 148, 0.6);
}

.gc-gantt-row {
    display: grid;
    grid-template-columns: var(--gc-name-column-width) 1fr;
    background-color: #fff;
    border-top: 1px solid var(--gc-border-colour);
}

.gc-gantt-row:nth-child(even) {
    background-color: var(--gc-alternate-row-colour);
}

.gc-gantt-row:nth-child(even) .gc-gantt-row-name {
    background-color: var(--gc-alternate-row-colour);
}

.gc-gantt-header {
    color: var(--gc-heading-text-colour);
    background-color: var(--gc-heading-background-colour);
    border-top: none !important;
    grid-template-columns: var(--gc-name-column-width) repeat(14, 1fr);  /* Override from template */
}

.gc-gantt-header .gc-gantt-row-name {
    background-color: var(--gc-heading-background-colour);
    border-top: 0 !important;
    border-right: 1px solid var(--gc-border-colour);
}

.gc-gantt-header span {
    display: block;
    height: 100%;
    text-align: center;
    font-size: 11px;
    align-self: auto;
    font-weight: bold;
    padding: 20px 1px;
    border-right: 1px solid var(--gc-border-colour);
    overflow-wrap: normal;
    word-break: keep-all;
    overflow: hidden;
}

.gc-gantt-header .invisible {
    visibility: visible !important;
    border-right: none;
}

.now {
    background-color: var(--gc-now-colour) !important;
}

.weekend {
    background-color: var(--gc-weekend-colour);
}

.gc-gantt-body {
    display: block;
}

.gc-gantt-column-lines {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: transparent;
    grid-template-columns: var(--gc-name-column-width) repeat(28, 1fr);  /* Override from template */
}

.gc-gantt-column-lines span {
    display: block;
    border-right: 1px solid var(--gc-border-colour);
}

.gc-gantt-column-lines .invisible {
    display: block;
    visibility: visible !important;
    border-right: none;
}

.gc-gantt-column-lines .fine {
    display: block;
    border-right: 1px dashed var(--gc-border-colour);
}

.gc-gantt-column-lines::after {
    grid-row: 1;
    grid-column: 0;
    background-color: #1688b3;
    z-index: 2;
    height: 100%;
}

.gc-gantt-row-name {
    background-color: #fff;
    padding: 15px 0;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.gc-gantt-bars {
    list-style: none;
    display: grid;
    padding: 9px 0;
    margin: 0;
    grid-template-columns: repeat(28, minmax(0, 1fr));  /* Override from template */
    grid-gap: 8px 0;
}

.gc-gantt-bars li {
    font-weight: 500;
    text-align: left;
    font-size: 14px;
    min-height: 15px;
    background-color: var(--gc-bar-default-colour);
    padding: 5px 12px;
    color: #fff;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    z-index: 3;
}

.gc-gantt-bars li::before,
.gc-gantt-bars li::after {
    content: "";
    height: 100%;
    top: 0;
    z-index: 4;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
}

.gc-gantt-bars li::before { left: 0; }
.gc-gantt-bars li::after  { right: 0; }

.gc-gantt-bars .stripes {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, .1) 5px,
        rgba(255, 255, 255, .1) 12px
    );
}

/* Make the entire Gantt bar clickable */
.gc-gantt-bars a {
    display: block;
    color: inherit;
    text-decoration: inherit;
}

/* Hoverable container */
.gc-hoverable {
    position: relative;
    display: inline-block;
}

/* Hover text */
.gc-hoverable .gc-hovertext {
    visibility: hidden;
    cursor: default;
    width: 120px;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    background-color: var(--gc-hover-background-colour);
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: 1000ms;
}

.gc-hoverable:hover .gc-hovertext {
    visibility: visible;
    opacity: 1;
    transition: 500ms;
}

/* Speech bubble pointer on hover text */
.gc-hoverable .gc-hovertext::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--gc-hover-background-colour) transparent transparent transparent;
}

/* Responsive breakpoints */
@media only screen and (max-width: 1280px) {
    .gc-gantt-header span  { font-size: 12px; }
    .gc-gantt-row-name     { font-size: 13px; }
    .gc-gantt-bars li      { font-size: 13px; }
    .gc-hoverable .gc-hovertext { font-size: 11px; }
}

@media only screen and (max-width: 1024px) {
    .gc-gantt-header span  { font-size: 12px; }
    .gc-gantt-row-name     { font-size: 13px; }
    .gc-gantt-bars li      { font-size: 13px; }
    .gc-hoverable .gc-hovertext { font-size: 11px; }
}

@media only screen and (max-width: 736px) {
    .gc-gantt-header span  { font-size: 12px; }
    .gc-gantt-row-name     { font-size: 13px; }
    .gc-gantt-bars li      { font-size: 13px; }
    .gc-hoverable .gc-hovertext { font-size: 11px; }
}

@media only screen and (max-width: 667px) {
    .gc-gantt-header span  { font-size: 12px; }
    .gc-gantt-row-name     { font-size: 13px; }
    .gc-gantt-bars li      { font-size: 13px; }
    .gc-hoverable .gc-hovertext { font-size: 11px; }
}

@media only screen and (max-width: 600px) {
    .gc-gantt-header span  { font-size: 12px; }
    .gc-gantt-row-name     { font-size: 13px; }
    .gc-gantt-bars li      { font-size: 13px; }
    .gc-hoverable .gc-hovertext { font-size: 11px; }
}
