/*

# 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):

*/

/* ===== searchDialog.css ===============================================
  == Styles for the Mail Search dialog.
  ======================================================================= */

@import url("chrome://messenger/skin/");

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

window {
        padding-top: 8px;
}

window > vbox {
	padding: 0px 8px;
}

window > vbox > vbox {
	font: menu;
}
/* ::::: box sizes ::::: */

#searchTermTree {
  min-height: 50px;
}

#searchTermListBox {
  height: 100px;
}

#searchResultListBox {
  margin: 5px;
  height: 100px;
  font: message-box;
  border-right: 1px solid #C3C3C3;
  border-bottom: 1px solid #DDDDDD;
  border-left: 1px solid #C3C3C3;
}

menulist {
  min-width: 15em;
}

menulist > menupopup > menuitem {
  padding-right: 2px;
}

textbox {
  margin: 1px 4px;
}

/* ::::: thread decoration ::::: */

treechildren::-moz-tree-cell-text(read) {
  font-weight: normal;
}

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

/* on a collapsed thread, if the top level message is read, but the thread has
 * unread children, underline the text.  4.x mac did this, very slick 
 */
treechildren::-moz-tree-cell-text(container, closed, hasUnread, read) {
  text-decoration: underline;
}

/* ::::: message column icons ::::: */

/* ..... thread column ..... */

treecol.threadColumnHeader {
  list-style-image: url("chrome://messenger/skin/icons/unthreadcol.png");
}

treecol.threadColumnHeader[sortDirection="ascending"]  {
  list-style-image: url("chrome://messenger/skin/icons/threadcol.png");
}

treecol.threadColumnHeader[sortDirection="descending"] {
  list-style-image: url("chrome://messenger/skin/icons/threadcol.png");
}

treechildren::-moz-tree-image(threadCol, container) {
  list-style-image: url("chrome://messenger/skin/icons/thread-closed.png");
}

treechildren::-moz-tree-image(threadCol, container, open) {
  list-style-image: url("chrome://messenger/skin/icons/thread-open.png");
}

treechildren::-moz-tree-image(threadCol, container, hasUnread) {
  list-style-image: url("chrome://messenger/skin/icons/thread-new-closed.png");
}

treechildren::-moz-tree-image(threadCol, container, hasUnread, open) {
  list-style-image: url("chrome://messenger/skin/icons/thread-new-open.png");
}

/* ..... read column ..... */

treecol.readColumnHeader {
  list-style-image: url("chrome://messenger/skin/icons/readcol.png");
}

treechildren::-moz-tree-image(unreadButtonColHeader) {
  list-style-image: url("chrome://messenger/skin/icons/readmail.png");
}

treechildren::-moz-tree-image(unreadButtonColHeader, unread) {
  list-style-image: url("chrome://messenger/skin/icons/unreadmail.png");
}

/* ..... flag column ..... */

treecol.flagColumnHeader {
  list-style-image: url("chrome://messenger/skin/icons/flagcol.png");
}

treechildren::-moz-tree-image(flaggedCol) {
  list-style-image: url("chrome://messenger/skin/icons/readmail.png");
}

treechildren::-moz-tree-image(flaggedCol, flagged) {
  list-style-image: url("chrome://messenger/skin/icons/flaggedmail.png");
}

/* ..... junkStatus column ..... */

treecol.junkStatusHeader {
  list-style-image: url("chrome://messenger/skin/icons/folder-junk.png");
  padding: 0px 4px 0px 0px;
}

/* "unknown" now looks like "not junk".  see bug #182386 */
treechildren::-moz-tree-image(junkStatusCol) {
  list-style-image: url("chrome://messenger/skin/icons/readmail.png");
  padding-left: 0px;
  padding-right: 4px;
}

treechildren::-moz-tree-image(junkStatusCol, junk) {
  list-style-image: url("chrome://messenger/skin/icons/folder-junk.png");
  margin-right: -1px;
}

treechildren::-moz-tree-image(junkStatusCol, notjunk) {
  list-style-image: url("chrome://messenger/skin/icons/readmail.png");
  padding-left: 0px;
  padding-right: 4px;
}

/* ..... subject column ..... */

treechildren::-moz-tree-image(subjectCol) {
  margin-right: 2px;
  list-style-image: url("chrome://messenger/skin/icons/message-mail.png");
}

treechildren::-moz-tree-image(subjectCol, new) {
  list-style-image: url("chrome://messenger/skin/icons/message-mail-new.png");
}

treechildren::-moz-tree-image(subjectCol, attach) {
  list-style-image: url("chrome://messenger/skin/icons/message-mail-attach.png");
}

treechildren::-moz-tree-image(subjectCol, imapdeleted) {
  list-style-image: url("chrome://messenger/skin/icons/message-mail-imapdelete.png");
}

treechildren::-moz-tree-image(subjectCol, news) {
  list-style-image: url("chrome://messenger/skin/icons/message-news.png");
}

treechildren::-moz-tree-image(subjectCol, news, attach) {
  list-style-image: url("chrome://messenger/skin/icons/message-news-attach.png");
}

treechildren::-moz-tree-image(subjectCol, news, attach, offline) {
  list-style-image: url("chrome://messenger/skin/icons/message-news-attach-offl.png");
}

treechildren::-moz-tree-image(subjectCol, news, new) {
  list-style-image: url("chrome://messenger/skin/icons/message-news-new.png");
}

treechildren::-moz-tree-image(subjectCol, news, new, attach) {
  list-style-image: url("chrome://messenger/skin/icons/message-news-new-attach.png");
}

/* ..... new thread icons for watch and ignore ..... */

treechildren::-moz-tree-image(news, threadCol, watch) {
  list-style-image: url("chrome://messenger/skin/icons/thread-closed-eye.png");
}

treechildren::-moz-tree-image(news, threadCol, ignore) {
  list-style-image: url("chrome://messenger/skin/icons/thread-closed-kill.png");
}

treechildren::-moz-tree-image(news, threadCol, container, hasUnread, watch) {
  list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-eye.png");
}

treechildren::-moz-tree-image(news, threadCol, container, hasUnread, ignore) {
  list-style-image: url("chrome://messenger/skin/icons/thread-new-closed-kill.png");
}

treechildren::-moz-tree-image(news, threadCol, container, hasUnread, watch, open) {
  list-style-image: url("chrome://messenger/skin/icons/thread-new-open-eye.png");
}

treechildren::-moz-tree-image(news, threadCol, container, hasUnread, ignore, open) {
  list-style-image: url("chrome://messenger/skin/icons/thread-new-open-kill.png");
}

treechildren::-moz-tree-image(news, threadCol, container, watch, open) {
  list-style-image: url("chrome://messenger/skin/icons/thread-open-eye.png");
}

treechildren::-moz-tree-image(news, threadCol, container, ignore, open) {
  list-style-image: url("chrome://messenger/skin/icons/thread-open-kill.png");
}

#sizeCol,
#unreadCol,
#totalCol {
  text-align: right;
}

/* ::::: thread labels decoration ::::: */

/* There are 10x7 color definitions (size of the color picker used)
   times 2 (2 style definitions for each color) +  2 general black
   and white color definitions.
   The color definitions can be in the following formats:
     color: red;
     color: #FF0000;
     color: rgb(128, 0, 0); 
*/
treechildren::-moz-tree-cell-text(lc-FFFFFF) {
  color: #FFFFFF
}
treechildren::-moz-tree-row(lc-FFFFFF, selected) {
  background-color: #FFFFFF;
}

treechildren::-moz-tree-cell-text(lc-CCCCCC) {
  color: #CCCCCC
}
treechildren::-moz-tree-row(lc-CCCCCC, selected) {
  background-color: #CCCCCC;
}

treechildren::-moz-tree-cell-text(lc-C0C0C0) {
  color: #C0C0C0
}
treechildren::-moz-tree-row(lc-C0C0C0, selected) {
  background-color: #C0C0C0;
}

treechildren::-moz-tree-cell-text(lc-999999) {
  color: #999999
}
treechildren::-moz-tree-row(lc-999999, selected) {
  background-color: #999999;
}

treechildren::-moz-tree-cell-text(lc-666666) {
  color: #666666
}
treechildren::-moz-tree-row(lc-666666, selected) {
  background-color: #666666;
}

treechildren::-moz-tree-cell-text(lc-333333) {
  color: #333333
}
treechildren::-moz-tree-row(lc-333333, selected) {
  background-color: #333333;
}

treechildren::-moz-tree-cell-text(lc-000000) {
  color: #000000
}
treechildren::-moz-tree-row(lc-000000, selected) {
  background-color: #000000;
}

treechildren::-moz-tree-cell-text(lc-FFCCCC) {
  color: #FFCCCC
}
treechildren::-moz-tree-row(lc-FFCCCC, selected) {
  background-color: #FFCCCC;
}

treechildren::-moz-tree-cell-text(lc-FF6666) {
  color: #FF6666
}
treechildren::-moz-tree-row(lc-FF6666, selected) {
  background-color: #FF6666;
}

treechildren::-moz-tree-cell-text(lc-FF0000) {
  color: #FF0000
}
treechildren::-moz-tree-row(lc-FF0000, selected) {
  background-color: #FF0000;
}

treechildren::-moz-tree-cell-text(lc-CC0000) {
  color: #CC0000
}
treechildren::-moz-tree-row(lc-CC0000, selected) {
  background-color: #CC0000;
}

treechildren::-moz-tree-cell-text(lc-990000) {
  color: #990000
}
treechildren::-moz-tree-row(lc-990000, selected) {
  background-color: #990000;
}

treechildren::-moz-tree-cell-text(lc-660000) {
  color: #660000
}
treechildren::-moz-tree-row(lc-660000, selected) {
  background-color: #660000;
}

treechildren::-moz-tree-cell-text(lc-330000) {
  color: #330000
}
treechildren::-moz-tree-row(lc-330000, selected) {
  background-color: #330000;
}

treechildren::-moz-tree-cell-text(lc-FFCC99) {
  color: #FFCC99
}
treechildren::-moz-tree-row(lc-FFCC99, selected) {
  background-color: #FFCC99;
}

treechildren::-moz-tree-cell-text(lc-FF9966) {
  color: #FF9966
}
treechildren::-moz-tree-row(lc-FF9966, selected) {
  background-color: #FF9966;
}

treechildren::-moz-tree-cell-text(lc-FF9900) {
  color: #FF9900
}
treechildren::-moz-tree-row(lc-FF9900, selected) {
  background-color: #FF9900;
}

treechildren::-moz-tree-cell-text(lc-FF6600) {
  color: #FF6600
}
treechildren::-moz-tree-row(lc-FF6600, selected) {
  background-color: #FF6600;
}

treechildren::-moz-tree-cell-text(lc-CC6600) {
  color: #CC6600
}
treechildren::-moz-tree-row(lc-CC6600, selected) {
  background-color: #CC6600;
}

treechildren::-moz-tree-cell-text(lc-993300) {
  color: #993300
}
treechildren::-moz-tree-row(lc-993300, selected) {
  background-color: #993300;
}

treechildren::-moz-tree-cell-text(lc-663300) {
  color: #663300
}
treechildren::-moz-tree-row(lc-663300, selected) {
  background-color: #663300;
}

treechildren::-moz-tree-cell-text(lc-FFFF99) {
  color: #FFFF99
}
treechildren::-moz-tree-row(lc-FFFF99, selected) {
  background-color: #FFFF99;
}

treechildren::-moz-tree-cell-text(lc-FFFF66) {
  color: #FFFF66
}
treechildren::-moz-tree-row(lc-FFFF66, selected) {
  background-color: #FFFF66;
}

treechildren::-moz-tree-cell-text(lc-FFCC66) {
  color: #FFCC66
}
treechildren::-moz-tree-row(lc-FFCC66, selected) {
  background-color: #FFCC66;
}

treechildren::-moz-tree-cell-text(lc-FFCC33) {
  color: #FFCC33
}
treechildren::-moz-tree-row(lc-FFCC33, selected) {
  background-color: #FFCC33;
}

treechildren::-moz-tree-cell-text(lc-CC9933) {
  color: #CC9933
}
treechildren::-moz-tree-row(lc-CC9933, selected) {
  background-color: #CC9933;
}

treechildren::-moz-tree-cell-text(lc-996633) {
  color: #996633
}
treechildren::-moz-tree-row(lc-996633, selected) {
  background-color: #996633;
}

treechildren::-moz-tree-cell-text(lc-663333) {
  color: #663333
}
treechildren::-moz-tree-row(lc-663333, selected) {
  background-color: #663333;
}


treechildren::-moz-tree-cell-text(lc-FFFFCC) {
  color: #FFFFCC
}
treechildren::-moz-tree-row(lc-FFFFCC, selected) {
  background-color: #FFFFCC;
}

treechildren::-moz-tree-cell-text(lc-FFFF33) {
  color: #FFFF33
}
treechildren::-moz-tree-row(lc-FFFF33, selected) {
  background-color: #FFFF33;
}

treechildren::-moz-tree-cell-text(lc-FFFF00) {
  color: #FFFF00
}
treechildren::-moz-tree-row(lc-FFFF00, selected) {
  background-color: #FFFF00;
}

treechildren::-moz-tree-cell-text(lc-FFCC00) {
  color: #FFCC00
}
treechildren::-moz-tree-row(lc-FFCC00, selected) {
  background-color: #FFCC00;
}

treechildren::-moz-tree-cell-text(lc-999900) {
  color: #999900
}
treechildren::-moz-tree-row(lc-999900, selected) {
  background-color: #999900;
}

treechildren::-moz-tree-cell-text(lc-666600) {
  color: #666600
}
treechildren::-moz-tree-row(lc-666600, selected) {
  background-color: #666600;
}

treechildren::-moz-tree-cell-text(lc-333300) {
  color: #333300
}
treechildren::-moz-tree-row(lc-333300, selected) {
  background-color: #333300;
}

treechildren::-moz-tree-cell-text(lc-99FF99) {
  color: #99FF99
}
treechildren::-moz-tree-row(lc-99FF99, selected) {
  background-color: #99FF99;
}

treechildren::-moz-tree-cell-text(lc-66FF99) {
  color: #66FF99
}
treechildren::-moz-tree-row(lc-66FF99, selected) {
  background-color: #66FF99;
}

treechildren::-moz-tree-cell-text(lc-33FF33) {
  color: #33FF33
}
treechildren::-moz-tree-row(lc-33FF33, selected) {
  background-color: #33FF33;
}

treechildren::-moz-tree-cell-text(lc-33CC00) {
  color: #33CC00
}
treechildren::-moz-tree-row(lc-33CC00, selected) {
  background-color: #33CC00;
}

treechildren::-moz-tree-cell-text(lc-009900) {
  color: #009900
}
treechildren::-moz-tree-row(lc-009900, selected) {
  background-color: #009900;
}

treechildren::-moz-tree-cell-text(lc-006600) {
  color: #006600
}
treechildren::-moz-tree-row(lc-006600, selected) {
  background-color: #006600;
}

treechildren::-moz-tree-cell-text(lc-003300) {
  color: #003300
}
treechildren::-moz-tree-row(lc-003300, selected) {
  background-color: #003300;
}

treechildren::-moz-tree-cell-text(lc-99FFFF) {
  color: #99FFFF
}
treechildren::-moz-tree-row(lc-99FFFF, selected) {
  background-color: #99FFFF;
}

treechildren::-moz-tree-cell-text(lc-33FFFF) {
  color: #33FFFF
}
treechildren::-moz-tree-row(lc-33FFFF, selected) {
  background-color: #33FFFF;
}

treechildren::-moz-tree-cell-text(lc-66CCCC) {
  color: #66CCCC
}
treechildren::-moz-tree-row(lc-66CCCC, selected) {
  background-color: #66CCCC;
}

treechildren::-moz-tree-cell-text(lc-00CCCC) {
  color: #00CCCC
}
treechildren::-moz-tree-row(lc-00CCCC, selected) {
  background-color: #00CCCC;
}

treechildren::-moz-tree-cell-text(lc-339999) {
  color: #339999
}
treechildren::-moz-tree-row(lc-339999, selected) {
  background-color: #339999;
}

treechildren::-moz-tree-cell-text(lc-336666) {
  color: #336666
}
treechildren::-moz-tree-row(lc-336666, selected) {
  background-color: #336666;
}

treechildren::-moz-tree-cell-text(lc-003333) {
  color: #003333
}
treechildren::-moz-tree-row(lc-003333, selected) {
  background-color: #003333;
}

treechildren::-moz-tree-cell-text(lc-CCFFFF) {
  color: #CCFFFF
}
treechildren::-moz-tree-row(lc-CCFFFF, selected) {
  background-color: #CCFFFF;
}

treechildren::-moz-tree-cell-text(lc-66FFFF) {
  color: #66FFFF
}
treechildren::-moz-tree-row(lc-66FFFF, selected) {
  background-color: #66FFFF;
}

treechildren::-moz-tree-cell-text(lc-33CCFF) {
  color: #33CCFF
}
treechildren::-moz-tree-row(lc-33CCFF, selected) {
  background-color: #33CCFF;
}

treechildren::-moz-tree-cell-text(lc-3366FF) {
  color: #3366FF
}
treechildren::-moz-tree-row(lc-3366FF, selected) {
  background-color: #3366FF;
}

treechildren::-moz-tree-cell-text(lc-3333FF) {
  color: #3333FF
}
treechildren::-moz-tree-row(lc-3333FF, selected) {
  background-color: #3333FF;
}

treechildren::-moz-tree-cell-text(lc-000099) {
  color: #000099
}
treechildren::-moz-tree-row(lc-000099, selected) {
  background-color: #000099;
}

treechildren::-moz-tree-cell-text(lc-000066) {
  color: #000066
}
treechildren::-moz-tree-row(lc-000066, selected) {
  background-color: #000066;
}

treechildren::-moz-tree-cell-text(lc-CCCCFF) {
  color: #CCCCFF
}
treechildren::-moz-tree-row(lc-CCCCFF, selected) {
  background-color: #CCCCFF;
}

treechildren::-moz-tree-cell-text(lc-9999FF) {
  color: #9999FF
}
treechildren::-moz-tree-row(lc-9999FF, selected) {
  background-color: #9999FF;
}

treechildren::-moz-tree-cell-text(lc-6666CC) {
  color: #6666CC
}
treechildren::-moz-tree-row(lc-6666CC, selected) {
  background-color: #6666CC;
}

treechildren::-moz-tree-cell-text(lc-6633FF) {
  color: #6633FF
}
treechildren::-moz-tree-row(lc-6633FF, selected) {
  background-color: #6633FF;
}

treechildren::-moz-tree-cell-text(lc-6600CC) {
  color: #6600CC
}
treechildren::-moz-tree-row(lc-6600CC, selected) {
  background-color: #6600CC;
}

treechildren::-moz-tree-cell-text(lc-333399) {
  color: #333399
}
treechildren::-moz-tree-row(lc-333399, selected) {
  background-color: #333399;
}

treechildren::-moz-tree-cell-text(lc-330099) {
  color: #330099
}
treechildren::-moz-tree-row(lc-330099, selected) {
  background-color: #330099;
}

treechildren::-moz-tree-cell-text(lc-FFCCFF) {
  color: #FFCCFF
}
treechildren::-moz-tree-row(lc-FFCCFF, selected) {
  background-color: #FFCCFF;
}

treechildren::-moz-tree-cell-text(lc-FF99FF) {
  color: #FF99FF
}
treechildren::-moz-tree-row(lc-FF99FF, selected) {
  background-color: #FF99FF;
}

treechildren::-moz-tree-cell-text(lc-CC66CC) {
  color: #CC66CC
}
treechildren::-moz-tree-row(lc-CC66CC, selected) {
  background-color: #CC66CC;
}

treechildren::-moz-tree-cell-text(lc-CC33CC) {
  color: #CC33CC
}
treechildren::-moz-tree-row(lc-CC33CC, selected) {
  background-color: #CC33CC;
}

treechildren::-moz-tree-cell-text(lc-993399) {
  color: #993399
}
treechildren::-moz-tree-row(lc-993399, selected) {
  background-color: #993399;
}

treechildren::-moz-tree-cell-text(lc-663366) {
  color: #663366
}
treechildren::-moz-tree-row(lc-663366, selected) {
  background-color: #663366;
}

treechildren::-moz-tree-cell-text(lc-330033) {
  color: #330033
}
treechildren::-moz-tree-row(lc-330033, selected) {
  background-color: #330033;
}

treechildren::-moz-tree-cell-text(lc-white, selected) {
  color: #FFFFFF
}
treechildren::-moz-tree-cell-text(lc-black, selected) {
  color: #000000
}

#status-bar {
	font: message-box;
	margin-top: 8px;
}
