/* IGNORE ERROR HERE - IE-SPECIFIC CODE IN BUTTON FILL GENERATORS BELOW THROWS IDE ERROR #THANKSIE */

/**
 * parcelsearcherreports.js
 * DEVELOPMENT CODE! NOT FOR PRODUCTION!
 * 
 * Version: 0.1.1 Alpha
 *
 * County of Morris, Dept. of Planning & Development
 * GIS Division
 *
 * Chief Architect:
 * Janice Peal, GIS Analyst
 * jpeal@co.morris.nj.us
 *
 * Contributers:
 * James Trier, Systems Analyst
 * jtrier@co.morris.nj.us
 *
 * August 2012 File Written
 * *****
 * 
 * Universal stylesheet for all Parcel Searcher Web App Reports
 * 
 * Markup/Template Files:
 * /apps/modivreport.html
 * /apps/modivmap.html
 * /apps/modivbufferreport.html
 * /apps/sr1a.html
 * /apps/appeals.html
 * 
 * Script Files:
 * /apps/html/parcelsearcher/parcelsearcherreports.js
 * /apps/html/parcelsearcher/modivreport/modivreport.js
 * /apps/html/parcelsearcher/modivbufferreport/modivbufferreport.js
 * /apps/html/parcelsearcher/modivmap/modivmap.js
 * /apps/html/parcelsearcher/sr1a/sr1a.js
 * /apps/html/parcelsearcher/appeals/appeals.js
 * 
 * File Dependencies:
 * n/a
 *    
 */


/* 
 * ************************************************************************
 * ************************************************************************
 * 
 * Meta / Tag-specific Declarations
 * 
 * ************************************************************************
 * ************************************************************************
 */

html, 
body {
/*  font-family: 'Gill Sans','Gill Sans MT', sans-serif;*/
  font-family: 'Trebuchet MS', Helvetica, sans-serif;
  font-size: 110%;
}

button, option, select {font-family: 'Trebuchet MS', Helvetica, sans-serif;} /*janice added 9/7/12 */

h1 {
  font-size: 105%;
}

h2 {
  font-size: 100%;
}

body {
  background-color: #8FBC8F;
}

img {
  background: transparent;
  border: none; 
  vertical-align: middle;
}

.mobileDom {
  display: none;
}

label, 
h1, 
h2, 
p, 
a {
  padding-left: 5px;
}

/* ************************************************************************
 * ************************************************************************
 *
 * Map-specific
 * 
 * ************************************************************************
 * ************************************************************************
 */
  

#map {
  width: 99.8%;
  height: 99.6%;
  position: relative;
}

#northArrowWebkitOnly {
  display: none;
}

.northArrow {
  background: transparent url('../../../../img/mcprima/other/NorthArrow32.png') center no-repeat;
  left: 0;
  height: 32px;
  position: absolute;
  top: 5px;
  width: 32px;
  z-index: 10;
}

#onepixel {
  background : transparent url('../images/other/1by1.png') center no-repeat;
  height: 1px;
  left: 0;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 9;
}

.esriSimpleSlider{
  top:10% !important;
}

/*
 * Buffer report - make the map a little larger
 */

.biggerMap {
  height: 600px;
  padding-left: 0 !important;
}

/* ************************************************************************
 * ************************************************************************
 * 
 * Page formatting/decorations
 * 
 * ************************************************************************
 * ************************************************************************
 */

#parcelInfo {
  -moz-border-radius: 5px;
  -moz-box-shadow: 2px 2px 3px #696969;
  -webkit-border-radius: 5px;
  -webkit-box-shadow: 2px 2px 3px #696969;
  background: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  box-shadow: 2px 2px 3px #818181;
  margin-right: 3.8%; 
  margin-bottom: 3.8%;
  padding: 5px 5px 5px 40px;
}

.title {
  background: #000;
  color: #fff;
  padding: 10px 0 10px 0; /*Jim 8/23 padding-right causing titles to bleed over edge of container*/
}

.labelHeader {
  display: inline-block;
  padding-bottom: 5px;
}

/*Jim 8/16 made labelHeaderIE w/ both IE inline fix and padding to 0 - prints better*/  
.labelHeaderIE {
  display: inline;
  padding-bottom: 0;
  *zoom: 1;
}

.labelValue {
  font-weight: bold; padding-left: 6px;
}

.btnFrame {
  /* just handle width of button frame and color here, nothing else */
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border: 1px solid #8FBC8F; 
  border-radius: 5px;
  cursor: pointer;
  padding: 3px;
}


.btnfill {
  background: #93bf93; /* Old browsers */
  /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  background: url(data: image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzkzYmY5MyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjI3JSIgc3RvcC1jb2xvcj0iIzc1OTk3NiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjU3JSIgc3RvcC1jb2xvcj0iIzU2NzA1NiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0OTZkNDkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  background: -moz-linear-gradient(top,  #93bf93 0%, #759976 27%, #567056 57%, #496d49 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#93bf93), color-stop(27%,#759976), color-stop(57%,#567056), color-stop(100%,#496d49)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #93bf93 0%,#759976 27%,#567056 57%,#496d49 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #93bf93 0%,#759976 27%,#567056 57%,#496d49 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #93bf93 0%,#759976 27%,#567056 57%,#496d49 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #93bf93 0%,#759976 27%,#567056 57%,#496d49 100%); /* W3C */
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#93bf93', endColorstr='#496d49',GradientType=0 ); /* IE6-8 */
  color: #fff;
}
 
.btnfill: hover {
  /*  establishes application-specific button fill color on hover state*/
  background: #dcf2dc; /* Old browsers */
  /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  background: url(data: image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIxJSIgc3RvcC1jb2xvcj0iI2RjZjJkYyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM5Y2NlOWUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  background: -moz-linear-gradient(top,  #dcf2dc 1%, #9cce9e 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,#dcf2dc), color-stop(100%,#9cce9e)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #dcf2dc 1%,#9cce9e 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #dcf2dc 1%,#9cce9e 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #dcf2dc 1%,#9cce9e 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #dcf2dc 1%,#9cce9e 100%); /* W3C */
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#dcf2dc', endColorstr='#9cce9e',GradientType=0 ); /* IE6-8 */
  color: #000;
}

 
.btnfillActive, .btnfill: active {
  background: #b7deed; /* Old browsers */
  /* IE9 SVG, needs conditional override of 'filter' to 'none' */
  background: url(data: image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2I3ZGVlZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzcxY2VlZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iIzIxYjRlMiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNiN2RlZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
  background: -moz-linear-gradient(top,  #b7deed 0%, #71ceef 50%, #21b4e2 51%, #b7deed 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b7deed), color-stop(50%,#71ceef), color-stop(51%,#21b4e2), color-stop(100%,#b7deed)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top,  #b7deed 0%,#71ceef 50%,#21b4e2 51%,#b7deed 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top,  #b7deed 0%,#71ceef 50%,#21b4e2 51%,#b7deed 100%); /* Opera 11.10+ */
  background: -ms-linear-gradient(top,  #b7deed 0%,#71ceef 50%,#21b4e2 51%,#b7deed 100%); /* IE10+ */
  background: linear-gradient(to bottom,  #b7deed 0%,#71ceef 50%,#21b4e2 51%,#b7deed 100%); /* W3C */
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#b7deed', endColorstr='#b7deed',GradientType=0 ); /* IE6-8 */
  color: #000;
}
  
.btntxt {
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  font-weight: bold;
}

.btntxt: hover {
  color: #000;
}

/* ************************************************************************
 * ************************************************************************
 * 
 * Table Formatting ( SR1A / Appeals / Buffer )
 * 
 * ************************************************************************
 * ************************************************************************
 */

table .header {
  background-color: #333;
  color: #fff;
  font-weight: bold;
  padding:  2px 5px 2px 5px;
  border: 1px solid #ccc;
 }

.tableSpan {
  font-size: 90%;
  width: 100%;
 }
 
.tableSpan td, 
.appealRow td, 
.filingRow td {
  border: 1px solid #333;
  padding:  2px 5px 2px 5px;
  page-break-before: auto;
}

.tableSpan thead td, 
.tdSideCol {
  background-color: #8FBC8F;
  color: #000;
  font-weight: bold;
  border: 1px solid #333;
}
  
table {
  border-collapse: collapse;
}

table thead {
	border: 1px solid #333;
	display: table-header-group;
}

table tbody {
  display: table-row-group;
}


/* ************************************************************************
 * ************************************************************************
 * 
 * Classes named for the style they add to the block
 * 
 * ************************************************************************
 * ************************************************************************
 */

.small {
  font-size: 0.6em;
}
  
.paddedContent {
   background-color: #FFFFD4;
   padding: 5px 0 5px 0;
   box-shadow: 7px 7px 8px #818181;
  -webkit-box-shadow: 7px 7px 8px #696969;
  -moz-box-shadow: 7px 7px 8px #696969;
}
   
.bold {
  font-weight: bold;
}

.addaborder {
  border: 1px solid #333;
}

.red {
  color: #f00;
}

.extrapadding {
  margin-top: 30px;
}

.hdr {
  background-color: #000;
  color: #fff;
}

.center {
  text-align: center;
}

/*Jim 8/16 add this class to make mouse a pointy hand onmouseover*/
.pointer {
  cursor: pointer;
}

.linetopbottom {
  border-top: 1px solid #333;
}

.inline {
  display: inline-block;
}
/*Jim 8/16 Added IE Only inline class to fix things that IE normally breaks*/
.inlineIE {
  display: inline;
  *zoom: 1;
}

.top {
  vertical-align: top;
}

.margin10right {
  margin-right: 10px;
}

/* ************************************************************************
 * ************************************************************************
 * 
 * Buffer-specific delcarations
 * 
 * ************************************************************************
 * ************************************************************************
 */

.parcelBuffData, 
.buffResultData {
  padding: 2px 0 2px 0;
}

#resultsSection {
  page-break-before: always; /*8/16 Jim fixed, missing ';' */
}


/* ************************************************************************
 * ************************************************************************
 * 
 * Footer 
 * 
 * ************************************************************************
 * ************************************************************************
 */

#disclaimer {
  font-size: 0.5em; 
  display: none;
}

#mcprimaNote {
  text-align: center;
  margin-bottom:50px;
}

#toolbar {
  bottom: 0;
  left:0;
  position: fixed;
  right:0;
}

#topToolbar {
	margin-right: 0;
}

/*#topToolbar p {
	margin-left: 10px;
}*/

#topToolbar button{
	font-size: 80%;
}

/*

/* ************************************************************************
 * ************************************************************************ 
 *
 * Media Queries
 * 
 * ************************************************************************
 * ************************************************************************
 */

@media screen and (max-width: 1200px) {
  
  html,
  body {
    font-size: 105%;
  }
  
}
@media only screen and (max-width: 1023px) {
  
  html,
  body {
    font-size: 100%;
  }
   
}
@media screen and (max-width: 980px) {
  
  html,
  body {
    font-size: 95%;
  }
  
}
@media screen and (max-width: 750px) {
  
  html,
  body {
    font-size: 90%;
  }
  
}
@media only screen and (max-width: 640px) {
  
  html,
  body {
    font-size: 85%;
  }
  
  .paddedContent {
    margin: 10px;
  }
  
  .mobileDom {
    display: block;
  }
  
  #projection {
    display: none;
  }
  
}

/* ************************************************************************
 * ************************************************************************
 * 
 * Print Media Queries
 * 
 * ************************************************************************
 * ************************************************************************
 */

@media print {
  
  html, 
  body { 
    font-size: 90%;
  }
  
  body {
    background-color: #fff;
  }
  
  #map {
    padding: 1px;
    width: 99%;
  }

  .esriSimpleSlider {
    display: none;
  }
  
  #targetedPropHeader {
    clear: both;
    padding-top: 5%;
  }
  
  .title {
    background: #fff;
    border: 2px solid #000;
    color: #000;
  }
  
  h1 {
    font-size: 90%;
  }
      
  #disclaimer {
    display: block;
    margin-top: 10px;
  }

  .paddedContent {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    background-color: #fff;
    box-shadow: none; 
    padding: 0;
  }
  
  /*Jim 8/16 consolidated this rule - applies to all these tags*/
  #instructions, 
  #toolbar, 
  #titlebar {
    display: none;
  }
   
  .labelValue, 
  .labelHeader {
    font-size: 80%;
  }
  
  .labelHeader {
    padding-bottom: 0;
  }
  
  table .header {
    border: 1px solid #000;
  }
  
  .parcelBuffData, 
  .buffResultData {
    font-size: 95%;
    height: 36px;
  }
  
  #countyInfo {
    float: left;
    line-height: 12px;
  }
  
  #projectionContainer {
    float: right;
  }
  
  #mcprimaNote {
    margin-bottom:0;
  }
/*
  
  8/22 Jim first attempt by Jim to fix Projection placement on printouts. #fail
  
  #countyInfo,
  #projectionContainer {
    float:left !important;
    margin-right: 3.8% !important;
    min-height: 1px !important;
    width:46% !important;
  }*/

  
  .tablePageBreak {
    page-break-after: always;
  }
  
}

@media print and (-webkit-min-device-pixel-ratio: 0) {
  
  /*8/14 Jim This declaration improves Safari/Chrome printing - prevents white boxes in place
   of PNG files (e.g. ESRI logo)*/
  
  html * {
    -webkit-print-color-adjust: exact;
    background: transparent;
  }
  
  body {
  	height: 800px; 
  	width: 705px;
  }
  
  #map {
  	border: 2px solid black;
  	width: 700px;
  }
  
  #projectionContainer {
  	padding: 5px 0;
  }
  
  .northArrow {
    background: transparent;
  }
  
  #northArrowWebkitOnly {
    display: block;
  }
  
}