/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 * Joachim Herb <joachim.herb@gmx.de>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* ===== messageHeader.css ==============================================
  == Styles for the header toolbars of a mail message.
  ======================================================================= */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* ::::: msg header toolbars ::::: */
#collapsedHeaderView {
  min-width: 1px;
}


#collapsed1LtoCcBccLabel {
  -moz-padding-start: 2px;
  -moz-padding-end: 1px;
}

#collapsedHeaderView {
  overflow-y: hidden;
  overflow-x: hidden;
  max-height: 30em;
}

#collapsed1LHeaderRows > row,
#collapsed1LHeader2Rows > row {
  /* Ensure that the header names and values are aligned with each other. */
  -moz-box-align: baseline;
}

#collapsedHeadersTopBox {
  /* Ensure that the space between the from row and the one after is
     identical to the spacing between the subsequent header lines. */
  -moz-box-align: end;
}

#collapsed1LHeaderViewFirstLine {
  -moz-box-align: baseline;
}

#collapsed2LHeaderViewFirstLine {
  -moz-box-align: start;
}

#collapsed1LsubjectBox > .headerValue {
  font-weight: bold;
}

#expandedButtonBox .button-menubutton-button,
#collapsed1LButtonBox .button-menubutton-button {
  background-color: transparent;
  border: transparent;
}

#expandedButtonBox .msgHeaderView-flat-button,
#collapsedButtonBox .msgHeaderView-flat-button {
	padding: 0px;
	margin: 0px;
}

#collapsed1LtoCcBccBox .headerNameBox,
#collapsed1LfromBox .headerNameBox {
	display: none;
}
#collapsed1LfromBox > .headerNameBox {
  display: none;
}

#otherActionsButton[OnlyIcon="Text"] .button-text,
#tagMenuPopup[OnlyIcon="Text"] .button-text {
  -moz-padding-end: 1px;
  -moz-padding-start: 5px;
}

#otherActionsButton[OnlyIcon="Icon"] .button-text,
#tagMenuPopup[OnlyIcon="Icon"] .button-text {
	display: none;
}

#otherActionsButton .button-icon,
#tagMenuPopup .button-icon {
  -moz-margin-start: 1px;
  -moz-margin-end: 1px;
}

#collapsedHeaderDisplayName {
  text-align: left;
}

#collapsedsubjectlinkBox,
#collapsed1LsubjectBox,
#collapsed2LsubjectBox {
	font-weight: bold;
}

#collapsed1LdateBox {
  -moz-box-align: stretch;
  text-align: right;
  -moz-padding-end: 0.5em;
}

#hideDetailsButton:hover, #hideDetailsButton {
  -moz-appearance: none;
  border: 2px solid transparent;
  background-color: transparent;
  /*width: 1.3em;
  height: 1.3em;*/
  padding-bottom: 0px;
  margin:0px;
  padding:0px;
  background-image: url("chrome://CompactHeader/skin/twisty-open.png");
  background-repeat: no-repeat;
  background-position: center center;
  margin-top: 5px;
  -moz-margin-start: 2px;
}

#showDetailsButton:hover, #showDetailsButton {
  -moz-appearance: none;
  border: 2px solid transparent;
  background-color: transparent;
  /*width: 1.3em;
  height: 1.3em; */
  padding-bottom: 0px;
  margin:0px;
  padding:0px;
  background-image: url("chrome://CompactHeader/skin/twisty-clsd.png");
  background-repeat: no-repeat;
  background-position: center center;
  margin-top: 5px;
  -moz-margin-start: 2px;
}

#expandedfromBox,
#collapsed1LtoCcBccRow,  
#collapsed1LsubjectOutBox, #collapsed1LfromOutBox,#collapsedButtonBox,
#expandedButtonBox,
#collapsed1LsubjectBox, #collapsed1LfromBox {
  margin: 0px;
  padding: 0px;
}

#expandedHeadersTopBox {
  -moz-box-align: start;
}

#expandedfromBox, #collapsed1LfromOutBox, #collapsed1LtoCcBccOutBox, 
#collapsed2LfromOutBox,  
#collapsed2LtoCcBccOutBox { 
  margin-top: 2px;
}

#collapsed2LsubjectBox {
  -moz-margin-start: 0px;
}

#collapsed2LdateBox {
  -moz-margin-end: 5px;
}

#collapsedButtonBox[OnlyIcon="Icon"] .msgHeaderView-button .button-text,
#expandedButtonBox[OnlyIcon="Icon"] .msgHeaderView-button .button-text {
  display: none;
}

#collapsedButtonBox[OnlyIcon="Text"] .msgHeaderView-button .button-text,
#expandedButtonBox[OnlyIcon="Text"] .msgHeaderView-button .button-text {
  -moz-padding-start: 5px;
  -moz-margin-end: 1px;
}

/* set button margins */
#collapsedButtonBox .msgHeaderView-button .msgHeaderView-flat-button .button-icon,
#expandedButtonBox .msgHeaderView-button .msgHeaderView-flat-button .button-icon {
  -moz-margin-start: 1px;
  -moz-margin-end: 1px;
}

#otherActionsTopSpacer {
  display: none;
}

