/*set page minimums*/
html, body
{
    //min-height:615px;
    //min-width:996px;
}


/* change colors and add shadow 12/3/13 RBS */
#page
{
    background-color: #f0f0f0;
    width:100%;   /*full page options -- make it full width!*/
    margin-left:5px;
    position:relative;
}

/*Note, check qcIndex.php for other CSS, as they were not working from here*/
/*#graphSuperContainer
{
    position:absolute;
    top:0;
    padding:50px 0 2px 0;
    width:100%;
}*/

/*dialog above title bar*/
.ui-dialog {
    //z-index: 1031 !important;
}

/*annotation dialog for flag and notes on canvas click*/
#annotateDialog
{
    max-width:300px;
    max-height:300px;
    border:1px solid black;
    background-color: yellow;
    display:none;
    position:absolute;
    z-index:1001;
    padding:5px;
    overflow-y: auto;
}
.a_list{
    padding-left:20px;
}
.a_note, .a_flag {
    font-size:11px;
}
 .a_type {
    font-weight:bold;
 }
 .a_text {

 }
/*End annotation dialog*/


/*required for time selector graph to keep handles above the xAxislabels.*/
/*.dygraph-rangesel-zoomhandle
{z-index:101 !important;}*/

.close
{
    position: absolute;
    height: 30px !important;
    width: 30px !important;
    right: 0px !important;
    top: 0px !important;
    z-index:1030 !important;
}

#stationSelectorContainer
{
    position:absolute;
    width:170px;
}
.stationSelector
{
    box-shadow: 3px 3px 4px #888888;
    background-color: white;
    position:relative;
    margin:0 5px 5px 10px;
    padding-top:2px;
    padding-bottom:2px;
    width:100%;
    height:100%;
}



.graphContainer
{
    box-shadow: 3px 3px 4px #888888;
    background-color: white;
    position:relative;
    margin:0 10px 5px 10px;
    padding-top:2px;
    padding-bottom:2px;
}


.rangeLegend /*same as .graphContainer except no background*/
{
    box-shadow: 3px 3px 4px #888888;
    background-color: white;
    position:relative;
    margin:0 10px 5px 10px;
    padding-top:2px;
    padding-bottom:2px;
    height:30px;
}

.rangeContainer /*same as .graphContainer except no background*/
{
    position:relative;
    margin:-2px 10px 5px 10px;
    padding-top:0px;
    padding-bottom:2px;
    height:30px;
}

.rangeGBtn
{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 20px;
    width:30px;
    height:30px;
    z-index: 10;
    margin-top:1px;
    background: #bec4d3;
}

/*resize button interior for large text*/
button.rangeGBtn .ui-button-text {
    padding: 0;
}


.textLink {
  cursor:pointer;
  color:blue;
}

.editBtn
{
  position:absolute !important;
  z-index:1000;
  display:none;
 /* width:40px;*/
}

.editBtn .ui-button-text {
  /* font-size: 9px !important;
   font-weight: bold;*/
}

.dygraph-axis-label {
    line-height: normal;
}

.graphTitles
{
  font-size:1.1em;
  font-weight: bold;
  position:absolute;
  left:810px;
}
.graphTitleContainer
{
  position:absolute;
  top:5px;
  left:75px;
  cursor:pointer;
  text-align:right;
  line-height:24px;
  font-size:12px;
  font-weight: bold;
  max-width:180px;
  overflow-x:hidden;
  min-width:20px;
  z-index:999;
  text-align:center;



    /*TO ADD DROPDOWN TRIANGLE
    padding-right:14px;
    padding-left:5px;
    background: #eaeaea url('../img/downArrow_16pxTall.png') no-repeat right;*/

    background-color: #eaeaea;
    padding-left:10px;
    padding-right:10px;


    /* OLD Version
    background-color:#e0e0e0;
    line-height:12px;
    font-size:10px;
    font-weight: bold;
    position:relative;
    */
}

.graphLoading
{
  z-index:4001;
  padding:70px 10px 0 10px;
  position:absolute;
  font-size:13px;
  font-weight:bold;
  color:grey;
  background-color: #fff0da;
  height:200px;
  /*line-height: 200px;*/
  width:200px;
  text-align:center;
  border:3px solid grey;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  -khtml-border-radius: 20px;
  border-radius: 20px;
}

.graphOverlay
{
  z-index: 900;
  background-color: lightslategrey;
  opacity:0.3;
  filter:alpha(opacity=0.1); /* For IE8 and earlier */;
  position:absolute;
}

.spinnerOverlay
{
    z-index: 2999;
    position:absolute;
    display:none;
}

.graphPanels
{
  border:1px solid black;
  background-color: #e0e0e0;
  z-index:1020;
  min-height:100px;
}

#graphTools
{
  width:280px;
  position:absolute;
  left:750px;
  top:100px;
}

#graphFormat
{
  width:260px;
  height:300px;
  position:absolute;
  left:950px;
  top:600px;
}

.graphPanelsBar
{
  height:18px;
  line-height:18px;
  background-color: #d0d0d0;
  color:black;
  text-align:center;
  cursor:pointer;
}
.graphPanelsBarSub
{
  height:18px;
  line-height:18px;
  background-color:darkolivegreen;
  color:white;
  text-align:center;
}

.graphPanelsContent
{
  padding:5px;
}

button.panZoomBtn .ui-button-text
{
    font-size:11px;
    padding:4px 10px 4px 10px;
}

button.panFinderBtn
{
    margin: 2px 0 2px 0;
    padding: 4px;
}

.otherBtn.ui-button
{
    font-size:11px;
    padding:0;
}

.panZoom
{
  position:relative;
  margin-right:0;
  height:40px;
}

.panZoomLabel
{
  font-weight:bold;
}

#dyLegend
{
  padding:5px;
}

.graphCb /*size of checkboxes in panels*/
{
  width:14px;
  height:14px;
}


.EMCBottleCss /*Base class for how an annotation looks like */
{
    background: #c0ffad;
    cursor:pointer;
    display: inline;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    border: 0.12em solid green !important;
    font-size:12px !important;
    padding-top:1px;
    position:absolute !important;
}

.EMCBottleCssUnselected /*if user has clicked and unselect it */
{
     background: #ffa297;
    cursor:pointer;
    display: inline;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    border: 0.12em solid red !important;
    font-size:12px !important;
    padding-top:1px;
    position:absolute !important;
}

.EMCError
{
  color: red;
  font-size: 1.1em;
  font-weight: bold;
}

#tabular {
    z-index: 1031 !important;
}

.validRowEntry
{
  border:1px solid grey;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -khtml-border-radius: 10px;
  border-radius: 20px;
  padding-bottom: 3px;
  padding-top:2px;
  margin-top: 1px;
}

.validRowHeader
{
  border-bottom:1px solid black;
}

.validContent
{
  display:table;
}
.validRowContents
{
  padding:5px 5px 5px 5px;
  min-height:20px;
  position:relative;
  display:table-row;
}
.validRowC0
{
  /*position:absolute;*/
 /* top:5px;
  left:5px;*/
  padding-left:10px;
  width:20px;
  display: table-cell;
  vertical-align: middle;
}
.validRowC1
{
  /*position:absolute;*/
 /* left:25px;
  top:5px;*/
  width:35px;
  display: table-cell;
  vertical-align: middle;
}
.validRowC2
{
  /*position:absolute;*/
  top:5px;
  /*width:50px;
  left:60px;*/
  display: table-cell;
  vertical-align: middle;
}
.validRowC3
{
  top:5px;
  /*position:absolute;*/
  /*width:350px;
  left:110px;*/
  padding-left:20px;
  display: table-cell;
  vertical-align: middle;

}
.validRowC4
 {
   top:5px;
  /*position:absolute;*/
   /*left:460px;
   width:200px;*/
  padding-left:20px;
  display: table-cell;
  vertical-align: middle;
 }
.validRowC5
{
  top:5px;
  /*position:absolute;*/
  /*left:660px;*/
  padding-left:30px;
  display: table-cell;
  vertical-align: middle;
}

.selectWeightV
{width:40px}

/*container for error box, use msgFlash_error from sitewide.css*/
.templateError
{
    margin-left:20px;
    margin-right:20px;
}

/*Style applied to the labels of active errors*/
.errorActiveLabel
{
  color: #c13338;
}

  /*Style applied to the containing DIV of active errors*/
.errorActiveDiv
{
  background-color: #efb1b1;
  border:1px solid #c13338;
  padding: 3px 3px 3px 3px;
}



.functionContentsV
{
}


.templateDisplayHelp
{
 display:none;
 border:1px solid blue;
 padding:5px 5px 5px 5px;
 margin: 5px 5px 5px 5px;
}

.variableValidatorId, .measTypeValidatorId, .varId, .stationId, .measTypeId
{
    display:none;
}


  /*override format for buttons for graph tope*/
.topGraphBar
{
  position:relative;
  margin-right:20px;
}

.topGraphBarBtns
{
  position:absolute;
  right:5px;
  top:0px;
}

  .topGBtnDD.ui-button {
      font-family: Arial, Helvetica, sans-serif;
      font-weight: bold;
      width:110px;
      background: #d5d5d5 url('../img/downArrow_16pxTall.png') no-repeat 90px;

  }

  .topGBtn.ui-button  {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    width:40px;
    background: #d5d5d5;
}

 .rangeXlabel
 {
     z-index:100;
     font-weight:bold;
     position:absolute;
     bottom:2px;
 }

.xline {
  display: none;
  background-color: #a9a9a9;
  position: absolute;
  pointer-events: none;  /* let mouse events fall through to the chart */
  height: 98%;
  width: 1px;
  top: 0;
  z-index: 1014;
}
.yline0 {
  display: none;
  border-top:1px dashed green;
  position: absolute;
  pointer-events: none;  /* let mouse events fall through to the chart */
  height: 0px;
  width: 100%;
  top: 0;
  z-index: 1014;
}
.yline { /*left side line*/
  display: none;
  background-color: #4ea922;
  position: absolute;
  pointer-events: none;  /* let mouse events fall through to the chart */
  height: 1px;
  width: 100%;
  top: 0;
  z-index: 1014;
}
.yline-pointer { /*right side line*/
    display: none;
      background-color: #4ea922;
      position: absolute;
      pointer-events: none;  /* let mouse events fall through to the chart */
      height: 1px;
      width: 2px;
      top: 0;
      z-index: 1014;
}
.ylinep3 { /*diagonal line*/
    position: absolute; /* allows to position it anywhere */
    width: 2px; /* your chosen line width */
    background-color: #4ea922; /* line color */
    z-index: 1990; /* make sure this is above your other elements */
    -webkit-transform-origin: top left;
    -moz-transform-origin: top left;
    -o-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
}

.stationSelectorList{
    cursor:pointer;
}

.ui-dialog{
    z-index:1025;
}

.modifyTable {
    width:100%;
}
#modifyStart, #modifyEnd {
    font-size:12px;
}
/* For Selector List */
.stationSelectorContainer{
    height:100%;
}
.sl-group-title {
    font-size:14px;
    font-weight:bold;
}
.sl-group-title-container {
    display:block;
    background-color: #d0d0d0;
    width:100%;
}
.fancytree-container {
    border:none !important;
    outline:none !important;
}
.fancytree-container li ul {
    padding-left:4px;
}

.btn.btn-gray {
    border: 0 solid #9b9b9b;
    -webkit-box-shadow: inset 0 1px 2px #9aa4b1;
    -moz-box-shadow: inset 0 1px 2px #9aa4b1;
    box-shadow: inset 0 1px 2px #9aa4b1;
    background: #d5d5d5;
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzhjOTdhNiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzc1ODI5NCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
    background-size: 100%;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #bdbdbd), color-stop(100%, #d5d5d5));
    background-image: -webkit-linear-gradient(top, #bdbdbd, #d5d5d5);
    background-image: -moz-linear-gradient(top, #bdbdbd, #d5d5d5);
    background-image: -o-linear-gradient(top, #bdbdbd, #d5d5d5);
    background-image: linear-gradient(top, #bdbdbd, #d5d5d5);
}


.btn.btn-gray:hover {
    background: #728092;
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzhjOTdhNiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzcyODA5MiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
    background-size: 100%;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #8c97a6), color-stop(100%, #728092));
    background-image: -webkit-linear-gradient(top, #8c97a6, #728092);
    background-image: -moz-linear-gradient(top, #8c97a6, #728092);
    background-image: -o-linear-gradient(top, #8c97a6, #728092);
    background-image: linear-gradient(top, #8c97a6, #728092);
    -webkit-transition: box-shadow 0.05s ease-in-out;
    -moz-transition: box-shadow 0.05s ease-in-out;
    -o-transition: box-shadow 0.05s ease-in-out;
  transition: box-shadow 0.05s ease-in-out;
}


.btn.btn-gray:active {
    background: #818d9d;
    border-color: #5d6979;
    -webkit-box-shadow: 0 0 5px #818d9d inset;
    -moz-box-shadow: 0 0 5px #818d9d inset;
    box-shadow: 0 0 5px #818d9d inset;
}

.btn-group.open .btn.btn-gray.dropdown-toggle {
    background-color: #8c97a6;
}

.handsontable table thead th {
    white-space: pre-line;
    max-width: 100px; /* enter here your max header width */
}


@media only screen and (min-device-width : 320px) and (max-device-width : 675px) {
    html, body {
        height: 100%;
        width: 100%;
    }
        .dygraph-label-rotate-right {
            font-size: 10px !important;
            transform-origin: center top;
            transform: translateX(-50%) rotate(-90deg);
            left: 0 !important;
            text-align: center !important;
        }

        .dygraph-label {
            font-size: 10px !important;
        }

        .dygraph-axis-label {
            line-height: normal;
        }
        .fancytree-container li ul {
            font-size: 10px !important;
        }
        .topGraphBar
        {
            margin-right:10px !important;
            right: 0 !important;
        }
        #stationSelectorContainer
        {
            width:140px !important;
        }
}