/*
** Stylesheet with Internet Explorer-specific workarounds.
*/

/*  */

* html #portal-columns {
  width: 100%;
}
* html*#portal-columns {
    width: auto;
}
input {
    margin-bottom: 1px; /* bug fix */
}
table.listing td.top {
    /* insane IE row bug workaround */
    position: relative;
    left: -1px;
    top: -1px;
}
div#portal-columns div#portal-column-one,
div#portal-columns div#portal-column-two {
    overflow: hidden;
}
textarea {
    width: 97%;
}
.visualOverflow {
    width: 88%;
}
.visualGhosted {
    filter:alpha(opacity=20); 
}

/* make spans within ABBR have a border in IE6 the same way it is in all other browsers */
* html abbr .explain {
    border-bottom: 1px dotted Black;
}

/* Fix bottom margin on tabs in IE */
/*#portal-globalnav li.selected a {*/
/*position: relative;*/
/*}*/
#portal-colophon .colophonIcon {
    height: 0px !important;
    height /**/: 15px;
}
.actionMenu .actionMenuHeader a {
    display: inline;
}
.actionMenu .actionMenuContent {
    top: 1.4em;
}

/* Calendar fixes */
.ploneCalendar { 
    border-collapse:collapse;
    width:auto; 
    height:1%;
}
.ploneCalendar td { 
    width:1%;
}
.ploneCalendar .todaynoevent,
.ploneCalendar .todayevent {
    position: relative;
}
.hiddenStructure { /* This is necessary to eliminate the 1px high object in
                      the document flow in place of .hiddenStructure block objects */
    position: absolute;
}

/* These work in IE only, changes the look of the scrollbar + textareas 
   We disabled these in Plone 3.0, but if you want them back, uncomment 
*/
/*
body { 
    scrollbar-base-color: #eeeeee;
    scrollbar-highlight-color: #eeeeee;
    scrollbar-track-color: transparent;
    scrollbar-darkshadow-color: transparent;
    scrollbar-3dlight-color: #ccc;
    scrollbar-shadow-color: #ccc;
    scrollbar-arrow-color: #436976;
}
*/

/* Holly hack to kill the Peekaboo bug in IE - details at
   http://www.positioniseverything.net/explorer/peekaboo.html
   "* html" syntax is added to hide it from IE5/Mac. ~limi
 */

#floatholder, #float {
    height: 1%;
}

* html .link-external,
* html .link-external a,
* html .link-mailto a,
* html .link-mailto {
     height: 1%; 
} 

/* Fix for IE float bug */
* html .visualIEFloatFix,
* html h1,
* html h2,
* html h3,
* html h4,
* html h5,
* html h6,
* html dd,
* html .documentDescription,
* html .visualClear,
* html .portalMessage,
* html .portalWarningMessage,
* html .portalStopMessage,
* html .system-message,
* html #error-handling,
* html .documentContent {
    height: 0.1%;
}

/* Fix for IE float bug - have to use the Limi Hack here, since the paragraph
   tag doesn't take nicely to the height hack above in IE. */
* html p {
    position: relative;
}
* html h1.documentFirstHeading {
    height: auto;
}

/* There appears to be a bug in some IE 6 versions that causes dashed borders
   to get positioned strangely (i.e. out of the portlet in this case), and
   to move about when scrolling.  May be related to:
   http://mtiki.mmf.at/mt/archives/000011.html */
dd.portletFooter {
    border-top-style: solid;
}

/* Rounded corner workarounds for IE */
* html .portletHeader {
    height: 1%;
}
.portletTopRight, 
.portletTopLeft {
    top: 0px;
}
.portletTopRight,
.portletTopLeft,
.portletBottomRight,
.portletBottomLeft {
    font-size: 1px;
}

/* fix for the horizontal scroll due to the floated searchbox without width definition */
* html #portal-searchbox {
    overflow: auto; 
}
* html body.fullscreen #portal-searchbox {
    overflow: visible;
}


/* IE doesn't know what to do with the caption element, hide it */
table.ploneCalendar caption {
    display: none !important;
}

/* IE6 adds gap between portalMessage's DT and DD. We need to minimize it */
* html dl.portalMessage dt {
    margin-right: 0;
}

/* Buttons in IE are rediculously wide. We need to fix it */
/* Fir somw unknown reasons the following works :) */
.context, 
.formControls .actionButtons .button, 
.documentEditable * .context,
.standalone, 
.documentEditable * .standalone,
.destructive,
.documentEditable * .destructive {
    overflow: visible;
    background-position:6px 1px;
}
input.searchButton {
    overflow: visible;
}

/* Schools Theme Custom Fixes */
* html #portal-top,
#portal-header,
* html #portal-globalnav,
.topPortlets .visualPadding,
#portal-colophon {
  zoom:1;
  }
* html #portal-header {
  zoom:normal;
  }
* html #portal-logo {
  margin:0 -3px;
  position:relative;
  right:-3px;
  }
* html #portal-siteactions li {
  scrollbar-face-color:expression(runtimeStyle.scrollbarFaceColor = '#fff', (this == parentNode.firstChild) ? className += ' first-child' : '' )
  }
* html #portal-siteactions li.first-child {
	float:left;
	}
* html #portal-searchbox {
	right:1px;
  }
* html .LSBox {
	float:left;
  }
* html #portal-searchbox #searchGadget {
  margin-top:2px;
  }
* html .livesearchContainer {
  border:1px solid #ccc;
  padding:0 !important;
  }
#livesearchLegend {
  margin-top:-1.9em;
  margin-left:-8px;
  }
* html #portal-logo {
  height:107px;
  overflow:visible;
  }
* html .topPortlets .visualPadding {
  height:103px;
  }
* html #carousel-over {
  background-image:url(http://emmasia.uevora.pt/emmasia/photo-frame-ie.png);
  }
* html #portal-globalnav li a {
  float:left;
  }
#portal-column-one .visualPadding,
#portal-column-two .visualPadding,
.portletSearch .portletHeader {
  zoom:1;
  }

* html #region-content form {
	width:97%;
	}
* html .kupu-fulleditor-zoomed #visual-portal-wrapper{
	margin:0 !important;
	width:100% !important;
	}
* html .kupu-fulleditor-zoomed #portal-top,
  html .kupu-fulleditor-zoomed #portal-footer,
  html .kupu-fulleditor-zoomed #portal-colophon {
  display:none;
  }
* html em {
  display:inline-block;
  }
  
/*  */
