/***********************************************/
/* valuetracker.css                                                                        */
/***********************************************/
/* this css file follows the structure recommended in
/* http://woork.blogspot.com/2009/08/css-code-structure-for-html-5-some.html
/* and also utilises the recommendations for introducing ,gently, HTML5 to our world from:
/* http://orderedlist.com/resources/html-css/structural-tags-in-html5/
/* note I am trying to do this using client the client side javascript approach to fixing IE, if this
/* does not work I will try a severside approach (id IE show <div id=header else <header etc)
Note: I am going to try and be good and start using em instead of px
/*
/* CSS section
/* 1 General HTML tags
/*    a) reset so everyone is equal
/*    b) define this sites standard tags
/* 2 Structural tags (these used to be divs) - to show the layout of pages in the site
/* here I deviate from suggestion of custom class as the final section
/* 3 Structural element customisation - eg what ul looks lik in the nav element, and any specific classes needed
/* 4 Generic classes
/*    eg red and left justified which can be used as a secondary class name all over the place
/***********************************************/
/* Section 1 a
/* General HTML Tags
/* the resets - from http://meyerweb.com/eric/tools/css/reset/
/* NB I've taken out some things I don't really use and put the ones I do near the top
/***********************************************/
html, body, div, span, a, form, table, tr, th, td,
h1, h2, h3, ol, ul, li, img, header, footer, nav, section,
h4, h5, h6, p, blockquote, pre, abbr, acronym,
del, dfn, em, b, u, i, center, dl, dt, dd, fieldset, label,
caption, tbody, tfoot, thead, article, aside, canvas, details, embed,
figure, figcaption, hgroup, menu, output, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/***********************************************/
/* Section 1 b
/* General HTML Tags
/* the site setup
/***********************************************/
html { height: 100%; }
body {
    height: 100%;
    font-family: Verdana, Arial, sans-serif;
    font-size: 80%;
    line-height: 1.75;
    letter-spacing: 0.1em;
    background-color: white;
}
h1 { font-size: 120%; }
h2 { font-size: 120%; color: #006699; }
table {
    width: 100%;
    font-size: 100%;
}
td, th {
    text-align: left;
    padding: 0px 2px 0px 2px;
}
ul li { list-style: none; }
a { color: blue; }
a:link { color: blue; }
a:visited { color: blue; }
a:hover { color: blue; }
/* the following set the submit and buttons to look the same as the divs I have set up for navigation etc*/
/***********************************************/
/* Section 2 Structural tags and divs
/*
/* I am using new HTML5 tags/elements but inevitably need some divs around the place
/* I have considered using the same javascript to make these structural div be elements
/* but thought I would stick with just the HTML5 ones for clarity - it is just a thought for later
/* NOTE al always try and comment the end of the div so you know what I am doing - unless it is on the same line
/***********************************************/
/* Layout
/* footer - ability to have a footer that sticks to the bottom of the window (if the data is longer than the
/*         height of the window the footer is at the bottom of the data, if the data is shorter than the
/*         height of the window the footer sticks to the bottom of the window
/* tabs - on the project and task views there are tabs to switch between estimates, plan, actuals etc
/* the top banner, task summary etc
/*
/***********************************************/
/*
/* becaseuI want a sticky footer we need to wrap the header, nav and content in a div
    <bodyContainer> - we still need a body container unfortunately as the footer has to be in <body> but separate from content
    <header/> - was <banner/>
    <nav/> - was <navbar/>
    <section>- was div<contentContainer> - this si just a separator not to be used for styling
        <sectionHeader/> =  div  was header
        <summary/> (optional - project and task views) = div
        <listContent/> = div (optional - used for simple data list output - eg projectList, userList etc)
        <inputForm/> = div (optional - used for single record add and edit)
        <tabs/> (optional - project and task views) = div
        <tabbedContainer (optional - goes with tabs) = div
              <taskViewInputs/>  (optional - is used on the other task view screeens) = div
              Note the Project view and taskViewEstiamtes screens use listContent within the tabbedContainer
        <tabbedContainer/>
        <longtext/> = for the welcome page where you have  long blurb and want to make it easy to read
    </section> - was div </contentContainer>
    <footerfix/> - this is a special div to make sticky footer work
</bodyContainer>
<footer>
*/
/***********************************************/
#bodyContainer {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -60px; /* this is the height of the footer + banner + navbar*/
}
header {
    height: 150px;
    font-size: 150%;
    padding: 0px 0px 0px 20px;
    font-weight: 500;
    background-image: url(/web/images/banner_web5_150H_1400W.gif);
    background-repeat: no-repeat;
    background-color: #000055;
    color: white;
}
nav {
    margin: 0px;
    padding: 1px 0px 4px 20px;
    background-color: #000055;
    color: white;
    font-weight: 500;
    letter-spacing: 0.1em;
}
#popup{
    z-index:998;
    position:absolute;
    top:150px;
    left:20px;
    border: 3px solid yellow;
    padding: 10px;
    background-color:#DEDEDE;
}
#coverup{
    z-index:997;
    position:absolute;
    top:90px;
    left:0px;
    width:100%;
    height:100%;
    background-color:white;
    opacity:.65;
}
section {
    margin: 0px 20px 0px 20px;
}
#sectionHeader {
    /*border-bottom: 1px solid #cccccc;*/
    margin: 10px 0px 30px 0px;
}
/* the summary div holds the project number, name and or task details etc */
#summary {
    border: 1px solid #DEDEDE;
    padding: 2px 2px 0px 2px;
    margin: 10px 0px 10px 0px;
}
#tabs { }
/* styling for the tabs - must ahve #tabbedContained straight after it*/
#tabbedContainer { /* goes beneath #tabs in order */
    border: 2px solid #DEDEDE;
    background: white;
    padding: 1em;
}
#taskViewInputs { }
/* styling for the other taskView screens */
#listContent { }
/* so I can style the tables for list pages - see below nb used with tabbedContent*/
#inputForm { }
/* so I can style the tables for input forms - see below*/
#longtext p{
    font-family: Verdana,Arial,sans-serif;
    color: #333333;
    line-height: 1.90;
    font-size:90%;
    /*letter-spacing: 0.2em;*/
    margin-bottom: 1em;
}
footer, #footerFix {
    height: 60px;
    margin: 0px 20px 0px 20px;
}
footer {
    padding: 5px 0px 0px 0px;
    border-top: 1px solid #DEDEDE;
}

/***********************************************/
/* Section 3 -Structural element customisation
/***********************************************/
/*********** #bodyContainer customisation ***********/
/*********** header customisation ***********/
/*********** nav customisation ***********/

nav .companyName {
    font-size: 120%;
    font-variant: small-caps;
}
nav .navitems {
    float: right;
    font-size: 100%;
    /*border:1px solid #DEDEDE; /*this was just so I could see where the div was */
    padding: 2px 2px 2px 2px;
    margin: 11px 40px 0px 0px;
}
nav ul {
    color: white;
     z-index: 999;
}
nav a { color: white; text-decoration: none; }
nav a:link { color: white; text-decoration: none; }
nav a:visited { color: white; text-decoration: none; }
nav a:hover { color: white; text-decoration: none; }
nav ul.dropdown { /* says where to start the menu*/
    position: relative;
     z-index: 999;
    float: left;
}
nav ul.dropdown li { /* say that the first levelof menu items goes horizontal*/
    float: left;
    line-height: 1.3em;
    vertical-align: middle;
    zoom: 1;
    padding: 0px 10px;
    background-color: #000055;
    color: white;
}
nav ul.dropdown li.hover,
nav ul.dropdown li:hover { /* don't know why I have the .hove class and :hover*/
    position: relative;
    z-index: 999;
    cursor: default;
    background-color: #DEDEDE;
    color: #FFF;
}
nav ul.dropdown li:hover > ul { /* so when you hover show the list below if there is one*/
    visibility: visible;
}
nav ul.dropdown ul { /* shows where to put the list within a list*/
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    width: 100%;
    width: 150px;
    margin-top: 1px;
}
nav ul.dropdown ul li { float: none; }

/*********** #contentContainer customisation ***********/
/*********** #sectionHeader customisation ***********/
/*********** #summary customisation ***********/
#summary th.alignToTop { vertical-align: top; }
/* used for comments and history which go over several rows
/*********** #tabs customisation ***********/
#tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#tabs li {
    display: inline-block;
    border: 2px solid #DEDEDE;
    border-bottom: 0;
    margin: 2px 2px 0 0;
    background: #f0f0f0;
    /* the next 3 lines are for IE7*/
    zoom: 1;
    display: inline;
    _height: 22px;
}
#tabs a {
    padding: 0 1em;
    text-decoration: none;
    color: #92A9B4;
}
#tabs a:hover { color: #006699; }
#tabs #selected {
}
#tabs #selected a {
    padding-bottom: 5px;
    font-weight: bold;
    color: black;
    background: white;
}
/*********** #tabbedContainercustomisation ***********/
/*********** #listContent customisation ***********/
/* used in the project and task view data tables to set the background colours set on table  */
#listContent table {
    font-size: 85%;
    border-collapse: collapse;
}
/* this is to give the horizontal  lines - don't need if we are going to go back to alternating colours*/
#listContent td {
    border-style: solid;
    border-color: #DEDEDE;
    border-width: 0px 0px 1px 0px;
}
#listContent th {
    font-size: 100%;
    font-weight: bold;
    font-variant: small-caps;
    text-align: left;
    border-style: solid;
    border-color: #DEDEDE;
    border-width: 1px 0px 1px 0px;
}
/* used in alternate row shading */
#listContent tr.darkRow { background-color: #f0f0f0; }
#listContent tr:hover { background-color: #cecece; }
/*  to shade input rows on the taskViewEstimates screen and on other list screens that we do
 add, edit delte on the fly - will be moving to this model as we can
  add and edit rows are green, delete rows are red*/
#listContent tr.inputRow { background-color: #e6f0ea; }
#listContent tr.deleteRow { background-color: #f0e6e6; }

/*the next 2 are used in the task estimates and othe acct incls??
/*this is the heading of hte estimate type eg Material, Labour, Equipment etc*/
#listContent th.subtitle { background-color: white; font-size: 120%; color: #006699; }
/* this is for the subtotal line - grey backgound black text*/
#listContent td.subtotal { font-weight: bold; background-color: #DEDEDE; }

/*********** #taskViewInputs customisation ***********/
/* the next lot are for the task view screens - except taskView Estimates*/
#taskViewInputs table {
    border: 0;
    border-collapse: collapse;
    background-color: #f0f0f0;
    border: 1px solid #DEDEDE;
}
/* used on the view tasks screens (fields are input so I can update the spread etc amounts via javascript */
#taskViewInputs table.taskSummary {
    background-color: #DEDEDE;
}
/* used on all the view task task summary section to make the input boxes not look like boxes*/
/* they need to be input boxes so we can change the numbers in them - I'think TODO check we need these*/
#taskViewInputs table.taskSummary input {
    text-align: right;
    font-size: 95%;
    background-color: #DEDEDE;
    border: 0;
}
#taskViewInputs table.taskSummary td {
    border: 0;
    font-size: 95%;
}

#taskViewInputs tr:hover { background-color: #cecece; }
/* the input rows are made up of tables within the main table*/

#taskViewInputs th,
#taskViewInputs td {
    /* border: 1px solid white;*/
    border-color: white;
    border-style: solid;
    border-left-width: 1px;
    text-align: right;
    padding: 1px;
    margin: 0;
    font-size: 85%;
    line-height: 95%;
}

#taskViewInputs input {
    width: 95%;
    background-color: white;
    margin: 0;
    padding: 0;
    border: 1px inset;
    text-align: right;
    cursor: pointer;
}
#taskViewInputs input.failedField{
    background-color: #f0e6e6;
}


/*********** #inputForm customisation ***********/
#inputForm table { border: solid 3px #DEDEDE; }
#inputForm td { padding: 10px 10px 10px 10px; }
/*********** #footerFix customisation ***********/
/*********** footer customisation ***********/
footer .tradeMarkInfo {
    font-size: 70%;
    line-height: 50%;
}
/***********************************************/
/* Section 4
/* Generic classes
/*  eg red and left justified which can be used as a secondary class name all over the place
/***********************************************/
.redHighlight { color: red; }
.headingRow{font-weight:bold;}
.rightJustify { text-align: right !important; }
.leftJustify { text-align: left !important; }
/***********************************************/
/* validanguage valdation classes
/* I currently only use the error line which is in nice bright red
/* I use the pale red inteh field now so that you can tell which field it relates to
/***********************************************/
.vdError {
    color: red;
    width: 30em;
}
.failedField{
    background-color: #f0e6e6;
}


/***********************************************/
/* button class - used on all things which need to look like buttons
/* this includes input submits and some a tags
/* I understand the idea that links should look like links and everyone knows what they are
/* BUT this is a web App not a web page and apps are about getting people to press buttons
/* to do tasks, not the semantics of whether or not a link is used to do this
/* NB I used http://www.cssbuttongenerator.com/ to generate this css
/***********************************************/
input[type="submit"],
.vtButton {
    -moz-box-shadow: inset 0px 7px 0px 0px #ffffff;
    -webkit-box-shadow: inset 0px 7px 0px 0px #ffffff;
    box-shadow: inset 0px 7px 0px 0px #ffffff;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffffff), color-stop(1, #e6e6e6));
    background: -moz-linear-gradient(center top, #ffffff 5%, #e6e6e6 100%);
    /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#e6e6e6');*/
    background-color: #ffffff;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid #b5b5b5;
    display: inline-block;
    color: #000000;
    font-family: arial;
    font-size: 11px;
    font-weight: normal;
    padding: 0px 5px;
    text-decoration: none;
}
input[type="submit"]:hover,
.vtButton:hover {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #e6e6e6), color-stop(1, #ffffff));
    background: -moz-linear-gradient(center top, #e6e6e6 5%, #ffffff 100%);
    /*filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#e6e6e6', endColorstr = '#ffffff');*/
    background-color: #e6e6e6;
}
input[type="submit"]:active,
.vtButton:active {
    position: relative;
    top: 1px;
}