/*
 * The contents of this file are subject to the Netscape 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/NPL/
 *
 * 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 Netscape are
 * Copyright (C) 1998-1999 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *
 */

/* ===== messenger.css ==================================================
  == Styles shared throughout the Messenger application.
  ======================================================================= */

@import url("chrome://communicator/skin/");
@import url("chrome://communicator/skin/sidebar/sidebar.css");

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

/* ::::: image precacheing ::::: */

#resource_bundle_messenger {
   -moz-binding: url("chrome://messenger/skin/resources.xml#resource_bundle_messenger");
}

/* ::::: primary toolbar masthead ::::: */

#msgToolbar > .toolbar-holder > .toolbar-primary-icon {
  background-image: url("chrome://messenger/skin/icons/mast-mail.gif");
}
 
/* ::::: primary toolbar buttons ::::: */

.button-toolbar-2 {
  min-width: 52px;
}

#button-getmsg {
  list-style-image: url("chrome://messenger/skin/btn1/getmsg.gif");
}

#button-getmsg[disabled="true"],
#button-getmsg[disabled="true"] > .menubutton-dual-stack > .menubutton-dual-button:hover,
#button-getmsg[disabled="true"] > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/getmsg-dis.gif");
} 

#button-getmsg > .menubutton-dual-stack > .menubutton-dual-button:hover {
  list-style-image: url("chrome://messenger/skin/btn1/getmsg-hov.gif");
} 

#button-getmsg > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/getmsg-act.gif");
} 

#button-newmsg {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg.gif");
}

#button-newmsg[disabled="true"],
#button-newmsg[disabled="true"]:hover,
#button-newmsg[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-dis.gif");
} 

#button-newmsg:hover {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-hov.gif");
} 

#button-newmsg:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-act.gif");
} 

#button-reply {
  list-style-image: url("chrome://messenger/skin/btn1/reply.gif");
}

#button-reply[disabled="true"],
#button-reply[disabled="true"]:hover,
#button-reply[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/reply-dis.gif");
} 

#button-reply:hover {
  list-style-image: url("chrome://messenger/skin/btn1/reply-hov.gif");
} 

#button-reply:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/reply-act.gif");
} 

#button-replyall {
  list-style-image: url("chrome://messenger/skin/btn1/replyall.gif");
}

#button-replyall[disabled="true"],
#button-replyall[disabled="true"]:hover,
#button-replyall[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/replyall-dis.gif");
} 

#button-replyall:hover {
  list-style-image: url("chrome://messenger/skin/btn1/replyall-hov.gif");
} 

#button-replyall:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/replyall-act.gif");
} 

#button-forward {
  list-style-image: url("chrome://messenger/skin/btn1/forward.gif");
}

#button-forward[disabled="true"],
#button-forward[disabled="true"]:hover,
#button-forward[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/forward-dis.gif");
} 

#button-forward:hover {
  list-style-image: url("chrome://messenger/skin/btn1/forward-hov.gif");
} 

#button-forward:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/forward-act.gif");
} 

#button-file {
  list-style-image: url("chrome://messenger/skin/btn1/file.gif");
}

#button-file:hover {
  list-style-image: url("chrome://messenger/skin/btn1/file-hov.gif");
} 

#button-file[disabled="true"],
#button-file[disabled="true"]:hover,
#button-file[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/file-dis.gif");
} 

#button-file:hover:active,
#button-file[open="true"] {
  list-style-image: url("chrome://messenger/skin/btn1/file-act.gif");
} 

#button-next {
  list-style-image: url("chrome://messenger/skin/btn1/next.gif");
}

#button-next[disabled="true"],
#button-next[disabled="true"]:hover,
#button-next[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/next-dis.gif");
} 

#button-next:hover {
  list-style-image: url("chrome://messenger/skin/btn1/next-hov.gif");
} 

#button-next:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/next-act.gif");
} 

#button-delete {
  list-style-image: url("chrome://messenger/skin/btn1/delete.gif");
}

#button-delete[disabled="true"],
#button-delete[disabled="true"]:hover,
#button-delete[disabled="true"]:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/delete-dis.gif");
} 

#button-delete:hover {
  list-style-image: url("chrome://messenger/skin/btn1/delete-hov.gif");
} 

#button-delete:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/delete-act.gif");
}

#button-mark {
  list-style-image: url("chrome://messenger/skin/btn1/mark.gif");
}

#button-mark[disabled="true"],
#button-mark[disabled="true"] > .menubutton-dual-stack > .menubutton-dual-button:hover,
#button-mark[disabled="true"] > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/mark-dis.gif");
} 

#button-mark > .menubutton-dual-stack > .menubutton-dual-button:hover {
  list-style-image: url("chrome://messenger/skin/btn1/mark-hov.gif");
} 

#button-mark > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/mark-act.gif");
} 

#button-print {
  list-style-image: url("chrome://communicator/skin/btn1/print.gif");
}

#button-print[disabled="true"],
#button-print[disabled="true"] > .menubutton-dual-stack > .menubutton-dual-button:hover,
#button-print[disabled="true"] > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/print-dis.gif");
}

#button-print > .menubutton-dual-stack > .menubutton-dual-button:hover {
  list-style-image: url("chrome://communicator/skin/btn1/print-hov.gif");
}

#button-print > .menubutton-dual-stack > .menubutton-dual-button:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/print-act.gif");
}

#button-stop {
  list-style-image: url("chrome://communicator/skin/btn1/stop.gif");
}

#button-stop[disabled="true"],
#button-stop[disabled="true"]:hover,
#button-stop[disabled="true"]:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/stop-dis.gif");
} 

#button-stop:hover {
  list-style-image: url("chrome://communicator/skin/btn1/stop-hov.gif");
} 

#button-stop:hover:active {
  list-style-image: url("chrome://communicator/skin/btn1/stop-act.gif");
}

/* ::::: folder icons for menus ::::: */

.folderMenuItem {
  list-style-image: url("chrome://messenger/skin/icons/folder-closed.gif");
}

.folderMenuItem[open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-open.gif");
}

/* ..... special folders ..... */

.folderMenuItem[SpecialFolder="Inbox"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-inbox.gif");
}

.folderMenuItem[SpecialFolder="Inbox"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-inbox-open.gif");
}

.folderMenuItem[SpecialFolder="Sent"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-sent.gif");
}

.folderMenuItem[SpecialFolder="Sent"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-sent-open.gif");
}

.folderMenuItem[SpecialFolder="Drafts"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-draft.gif");
}

.folderMenuItem[SpecialFolder="Drafts"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-draft-open.gif");
}

.folderMenuItem[SpecialFolder="Templates"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-template.gif");
}

.folderMenuItem[SpecialFolder="Templates"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-template-open.gif");
}

.folderMenuItem[SpecialFolder="Trash"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-trash.gif");
}

.folderMenuItem[SpecialFolder="Trash"][open="true"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-trash-open.gif");
}

/* ..... servers ..... */

.folderMenuItem[IsServer="true"] {
  list-style-image: url("chrome://messenger/skin/icons/server-mail.gif");
}

.folderMenuItem[IsServer="true"][ServerType="imap"][IsSecure="true"] {
  list-style-image: url("chrome://messenger/skin/icons/server-remote-lock.gif");
}

.folderMenuItem[IsServer="true"][ServerType="none"] {
  list-style-image: url("chrome://messenger/skin/icons/server-local.gif");
}

/* ..... newsgroups ..... */

.folderMenuItem[IsServer="true"][ServerType="nntp"][IsSecure="true"] {
  list-style-image: url("chrome://messenger/skin/icons/server-news-lock.gif");
}

.folderMenuItem[IsServer="true"][ServerType="nntp"] {
  list-style-image: url("chrome://messenger/skin/icons/server-news.gif");
}

.folderMenuItem[ServerType="nntp"] {
  list-style-image: url("chrome://messenger/skin/icons/folder-newsgroup.gif");
}

/* ::::: button-like menus ::::: */

menu.push {
  margin: 2px;
  border: 1px outset #B4C3D4;
  padding: 2px;
  background: transparent;
  text-align: center;
}

menu.push:hover:active,
menu.push[open] {
  border-style: inset;
  padding: 3px 1px 1px 3px;
}

menu.push[disabled="true"],
menu.push[disabled="true"]:hover,
menu.push[disabled="true"]:hover:active {
  border: 1px solid #85959E;
  color: #85959E;
}

/* ::::: Mail Filter dialog :::::: */

.enabledcol {
  list-style-image: url("chrome://messenger/skin/icons/readcol-read.gif");
}

.enabledcol[Enabled="true"] {
  list-style-image: url("chrome://messenger/skin/icons/readcol-unread.gif");
}

searchattribute {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchattribute");
}

searchoperator {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchoperator");
}

searchvalue {
  display: -moz-xul-deck;
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchvalue");
}

searchterm {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#searchterm");
}

/* ::::: tree focus-ring border adjustments ::::: */

/* ..... status bar adjustments ..... */

statusbarpanel,
#component-bar,
.progressmeter-statusbar {
  border-top: none !important;
}

/* ..... splitter adjustments ..... */

#sidebar-splitter {
  border-right: none;
}

#sidebar-splitter > .splitter-internal-box {
  border-right: none;
  border-bottom: none;
}

#threadpane-splitter,
#threadpane-splitter > box {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

#threadpane-splitter[state="collapsed"] {
  border-bottom: 1px solid #000000;
}

#threadpane-splitter[state="collapsed"] > box {
  border-bottom: 1px solid #414B75;
}

.gray-vertical-splitter,
.gray-vertical-splitter > box {
  border-right: none;
}

.gray-vertical-splitter > box {
  border-bottom: none;
}

#sidebar-panels-splitter,
#sidebar-panels-splitter > box {
  border-top: none;
}

/* ..... sidebar adjustments ..... */

#sidebar-box {
  border-top: none;
}

#sidebar-box > .sidebarheader-main {
  border-top: none;
  border-bottom: 1px solid #63676B;
  border-left: 1px solid #63676B;
  padding: 0px;
  background-color: #C7D0D9;
}

#sidebar-box > .sidebarheader-main > .sidebarheader-internal-box {
  border-top: 1px solid #EEF0F3;
  border-left: 1px solid #EEF0F3;
  color: #000000;
}

/* ..... tree adjustments ..... */
 
#folderTree {
  border-top: none;
  border-right: none;
  border-bottom: 1px solid #EBF4FF;
  border-left: none;
}

#threadOutliner {
  border-top: none;
  border-right: none;
  border-bottom: 1px solid #EBF4FF;
  border-left: 1px solid #A5ABB0;
  min-width: 1px;
}

#threadOutliner > outlinerbody,
#folderTree > outlinerrows {
  border-top: none;
}

#threadOutliner > .outliner-columns {
  border-left: 1px solid #000000;
}

#folderTree > .tree-container-treerows,
#threadOutliner > outlinerrows {
  border-right: none;
  border-bottom: 1px solid #C7D0D9;
  border-left: 1px solid #000000;
}

#folderTree > treechildren,
#threadOutliner > outlinerrows > .outliner-bodybox {
  border: 1px solid transparent;
}

#folderTree:focus > treechildren,
#threadOutliner:focus > outlinerrows > .outliner-bodybox {
  border: 1px solid black;
}

/* ..... message pane adjustments ..... */

#messagepanebox {
  border-top: 1px solid #A5ABB0;
  border-bottom: 1px solid #EBF4FF;
  border-left: 1px solid #A5ABB0;
}

#msgHeaderView {
  border-top: 1px solid #000000;
  border-right: 1px solid #7B969C;
  border-bottom: 1px solid #FFFFFF;
  border-left: 1px solid #000000;
}

#messagepane {
  border-right: 1px solid #FFFFFF;
  border-bottom: 1px solid #C7D0D9;
  border-left: 1px solid #000000;
}

#messagepanebox[focusring="true"] > #messagepane {
  border-color: #000000;
}

#messagepanebox[focusring="true"] > #msgHeaderView {
  border-bottom-color: #000000;
}

/* ..... account central adjustments ..... */

#accountCentralBox {
  border-bottom: 1px solid #EBF4FF;
  border-left: 1px solid #A5ABB0;
}

[name="accountCentralPane"] {
  border-bottom: 1px solid #C7D0D9;
  border-left: 1px solid #000000;
}

/* ::::: account wizard :::::: */

.awIdentityLabel {
  width: 8em;
  margin-left: 5px;
}

/* ::::: account manager :::::: */

.specialFolderPickerGrid {
  margin-left: 20px;
}

/* ::::: account central :::::: */

#accountCentralBox {
  background-color: #FFFFFF;
}

/* :::::
   :: Make sure the min height is small so we can
   :: resize the pane vertically -EDV
   ::::: */

#messagepanebox {
  min-height: 10px;
  height: 0px;
}

/* ::::: miscellany :::::: */

[hide] {
   display: none;
}

spring.spacer {
  width: 5px;
  height: 5px;
}

/* ::::: Search Dialog adjustments ::::: */
#fileMessageButton {
   margin: 0px 0px 0px 0px;
 }

#searchTermTree {
  min-height: 50px;
}

/* ::::: move to content :::::: */

dummy.usesMailWidgets {
  -moz-binding: url("chrome://messenger/content/mailWidgets.xml#dummy");
}

