
.graph {
    position: relative;
    height: 420px;          /* this is bar height; see also parent .graphPanel in app.css */
    max-width: 260px;
}

.graphBottom { padding-top: 40px; }     /* for "Want details?" text below graph */

    /*******************
     * CHART LEGEND
     *******************/

.graph ul {
    font-size: 12px;
    float: right;
    list-style: none outside none;
    margin: 5px 10px 0 0;
    padding: 0;
    z-index: 100;
}

.graph ul li {
    margin-bottom: 20px;
    padding-left: 14px;
    font-size: 10px;
    cursor: pointer;
    position: relative;
    border: none;
    max-width: 112px;   /* so legend width matches home page width (measured manually) */
}

.no-js .graph ul li {
    padding-left: 0;
}

.graph ul li a,
.graph ul li a:visited,
.graph ul li a:active {
    color: black;
    padding-left: 2px;      /* allow room for rotate legend bar on hover */
    text-decoration: none;
    display: block;
    line-height: normal;
    font-size: 12px;
}
.graph ul li a.active span { font-style: italic; }

.graph ul li a:hover  { color: #888 !important; }     /* hover on legend grays text */
.graph .hover         { color: #888 !important; }     /* hover on graph segment does the same */

.key                  { transition: transform 0.3s ease-in-out; }
.key.hover            { transform: rotate(90deg); }   /* rotate legend color bar to show current hover target */

#theme-home .graph ul li a strong {
    display:inline-block;
    width: 100%;
}

body.scale-big .graph ul li {
    font-size: 12px;
    line-height: 14px;
}
body.scale-biggest .graph ul li {
    font-size: 13px;
    line-height: 15px;
}

.graph ul li .key {
    position: absolute;
    top: 2px;
    left: -2px;
    width: 6px;
    height: 20px;
    display: block;

}

.graph ul li        .indicator { display: none; }
.graph ul li.active .indicator { display: block; }
#theme-home .graph ul li.active .indicator { display:none; }

    /*******************
     * CHART
     * Note: to change (face) width of bars, change BARWIDTH-commented items below in sync (by same amt)
     *******************/

.graph ol {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    position: relative;
    top: 13px;
    float: left;
    width: 110px;   /* BARWIDTH */
}

    /* LI is the segment container. Its box shadow forms the right side of the 3d box. */
.graph ol li {
    width: 95px;    /* BARWIDTH */
    position: relative;
    padding: 0 15px 0 0;
    cursor: pointer;
}

.graph-estimate ol li a,
.graph ol li.estimated a {
    background: url(../img/chart-pattern-b.png) repeat 0 0;
}

.graph-estimate ul li .key,
.graph ul li.estimated .key {
    background: url(../img/chart-pattern-b.png) no-repeat -1px 0;
}

    /* li has the background color and gives the segment its height */
.graph ol li a {
    width: 95px;    /* BARWIDTH */
    position: relative;
    display: block;
    height: 0px;
    min-height: 10px;
    text-indent: -999px;
    font-size: 10px;
    line-height: normal;
    text-decoration: none;
    cursor: pointer;
}

    /* ALL tangrams */
.top-left,
.top-center,
.top-right,
.right-bottom {
    content: "";
    position: absolute;
    border-style: solid;
    display: block;
    width: 0;
}

    /* TOP LEFT corner triangle */
.top-left {
    left: 0; /* horizontal position */
    border-width: 14px 14px 0 0; /* angle of the vertex */
}

    /* TOP rectangle */
.top-center {
    border: none;
    left: 14px; /* controls horizontal position */
    height: 14px;
    width: 81px; /* BARWIDTH; width of left offset */
    cursor: default !important;    /* do not show pointer on the top of the bar chart */
}

    /* ALL TOP tangrams */
.top-left, .top-center, .top-right {
    top: -14px; /* value = - border-top-width - border-bottom-width */
    z-index: 1000;
}

.top-left, .top-right { border-color: transparent; }

    /* BOTTOM RIGHT corner triangle */
.right-bottom {
    bottom: 0; /* value = - border-top-width - border-bottom-width */
    border-color: transparent;
    bottom-bottom: 0px; /*xx*/
}

    /* BOTH RIGHT corner triangles */
.top-right,
.right-bottom {
    left: 95px; /* BARWIDTH; horizontal position */
    border-width: 0 0 14px 14px; /* angle of the vertex */
}


    /* **********************************************
     * non-semantic helper classes
     * Please define your styles before this section
     * **********************************************
     */
.ir{display:block;overflow:hidden;background-repeat:no-repeat;text-align:left;text-indent:-999em;direction:ltr;}
.ir br{display:none;}
.hidden{display:none;visibility:hidden;}
.visuallyhidden{position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;border:0;clip:rect(0 0 0 0);}
.visuallyhidden.focusable:active,.visuallyhidden.focusable:focus{position:static;margin:0;height:auto;width:auto;overflow:visible;clip:auto;}
.invisible{visibility:hidden;}

/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
@media print {
    * { background: transparent; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
    a, a:visited { text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; }
    abbr[title]:after { content: " (" attr(title) ")"; }
    .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
    pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
    thead { display: table-header-group; } /* h5bp.com/t */
    tr, img { page-break-inside: avoid; }
    img { max-width: 100% !important; }
    @page { margin: 0.5cm; }
    p, h2, h3 { orphans: 3; widows: 3; }
    h2, h3 { page-break-after: avoid; }

    .logo img,
    .box-collapsible .box-body,
    .graph img.generatedchart,
    .fallback,
    .box-overlay div
    {
        display: block !important;
    }
    .graph .fallback{
        left: -28px;
    }
    .box-overlay div
    {
        position: relative;
        top: auto;
        left: auto;
        border-left: 0;
        height: auto;
    }
    .graph ul
    {
        position: absolute;
        top: 0;
        right: 0;
    }
    .logo
    {
        height: 65px;
    }
    .box-head a,
    .ico-calendar div,
    .box-default div
    {
        padding: 0;
    }
    .box-overlay span.fallback
    {
        line-height: 27px;
        padding-bottom: 5px;
        border-bottom: 5px solid;
    }
    .box,
    .box-default div,
    .content .main,
    .box-overlay div
    {
        border: none !important;
    }
    .box-body
    {
        border-bottom: 0;
    }
    .box-see .box-body-wrap
    {
        padding-right: 14px !important;
        min-height: 100px;
    }
    .content .nav,
    header.global ul,
    .content .nav-sub,
    footer.global,
    .profiler-results,
    .status,
    .graph ol,
    .btn-close,
    .graph .fallback img.hideonprint,
    #chart-map
    {
        display: none;
    }
    #theme-default .grid_8
    {
        width: 100%;
    }
    .sidebar
    {
        padding-top: 10px;
    }
    .graph ul
    {
        width: 60%;
    }
    .graph ul li .key
    {
        width: 1px;
        height: 0;
        border-width: 5px;
        border-style: solid;
    }
    .graph-estimate ul li .key,
    .graph ul li.estimated .key
    {
        width: 3px;
        height: 3px;
        border-width: 3px;
        border-style: solid;
    }
    .content h3,
    .box-head span,
    .box-body h2,
    .box-head-faux
    {
        font-weight: bold;
    }
    .graph .fallback img
    {
        left: 0;
    }

}
