/** these MUST stay **/
body { margin: 0; padding:0; border: 0; }
a { text-decoration:none; white-space: nowrap;}
a:hover {text-decoration: underline}
a.button {text-decoration: none}
h1,h2,h3,h4,h5,h6 {margin: 0.5em 0 0.25em 0; display: block; font-family: Helvetica}
h1,h2,h3,h4,h5,h6 {font-family: inherit;} /*bootwatch*/
        h1 { font-size: 4.00em;}
        h2 { font-size: 3.00em;}
        h3 { font-size: 2.00em;}
        h4 { font-size: 1.50em;}
        h5 { font-size: 1.25em;}
        h6 { font-size: 1.12em;}
right { float:right; text-align: right; }
left { float:left; text-align: left; }
center { width:100; text-align: center; vertical-align:middle;}
th, label { font-weight: bold; white-space: nowrap; }
td, th { text-align: left; padding: 2px 5px 2px 5px; }
th { vertical-align: middle; border-right: 1px solid white;}
td { vertical-align: top; }
form table tr td label { text-align: left; }
p, table, ol, ul { padding: 0.5em 0 0.5em 0 }
p {text-align: justify }
ol, ul { padding-left: 30px }
li { margin-bottom: 0.5em; }
li {margin-bottom: 0;} /*bootswatch*/
span, input, select, textarea, button, label, a { display: inline }
img { border: 0; }
blockquote, blockquote p, p blockquote { font-style: italic; margin: 0.5em 30px 0.5em 30px; font-size: 0.9em}
i, em { font-style: italic; }
strong { font-weight: bold; }
small { font-size: 0.8em; }
textarea { width: 100%; }
code { font-family: Courier;}
video { width:400px; }
audio { width:200px; }
ul { list-style-type: none; margin: 0px; padding: 0px; }
.hidden {display:none;visibility:visible}
/** end **/

/* Sticky footer begin */
html, body {
  height: 100%;
}
body { /*bootwatch*/
    padding-top: 118.75px; /*to make the container go all the way to the bottom of the topbar */
    height:auto; /*to avoid vertical scroll bar*/
}
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -8em; /* set last value to footer height plus footer vertical padding */
}

.main {
  padding: 30px 0 0 0;
}

.footer, .push {
    clear: both;
	width: 100%;
    height: 30px;
    padding: 34px 0 22px 0;
}

.footer-content {
    position: relative;
}

.auth_navbar {
    white-space: nowrap;
}

/* Sticky footer end */

body {
    /*background-color: #FFFFFF;*/ /*bootswatch*/
}
.header {
	// background: <fill here for header image>;
}
.copyright {
	font-size: 10px;
	padding: 16px 0 0 0;
	color: #888888;
}

.partners {}

fieldset { padding: 16px; border-top: 1px #DEDEDE solid;}
fieldset legend {text-transform:uppercase; font-weight: bold; padding: 4px 16px 4px 16px; background: #f1f1f1;}

/* fix ie problem with menu */
.ie-lte7 .topbar .container {z-index: 2; }

td.w2p_fw {padding-bottom: 1px;}
td.w2p_fl, td.w2p_fw, td.w2p_fc { vertical-align:top; }
td.w2p_fl { text-align:right; }
td.w2p_fl,  td.w2p_fw {padding-right: 7px;}
td.w2p_fl, td.w2p_fc { padding-top: 4px; }

/* tr#submit_record__row {border-top: 1px solid #E5E5E5;} */
#submit_record__row td {padding-top: .5em;}

/* Fix */
#auth_user_remember__row label {display: inline;}
#web2py_user_form td { vertical-align:top; }
#web2py_user_form { left: 50%; }

/*a, a:visited, a:hover { color:#0069D6}*/ /*bootswatch*/

/*********** web2py specific ***********/
div.flash {
    font-weight: bold;
    display: none;
    position: fixed;
    padding: 10px;
    min-width: 280px;
    opacity: 0.85;
    margin: 0px 0px 10px 650px;
    color: #000;
    vertical-align: middle;
    cursor: pointer;
    background: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
	z-index:2000;
}

div.error {
    background-color: red;
    color: white;
    width: 300px;
    margin-left: 1px;
    padding: 3px;
}

input.date:hover {
    cursor:pointer;
    cursor:hand;
    background-color: #EEEEEE;
}

input.datetime:hover{
	cursor:pointer;
	cursor:hand;
	background-color: #EEEEEE;
}

span.closeflash {
	position:absolute;
	right:0px;
	width:20px;
	background-color: #FFFFFF;
}

.topbar {
    padding: 10px 0;
    width:100%;
    color: #959595;
    vertical-align: middle;
    padding: auto;
    background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
    background-image: -moz-linear-gradient(top, #333333, #222222);
    background-image: -ms-linear-gradient(top, #333333, #222222);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
    background-image: -webkit-linear-gradient(top, #333333, #222222);
    background-image: -o-linear-gradient(top, #333333, #222222);
    background-image: linear-gradient(top, #333333, #222222);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.topbar a {
    color: #e1e1e1;
}

#navbar {float: right; padding: 5px; /* same as superfish */}
#navbar {padding: 9px;} /*bootswatch*/
#navbar a {color: inherit;} /*bootswatch*/

.right {
       width:100%;
       text-align: right;
       float: right;
}

.statusbar {
    background-color: #F5F5F5;
    margin-top: 1em;
    margin-bottom: 1em;
    padding: .5em 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.breadcrumbs { float: left; }

.copyright {float: left;}
#poweredBy {float: right;}

/* #MEDIA QUERIES SECTION */

    /* All Mobile Sizes (devices and browser) */
    @media only screen and (max-width: 767px) {
		/* bootswatch 
        .topbar {text-align: center;}
        #navbar, #menu {float: none;}
        #navbar {font-size: 1.2em; padding: .6em 0 1.2em;}
        #menu  {padding: 0 0 1.5em;}
        #menu select {font-size: 1.2em; margin: 0; padding: 0;}

        div.flash {top: 110px; right: 10px;}
*/
    }
@media only screen and (max-width: 320px) {/* bootswatch */
.navbar-inner{position:relative;}
#navbar{float:none;position:absolute;bottom:-10px;left:4px;}
}

/*
*Grid
*
* The default style for SQLFORM.grid even using jquery-iu or another ui framework
* will look better with the declarations below
* if needed to remove base.css consider keeping these following lines in some css file.
*/
// .web2py_table { border: 1px solid #ccc; }
.web2py_paginator { }
.web2py_grid {width: 100% }
.small-grid {width: 500px }
.web2py_grid table {width: 100% }
.web2py_grid tbody td {
    padding: 2px 5px 2px 5px;
    vertical-align: middle;
}

.web2py_grid thead th,
.web2py_grid tfoot td {
    color: #0088cc;
    background-color: #B2B2B2;
    padding: 10px 5px 10px 5px;
}

.web2py_grid tr.odd {
	background-color: #F4F4F4;
}
	
.web2py_grid tr.even {
	background-color: #E6E6E6;
}
	
.web2py_grid tr:hover {
	background-color: #FFFFFF;
}

.web2py_console form {
    width:100%;
}

.web2py_search_actions{
    float: left;
    text-align: left;
}

.web2py_grid .row_buttons {
    min-height:25px;
    vertical-align: middle;
}
.web2py_grid .row_buttons a {
    margin: 3px;
}

.web2py_search_actions {
    width: 100%;
}

.web2py_grid .row_buttons a,
.web2py_paginator ul li a,
.web2py_search_actions a,
.web2py_console input[type=submit],
.web2py_console input[type=button],
.web2py_console button {
    line-height: 20px;
    width: auto;
    margin-right: 5px; display: inline-block;
    padding: 3px 5px 3px 5px;
}

.row_buttons a {
    width: 75px;
}

.web2py_counter {
    margin-top: 5px;
    margin-right:5px;
    width:35%;
    float:right;
    text-align:right;
}

/*Fix firefox problem*/
.web2py_table {
	font-weight: bold;
	clear: both;
	display: block;
}

.web2py_paginator {
    padding: 5px;
    text-align:right;
    background-color: #f2f2f2;

}
.web2py_paginator ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

.web2py_paginator ul li {
    display: inline;
}

.web2py_paginator .current {
    font-weight: bold;
}

#w2p_query_panel {}

.ie9 #query_panel {
	padding-bottom:2px;
}

/************* bootswatch specific *********/
.jumbotron h1 {
margin-bottom: 9px;
font-size: 81px;
font-weight: bold;
letter-spacing: -1px;
line-height: 1;
}

.subhead h1 {
font-size: 54px;
}

.jumbotron small {
font-size: 20px;
font-weight: 300;
}

/* bootstrap dropdown */

.dropdown-menu ul {
    left: 100%;
    position: absolute;
    top: 0;
    visibility: hidden;
    margin-top: -1px;
}

.dropdown-menu li:hover ul {
    visibility: visible;
}

.navbar .dropdown-menu ul:before {
    border-bottom: 7px solid transparent;
    border-left: none;
    border-right: 7px solid rgba(0, 0, 0, 0.2);
    border-top: 7px solid transparent;
    left: -7px;
    top: 5px;
}

.navbar .dropdown-menu ul:after {
    border-top: 6px solid transparent;
    border-left: none;
    border-right: 6px solid #fff;
    border-bottom: 6px solid transparent;
    left: 10px;
    top: 6px;
    left: -6px;
}

.dropdown-menu span{
	display:inline-block;
}
.icon-chevron-right {
	margin-top:2px;
	float:right;
	background-image: url("../images/glyphicons-halflings.png");
}
