/*
	Global Stylesheet for Capital Pacific Bank
	Rules in this file should be applied to every page on the site.
	If a rule will only apply to one or two, add it to pages.css instead.
	Be polite to future developers, and label any hex colors you use!
*/

/* Universal Rules -------------------------------------------------- */
body
{
    background-color: #1B4544;
    color: #000;
    font: 76%/1.5 Verdana, Geneva, San-Serif;
    background-image: url('/Images/cpb_background.gif');
    background-repeat: repeat-x;
}
.ahem, hr { display: none; }
a, a:link, a:visited { color: #196965; } /* teal */
a:hover, a:focus, a:active { color: #000000; } /* black */
.floatleft { float: left; margin: 0 1em 1em 0; }
.floatright { float: right; margin: 0 0 1em 1em; }
.clearboth { clear: both; }
object { outline:none; } /* fix for swfobject in FF3 */
.fpo,
#content .fpo a,
#content .fpo th,
#content .fpo td,
#content .fpo {
	color: #f00 !important;
	background: #ff0 !important;
	padding: .25em;
}

/* Layout -------------------------------------------------- */
#container
{
    width: 795px;
    margin: 10px auto;
    background: transparent url('/images/bg-container.gif') 0 0 repeat-y;
    position: relative;
}
#header {
	background: transparent url('/images/bg-header.gif') 0 0 no-repeat;
	width: 795px;
	height: 146px;
	position: relative;
	z-index: 3; /*crucial for the drop downs in ie7/and placing above the content/slideshow on homepage*/
}
#wrapper {
	float: left;
}
#sidebar {
	width: 170px;/*170-12*/
	float: left;
	padding: 0;
	margin-left: 12px;
}
#content {
	width: 570px;/*600 - 28 + 13 -15*/
	float: right;
	margin: 15px 28px 20px 15px; /*28-15=13px of right margin accounts for the dropshadow on the container.*/
	color: #004030;
	z-index: 2;
}
.two-col #col1 {
	float: left;
	width: 385px;
}
.two-col #col2 {
	float: left;
	width: 170px;
	margin-left: 15px;
}
#footer
{
    clear: both;
    color: #d9f1eb;
    margin: 0 13px 0 12px;
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #000000;
    background-color: #0D4A4A;
}


/* Header Styles -------------------------------------------------- */
#header p {
	margin: 0;
}
#logo a {
	display: block;
	text-indent: -9999px;
	width: 303px;
	height: 28px;
	background: transparent url('/images/logo.png') 0 0 no-repeat;
	position: absolute;
	top: 88px;
	left: 45px;	
}
#tagline {
	text-indent: -9999px;
	width: 123px;
	height: 17px;
	background: transparent url('/images/hdr-tagline.png') 0 0 no-repeat;
	position: absolute;
	top: 125px;
	left: 45px;	
}
/* Basic code - don't modify */
 
#cpb-login { display: block; margin: 0; padding: 0; position: absolute; z-index: 41;}
#cpb-login li {list-style: none; margin: 0; padding: 0; float: left; position: relative; width: 203px; display: block; }
#cpb-login a { display: block;}
#cpb-login ul { display: none; position: absolute; left: 0; margin: 0; padding: 0; }
#cpb-login ul li { float: none; }
#cpb-login ul ul { top: 0;} 
    
/* Essentials - configure this */

#cpb-login ul { width: 203px; background: #336666;}
#cpb-login ul ul { left: 204px; }

/* Everything else is theming */
 
#cpb-login { height: 19px; }
#cpb-login a { color: #fff; font-size: 10px; height: 19px; }
#cpb-login ul { top: 19px; }
#cpb-login { 
	right: 13px;
	height: 19px;
	top: 6px;
}
#cpb-login li {
	height: 19px;
}
#cpb-login li a {
	background: transparent url('/images/bg-online-banking.gif') 0 0 no-repeat;
	display: block;
	text-indent: -9999px;
	text-decoration: none;
	height: 19px;
	bottom: 0; 
	width: 203px;
}
#cpb-login li a:hover {
	background-position: bottom left;
}
#cpb-login li li a {
	background: #336666;
	color: white;
	display: block;
	border-top: 1px dotted white;
	width: 188px; /*203-15*/
	text-indent: 0;
	text-align: right;
	padding-right: 15px;
}
#cpb-login li li a:hover {
	background-color: #43b5b5;
}

/* Navbar Styles -------------------------------------------------- */
/* Basic code - don't modify */
 
#nav { display: block; margin: 0; padding: 0; position: absolute; z-index: 40; }
#nav li {list-style: none; margin: 0; padding: 0; float: left; position: relative; width: 150px; display: block; }
#nav a { display: block;}
#nav ul { display: none; position: absolute; left: 0; margin: 0; padding: 0; }
#nav ul li { float: none; }
#nav ul ul { top: 0;} 
    
/* Essentials - configure this */

#nav ul { width: 150px; background: #b6b668;}
#nav ul ul { left: 151px; }

/* Everything else is theming */
 
#nav { height: 19px; }
#nav a { color: white; font-size: 11px; height: 19px; }
#nav ul { top: 19px; }
#nav { 
	right: 13px;
	height: 19px;
	bottom: 0;
}
#nav li {
	height: 19px;
}
#nav li a,
#nav li{
	background: transparent url('/images/bg-nav.gif') no-repeat 0 0;
	display: block;
	text-indent: -9999px;
	text-decoration: none;
	height: 19px;
	bottom: 0; 
	width: 150px;
}
#nav li li {
	height: auto;
}
#nav li li a {
	background: #b6b668;
	color: white;
	display: block;
	border-top: 1px dotted white;
	width: 135px; /*150-15*/
	text-indent: 0;
	text-align: right;
	height: auto;
	padding: 2px 15px 2px 0;
}
#nav li li a:hover {
	background-color: #919120;
}
#nav li#nav-personal  { background-position: top right;}
#nav li#nav-noteworthy  { background-position: -300px top; }
#nav li#nav-business  { background-position: -150px top; }

#nav li#nav-welcome:hover, 
#nav li#nav-welcome:focus 	{ background-position: bottom left; }

#nav li#nav-personal:hover, 
#nav li#nav-personal:focus 	{ background-position: bottom right; }

#nav li#nav-business:hover, 
#nav li#nav-business:focus 	{ background-position: -150px bottom; }

#nav li#nav-noteworthy:hover, 
#nav li#nav-notworthy:focus 	{ background-position: -300px bottom; }


#nav li#nav-welcome .nav-subnav a,
#nav li#nav-business .nav-subnav a,
#nav li#nav-noteworthy .nav-subnav a,
#nav li#nav-personal .nav-subnav a,
#nav li.nav-subnav a {
	background: #b6b668 url('/images/bg-nav-arrow.gif') no-repeat 140px 50%;
}
#nav li#nav-welcome .nav-subnav a:hover,
#nav li#nav-welcome .nav-subnav a:focus,
#nav li#nav-business .nav-subnav a:hover,
#nav li#nav-business .nav-subnav a:focus,
#nav li#nav-noteworthy .nav-subnav a:hover,
#nav li#nav-noteworthy .nav-subnav a:focus,
#nav li#nav-personal .nav-subnav a:hover,
#nav li#nav-personal .nav-subnav a:focus,
#nav li.nav-subnav .nav-subnav a:hover {
	background-position: 140px 50%;
	background-color: #919120;
}
#nav li#nav-welcome .nav-subnav li a,
#nav li#nav-business .nav-subnav li a,
#nav li#nav-noteworthy .nav-subnav li a,
#nav li#nav-personal .nav-subnav li a,
#nav li.nav-subnav li a{
	background-image: none;
}
/* Sidebar Styles -------------------------------------------------- */
#sidebar { color: #196965; } /* teal */
/* Sidebar Navigation  -------------------------------------------------- */
#subnav {
	margin: 10px 10px 120px 10px; /*bottom margin set high to account for abs positioned address */
	border-bottom: 1px dotted #fff;	
	font-family: verdana, geneva, sans-serif;
}
#subnav li {
	list-style-type: none;
	margin: 0;
	font-size: 11px;
	font-weight: bold;
}
#subnav li a {
	text-decoration: none;
	padding-left: 0;
	padding: 3px 0;
	display: block;
	font-size: 11px;
	font-weight: normal;
}
#subnav li li a {
	background: transparent url('/images/bg-subnav-arrow-off.gif') 5px 5px no-repeat;
	height: auto;
	padding: 2px 0 2px 15px;
	border-top: 1px dotted #fff;
}
#subnav li li li a,
#subnav li li li.current a {
	padding-left: 35px;
	border-top: none;
	background-position: 25px 5px; 
}
#subnav li.current a {
	color: #000;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 10px;
}
#subnav li.current li a {
	color: #196965;
	text-transform: none;
	font-weight: normal;
	font-size: 11px;
}
#subnav li li.current a {
	color: #000;
	background: transparent url('/images/bg-subnav-arrow-on.gif') 5px 5px no-repeat;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 10px;
}
#subnav li li.current li a {
	color: #196965;
	text-transform: none;
	font-weight: normal;
	font-size: 11px;
	background: transparent url('/images/bg-subnav-arrow-off.gif') 25px 5px no-repeat;
}
#subnav li li.current li a:hover {
	color: #000;
}
#sidebar #address {
	border-top: 1px dotted #fff;
	padding: 5px 0 20px 0;
	font-size: 9px;
	font-weight: bold;
	position: absolute; /*positioned to the container. Not the sidebar*/
	bottom: 80px;
	left: 25px;
}

/* Container Styles -------------------------------------------------- */
#container {

}
#wrapper {

}

/* Content Styles -------------------------------------------------- */
#content {
	position: relative;
	font-family: Georgia, Times New Roman, serif;
	font-size: 12px;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
h1 {
    font-size: 2.15em;
}
h2 { font-size: 1.75em; color: #004030; } /* teal - not used in site as of 2/1/2010 */
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em; background-color:#99cccc; padding:1px 0px 0px 2px; }
h5, h6 { font-size: 1em; }

#content h2{
	font-size: 1.5em; /* not used in site as of 2/1/2010 */
}
#content h1
{
    background-position: 0 100%;
    font-family: verdana, geneva, sans serif; /*border-bottom: 1px dotted #004030;*/
    background: transparent url('/images/bg-teal-dot.gif') 0 100% repeat-x;
    text-transform: uppercase;
    font-size: 1.25em;
    margin-bottom: 1em;
    padding: 0 0 8px 0px;
}
/*
MAY CHANGE
	Headlines have no bottom margin. 
	Set text elements to have minimal top margin to pull them together.
	Tables get set down below.
*/
#content h3 {
    margin: 1em 0 0 0;
}
#accordion h3 
{
    margin-top: 0;
}
#content h4 {
    margin: 1.3em 0 0 0;
}
#content ul ul,
#content ol ol {
	margin: 0;
}

/* Tables -------------------------------------------------- */
table {
	width: 100%;
	margin: .75em 0 1.2em;
}
th, td {
	padding: .3em .75em;
	text-align: left;
	vertical-align: top;
	line-height: 1.1;
}
th {
	border-left: 1px solid #333;
	border-bottom: 1px solid #333;
}
td {
	border-left: 1px solid #333;
	border-bottom: 1px solid #333;
}
tr th:first-child,
tr td:first-child {
	border-left: none;
}

/* Forms -------------------------------------------------- */
.required {
	color: #f00;
	font-style: normal;
}
.form div {
	position: relative;
	margin-bottom: 1px;
}
.form .error {
	background: #ff6;
	font-style: italic;
}
.form div .required {
	position: absolute;
	left: -.75em;
	top: .25em;
}
.form div label {
	display: block;
}
.form div input,
.form div select,
.form div textarea {
	margin: .25em 0 1em;
	width: 75%;
}
.form .check input,
.form .radio input {
	margin: 0;
	position: absolute;
	top: .25em;
	left: 0;
	width: auto;
}
.form .check label,
.form .radio label {
	padding-left: 1.75em;
}
.stacked div {
	float: left;
	width: 100%;
}
.stacked div label {
	width: 7em;
	float: left;
	margin: .5em 1em 1em 0;
}
.stacked div input,
.stacked div select,
.stacked div textarea {
	width: 50%;
}
.stacked div .required {
	top: .75em;
}
#content .form .footnote {
	font-size: .9em;
	text-align: right;
	margin: 0;
}

/* Footer Styles -------------------------------------------------- */
#footer a:link, #footer a:visited { color: #6cb7b2; text-decoration: none;}
#footer a:hover, #footer a:focus, #footer a:active { color: #d9f1eb; }
#footer ul,
#footer li {
	list-style: none;
	margin: .25em 0;
	padding: 0;
}
#footer li {
	display: inline;
	margin: 0 1em;
}
#footer #copyright {

}
#footer p {
	background-color: #0D4A4A;
	padding: 24px 20px ;
	margin: 0;
	color: #6cb7b2;
	font-size: 10px;
}
#footerphone 
{
    font-size: 16px;
    padding-left: 20px;
    font-family: Georgia;
    padding-right: 20px;
    color: #6cb7b2;
}
#footer table, #footer tr, #footer td
{
    border-style: none;
    padding: 0px;
    margin: 0px;
}
/* Extras -------------------------------------------------- */

pre
{
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

.news 
{
    border-style: solid;
    border-width: 2px;
    overflow: auto;
    height: 400px;
    background-color: #FFFFFF;
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    padding-top: 0px;
    padding-right: 10px;
    padding-bottom: 0px;
    padding-left: 10px;
    text-align: left;
}
