/*
 * 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-2001 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 */

/* ===== addressbook.css ================================================
  == Styles for the main Address Book window.
  ======================================================================= */

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

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

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

#abToolbar > .toolbar-holder > .toolbar-primary-icon {
  background-image: url("chrome://messenger/skin/addressbook/icons/mast-ab.gif");
}

/* :::::  addressbook image precaching ::::: */

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

/* ::::: primary toolbar buttons ::::: */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#button-newmessage:hover:active {
  list-style-image: url("chrome://messenger/skin/btn1/newmsg-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-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");
}

/* ::::: AB Directory tree ::::: */

tree.abDirectory treeitem > treerow > treecell > .tree-cell-primary-icon {
  list-style-image: url("chrome://messenger/skin/addressbook/icons/myaddrbk.gif");
}

tree.abDirectory treeitem > treerow > treecell[IsMailList="true"] > .tree-cell-primary-icon {
  list-style-image: url("chrome://messenger/skin/addressbook/icons/list.gif");
}

tree.abResults treeitem > treerow > treecell.cardicon {
  list-style-image: url("chrome://messenger/skin/addressbook/icons/person.gif");
}

/* ::::: Card View pane ::::: */

#CardViewOuterBox {
  border-left: 1px solid #414B75;
}

#CardViewBox {
  -moz-user-focus: ignore;
  border-left: 1px solid #000000;
  min-width: 150px;
  background-color: #EFEFEF;
  overflow: auto;
}

#CardViewInnerBox {
  margin-top: 2px;
  margin-bottom: 2px;
  padding-right: 8px;
  padding-left: 8px;
}

#CardTitle {
  margin: 0px;
  border-bottom: 2px solid black;
  min-width: 120px;
  font-size: 150%;
  font-weight: bold;
}
 
.cardViewGroup {
  margin-top: 8px;
  padding-bottom: 5px;
  min-width: 50px;
}

.CardViewHeading {
  margin: 0px 0px 1px 0px;
  padding: 1px 1px 1px 5px;
  min-width: 30px;
  background-color: #8E9EAA;
  color: #ffffff;
  font-weight: bold;
}

.CardViewText {
  margin: 0px;
  padding-right: 2px;
  padding-left: 20px;
  min-width: 30px;
}

html|a {
  border: none !important;
  padding-right: 2px;
  padding-left: 0px;
}

html|p {
  border: none !important;
}

/* ::::: border adjustments ::::: */

tree { 
  border-left: 1px solid transparent;
}

#results-splitter > box {
  border-left: none;
}

#results-splitter[state="collapsed"] {
  border-bottom: none;
}

/* ..... status bar border ..... */

statusbarpanel,
#component-bar,
.progressmeter-statusbar {
  border-top: 1px solid #E0ECF6 !important;
}

/* ::::: Card Edit dialog ::::: */

.CardEditWidth {
  width: 25em;
}

.CardEditLabel {
  padding: 0px;
  margin-top: 3px;
}

.alignBoxWithFieldset {
  margin-left: 6px;
  margin-right: 5px;
}

.stateZipSpacer {
  width: 3em;
}

/* ::::: Select Addresses dialog ::::: */

#3PaneBox {
  border-top: 1px solid #000000; 
  border-bottom: 1px solid #000000;
  border-left: 1px solid #000000;
}

#dirTreeBox {
  width: 180px;
  height: 100%; 
  background-color: #FFFFFF;
}

#dirTree {
  height: 100px;
  min-width: 10px;
}

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

#results-bucket-tree-box {
  border-right: 1px solid #000000;
}

#resultsTreeBox {
  background-color: #FFFFFF; 
  border-bottom: 1px solid #000000;
}

#resultsTree, #dirTree
#resultsTree > .tree-container-treerows,
#dirTree > .tree-container-treerows {
  border: none;
}

#resultsTree {
  height: 100px; 
  min-width: 10px;
  border-left: 1px solid #414B75;
}

#resultsTree > treerows {
  border-left: 1px solid #000000;
}

#bucket-splitter > box {
  border-left: none;
}

#addToBucketButtonBox {
  border-left: 1px solid #000000;
  min-width: 10px;
  padding: 0.3em; 
}

#bucketBox {
  height: 170px;
}

#addressBucket {
  border-left: 1px solid #414B75;
  min-width: 10px;
  height: 100px; 
}

#addressBucket > treerows {
  border-left: 1px solid #000000;
}

#rightColumnButtonBox {
  padding: .5em; 
  padding-right: 0px;
}

.third-column-spring {
  height: 10px;
}

.middle-button-spring {
  width: 10px;
}

[hide] {
  visibility: collapse;
}

