/*--------------------------------------------------------------------------------*/
/* This stylesheet helps styling Rich Text section within the CMS pages           */
/* Following style tries to reset the ADVFN old stylesheets to the default styles */
/*--------------------------------------------------------------------------------*/

.cms-text {
	line-height: 1.4;
	text-align: justify;
}


/* reset ADVFN styles */

.cms-text div,
.cms-text span,
.cms-text h1,
.cms-text h2,
.cms-text h3,
.cms-text h4,
.cms-text h5,
.cms-text h6,
.cms-text p,
.cms-text blockquote,
.cms-text pre,
.cms-text a,
.cms-text abbr,
.cms-text acronym,
.cms-text address,
.cms-text big,
.cms-text cite,
.cms-text code,
.cms-text del,
.cms-text dfn,
.cms-text em,
.cms-text img,
.cms-text ins,
.cms-text kbd,
.cms-text q,
.cms-text s,
.cms-text samp,
.cms-text small,
.cms-text strike,
.cms-text strong,
.cms-text sub,
.cms-text sup,
.cms-text tt,
.cms-text var,
.cms-text b,
.cms-text u,
.cms-text i,
.cms-text center,
.cms-text dl,
.cms-text dt,
.cms-text dd,
.cms-text ol,
.cms-text ul,
.cms-text li,
.cms-text fieldset,
.cms-text form,
.cms-text label,
.cms-text legend,
.cms-text table,
.cms-text caption,
.cms-text tbody,
.cms-text tfoot,
.cms-text thead,
.cms-text tr,
.cms-text th,
.cms-text td,
.cms-text article,
.cms-text aside,
.cms-text canvas,
.cms-text details,
.cms-text embed,
.cms-text figure,
.cms-text figcaption,
.cms-text footer,
.cms-text header,
.cms-text hgroup,
.cms-text menu,
.cms-text nav,
.cms-text output,
.cms-text ruby,
.cms-text section,
.cms-text summary,
.cms-text time,
.cms-text mark,
.cms-text audio,
.cms-text video {
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	vertical-align: baseline;
}



/*--------------------------------------------------------------------------------*/
/* Following CSS resets most styles to the default, and normalize their behaviour */
/* The codes are mostly based on webkit style.                                    */
/* See also: Webkit stylesheet definition                                         */
/*           http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css     */
/*--------------------------------------------------------------------------------*/


/* heading elements */

.cms-text h1,
.cms-text h2,
.cms-text h3,
.cms-text h4,
.cms-text h5,
.cms-text h6 {
	display: block;
	font-weight: bold;
}

.cms-text h1 {
	font-size: 2em;
	margin: .67em 0;
}

.cms-text h2 {
	font-size: 1.5em;
	margin: .83em 0;
}

.cms-text h3 {
	font-size: 1.17em;
	margin: 1em 0;
}

.cms-text h4 {
	font-size: 1em;
	margin: 1.33em 0;
}

.cms-text h5 {
	font-size: .83em;
	margin: 1.67em 0;
}

.cms-text h6 {
	font-size: .67em;
	margin: 2.33em 0;
}



/* block elements */

.cms-text div,
.cms-text layer,
.cms-text article,
.cms-text aside,
.cms-text footer,
.cms-text header,
.cms-text hgroup,
.cms-text main,
.cms-text nav,
.cms-text section,
.cms-text p,
.cms-text adderss,
.cms-text blockquote,
.cms-text figure,
.cms-text figcaption {
	display: block;
}

.cms-text blockquote,
.cms-text figure {
	margin: 1em 40px;
}

.cms-text p {
	margin: 1em 0;
}


/* inline elements */

.cms-text u,
.cms-text ins {
	text-decoration: underline;
}

.cms-text strong,
.cms-text b {
	font-weight: bold;
}

.cms-text i,
.cms-text cite,
.cms-text em,
.cms-text var,
.cms-text address,
.cms-text dfn {
	font-style: italic;
}

.cms-text tt,
.cms-text code,
.cms-text kbd,
.cms-text samp {
	font-family: monospace;
}

.cms-text pre,
.cms-text xmp,
.cms-text plaintext,
.cms-text listing {
	display: block;
	font-family: monospace;
	white-space: pre;
	margin: 1em 0;
}

.cms-text mark {
	background-color: yellow;
	color: black
}

.cms-text big {
	font-size: larger;
}

.cms-text small {
	font-size: smaller;
}

.cms-text s,
.cms-text strike,
.cms-text del {
	text-decoration: line-through;
}

.cms-text sub {
	vertical-align: sub;
	font-size: smaller;
}

.cms-text sup {
	vertical-align: super;
	font-size: smaller;
}

.cms-text nobr {
	white-space: nowrap;
}



/* tables */

.cms-text table {
	margin: 0;
	display: table;
	border-collapse: separate;
	border-spacing: 2px;
	border-color: gray;
}

.cms-text thead {
	display: table-header-group;
	vertical-align: middle;
	border-color: inherit;
}

.cms-text tbody {
	display: table-row-group;
	vertical-align: middle;
	border-color: inherit;
}

.cms-text tfoot {
	display: table-footer-group;
	vertical-align: middle;
	border-color: inherit;
}

/* for tables without table section elements (can happen with XHTML or dynamically created tables) */
.cms-text table > tr {
	vertical-align: middle;
}

.cms-text col {
	display: table-column;
}

.cms-text colgroup {
	display: table-column-group;
}

.cms-text tr {
	display: table-row;
	vertical-align: inherit;
	border-color: inherit;
}

.cms-text td,
.cms-text th {
	display: table-cell;
	vertical-align: inherit;
}

.cms-text th {
	font-weight: bold;
}

.cms-text caption {
	display: table-caption;
	text-align: center;
}



/* lists */

.cms-text dl,
.cms-text dt,
.cms-text dd,
.cms-text ul,
.cms-text ol,
.cms-text li,
.cms-text menu,
.cms-text dir {
	margin: 0;
	padding: 0;
	display: block;
}

.cms-text dl,
.cms-text ul,
.cms-text ol,
.cms-text menu,
.cms-text dir {
	margin-top: 1em;
	margin-bottom: 1em;
}

.cms-text ul,
.cms-text ol,
.cms-text menu,
.cms-text dir {
	list-style: disc outside;
	padding-left: 40px;
}

.cms-text ol {
	list-style-type: decimal;
}

.cms-text li {
	display: list-item;
}

.cms-text dd {
	margin-left: 40px;
}

.cms-text ul ul,
.cms-text ol ul {
	list-style-type: circle;
}

.cms-text ol ol ul,
.cms-text ol ul ul,
.cms-text ul ol ul,
.cms-text ul ul ul {
	list-style-type: square;
}

.cms-text ol ul,
.cms-text ul ol,
.cms-text ul ul,
.cms-text ol ol {
	margin-top: 0;
	margin-bottom: 0;
}





/*--------------------------------------------------------------------------------*/
/* Extra styles                                                                   */
/* This is not a CSS reset but will help styling the elements using CMS system    */
/*--------------------------------------------------------------------------------*/


/* emulating TableElement, but removing nasty class on each cells */
.cms-text table.table td {
	border-bottom: 1px solid white;
	border-right: 1px solid white;
	padding: 4px 5px 3px 5px;
}

.cms-text table.table th {
	border-right: 1px solid white;
	padding: 3px 5px;
	background: #aaaad5;
	color: white;
	font-size: 14px;
}

.cms-text table.table td:last-child,
.cms-text table.table th:last-child {
	border-right:0;
}

.cms-text table.table tr {
	background: #f0f0E7;
}

.cms-text table.table tr:nth-child(2n+1) {
	background: #e5e5f3;
}


/* Wiki-table style */
.cms-text table.wikitable {
	background-color: #f9f9f9;
	border: 1px #aaa solid;
	border-collapse: collapse;
}

.cms-text table.wikitable th,
.cms-text table.wikitable td {
	border: 1px solid #aaa;
	padding: .5em;
}

.cms-text table.wikitable th {
	background-color: #f2f2f2;
}