/* ***** 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 "MPL"); you may not use this file
 * except in compliance with the MPL. You may obtain a copy of
 * the MPL at http://www.mozilla.org/MPL/
 *
 * Software distributed under the MPL is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the MPL for the specific language governing
 * rights and limitations under the MPL.
 *
 * The Original Code is Enigmail.
 *
 * The Initial Developer of the Original Code is Patrick Brunschwig.
 * Portions created by Patrick Brunschwig <patrick@enigmail.net> are
 * Copyright (C) 2003 Patrick Brunschwig. All Rights Reserved.
 *
 * Contributor(s):
 *
 * 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 ***** */

/* Enigmail styles for SeaMonkey */

#button-enigmail-decrypt,
[typeid="button-enigmail-decrypt"]
  {
    list-style-image : url("chrome://enigmail/skin/enigmail-toolbar.png");
    -moz-image-region: rect(0px 30px 30px 0px);
  }

#button-enigmail-decrypt:hover,
[typeid="button-enigmail-decrypt"]
  {
    -moz-image-region: rect(30px 30px 60px 0px);
  }

#button-enigmail-decrypt[disabled],
[typeid="button-enigmail-decrypt"]
  {
    -moz-image-region: rect(60px 30px 90px 0px);
  }

toolbar[iconsize="small"]  #button-enigmail-decrypt
  {
    -moz-image-region: rect(0px 20px 20px 0px);
    list-style-image : url("chrome://enigmail/skin/enigmail-toolbar-small.png");
  }

toolbar[iconsize="small"] #button-enigmail-decrypt:hover
  {
    -moz-image-region: rect(20px 20px 40px 0px);
  }

toolbar[iconsize="small"] #button-enigmail-decrypt[disabled]
  {
    -moz-image-region: rect(40px 20px 60px 0px);
  }

/***************************************************
 *  Icons for compose toolbar: encrytion
 ***************************************************/

#button-enigmail-encrypt
{
  list-style-image : url("chrome://enigmail/skin/encrypt-inactive-30.png");
}

/* hide label unless text-only mode is enabled */
toolbar:not([mode="text"]) #button-enigmail-encrypt .toolbarbutton-text {
  display: none;
}

#button-enigmail-encrypt[disabled] {
  list-style-image : url("chrome://enigmail/skin/encrypt-disabled-30.png");
}

#button-enigmail-encrypt[encrypted="activeNone"]
{
  list-style-image : url("chrome://enigmail/skin/encrypt-active-30.png");
}

#button-enigmail-encrypt[encrypted="forceYes"]
{
  list-style-image : url("chrome://enigmail/skin/encrypt-active-force-30.png");
}

#button-enigmail-encrypt[encrypted="forceNo"]
{
  list-style-image : url("chrome://enigmail/skin/encrypt-inactive-force-30.png");
}


toolbar[iconsize="small"] #button-enigmail-encrypt
{
  list-style-image : url("chrome://enigmail/skin/encrypt-inactive-24.png");
}

toolbar[iconsize="small"] #button-enigmail-encrypt[disabled] {
  list-style-image : url("chrome://enigmail/skin/encrypt-disabled-24.png");
}

toolbar[iconsize="small"] #button-enigmail-encrypt[encrypted="activeNone"]
{
  list-style-image : url("chrome://enigmail/skin/encrypt-active-24.png");
}

toolbar[iconsize="small"] #button-enigmail-encrypt[encrypted="forceYes"]
{
  list-style-image : url("chrome://enigmail/skin/encrypt-active-force-24.png");
}

toolbar[iconsize="small"] #button-enigmail-encrypt[encrypted="forceNo"]
{
  list-style-image : url("chrome://enigmail/skin/encrypt-inactive-force-24.png");
}


/***************************************************
 *  Icons for compose toolbar: signing
 ***************************************************/

#button-enigmail-sign
{
  list-style-image : url("chrome://enigmail/skin/sign-inactive-30.png");
}

/* hide label unless text-only mode is enabled */
toolbar:not([mode="text"]) #button-enigmail-sign .toolbarbutton-text {
  display: none;
}

#button-enigmail-sign[disabled] {
  list-style-image : url("chrome://enigmail/skin/sign-disabled-30.png");
}

#button-enigmail-sign[signed="activeNone"]
{
  list-style-image : url("chrome://enigmail/skin/sign-active-30.png");
}

#button-enigmail-sign[signed="forceYes"]
{
  list-style-image : url("chrome://enigmail/skin/sign-active-force-30.png");
}

#button-enigmail-sign[signed="forceNo"]
{
  list-style-image : url("chrome://enigmail/skin/sign-inactive-force-30.png");
}


toolbar[iconsize="small"] #button-enigmail-sign
{
  list-style-image : url("chrome://enigmail/skin/sign-inactive-24.png");
}

toolbar[iconsize="small"] #button-enigmail-sign[disabled] {
  list-style-image : url("chrome://enigmail/skin/sign-disabled-24.png");
}

toolbar[iconsize="small"] #button-enigmail-sign[signed="activeNone"]
{
  list-style-image : url("chrome://enigmail/skin/sign-active-24.png");
}

toolbar[iconsize="small"] #button-enigmail-sign[signed="forceYes"]
{
  list-style-image : url("chrome://enigmail/skin/sign-active-force-24.png");
}

toolbar[iconsize="small"] #button-enigmail-sign[signed="forceNo"]
{
  list-style-image : url("chrome://enigmail/skin/sign-inactive-force-24.png");
}

/***************************************************
 *  Icons for compose toolbar: attach own key
 ***************************************************/

#button-enigmail-attach
{
  list-style-image : url("chrome://enigmail/skin/attach-inactive-30.png");
}

#button-enigmail-attach[disabled] {
  list-style-image : url("chrome://enigmail/skin/attach-disabled-30.png");
}

#button-enigmail-attach[addPubkey="true"]
{
  list-style-image : url("chrome://enigmail/skin/attach-active-30.png");
}

toolbar[iconsize="small"] #button-enigmail-attach
{
  list-style-image : url("chrome://enigmail/skin/attach-inactive-24.png");
}

toolbar[iconsize="small"] #button-enigmail-attach[disabled] {
  list-style-image : url("chrome://enigmail/skin/attach-disabled-24.png");
}

toolbar[iconsize="small"] #button-enigmail-attach[addPubkey="true"]
{
  list-style-image : url("chrome://enigmail/skin/attach-active-24.png");
}


.action-box { width: 100px }

#expandedEnigmailBox {
  background-color:#d8e0e8;
  color: black;
}

.enigmailHeaderName {
  color: #888a85; /* lower contrast, TB3 */
  text-align: right;
  background-color: transparent;
  -moz-margin-end: 2px;
}

.enigmailHeaderNameBox {
  width: 7.7em;
  background-color:#d8e0e8;
  color: black;
}

.enigmailHeaderValue {
  min-width: 50px;
  white-space: normal;
  color: black;
  line-height: 1.4em;

  -moz-appearance: none !important;
  -moz-appearance: none;

  padding: 0px !important;
  margin: 0px !important;
  -moz-margin-start: 3px !important;
  border: none !important;
  background-color: transparent;
}

.enigmailHeaderSpacer {
  width: 2px;
}

.enigmailHeaderBoxLabelNoSignature {
  background-color:#d8e0e8;
  color: black;
}

.enigmailHeaderBoxLabelSignatureOk {
  background-color:#ccffcc;
  color: black;
}

.enigmailHeaderBoxLabelSignatureVerified {
  background-color:#ccffff;
  color: black;
}

.enigmailHeaderBoxLabelSignatureNotOk {
  background-color:#FFD8FE;
  color: black;
}

.enigmailHeaderBoxLabelSignatureUnknown {
  background-color:#FFFFC9;
  color: black;
}

.enigmailHeaderBoxLabelBuggyMailFormat {
  background-color:#FFD8FE;
  color: black;
}

.enigmailLink {
  text-decoration: underline;
  color: blue;
  cursor: pointer;
}

.enigmailStrong {
  font-weight: bold;
  color: red;
}

.enigmailUidInactive {
  color: gray;
  font-style: italic;
}

.enigMsgHdrView-flat-button {
  min-width: 1px !important;
  -moz-appearance: none;
  color: black;
  background-color: #DDDDDD;

  border: 2px solid transparent;
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 0 2px;
  border-radius: 2px;
  -moz-border-top-colors: transparent threedhighlight threedlightshadow;
  -moz-border-right-colors: transparent threeddarkshadow threedshadow;
  -moz-border-bottom-colors: transparent threeddarkshadow threedshadow;
  -moz-border-left-colors: transparent threedhighlight threedlightshadow;
  min-height: 1ex;
}

.enigMsgHdrView-flat-button:hover {
  background-color: #CCCCCC;
}

.enigmailToolbar {
  min-width: 50px;
  white-space: normal;
  color: WindowText;
  line-height: 1.4em;

  -moz-appearance: none !important;
  -moz-appearance: none;

  padding: 0px !important;
  margin: 0px !important;
  -moz-margin-start: 3px !important;
  border: none !important;
  background-color: transparent;
}

/***************************************************
 *  Icons for messenger status bar
 ***************************************************/

#enigmail-status-bar #enigmail-signed-status {
  list-style-image: none;
  visibility: collapse;
}

#enigmail-status-bar[signed="ok"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignOk.png");
  visibility: visible;
}

#enigmail-status-bar[signed="notok"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignNotOk.png");
  visibility: visible;
}

#enigmail-status-bar[signed="unknown"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignUnkown.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactive"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignInactive.png");
  visibility: visible;
}

#enigmail-status-bar #enigmail-encrypted-status {
  list-style-image: none;
  visibility: collapse;
}

#enigmail-status-bar[encrypted="ok"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncOk.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="notok"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncNotOk.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactive"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncInactive.png");
  visibility: visible;
}


/***************************************************
 *  Icons for compose status bar: signed states
 ***************************************************/

#enigmail-status-bar[signed="forceYes"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignForceYes.png");
  visibility: visible;
}

#enigmail-status-bar[signed="forceNo"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignForceNo.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactiveNone"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignInactiveNone.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactivePlus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignInactivePlus.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactiveMinus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignInactiveMinus.png");
  visibility: visible;
}

#enigmail-status-bar[signed="inactiveConflict"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignInactiveConflict.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activeNone"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignActiveNone.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activePlus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignActivePlus.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activeMinus"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignActiveMinus.png");
  visibility: visible;
}

#enigmail-status-bar[signed="activeConflict"] #enigmail-signed-status {
  list-style-image: url("chrome://enigmail/skin/enigSignActiveConflict.png");
  visibility: visible;
}

/***************************************************
 *  Icons for compose status bar: encrypted states
 ***************************************************/

#enigmail-status-bar[encrypted="forceYes"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncForceYes.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="forceNo"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncForceNo.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activeNone"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncActiveNone.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activePlus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncActivePlus.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activeMinus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncActiveMinus.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="activeConflict"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncActiveConflict.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactiveNone"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncInactiveNone.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactivePlus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncInactivePlus.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactiveMinus"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncInactiveMinus.png");
  visibility: visible;
}

#enigmail-status-bar[encrypted="inactiveConflict"] #enigmail-encrypted-status {
  list-style-image: url("chrome://enigmail/skin/enigEncInactiveConflict.png");
  visibility: visible;
}


.enigmailPrefsTitle {
  font-weight: bold;
  height: 25px;
}

treechildren::-moz-tree-cell-text(enigmailSubkeyTitle) {
  font-weight: bold;
}

treechildren::-moz-tree-cell-text(enigmailOwnKey) {
  font-weight: bold;
}

treechildren::-moz-tree-cell-text(enigKeyInactive) {
  color: gray;
  font-style: italic;
}

treechildren::-moz-tree-column(enigDontEncrypt) {
  background-color: rgb(90%, 90%, 90%);
}

.enigmailExpandViewButton {
  width: 9px; /* The image's width is 9 pixels */
  list-style-image: url("chrome://enigmail/skin/twisty-clsd.png");
}

.enigmailCollapseViewButton {
  width: 9px; /* The image's width is 9 pixels */
  list-style-image: url("chrome://enigmail/skin/twisty-open.png");

}

treechildren::-moz-tree-image(enigSignedEncrypted)
{
  list-style-image: url("chrome://enigmail/skin/col-encrypted-signed.png");
}

treechildren::-moz-tree-image(enigSigned)
{
  list-style-image: url("chrome://enigmail/skin/col-encrypted-signed.png");
    -moz-image-region: rect(0px 24px 12px 12px);
}

treechildren::-moz-tree-image(enigEncrypted)
{
  list-style-image: url("chrome://enigmail/skin/col-encrypted-signed.png");
    -moz-image-region: rect(0px 12px 12px 0px);
}

.enigmailWarningIcon {
  list-style-image: url("chrome://enigmail/skin/warning-16.png");
}

/*

 the following styles are available for the key trust
   columnm in the key manager:
    enigmail_keyValid_unknown
    enigmail_keyValid_invalid
    enigmail_keyValid_disabled
    enigmail_keyValid_revoked
    enigmail_keyValid_expired
    enigmail_keyTrust_untrusted
    enigmail_keyTrust_marginal
    enigmail_keyTrust_full
    enigmail_keyTrust_ultimate
    enigmail_keyTrust_unknown

They can be applied using:
treechildren::-moz-tree-cell(STYLE) {}
treechildren::-moz-tree-cell-text(STYLE) {}
*/

/******************************
 *  Rules for filter actions
 ******************************/

.ruleactiontarget[type="enigmail@enigmail.net#filterActionMoveDecrypt"] {
  -moz-binding: url("chrome://messenger/content/searchWidgets.xml#ruleactiontarget-folder");
}

.ruleactiontarget[type="enigmail@enigmail.net#filterActionCopyDecrypt"] {
  -moz-binding: url("chrome://messenger/content/searchWidgets.xml#ruleactiontarget-folder");
}
