/**
 * This is the default CSS grammar for the Report Generator 1.1.x
 *
 * $Id: report-1.1.css,v 1.10 2005-02-04 16:38:01 mike Exp $
 *
 */

pdf		{ colorspace:DeviceRGB; _bfg-trim-initial-leading:false; _bfg-css-line-height:true; _bfg-trim-trailing-pre-newline:true; _bfg-use-width-for-min-width:true; }

pdf		{ font-family:Times; color:gray(0); font-size:12;
		  vertical-align:top; corner-radius:0; line-height:normal;
		  font-style:filled; font-weight:normal;
		  outline-color:gray(0); direction:ltr; unicode-bidi:normal;
		  orphans:2; widows:2;
		}

body		{ padding:36; compress:flate; }

/**
 * Language specific settings here. We hope these are right!
 *
 * +  Americans and Canadians get Letter paper by default, rather than A4
 * +  PRC and Singapore use Simplified Chinese (STSong)
 * +  Taiwan and Hong Kong use Traditional Chinese (MHei or MSung)
 * +  Chinese without a country specified uses Traditional Chinese.
 * +  Japan uses HeiSeiKakuGo, although HeiSeiMin (a "serif" font) would be a better default
 * +  Arabic, Hebrew, Yiddish and Urdu are right-to-left
 *
 * Note: the !unimportant was added in 1.1.25 - it's a custom extension to CSS2 which
 * causes the weight of this rule to be set to zero. This is required because otherwise
 * Adding "body { size:A4 }" to a stylesheet when the document had a lang of en_US was
 * failing - the lang(..) gave the rule a higher priority. These rules are defaults only
 * and should be overrideable.
 *
 */
body                            { size:A4 !unimportant }
body:lang(en_US,en_CA,fr_CA)	{ size:letter !unimportant }
*:lang(ja)			{ font-family:HeiSeiKakuGo !unimportant } /* TODO - Should be HeiseiMin */
*:lang(ko)			{ font-family:HYSMyeongJo !unimportant }
*:lang(zh_TW,zh_HK,zh)		{ font-family:MSung !unimportant }
*:lang(zh_CN,zh_SG)		{ font-family:STSong !unimportant }
*:lang(ar,yi,ji,he,iw,ur)	{ direction:rtl; align:right !unimportant }


bookmark	{ color:none; }
tbody		{ width:100% }
thead		{ width:100% }
tfoot		{ width:100% }
pbr		{ page-break-before: always; }
p		{ text-align:justify; margin-top:1em; margin-bottom:1em; }
input 		{ border:1px bevel gray(0); background-color:#F0F0F0; vertical-align:middle; font-size:11pt; }

/**
 * Set the first element immediately inside a <td> or <li> to have
 * no top margin
 */
td > p:first-child, li > p:first-child, th > p:first-child		{ margin-top:0; }
td > pre:first-child, li > pre:first-child, th > pre:first-child	{ margin-top:0; }
td > h1:first-child, li > h1:first-child, th > h1:first-child		{ margin-top:0; }
td > h2:first-child, li > h2:first-child, th > h2:first-child		{ margin-top:0; }
td > h3:first-child, li > h3:first-child, th > h3:first-child		{ margin-top:0; }
td > h4:first-child, li > h4:first-child, th > h4:first-child		{ margin-top:0; }

td > p:last-child, li > p:last-child, th > p:last-child			{ margin-bottom:0; }
td > pre:last-child, li > pre:last-child, th > pre:last-child		{ margin-bottom:0; }
td > h1:last-child, li > h1:last-child, th > h1:last-child		{ margin-bottom:0; }
td > h2:last-child, li > h2:last-child, th > h2:last-child		{ margin-bottom:0; }
td > h3:last-child, li > h3:last-child, th > h3:last-child		{ margin-bottom:0; }
td > h4:last-child, li > h4:last-child, th > h4:last-child		{ margin-bottom:0; }

table			        { table-layout:auto; }

li				{ margin-top:0.2em; }
ul > li				{ padding-left:1em; }
ol > li				{ padding-left:2.5em; }
ul, ol				{ margin-top:1em; }
ol ul, ul ol, ul ul, ol ol	{ margin-top:0; margin-bottom:0; }

ol		{ marker-offset:2.5em; marker-hierarchy-separator:'.';
		  marker-font-style: normal;
		  marker-type:decimal;
		  marker-prefix:''; marker-suffix:'.'; margin-top:2;
		  margin-bottom:0.5em;
		  start:1;
		}


ul		{ marker-type:disc; marker-font-family:Symbol;
		  marker-font-style: normal;
		  marker-offset:1em; margin-top:2;
		  marker-prefix:''; marker-suffix:'';
		  margin-bottom:0.5em;
		}

ul ul		{ marker-font-style:outline; }
ul ul ul	{ marker-font-style:filled; }


/**
 * Changes for 1.1.25 - RTL lists were not formatting correctly. First, we
 * must explicitly check for lists with lang(...) as well as direction, as
 * although adding a lang="ar" DOES set a direction=rtl on the tag, it's not
 * considered to be an attribute by the stylesheet selector [direction=rtl].
 *
 * Second, alignments needed to be tweaked considerably so RTL mirrors LTR.
 *
 * Third, needed to turn off marker-suffix and set marker-prefix for RTL
 * ordered lists - period should be on the left.
 */
ul[direction=rtl] > li, ul:lang(ar) > li, ul:lang(iw) > li, ul:lang(ur) > li, ul:lang(he) > li, ul:lang(yi) > li, ul:lang(ji) > li { padding-left:0em; padding-right:1.2em; }
ol[direction=rtl] > li, ol:lang(ar) > li, ol:lang(iw) > li, ol:lang(ur) > li, ol:lang(he) > li, ol:lang(yi) > li, ol:lang(ji) > li { padding-left:0em; padding-right:2.5em; }
ol[direction=rtl], ol:lang(ar), ol:lang(iw), ol:lang(ur), ol:lang(yi), ol:lang(ji), ol:lang(he) { marker-offset:-1.8em; marker-prefix:'.'; marker-suffix:'' }
ul[direction=rtl], ul:lang(ar), ul:lang(iw), ul:lang(ur), ul:lang(yi), ul:lang(ji), ul:lang(he) { marker-offset:-0.5em; }


/**
 * These tags are all just subclasses of <span>. There's no reason
 * why you couldn't override one to do your own thing - eg. override
 * <zapf> to use your own custom font instead.
 */
span,a,b,strong,i,em,u,o,tt,zapf,symbol,strike,nobr,big,small,code,sup,sub { display:inline; }
sub		{ vertical-align:sub; font-size:subscript; }
sup		{ vertical-align:super; font-size:subscript; }
a		{ text-decoration:underline; }
b,strong	{ font-weight:bold; }
i,em		{ font-style:italic; }
u		{ text-decoration:underline; }
o		{ font-style:outline; outline-width:0.5; }
tt		{ font-family:Courier; suppress-ligatures:true; }
zapf		{ font-family:ZapfDingbats; }
symbol		{ font-family:Symbol; }
strike		{ text-decoration:line-through; }
nobr		{ white-space:nowrap; }
big		{ font-size:larger; }
small		{ font-size:smaller; }
code		{ font-family:Courier; suppress-ligatures:true; white-space:nowrap; requote:false; }

table		{ margin:0; padding:0; }
tr		{ margin:0; padding:0; }
td		{ padding:2; margin:0; }

barcode		{ bar-width:1; bar-ratio:2.8; }
pre		{ font-family:Courier; align:left; requote:false; suppress-ligatures:true; white-space:pre; }

blockquote	{ margin-left:4em; margin-right:4em; padding:0.5em; }

h1		{ align:left; page-break-after:avoid; font-size:2em; font-weight:bold; font-family:Times; margin-top:0.83em; }
h2		{ align:left; page-break-after:avoid; font-size:1.6em; font-weight:bold; font-family:Helvetica; margin-top:0.83em; }
h3		{ align:left; page-break-after:avoid; font-size:1.3em; font-weight:bold; font-style:italic; font-family:Times; margin-top:0.83em; }
h4		{ align:left; page-break-after:avoid; font-size:1.17em; font-family:Helvetica; font-style:italic; font-weight:bold; margin-top:0.83em; }

/**
 * An <hr> is just a very flat <div>
 */
hr		{ width:80%; height:1; align:center; background-color:gray(0); padding:0; margin-top:10; margin-bottom:10; border:0; }


shape, circle, ellipse, box { border:1; }

/**
 * These defaults need to be set for the graph classes,
 * but can all be overridden safely.
 */
piegraph,towerbargraph,depthbargraph,multibargraph,floatingbargraph,bargraph,linegraph,areagraph	{ key-font-family:Helvetica; key-color:gray(0); key-font-style:normal; key-font-weight:normal; key-font-size:8; keybox-color:white; keybox-border-color:gray(0); light-level:70; light-vector:'1 0 0'; outline-width:0.5; }

bargraph,towerbargraph,multibargraph,depthbargraph,floatingbargraph,linegraph,areagraph	{
xaxis-font-family:helvetica; xaxis-color:gray(0); xaxis-font-style:normal; xaxis-font-weight:normal; xaxis-font-size:7;
yaxis-font-family:helvetica; yaxis-color:gray(0); yaxis-font-style:normal; yaxis-font-weight:normal; yaxis-font-size:7;
zaxis-font-family:helvetica; zaxis-color:gray(0); zaxis-font-style:normal; zaxis-font-weight:normal; zaxis-font-size:7;
xaxis-label-font-family:helvetica; xaxis-label-color:gray(0); xaxis-label-font-style:normal; xaxis-label-font-weight:normal; xaxis-label-font-size:10;
yaxis-label-font-family:helvetica; yaxis-label-color:gray(0); yaxis-label-font-style:normal; yaxis-label-font-weight:normal; yaxis-label-font-size:10;
xaxis-at-zero:false; yaxis-at-zero:false; x-stretch-to-zero:false; y-stretch-to-zero:false; axes-color:gray(0);
}

linegraph { xaxis-at-zero:true; yaxis-at-zero:true; line-thickness:1.5; }
bargraph,towerbargraph,multibargraph,depthbargraph,floatingbargraph { bar-depth:1; bar-width:1; }
depthbargraph { key-on-x:false; }
