/*
screen stylesheet for cicpaint.com backend for credo
by rattapol at izzisoft.com
tel 02 864 0879 pct 1, 085 062 4795
created : 2007-04-22
last edited : 2007-04-22
*/


/* ----------------------------------------------------------------------------- setting layout and position */

* {margin:0; padding:0;} /* set all elements spacing to zero and assign back later as need */

body {
	font-family: Verdana, Tahoma, Loma, Thonburi, sans-serif;
	font-size: 78%; /* IE 5 and MOZ not beautifully render font smaller than 76%, so set it as base size */
	color: #000000;
	background-color: #FFFFFF;
}

html, body, #container { /* set page to full height */
	min-height:100%;
	width: 100%;
	height: 100%;
}

html>body, #container {height:auto;} /* set full height for gecko browser */

#container { /* to contain overall body */
	position: absolute;
	top: 0;
	left: 0;
}

#logo {float: left;} /* to position logo image */

#header { /* header block, full page width  */
	padding: 5px 5px 5px 0;
	height: 65px;
	/* background-color: #FAD457; */
	border-bottom: 5px solid #996600;
}

#header p {margin-left: 10px;}

#tabmenu { /* main navigation table, vertical menu */
	width: 180px;
	float: left;
	margin-top: 10px;
	border-collapse: collapse;
	font-size: 1em;
}

#navcontainer { /* main navigation block, vertical menu */
	width: 180px;
	float: left;
	font-size: 1em;
}

#contentcontainer { /* main block of content */
	margin: 10px 10px 60px 200px;
	padding: 0;
}

#content {
	margin: 1em;
	font-size: 1em;
	color: #000000;
}

#footer { /* footer block at the bottom of content. */
	clear: both;
	margin: 10px;
	padding: 0.1em 0.5em;
	background-color: transparent;
	border-top: 1px dotted #CBCBCB;
	font-size: 0.8em;
}

#rellink { /* content block, relation-linked box */
	clear: both;
	margin: 0.4em;
	border: 1px dotted #BBBBBB;
	background-color: #FFEEDD;
}

li.first { /* add top border to nav block */
	list-style: none outside;
	padding: 5px 4px;
	background: #FFFFCC;
	border: 1px solid #BBBBBB;
	font-size: 1.1em;
	line-height: 1.5em;
}

#rellink li {list-style: none; padding: 0.3em;}

#rellink li.first {background-color: #EECC99; font-weight: bold;}


/* ----------------------------------------------------------------- setting navigation box and menu */

#menubox {
	font-weight: bold;
	margin-left: 4px;
}

#menubox li { /* main nav */
	list-style: none;
	position: relative; /* make all nav relative to doc */
	width: 170px;
	padding: 5px 4px;
	border: 1px solid #BBBBBB;
	border-top: 0;
	background-color: #F8F8F8;
	cursor: pointer;
	cursor: hand;
}

#menubox li.first {border-top: 1px solid #BBBBBB;} /* add top border to nav block */

#menubox li a {text-decoration: none; color: #003399;}

#menubox li a:hover {color: #FF6633;}

#menubox li ul { /* first, hide submenu but preparing the menu position */
	position: absolute; /* make the sub-nav absolute to main-nav */
	display:none;
	left: 178px; /* position to #navcontainer width */
	top: -1px;
}

#menubox li:hover ul, #menubox li.over ul { /* when hover, show menu */
	display: block;
}

#menubox li:hover ul li, #menubox li.over ul li {
	padding: 0.4em;
	font-size: 0.92em;
	font-weight: normal;
	background-color: #EAEAEA;
}

#menubox li:hover ul li a:hover, #menubox li.over ul li a:hover {color: #FF6633;}


/* ---------------------------------------------------------------------------------------- setting form */

.inlinebox {display: inline;} /* for a single line search form */

#loginbox { /* login form box, center on screen both vertical and horizontal position */
	position: absolute;
	top: 50%; /* position top-left corner on center of browser */
	left: 50%;
	margin: -9.8em 0 0 -15em; /* then set top and left in minus value about half width and height */
	width: 30em;
	height: 17.4em;
	color: #111111;
	background: #009ACC url("../images/bg_slantbox_bottom.gif") bottom right no-repeat;
}

#loginbox h2 {
	padding: 0.2em 0.2em 0.2em 0.6em;
	font-size: 2.6em;
	font-weight: normal;
	color: #FFFFFF;
	background: #CED9D9 url("../images/bg_slantbox_top.gif") top left no-repeat;
}

#loginbox label {
	float: left; /* float left and next element will align to it's right */
	text-align: right;
	width: 5.5em;
	margin: 0.3em;
	padding: 0.2em;
	font-size: 1.8em;
}

.loginboxinput {
	margin: 0.4em 0.4em 0.4em 0.6em;
	padding: 0.2em;
	width: 7.8em;
	font-size: 1.7em;
}

.loginboxbutton {
	float: left;
	margin: 0.2em 0.2em 0.2em 7.5em;
	padding: 0.2em;
	width: 5.2em;
	font-size: 1.7em;
	cursor: pointer;
	cursor: hand;
}

#formbox { /* general form box */
	float: left;
	margin-bottom: 1.5em;
}

#formbox label {}

#formbox option {padding: 2px;}

.button { /* style for general button (input type submit) */
	margin: 0;
	padding: 2px;
	cursor: pointer;
	cursor: hand;
	border: 1px outset;
}

.delbutton { /* delete button */
	margin: 0;
	padding: 2px;
	cursor: pointer;
	cursor: hand;
	background-color: #FFDDDD;
	border: 1px outset;
	font-weight: bold;
}

.delbutton:hover { /* delete button warning */
	color: #FFFFFF;
	background-color: #FF0000;
}

 .textinput, .textarea {width: 420px; padding: 2px;}

.pageinput {width: 25px; padding: 2px;}

 .bigtextarea { width: 550px; height: 150px; }


/* ------------------------------------------------------------------ setting typography and decoration */

a {text-decoration: none;}

a:hover {color: #FF9966;}

img {border: 0;}

td, th, input, textarea, select {font-family: Arial, "Microsoft Sans Serif", Loma, Thonburi, sans-serif;}

.mainname {font-size: 1.6em; color: #000000;}

.welcome {font-size: 1.1em; color: #444444;}

#content h3 { /* for top of contentcontainer */
	font-size: 1.3em;
	padding: 0.5em;
	margin-bottom: 1em;
	border-bottom: 1px solid #E0E0E0;
	background-color: #F2F2F2;
}

#content h4 { /* header for contentcontainer */
	font-size: 1.2em;
	margin: 1em 1em 0.5em 1em;
	padding: 0.4em;
	background-color: #F2F2F2;
}

#content p {padding: 1em;}

#important {background-color: #FF8888;}

table th {background-color: #FFEEAA; font-size: 1.1em;}
table .even {background-color: #CED9D9;}
table .odd {background-color: #C5D5D5;}
td, th {border: 1px solid #CCCCCC; padding: 3px;}

.menuhead {font-size: 1.15em; background-color: #EEEEFF;}

.headtable { /* the head of data table, contain submit button, paginate, etc. */
	margin: 0.05em 1em;
	padding: 0.5em;
	font-size: 1em;
	border: 1px solid #CCCCCC;
	background-color: #DDDDFF;
}

.listtable { /* styling the table of list data */
	width: 80%;
	margin: 1em;
	border-collapse: collapse;
	border: 1px solid #CCCCCC;
	font-size: 1em;
}

.listtable .head {text-align: right; font-weight: bold; width: 60%;}

.listtable tr:hover, .listtable tr.hilite {background-color: #EEEEFF;}

.listtable .head th { width: auto; }
.listtable th { width: 120px; }
.listtable th:hover {background-color: #9999FF;}

.listtable input:focus {border: 2px solid #FFAA00;}

.listtable textarea {width: 380px; height: 220px;}

.listtable textarea:focus {border: 2px solid #FFAA00;}

.prodtable { /* product table */
	border-collapse: collapse;
	border: 1px solid #CCCCCC;
	margin: 1em;
	width: 50%;
	font-size: 1em;
}

.item {width: 100%; border-collapse: collapse; margin-bottom: 3px;} /* table for each item */

.itemhead th {background: #FFFF99; font-weight: bold;}

.item tr:hover {background: #FFFFCC;}

.item input:focus {border: 2px solid #EE0066;}

.item td input.number {width: 70px;}

.item td select {width: 100px;}

.itemhead .button, .itemhead .delbutton {margin: 2px; width: 40px;}

.itemhead input.text {width: 100px; text-align: right;}

.itemhead input.number {width: 10px;}

.disable {background: transparent; border: 0; display: inline; color: #000000;}


/* -------------------------------------------------------------------------------------- bbcode */

.bbcwhite {color: #FFFFFF;}
.bbcblack {color: #000000;}
.bbcred {color: #FF3366;}
.bbcblue {color: #CCFFFF;}
.bbcyellow {color: #FFFF00;}
.bbcorange {color: #FF9966;}
.bbcgreen {color: #99FF66;}
.bbccyan {color: #333399;}

.textbox { width: 380px; }