
/********************
 * HTML CSS
 */

body {
  overflow-y: scroll;
}

text {
  font: 12px sans-serif;
}

#header {
    position: relative;
    height: 50px;
    margin: 10px;
}

#title {
    position: absolute;
    top: 0px;
    left: 0px;
    font-size: 22px;
    width: 280px;
    font-weight: bold;
}

#title a {
    text-decoration:none;
    color:#000000;
}

#menu {
    display: none;
    position: absolute;
    top: 1px;
    left: 207px;
}

#option-menu {
    display: none;
    position: absolute;
    top: 1px;
    left: 460px;
}

#rangeslider {
    display: none;
    position: absolute;
    top: 1px;
    left: 635px;
}

#help {
    display: none;
    position: absolute;
    top: 5px;
    left: 870px;
    cursor:pointer;
}

#chart1 {
    position: relative;
    height: 500px;
    margin: 10px;
    min-width: 100px;
    min-height: 100px;
/*
  Minimum height and width is a good idea to prevent negative SVG dimensions...
  For example width should be =< margin.left + margin.right + 1,
  of course 1 pixel for the entire chart would not be very useful, BUT should not have errors
  */
}

#footer {
    position: relative;
    height: 100px;
    margin: 0px 10px;
}

#update-history {
    /*
    width: 100px;
    */
    display:none;
    position: absolute;
    top: 0px;
    right: 1.5em;
    height: 30px;
}

#search {
    /*
    width: 100px;
    right: 88px;
    */
    display:none;
    position: absolute;
    top: 0px;
    right: 8em;
    height: 30px;
}

#random-trends {
    /*
    */
    display:none;
    position: absolute;
    top: 0px;
    right: 14.5em;
    height: 30px;
}

#data-cp-area {
    position:absolute;
    top:0px;
    left: 100px;
    width: 550px;
    font-size: 12px;
    color: #333;
    margin-bottom: 15px;
}

#data-cp-area h3 {
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 13px;
}

#data-cp-area dl {
    overflow: hidden;
    zoom: 1;
    margin-top: 7px;
    margin-bottom: 0px;
}

#data-cp-area dl dt {
    font-weight: bold;
    float: left;
    clear: both;
    text-align: right;
    width: 145px;
}

#data-cp-area dl dd {
    margin-left: 0px;
    padding: 0 0 5px 150px;
    text-align: left;
}

#data-cp-area p {
    margin: 0;
    padding: 1px;
    text-align: left;
}



#social {
    position:absolute;
    top:69px;
    right:0px;
    width:460px;
}

ul.social li{
    list-style-type: none;
    float: left !important;
    margin-bottom: 15px;
}

li.facebook {
    width: 130px;
}

li.twitter {
    width: 105px;
}

li.hatena-bookmark {
    width: 60px;
}

li.google-plusone {
    width: 80px;
}

li.feed {
    width: 30px;
}

#link {
    position:absolute;
    top:50px;
    right:0px;
    text-align:right;
}

#link .link,
#link .text {
    font-size:11px;
}

#link .link {
    cursor:pointer;
}

#dialog ul {
    padding-left: 1.1em;
}

#dialog p,
#dialog .help-li,
#update-history-dialog p,
#update-history-dialog .help-li,
#tip-dialog p,
#tip-dialog .help-li {
    font-size: 1em;
    padding: 0em;
    text-align: left;
}

#update-history-dialog .help-li-comment {
    font-size: 0.8em;
    padding: 0em;
    text-align: left;
    list-style-type: none;
}

#dialog .help-li {
    padding: 0.4em 0em;
}

#dialog .help-li .emphasis {
    font-weight: bold;
    text-decoration: underline;
}

.dialog {
    display: none;
}

.ui-dialog-titlebar-close {
    /*
    visibility: hidden;
    */
}

.ui-dialog-titlebar {
    /*
    display:none;
    */
}

.dialog h2 {
    font-size: 30px;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left;
}

#update-history-dialog {
    padding-left: 0px;
    padding-right: 4px;
}

#update-history-dialog h2 {
    font-size: 1.3em;
    display: block;
    /*
    margin: 10px 0px 7px;
    padding: 3px 6px;
    */

    border: 1px solid #fbcb09;
    background: #fdf5ce;
    font-weight: bold;
    color: #c77405;


    padding: 0.1em 0.3em;
    clear: both;

    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -khtml-border-radius: 4px;
    border-radius: 4px;
}

#update-history-dialog p.data-description {
    padding: 0em 1.0em;
    font-weight: bold;
}

#update-history-dialog p {
    padding: 0em 1.0em;
    font-weight: normal;
}

#update-history-dialog div.update-history-log {
    margin-bottom: 3em;
}

.ui-autocomplete {
    max-height: 134px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

#search-dialog {
    text-align: left;
    overflow-x: hidden;
    padding-right: 2px;
}

#search-dialog input {
    width: 190px;
}

input.ui-button {
    /*
    */
    padding: .2em 0.5em;
}

.ui-multiselect-checkboxes li.ui-multiselect-optgroup-label {
    text-align: left;
}

.ui-multiselect-checkboxes label.ui-corner-all {
    /*
    text-indent:-18px;
    padding-left:18px;
      */
    text-indent:-1.5em;
    padding-left:1.5em;
}

.ui-multiselect-checkboxes label.ui-corner-all-indented-1 {
    /*
      */
    margin-left:1.5em;
}


.k-slider-selection {
    /*
    background-color: #f0713a;
    */
    border: 1px solid #e78f08;
    background: #f6a828;
}

.k-draghandle.k-state-selected:hover {
    border-color: #fbcb09;
    background-color: #fdf5ce;
}

.k-draghandle.k-state-selected {
    border-color: #fbcb09;
    background-color: #fdf5ce;
}

.k-draghandle:hover {
    border-color: #fbcb09;
    background-color: #e3e3e3;
}

.k-state-hover,
.k-state-hover:hover {
    border-color: #fbcb09;
    background-color: #e3e3e3;
}

.k-slider-horizontal .k-tick {
    background-image: none;
}


.k-tooltip {
    margin-top: 52px;
}

.k-label {
    margin-top: 5px;
}



.chartWrap {
  margin: 0;
  padding: 0;
  overflow: hidden;
}


/********************
 * TOOLTIP CSS
 */

.nvtooltip {
  /*
  padding: 10px;
  */
  background-color: rgba(255,255,255,1);
  padding: 10px 10px 10px 10px;
  border: 1px solid #ddd;
  z-index: 10000;
  position: absolute;

  font-family: Arial;
  font-size: 14px;

  width: 400px;

  transition: opacity 50ms linear;
  -moz-transition: opacity 50ms linear;
  -webkit-transition: opacity 50ms linear;

  transition-delay: 50ms;
  -moz-transition-delay: 50ms;
  -webkit-transition-delay: 50ms;

  -moz-box-shadow: 4px 4px 8px rgba(0,0,0,.5);
  -webkit-box-shadow: 4px 4px 8px rgba(0,0,0,.5);
  box-shadow: 4px 4px 8px rgba(0,0,0,.5);

  -moz-border-radius: 10px;
  border-radius: 10px;

  pointer-events: none;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nvtooltip100PctStacked {
    width: 480px;
}

.nvtooltip h3 {
  margin: 0;
  padding: 0;
  text-align: left;
}

.nvtooltip dl {
    overflow: hidden;
    zoom: 1;
    margin-top: 7px;
    margin-bottom: 0px;
}

.nvtooltip dl dt {
    font-weight: bold;
    float: left;
    clear: both;
    text-align: right;
    width: 90px;
}

.nvtooltip100PctStacked dl dt {
    width: 170px;
}

.nvtooltip dl dd {
    margin-left: 0px;
    padding: 0 0 5px 95px;
    text-align: left;
}

.nvtooltip100PctStacked dl dd {
    padding: 0 0 5px 175px;
}

.nvtooltip p {
    margin: 0;
    padding: 1px;
    text-align: left;
    font-size: 11px;
}

.nvtooltip span {
  display: inline-block;
  margin: 2px 0;
}

.nvtooltip-pending-removal {
  position: absolute;
  pointer-events: none;
}


/********************
 * SVG CSS
 */


svg {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Trying to get SVG to act like a greedy block in all browsers */
  display: block;
  width:100%;
  height:100%;
}


svg text {
  font: normal 12px Arial;
}

svg .title {
 font: bold 14px Arial;
}

.nvd3 .nv-background {
  fill: white;
  fill-opacity: 0;
  /*
  pointer-events: none;
  */
}

.nvd3.nv-noData {
  font-size: 18px;
  font-weight: bolf;
}


/**********
*  Brush
*/

.nv-brush .extent {
  fill-opacity: .125;
  shape-rendering: crispEdges;
}



/**********
*  Legend
*/

.nvd3 .nv-legend .nv-series {
  cursor: pointer;
}

.nvd3 .nv-legend .disabled circle {
  fill-opacity: 0;
}



/**********
*  Axes
*/

.nvd3 .nv-axis path {
  fill: none;
  stroke: #000;
  stroke-opacity: .75;
  shape-rendering: crispEdges;
}

.nvd3 .nv-axis path.domain {
  stroke-opacity: .75;
}

.nvd3 .nv-axis.nv-x path.domain {
  stroke-opacity: 0;
}

.nvd3 .nv-axis line {
  fill: none;
  stroke: #000;
  stroke-opacity: .25;
  shape-rendering: crispEdges;
}

.nvd3 .nv-axis line.zero {
  stroke-opacity: .75;
}

.nvd3 .nv-axis .nv-axisMaxMin text {
  font-weight: bold;
}

.nvd3 .x  .nv-axis .nv-axisMaxMin text,
.nvd3 .x2 .nv-axis .nv-axisMaxMin text,
.nvd3 .x3 .nv-axis .nv-axisMaxMin text {
  text-anchor: middle
}



/**********
*  Brush
*/

.nv-brush .resize path {
  fill: #eee;
  stroke: #666;
}



/**********
*  Bars
*/

.nvd3 .nv-bars .negative rect {
    zfill: brown;
}

.nvd3 .nv-bars rect {
  zfill: steelblue;
  fill-opacity: .75;

  transition: fill-opacity 250ms linear;
  -moz-transition: fill-opacity 250ms linear;
  -webkit-transition: fill-opacity 250ms linear;
}

.nvd3 .nv-bars rect:hover {
  fill-opacity: 1;
}

.nvd3 .nv-bars .hover rect {
  fill: lightblue;
}

.nvd3 .nv-bars text {
  fill: rgba(0,0,0,0);
}

.nvd3 .nv-bars .hover text {
  fill: rgba(0,0,0,1);
}


/**********
*  Bars
*/

.nvd3 .nv-multibar .nv-groups rect,
.nvd3 .nv-multibarHorizontal .nv-groups rect,
.nvd3 .nv-discretebar .nv-groups rect {
  stroke-opacity: 0;

  transition: fill-opacity 250ms linear;
  -moz-transition: fill-opacity 250ms linear;
  -webkit-transition: fill-opacity 250ms linear;
}

.nvd3 .nv-multibar .nv-groups rect:hover,
.nvd3 .nv-multibarHorizontal .nv-groups rect:hover,
.nvd3 .nv-discretebar .nv-groups rect:hover {
  fill-opacity: 1;
}

.nvd3 .nv-multibar .nv-groups rect.null {
  stroke-opacity: 0;
  fill-opacity: 0;
}

.nvd3 .nv-discretebar .nv-groups text,
.nvd3 .nv-multibarHorizontal .nv-groups text {
  font-weight: bold;
  fill: rgba(0,0,0,1);
  stroke: rgba(0,0,0,0);
}

/***********
*  Pie Chart
*/

.nvd3.nv-pie path {
  stroke-opacity: 0;

  transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
  -moz-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;
  -webkit-transition: fill-opacity 250ms linear, stroke-width 250ms linear, stroke-opacity 250ms linear;

}

.nvd3.nv-pie .nv-slice text {
  stroke: #000;
  stroke-width: 0;
}

.nvd3.nv-pie path {
  stroke: #fff;
  stroke-width: 1px;
  stroke-opacity: 1;
}

.nvd3.nv-pie .hover path {
  fill-opacity: .7;
/*
  stroke-width: 6px;
  stroke-opacity: 1;
*/
}

.nvd3.nv-pie .nv-label rect {
  fill-opacity: 0;
  stroke-opacity: 0;
}

/**********
* Lines
*/

.nvd3 .nv-groups path.nv-line {
    /*
    line width setting
     */
  fill: none;
  stroke-width: 2.5px;
  /*
  stroke-linecap: round;
  shape-rendering: geometricPrecision;

  transition: stroke-width 250ms linear;
  -moz-transition: stroke-width 250ms linear;
  -webkit-transition: stroke-width 250ms linear;

  transition-delay: 250ms
  -moz-transition-delay: 250ms;
  -webkit-transition-delay: 250ms;
  */
}

.nvd3 .nv-groups path.nv-area {
  stroke: none;
  /*
  stroke-linecap: round;
  shape-rendering: geometricPrecision;

  stroke-width: 2.5px;
  transition: stroke-width 250ms linear;
  -moz-transition: stroke-width 250ms linear;
  -webkit-transition: stroke-width 250ms linear;

  transition-delay: 250ms
  -moz-transition-delay: 250ms;
  -webkit-transition-delay: 250ms;
  */
}

.nvd3 .nv-line.hover path {
  stroke-width: 6px;
}

/*
.nvd3.scatter .groups .point {
  fill-opacity: 0.1;
  stroke-opacity: 0.1;
}
  */

.nvd3.nv-line .nvd3.nv-scatter .nv-groups .nv-point {
  fill-opacity: 0;
  stroke-opacity: 0;
}

.nvd3.nv-scatter.nv-single-point .nv-groups .nv-point {
  fill-opacity: .5 !important;
  stroke-opacity: .5 !important;
}

/*
*/
.nvd3 .nv-groups {
  stroke: #F2F2F2;
}

.nvd3 .nv-groups .nv-point {
    /*
  stroke: #FFFFFF;
  transition: stroke-width 250ms linear, stroke-opacity 250ms linear, stroke 250ms linear;
  -moz-transition: stroke-width 250ms linear, stroke-opacity 250ms linear, stroke 250ms linear;
  -webkit-transition: stroke-width 250ms linear, stroke-opacity 250ms linear, stroke 250ms linear;

*/
  fill: #F2F2F2;

  transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
  -moz-transition: stroke-width 250ms linear, stroke-opacity 250ms linear;
  -webkit-transition: stroke-width 250ms linear, stroke-opacity 250ms linear;

}

.nvd3.nv-scatter .nv-groups .nv-point,
.nvd3 .nv-groups .nv-point {
    /*
      marker width setting
      */
  stroke-width: 2.5px;
  fill-opacity: .5 !important;
  stroke-opacity: .5 !important;
}

.nvd3.nv-scatter .nv-groups .null-point,
.nvd3 .nv-groups .null-point {
    /*
      marker width setting
      */
  stroke-width: 2.5px;
  fill-opacity: 0 !important;
  stroke-opacity: 0 !important;
}

.nvd3.nv-scatter .nv-groups .nv-point.hover,
.nvd3 .nv-groups .nv-point.hover {
  stroke-width: 20px;
  fill-opacity: .5 !important;
  stroke-opacity: .5 !important;
}

.nvd3.nv-scatter .nv-groups .null-point.hover,
.nvd3 .nv-groups .null-point.hover {
  stroke-width: 20px;
  fill-opacity: 0 !important;
  stroke-opacity: 0 !important;
}


  /*
.nvd3.nv-scatter .nv-groups .null-point,
.nvd3 .nv-groups .null-point {
  fill-opacity: 0;
  stroke-opacity: 0;
}
  */

.nvd3 .nv-point-paths path {
    /*
  */
  stroke-opacity: 0;
  fill-opacity: 0;
  stroke: #aaa;
  fill: #eee;
}



.nvd3 .nv-indexLine {
  cursor: ew-resize;
}


/**********
* Distribution
*/

.nvd3 .nv-distribution {
  pointer-events: none;
}



/**********
*  Scatter
*/

/* **Attempting to remove this for useVoronoi(false), need to see if it's required anywhere
.nvd3 .nv-groups .nv-point {
  pointer-events: none;
}
*/

.nvd3 .nv-groups .nv-point.hover {
  stroke-width: 20px;
  stroke-opacity: .5;
}

.nvd3 .nv-scatter .nv-point.hover {
  fill-opacity: 1;
}

/*
.nv-group.hover .nv-point {
  fill-opacity: 1;
}
*/


/**********
*  Stacked Area
*/

.nvd3.nv-stackedarea path.nv-area {
  fill-opacity: .7;
  /*
  stroke-opacity: .65;
  fill-opacity: 1;
  */
  stroke-opacity: 0;

  transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
  -moz-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;
  -webkit-transition: fill-opacity 250ms linear, stroke-opacity 250ms linear;

  /*
  transition-delay: 500ms;
  -moz-transition-delay: 500ms;
  -webkit-transition-delay: 500ms;
  */

}

.nvd3.nv-stackedarea path.nv-area.hover {
  fill-opacity: .9;
  /*
  stroke-opacity: .85;
  */
}
/*
.d3stackedarea .groups path {
  stroke-opacity: 0;
}
  */



.nvd3.nv-stackedarea .nv-groups .nv-point {
  stroke-opacity: 0;
  fill-opacity: 0;
}

.nvd3.nv-stackedarea .nv-groups .nv-point.hover {
  stroke-width: 20px;
  stroke-opacity: .75;
  fill-opacity: 1;
}



/**********
*  Line Plus Bar
*/

.nvd3.nv-linePlusBar .nv-bar rect {
  fill-opacity: .75;
}

.nvd3.nv-linePlusBar .nv-bar rect:hover {
  fill-opacity: 1;
}


/**********
*  Bullet
*/

.nvd3.nv-bullet { font: 10px sans-serif; }
.nvd3.nv-bullet .nv-measure { fill-opacity: .8; }
.nvd3.nv-bullet .nv-measure:hover { fill-opacity: 1; }
.nvd3.nv-bullet .nv-marker { stroke: #000; stroke-width: 2px; }
.nvd3.nv-bullet .nv-markerTriangle { stroke: #000; fill: #fff; stroke-width: 1.5px; }
.nvd3.nv-bullet .nv-tick line { stroke: #666; stroke-width: .5px; }
.nvd3.nv-bullet .nv-range.nv-s0 { fill: #eee; }
.nvd3.nv-bullet .nv-range.nv-s1 { fill: #ddd; }
.nvd3.nv-bullet .nv-range.nv-s2 { fill: #ccc; }
.nvd3.nv-bullet .nv-title { font-size: 14px; font-weight: bold; }
.nvd3.nv-bullet .nv-subtitle { fill: #999; }


.nvd3.nv-bullet .nv-range {
  fill: #999;
  fill-opacity: .4;
}
.nvd3.nv-bullet .nv-range:hover {
  fill-opacity: .7;
}



/**********
* Sparkline
*/

.nvd3.nv-sparkline path {
  fill: none;
}

.nvd3.nv-sparklineplus g.nv-hoverValue {
  pointer-events: none;
}

.nvd3.nv-sparklineplus .nv-hoverValue line {
  stroke: #333;
  stroke-width: 1.5px;
 }

.nvd3.nv-sparklineplus,
.nvd3.nv-sparklineplus g {
  pointer-events: all;
}

.nvd3 .nv-hoverArea {
  fill-opacity: 0;
  stroke-opacity: 0;
}

.nvd3.nv-sparklineplus .nv-xValue,
.nvd3.nv-sparklineplus .nv-yValue {
  /*
  stroke: #666;
  */
  stroke-width: 0;
  font-size: .9em;
  font-weight: normal;
}

.nvd3.nv-sparklineplus .nv-yValue {
  stroke: #f66;
}

.nvd3.nv-sparklineplus .nv-maxValue {
  stroke: #2ca02c;
  fill: #2ca02c;
}

.nvd3.nv-sparklineplus .nv-minValue {
  stroke: #d62728;
  fill: #d62728;
}

.nvd3.nv-sparklineplus .nv-currentValue {
  /*
  stroke: #444;
  fill: #000;
  */
  font-weight: bold;
  font-size: 1.1em;
}

/**********
* historical stock
*/

.nvd3.nv-ohlcBar .nv-ticks .nv-tick {
  stroke-width: 2px;
}

.nvd3.nv-ohlcBar .nv-ticks .nv-tick.hover {
  stroke-width: 4px;
}

.nvd3.nv-ohlcBar .nv-ticks .nv-tick.positive {
 stroke: #2ca02c;
}

.nvd3.nv-ohlcBar .nv-ticks .nv-tick.negative {
 stroke: #d62728;
}

.nvd3.nv-historicalStockChart .nv-axis .nv-axislabel {
  font-weight: bold;
}

.nvd3.nv-historicalStockChart .nv-dragTarget {
  fill-opacity: 0;
  stroke: none;
  cursor: move;
}

.nvd3 .nv-brush .extent {
  /*
  cursor: ew-resize !important;
  */
  fill-opacity: 0 !important;
}

.nvd3 .nv-brushBackground rect {
  stroke: #000;
  stroke-width: .4;
  fill: #fff;
  fill-opacity: .7;
}



/**********
* Indented Tree
*/


/**
 * TODO: the following 3 selectors are based on classes used in the example.  I should either make them standard and leave them here, or move to a CSS file not included in the library
 */
.nvd3.nv-indentedtree .name {
  margin-left: 5px;
}

.nvd3.nv-indentedtree .clickable {
  color: #08C;
  cursor: pointer;
}

.nvd3.nv-indentedtree span.clickable:hover {
  color: #005580;
  text-decoration: underline;
}


.nvd3.nv-indentedtree .nv-childrenCount {
  display: inline-block;
  margin-left: 5px;
}

.nvd3.nv-indentedtree .nv-treeicon {
  cursor: pointer;
  /*
  cursor: n-resize;
  */
}

.nvd3.nv-indentedtree .nv-treeicon.nv-folded {
  cursor: pointer;
  /*
  cursor: s-resize;
  */
}
