/*

    Gavintech Framework - A base for PHP projects
    Copyright (C) 2004-2008 Chris Kloosterman

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

    Author's Email Address:
        kloostec@gavintech.com
    Paper Mail:
        5945 Cassino Road
        Duncan, BC, V9L 4G5, Canada

*/

body {
	margin: 0;
	font-family:Helvetica, Arial, Verdana, sans-serif;
	background: #EEEEEE;
}

.alpha {
	background: #CCFFCC;
}

.beta {
	background: #FFFFCC;
}

.sandbox {
	background: #CCCCFF;
}

/*
a:link, a:visited {
	color: #CC6600;
	text-decoration: none;
}

a:active {
	color: #0066CC;
	text-decoration: none;
}
*/

td {
	vertical-align: top;
}

.bodycell a:hover {
	color: #CC6600;
	text-decoration: underline;
}

.sidebar {
	color: #000000;
	/*background: #fff;*/
    font-size:100%;
}

.sidebar a, .sidebar a:link, .sidebar a:visited {
	color: #000000;
	text-decoration: none;
	padding-top: 2px;
}

.sidebar a:hover {
	color: #CC6600;
	text-decoration: underline;
}

.sidebar p {
	margin-top: 1em;
}

.content {
	padding: 10px;
	font-size: 80%;
}

.content h1 {
	margin-top: 0;
	font-size: 90%;
}

.content h2 {
	font-size: 90%;
	/* margin and padding shorthand goes clockwise from 12oclock: top right bottom left */
	margin: 10px 0px 10px 0px;
}

h1, h2, h3, h4 {
	padding-top: 5px;
	padding-bottom: 3px;
	margin: 0px 0px 0px 0px;

}

p {
	padding-top: 2px;
	padding-bottom: 2px;
	margin: 6px 3px 3px 3px;
	
}

.footer {
	padding: 2px;
	font-size: 66%;
	border-top: 2px solid #0066CC;
	color: #666666;
}

.paginate_1 {
	background: #E7E7E7;
}


.warning {
	color: #FF0000;
}

.trip {
	color: #00CC00;
}

.show_in_print {
	display: none;
}

table {
	border-collapse: collapse;
}

table.tabstrip {
	border-collapse: separate;
}


.panel-deactivated {
	display: none;
}

.panel-activated {
	display: block;
}

.tab-deactivated {
	background-color: #BBBBBB;

	margin: 0px;
	padding: 5px;

	border-top: 0px;
	border-left: 0px;
	border-right: 0px;

	border-bottom: 2px solid #000000;

	width: 100px;

	-moz-border-radius-topleft: 10px;
	-moz-border-radius-topright: 10px;
}

.tab-activated {
	background-color: #FFFFFF;

	margin: 0px;
	padding: 5px;

	border-top: 2px solid #000000;
	border-left: 2px solid #000000;
	border-right: 2px solid #000000;

	border-bottom: 0px;

	width: 100px;

	-moz-border-radius-topleft: 10px;
	-moz-border-radius-topright: 10px;
}

.tab-edge {
	width: 25px;

	border-bottom: 2px solid #000000;
}


/* JQUERY CLASSES */

div.show {
	display: block;
}

div.hide {
	display: none;
}

h2.toggle {
	/*background-color: #eee;*/
	font-size: 14px;
	/*border-bottom: 1px solid #ddd;*/
	padding: 2px;
	cursor: pointer;
}

p.bold {
	font-weight: bold;
}

label {
	cursor: pointer;
}

div.no_height {
	height: 0px;
}

div.quicksearch {
	position: relative;
	z-index: 10;
	background-color: #fff;
	border: 1px solid #ddd;
	padding: 2px 50px 2px 2px;
	display: none;	
	max-height: 150px;
	overflow-y: scroll;
	clear: both;
}

div.quicksearch-close {
	height: 0px;
	float: right;
}

div.quicksearch-close-button {
	z-index: 15;
	position: relative;
	cursor: pointer;
	display: none;	
	font-weight: bold;
	width: 40px;
	margin-right: 25px;
}

.bold-right {
	text-align: right;
	font-weight: bold;
}

/* racing classes */

.regatta_status {
	color: #000000;
    border: 2px solid #900;
    background: #fcc;
	font-weight: bold;
	text-align: center;
	padding: 2px;
	margin: 3px;
	width: 99%;
}

.regatta_notice {
	color: #000000;
    border: 2px solid #090;
    background: #cfc;
	font-weight: bold;
	text-align: center;
	padding: 2px;
	margin: 3px;
	width: 99%;
}

button {
	text-align: center;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

input:focus {
        background-color: #fff9c4;
        box-shadow: 1px 1px 5px #999;
        border: 1px solid #333;
}

div.ready_btn {
    width: 180px;
    border: 1px solid #ccc;
    background-color: #fff9c4;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
}

div.ready_btn:hover {
    cursor: pointer;
}

p.checked_in, div.checked_in, td.checked_in,  p.event_space, div.event_space, p.allowed, div.allowed, .weight_middle {
    border: 1px solid #0f0;
    background: #cfc;
	/*font-weight: bold;*/
	text-align: center;
	color: green;
	padding: 2px;
}

p.seeded, div.seeded { 
    border: 1px solid #0f0;
    background: #cfc;
	font-weight: bold;
	text-align: center;
	width: 100px;
	padding: 2px;
}

p.not_checked_in, div.not_checked_in, td.not_checked_in, p.event_full, div.event_full, p.not_allowed, div.not_allowed, .weight_low {
    border: 1px solid #f00;
    background: #fdd;
	/*font-weight: bold;*/
	text-align: center;
	color: red;
	padding: 2px;
}

.scratch, p.scratch, div.scratch, td.scratch, p.event_ne_space, div.event_ne_space, p.not_weighed_in, div.not_weighed_in, .weight_high {
	color: orangered;
    border: 1px solid orangered;
    background: #fe9;
	/*font-weight: bold;*/
	text-align: center;
}

p.not_scratch, div.not_scratch, p.no_card, div.no_card, .no_card {
	color: #000000;
    border: 1px solid #006;
    background: #cfc;
	font-weight: bold;
	text-align: center;
}

p.yellow_card, div.yellow_card, p.pending, div.pending {
	color: #000000;
    border: 1px solid #ccc;
    background-color: #fff9c4;
	font-weight: bold;
	text-align: center;
}


p.red_card, div.red_card, .red_card, p.coxswain_weight, div.coxswain_weight, p.protest, div.protest, p.cancel, div.cancel {
	color: #000000;
    border: 1px solid #006;
    background: #fcc;
	font-weight: bold;
	text-align: center;
}

p.exhibition, div.exhibition, p.postpone, div.postpone {
	color: #000000;
    border: 1px solid #006;
    background: #fc9;
	font-weight: bold;
	text-align: center;
}

p.highlight_crew, div.highlight_crew {
	color: #000000;
    border: 1px solid #000;
    background: #fff;
	/*font-weight: bold;*/
	text-align: left;
}
p.highlight_crew_center, div.highlight_crew_center {
	color: #000000;
    border: 1px solid #000;
    background: #fff;
	/*font-weight: bold;*/
	text-align: center;
}

p.is_official, div.is_official {
	color: #000000;
    border: 1px solid #000;
    background: #ffd;
	font-weight: bold;
	text-align: center ;
}

/* tag colours*/
p.tag_blue, div.tag_blue {
	color: #000000;
    border: 1px solid #000;
    background: #99f;
	font-weight: bold;
	text-align: center;
}

p.tag_red, div.tag_red {
	color: #000000;
    border: 1px solid #000;
    background: #f99;
	font-weight: bold;
	text-align: center;
}

p.tag_yellow, div.tag_yellow {
	color: #000000;
    border: 1px solid #000;
    background: #ff9;
	font-weight: bold;
	text-align: center;
}

p.tag_green, div.tag_green {
	color: #000000;
    border: 1px solid #000;
    background: #9f9;
	font-weight: bold;
	text-align: center;
}

p.tag_none, div.tag_none, p.tag_no, div.tag_no {
	color: #000000;
    border: 1px solid #000;
    background: #fff;
	font-weight: bold;
	text-align: center;
}


/* racing buttons */

.start_button_large, .split_button_large, .finish_button_large {
	border: 4px solid #006;
	background: #cfc;
	width: 90%;
	height: 140px;
	font-size: 36px;
	text-align: center;
	/* trying to get the default button selected */
	-webkit-appearance: none;
}

.start_button_large:hover, .finish_button_large:hover {
    border: 4px solid #a00;
    background: #6f6;
	font-weight: bold;
     border-radius: 5px;
     color: #222;
}

.start_button, .split_button, .finish_button {
    border: 2px solid #006;
    background: #cfc;
	width: 100px;
	height: 70px;
	font-size: 18px;
	text-align: center;
	-webkit-appearance:none;
	/*-webkit-border-radius: 5px;*/
	/*-moz-border-radius: 5px;*/
	border-radius: 5px;
	
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

.start_button:hover, .split_button:hover, .finish_button:hover {
    border: 2px solid #a00;
    background: #6f6;
	font-weight: bold;
     /*border-radius: 5px;*/
     box-shadow: 1px 1px 5px #888;
     margin: 5px;
     color: #222;
}

.start_button:active, .split_button:active, .finish_button:active {
    border: 5px solid #f00;
	/*position:relative;*/
	top:1px;
	background: #ff9;
	font-weight: bold;
	/*border-radius: 5px;*/
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #444;
}

.start_button:disabled, .split_button:disabled, .finish_button:disabled, .start_button_large:disabled, .split_button_large:disabled, .finish_button_large:disabled {
    border: 2px solid #006;
    background: #ccc;
}

.commit_button {
	-webkit-appearance:none;
    border: 2px solid #006;
    background: #cfc;
	width: 150px;
	height: 70px;
	font-size: 18px;
	text-align: center;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

.commit_button:hover {
    border: 2px solid #a00;
    background: #6f6;
	font-weight: bold;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}


.yellow_card_button {
     border: 1px solid #ccc;
    background-color: #fff9c4;
	width: 100px;
	height: 30px;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}
.yellow_card_button:hover {
    border: 2px solid #ccc;
    background-color: #fff9c4;
	font-weight: bold;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}
.yellow_card_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.red_card_button {
    border: 2px solid #006;
    background: #f99;
	width: 100px;
	height: 30px;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}
.red_card_button:hover {
    border: 2px solid #a00;
    background: #f33;
	font-weight: bold;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}
.red_card_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.unset_card_button {
    border: 2px solid #006;
    background: #9f9;
	width: 100px;
	height: 30px;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}
.unset_card_button:hover {
    border: 2px solid #006;
    background: #3f3;
	font-weight: bold;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}
.unset_card_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.checkin_button {
	-webkit-appearance:none;
	border: 1px solid #8ABFE5;
	background: #B8D2E5;
	width: 100px;
	height: 60px;
	font-size: 17px;
	font-weight: bold;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}
.checkin_button:hover {
	cursor: pointer;
	border: 1px solid #82B5D9;
	color: black;
	box-shadow: 1px 1px 5px #999;
}
.checkin_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.checkout_button {
	-webkit-appearance:none;
	border: 1px solid #8AE5B0;
	background: #b8e5cb;
	width: 100px;
	height: 60px;
	font-size: 17px;
	font-weight: bold;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}
.checkout_button:hover {
	cursor: pointer;
	border: 1px solid #82d9a6;
	color: black;
	box-shadow: 1px 1px 5px #999;
}
.checkout_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.scratch_button, .did_not_start_button, .did_not_split_button, .did_not_finish_button {
	-webkit-appearance:none;
    border: 2px solid #006;
    background: #fc9;
	width: 100px;
	height: 30px;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}
.scratch_button:hover, .did_not_start_button:hover, .did_not_split_button:hover, .did_not_finish_button:hover {
    border: 2px solid #a00;
    background: #fdb;
	font-weight: bold;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}
.scratch_button:disabled, .did_not_start_button:disabled, .did_not_split_button:disabled, .did_not_finish_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.unscratch_button {
	-webkit-appearance:none;
    border: 2px solid #006;
    background: #bbF;
	width: 100px;
	height: 30px;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}
.unscratch_button:hover {
    border: 2px solid #a00;
    background: #99f;
	font-weight: bold;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}
.unscratch_button:disabled {
    border: 2px solid #006;
    background: #999;
}

.refresh_button {
	-webkit-appearance:none;
    position: relative;
	top: -2px;
	left: +00px;
	border: 2px solid #006;
    background: #bbF;
	width: 150px;
	height: 60px;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

.refresh_button:hover {
    border: 2px solid #a00;
    background: #99f;
	font-weight: bold;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

.refresh_button:active {
	top:1px;
    border: 3px solid #f00;
    background: #ffb;
	font-weight: bold;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}

.reset_button {
	-webkit-appearance:none;
	float: right;
	border: 2px solid #006;
    background: #fbb;
	width: 150px;
	height: 30px;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

.reset_button:hover {
    border: 2px solid #a00;
    background: #f99;
	font-weight: bold;
     border-radius: 5px;
     box-shadow: 1px 1px 5px #aaa;
     margin: 5px;
     color: #222;
}

.reset_button:active {
	top:1px;
    border: 3px solid #a00;
    background: #ffb;
	font-weight: bold;
	border-radius: 5px;
	box-shadow: 1px 1px 5px #aaa;
	margin: 5px;
	color: #222;
}

.starts_list, .finishes_list {
    border: 1px solid #0f0;
    /*background: #cfc;*/
	font-weight: bold;
	text-align: left;

}

.place_checkbox {
	padding: 5px;
	padding-right: 30px;
	color:#000;
	background-color:#ddd;
	border: 1px;
}

.regatta_button {
	border: 2px solid #006;
    background: #ff9;
	width: 250px;
	height: 40px;
}

.hidden_regatta_button {
	border: 2px solid #006;
    background: #fbb;
	width: 250px;
	height: 40px;
}

.future_regatta_button {
	border: 2px solid #006;
    background: #bf6;
	width: 250px;
	height: 40px;
}

.countdown {
	padding-box: 5px;
	padding-top: 5px;
	float:left;
	position:relative;
	width:20%;
	/*font-weight: bold;*/
	font-size: 80px;
	text-align: center;
}

/* link decoration */

.link_as_button {
	border: 2px solid #006;
    background: #cec;
	width: 150px;
	height: 30px;
	padding: 3px;
	margin:5px;
	text-align:center;
	float:left;
}

.link_button_group {
	height: 50px;
	width: 100%;
}


/* td stuff */

td#qualified {
	background-color: #ccffcc;
}

td#gold {
	background-color: #ffd700;
}

td#silver {
 	background-color: #c0c0c0;
}

td#bronze {
	background-color: #b8860b;
}

table.race_summary {
	border-collapse:collapse;
	width: 95%;
	border: 2px solid black;
	background-color:white;
	color:black;
	padding: 10px;
	margin: 10px;
}

td.race_summary {
	vertical-align: top;
	text-align:center;
}

/* number input size control */
.number {
	width: 5em;
}

/* jquery ui calendar */
#ui-datepicker-div { font-size: 12px; }

/* css for timepicker */
#ui-timepicker-div dl{ text-align: left; }
#ui-timepicker-div dl dt{ height: 25px; }
#ui-timepicker-div dl dd{ margin: -25px 0 10px 65px; }

img.datepicker_clear {
	cursor: pointer;
	padding: 3px 5px 0px 5px;
}

/* jquery draggable */
#draggable { width: 100px; height: 40px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
#droppable_1, #droppable_2, #droppable_3, #droppable_4, #droppable_5, #droppable_6, #droppable_7, #droppable_8, #droppable_cox { width: 300px; height: 40px; padding: 0.5em; float: left; margin: 5px; }
#droppable-inner, #droppable2-inner { width: 170px; height: 60px; padding: 0.5em; float: left; margin: 10px; }

/* jquery athlete_list accordion */
#athlete_list_accordion, #ns_athlete_list_accordion { float:left; width: 500px; margin-right: 2em; cursor: pointer }

/* draggable_entry_athletes two columns */

#draggable_ea_col_left { width: 50%; float: left; margin-top: 1em; }
#draggable_ea_col_right { width: 50%; float: right; margin-top: 1em; }

/* race overlay minckler */

div#race_overlay {
	font-size: 15px;
	border: 0px; 
	padding: 10px;
	margin: 10px;
}

div#overlay_side h2 {
	font-size: 19px;
	padding: 2px;
}

div#overlay_side h3 {
	font-size: 17px;
	padding: 2px;
}

div#overlay_results {
	border-bottom: 1px solid #000;
	padding-bottom: 5px;
	margin-bottom: 5px;
}

div#overlay_on_course table {
	height: 130px;
	font-size: 18px;
	overflow: hidden;
}

div#overlay_next_race td {
	text-align: left;
}

div#race_overlay table {
	border: 0px;
	background-color: transparent;
	color: #fff !important;
}



