/*
    Copyright 2007, 2008, 2009, 2010, 2011 Nuno Salgado	


    This file is part of Pesquisa Simplificada Codigos Postais Portugueses.

    Pesquisa Simplificada Codigos Postais Portugueses 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
    any later version.

    Pesquisa Simplificada Codigos Postais Portugueses 
    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 software.  If not, see <http://www.gnu.org/licenses/>.
*/
	DT {
	background: #DEE7EC;
}
  body { font-family: Arial; font-weight: normal; font-size: .8em; } 

	A:visited {color: blue}

	A.navlink:visited { font-size: .75em; color: silver; }

	/* -- header -- */
	TABLE.header          {background: white}
	TABLE.header > THEAD  {}
	TABLE.header > TH     {background: white}
	TBODY.header > TR     {background: white}

	/* -- frm -- */
	ztable.shw {border: thin solid black; }
	zTD#label {color: navy; font-size: .75em; font-style: italic; text-align: left}
	zTH#label {color: navy; font-size: .75em; font-style: italic; text-align: center}

	table.listing {
	/* The default table for document listings. Contains name, document types, modification times etc in a file-browser-like fashion */
		border-collapse: collapse;
		border-left: 1px solid #8CACBB;
		border-bottom: 1px solid #8CACBB;
		/*    margin: 1em 0em 1em 0em;*/
		clear: both;
	}

	table.listing th.op {
		background: #DEE7EC;
		border-top: 1px solid #8CACBB;
		border-bottom: 1px solid #8CACBB;
		border-right: 1px solid #8CACBB;
		color: Black;
		font-weight: normal;
		/*    padding: 0em 0em 0em 0em;
		margin: 1em 0em 1em 0em;*/
		/*    text-transform: lowercase;*/
		white-space: nowrap;
	}

	table.listing th {
		background: #DEE7EC;
		border-top: 1px solid #8CACBB;
		border-bottom: 1px solid #8CACBB;
		border-right: 1px solid #8CACBB;
		color: Black;
		font-weight: normal;
		padding: 0em 1em 0em 1em;
		/*    text-transform: lowercase;*/
		white-space: nowrap;
	}

	table.listing td.top {
		border-left: 1px solid White;
		border-top: 1px solid White ! important;
		border-right: 1px solid White ! important;
		text-align: right ! important;
		padding: 0em 0em 1em 0em;
	/* insane IE row bug workaround */
		position: relative;
		left: -1px;
		top: -1px;
	}

	table.listing tr.odd {
	/*every second line should be shaded */
		background: transparent;
	}

	table.listing tr.even {
		background: #F7F9FA;
	}

	table.listing td.op {
		/*    border-right: 1px solid #8CACBB;*/
		/*    padding: 0em 5em;*/
		text-align: right;
	}

	table.listing td {
		border-right: 1px solid #8CACBB;
		padding: 0em 1em;
		text-align: left;
	}

  table.listing a:hover {
		text-decoration: underline;
	}

	table.listing img {
		vertical-align: middle;
	}
	/* -- pat -- */
	table.pat          {TEXT-ALIGN: center; FONT-WEIGHT: bold; FONT-FAMILY: arial, sans-serif; FONT-SIZE: small;  
                 padding: 6px 5px 0px 0px; margin: 5px 5px 5px 0px; border-bottom: 7px solid #c3d9ff; border-collapse:	collapse;}
	/* table.pat > table  {background: #DEE7EC; color: navy; font-size: .75em; font-style: italic; text-align: center; padding-bottom: 0}*/
	table.pat tr       {background: white; }
	table.pat td.sel   {BACKGROUND-COLOR: #c3d9ff; 
                    border-left: 6px solid white; border-right: 6px solid white; border-top: 0px; border-bottom: 5px solid #c3d9ff; 
                    padding: 5px 10px 0px 10px;  }
	table.pat td            {BACKGROUND-COLOR: #e5ecf9; 
                    border-left: 6px solid white; border-right: 6px solid white; border-top: 0px; border-bottom: 5px solid #c3d9ff; 
                    padding: 5px 10px 0px 10px;  }
	table.pat td.nul   {background: #fcfcfe; border: 0px; }
	table.pat td  A              {color: black; TEXT-DECORATION: none; font-style: normal; }

	/* -- lst -- */
	table.lst          {border: thin solid black; width: 100%; }
	table.lst > table  {background: #DEE7EC; color: navy; font-size: .75em; font-style: italic; text-align: center; }
	table.lst th       {background: #DEE7EC; border-bottom: thin solid blue; color: navy; font-size: .75em; font-style: italic; text-align: center; }
	table.lst th.op    {background: #DEE7EC; }
	table.lst tr.odd   {background: transparent; }
	table.lst tr.even  {
		background: #EDF3FE; /*#F7F9FA; #FFF9C3;*/
	}
	table.lst tr       {background: white; }
	table.lst td       {padding: 0px; border: 0px; }
	table.lst td.r     {padding: 0px; border: 0px; text-align: right;}

	/* -- lstinput -- */
	table.lsti          {border: thin solid black; }
	table.lsti > table  {background: #DEE7EC; color: navy; font-size: .75em; font-family: arial; font-weight: normal; text-align: center; }
	table.lsti th       {background: #DEE7EC; border-bottom: thin solid blue; color: navy; font-family: arial; font-weight: normal; font-size: .75em; text-align: center; }
	table.lsti th.l     {background: #DEE7EC; border-bottom: thin solid blue; color: navy; font-family: arial; font-weight: normal; font-size: .75em; text-align: left; }
	table.lsti th.op    {background: #DEE7EC; }
	table.lsti tr.odd   {background: transparent; }
	table.lsti tr.even  {background: #F7F9FA; }
	table.lsti tr       {background: white; }
	table.lsti td       {padding: 0px 2px 0px 2px; border: 0px; }
	table.lsti td.r     {padding: 0px 2px 0px 2px; border: 0px;  text-align: right;}

	/* -- qry -- */
	table.qry          {border: thin solid black; }
	table.qry > table  {background: #DEE7EC; color: navy; font-size: .75em; font-family: Arial; 
                      font-weight: normal; text-align: center; }
	table.qry th       {background: #DEE7EC; border-bottom: thin solid blue; color: navy; font-size: .75em; 
                      font-family: arial; font-weight: normal; }
	table.qry th.op    {background: #DEE7EC; }
	table.qry tr.odd   {background: transparent; }
	table.qry tr.even  {background: #F7F9FA; }
	table.qry tr       {background: white; text-align: center; }
	table.qry td       {padding: 0px; border: 0px; text-align: center; }

	/* -- qrybig -- */
	table.qrybig          {border: thin solid black; }
	table.qrybig > table  {background: #DEE7EC; color: navy; font-size: 0.75em; font-family: Arial; 
                      font-weight: normal; text-align: center; }
	table.qrybig th       {background: #DEE7EC; border-bottom: thin solid blue; color: navy; font-size: 1em; 
                      font-family: arial; font-weight: normal; }
	table.qrybig th.op    {background: #DEE7EC; }
	table.qrybig tr.odd   {background: transparent; }
	table.qrybig tr.even  {background: #F7F9FA; }
	table.qrybig tr       {background: white; text-align: center; }
	table.qrybig td       {padding: 0px; border: 0px; text-align: center; }

	/* -- shwform -- */
	table.shwf          {border: thin solid black;;  }
	table.shwf > table  {font-size: .75em; font-style: italic; text-align: left; }
	table.shwf th       {background: #DEE7EC; border-bottom: thin solid blue; font-size: .75em; font-style: italic; text-align: left; }
	table.shwf th.op    {background: #DEE7EC; }
	table.shwf tr.odd   {background: transparent; }
	table.shwf tr.even  {background: #F7F9FA; }
	table.shwf tr       {background: transparent;}
	table.shwf td       {
	padding: 0em 5px;
	border: thin solid;
	border-color: #8CACBB;
}
	table.shwf td.i       {
	padding: 0em 5px;
	border: thin solid;
}
	table.shwf  input  {
	border: 0px;
	border-style: hidden; 
}

	/* -- shwtab -- */
	TABLE.shwt          {border: thin solid black; width: 100%; }
	TABLE.shwt > THEAD  {font-size: .75em; font-style: italic; text-align: center; }
	TABLE.shwt   TH     {background: silver; border-bottom: thin solid blue; }
	TABLE.shwt TR.shwt.par {background: #eee; }
	TABLE.shwt   TR     {background: white; }
	TABLE.shwt   TD     {padding: 0px; border: 0px; }

	/* -- frmform -- */
	table.frmf          {border: thin solid; background: #b0c4de;}
	table.frmf th       {font-size: .75em; font-family: Arial; 
                      font-weight: normal; vertical-align: top; text-align: right; padding-left: 5px; background: #b0c4de;/*background: Silver;*/}
	table.frmf td       {padding: 0em 5px; vertical-align: top; background: #b0c4de;/*background: Silver;*/ }
	TABLE.frmt label    {font-size: .75em; font-family: Arial; 
                      font-weight: normal; text-align: right; padding-left: 5px; background: #b0c4de;/*background: Silver;*/}

	/* -- frmtab -- */
	TABLE.frmt          {border: thin solid black; background: #b0c4de;}
	TABLE.frmt > THEAD  {}
	TABLE.frmt   TH     {border-bottom: thin solid blue; background: #DEE7EC; font-size: .75em; text-align: center; font-family: arial; font-weight: normal; }
	TABLE.frmt TR.shwt.par {background: #eee; }
	TABLE.frmt   TR     {background: white; }
	TABLE.frmt   TD     {padding: 0px; border: 0px; }

	/* -- homepage -- */
	table.hp          {border-collapse: collapse; }
	table.hp th       {padding: 0.75em; background: #DEE7EC; border: 1px solid #8CACBB; text-align: left; }
	table.hp tr       {background: transparent; }
	table.hp tr.odd   {background: transparent; }
	table.hp tr.even  {background: #F7F9FA; }
	table.hp td       {padding-left: 0.5em; border: 1px solid #8CACBB; font-size: .85em; }
	table.hp td li    {padding-top: 0.4em; }
	table.hp td a:hover {background: #F7F9FA; }

	/* -- opcoes -- */

	zA:visited {color: blue}

	zA.navlink:visited { font-size: .75em; color: silver; }

	zlabel { }

	.navbar {
		margin-top: 2em;
		padding-top: 1em;
		border-top: solid thin navy
	}
	.navbar IMG { float: right }

	table.frmErrMsg {border: solid red; }
