/*
 * 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):
 *  Stephen Lamm <slamm@netscape.com>
 *  Joe Hewitt <hewitt@netscape.com>
 *
 */

/* ===== sidebar.css ====================================================
  == Styles used by the Sidebar panel and Sidebar tabs.
  ======================================================================= */

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

#sidebar-box {
  margin-top: 0px;
  border-left: 1px solid #8998AA;
  background-color: #C7D0D9;
}

#sidebar-title-box {
  border-bottom: none;
}

/* ::::: sidebar header ::::: */

.sidebarheader-main {
  -moz-binding: url("chrome://communicator/skin/sidebar/sidebarBindings.xml#sidebarheader") !important;
  border-top: 1px solid #DEE7EE;
  border-left: 1px solid #DEE7EE;
  background-color: #B1BDC9;
  color: #000000;
  font-weight: bold;
}

.sidebarheader-internal-box {
  padding: 0px 0px 2px 16px;
}

/* ..... picker button ..... */

#sidebar-panel-picker {
  margin-right: 1px;
  margin-top: 1px;
  border: 1px solid transparent;
  padding: 2px;
  color: #000000;
  -moz-border-radius: 0px;
}

#sidebar-panel-picker:hover {
  border: 1px outset #B1BDC9;
}

#sidebar-panel-picker[open="true"] {
  border-style: inset;
}

#sidebar-panel-picker > .menubutton-internal-box > .menubutton-single-icon {
  list-style-image: url("chrome://communicator/skin/sidebar/sbpicker-arrow.gif");
  padding-left: 2px;
}

/* ::::: loading info ::::: */

.text-panel-loading {
  margin: 5px 0px;
}

.image-panel-loading {
  margin: 5px;
  list-style-image: url("chrome://communicator/skin/icons/loading.gif");
}

box[loadstate="stopped"] > box > box > .image-panel-loading {
  visibility: hidden;
}

/* ::::: sidebar panel ::::: */

.iframe-panel {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#iframe-miniscroll") !important;
  border-bottom: 1px solid #8998AA;
}

/* ::::: sidebar tabs ::::: */

/* ..... normal tabs ..... */
 
.box-texttab {
  -moz-binding: url("chrome://communicator/skin/sidebar/sidebarBindings.xml#sidebar-tab");
  min-height: 22px;
  color: #000000;
}

.sidebar-tab-text-box {
  padding: 5px 0px 0px 0px;
}
  
.sidebar-tab-mid-1 {
  min-width: 90px;
}
   
.sidebar-tab-left {
  width: 7px;
}

.sidebar-tab-left-top {
  background: url("chrome://communicator/skin/sidebar/sbtab-lft-top.gif") no-repeat;
  height: 16px;
}

.sidebar-tab-left-mid {
  background: url("chrome://communicator/skin/sidebar/sbtab-lft-mid.gif") repeat-y;
}

.sidebar-tab-left-btm {
  background: url("chrome://communicator/skin/sidebar/sbtab-lft-btm.gif") no-repeat;
  height: 5px;
}

.sidebar-tab-mid-top {
  background: url("chrome://communicator/skin/sidebar/sbtab-mid-top.gif") repeat-x top;
  background-color: #B1BDC9;
}

.sidebar-tab-mid-btm {
  background: url("chrome://communicator/skin/sidebar/sbtab-mid-btm.gif") repeat-x;
  height: 6px;
}

.sidebar-tab-right {
  width: 34px;
}

.sidebar-tab-right-top {
  background: url("chrome://communicator/skin/sidebar/sbtab-rit-top.gif") no-repeat;
  height: 16px;
}

.sidebar-tab-right-mid {
  background: url("chrome://communicator/skin/sidebar/sbtab-rit-mid.gif") repeat-y;
}

.sidebar-tab-right-btm {
  background: url("chrome://communicator/skin/sidebar/sbtab-rit-btm.gif") no-repeat;
  height: 5px;
}

.sidebar-tab-rightcap {
  background: url("chrome://communicator/skin/sidebar/sbtab-ritcap.gif") #B1BDC9 repeat-x top;
}

/* ..... hover state ..... */

.box-texttab:hover > .sidebar-tab-left > .sidebar-tab-left-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-top-hov.gif");
}

.box-texttab:hover > .sidebar-tab-left > .sidebar-tab-left-mid {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-mid-hov.gif");
}

.box-texttab:hover > .sidebar-tab-left > .sidebar-tab-left-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-btm-hov.gif");
}

.box-texttab:hover > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-mid-top-hov.gif");
}

.box-texttab:hover > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-mid-btm-hov.gif");
}

.box-texttab:hover > .sidebar-tab-right > .sidebar-tab-right-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-top-hov.gif");
}

.box-texttab:hover > .sidebar-tab-right > .sidebar-tab-right-mid {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-mid-hov.gif");
}

.box-texttab:hover > .sidebar-tab-right > .sidebar-tab-right-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-btm-hov.gif");
}

.box-texttab:hover > .sidebar-tab-rightcap {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-ritcap-hov.gif");
}

/* ..... active state ..... */

.box-texttab:hover:active {
  color: #FFFFFF;
}

.box-texttab:hover:active > .sidebar-tab-left > .sidebar-tab-left-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-top-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-left > .sidebar-tab-left-mid {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-mid-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-left > .sidebar-tab-left-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-btm-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-mid-top-act.gif");
  background-color: #99A9B7;
}

.box-texttab:hover:active > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-mid-btm-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-right > .sidebar-tab-right-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-top-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-right > .sidebar-tab-right-mid {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-mid-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-right > .sidebar-tab-right-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-btm-act.gif");
}

.box-texttab:hover:active > .sidebar-tab-rightcap {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-ritcap-act.gif");
}

/* ..... selected tab ..... */

.box-texttab[selected="true"],
.box-texttab[selected="true"]:hover:active {
  border-bottom: 1px solid #8998AA;
  color: #000000;
}

.box-texttab[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-top,
.box-texttab:hover[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-top,
.box-texttab:hover:active[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-top-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-mid,
.box-texttab:hover[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-mid,
.box-texttab:hover:active[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-mid {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-mid-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-btm,
.box-texttab:hover[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-btm,
.box-texttab:hover:active[selected="true"] > .sidebar-tab-left > .sidebar-tab-left-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-lft-btm-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-top,
.box-texttab:hover[selected="true"] > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-top, .box-texttab:hover:active[selected="true"] > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-mid-top-sel.gif");
  background-color: #C6D3DC;
}

.box-texttab[selected="true"] > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-btm,
.box-texttab:hover[selected="true"] > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-btm, .box-texttab:hover:active[selected="true"] > .sidebar-tab-mid-1 > .sidebar-tab-mid-2 > .sidebar-tab-mid-btm {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-mid-btm-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-right > .sidebar-tab-right-top,
.box-texttab:hover[selected="true"] > .sidebar-tab-right > .sidebar-tab-right-top,
.box-texttab:hover:active[selected="true"] > .sidebar-tab-right > .sidebar-tab-right-top {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-top-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-right > .sidebar-tab-right-mid,
.box-texttab:hover[selected="true"] > .sidebar-tab-right > .sidebar-tab-right-mid,
.box-texttab:hover:active[selected="true"] > .sidebar-tab-right > .sidebar-tab-right-mid {
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-mid-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-right 
    > .sidebar-tab-right-btm,
.box-texttab:hover[selected="true"] > .sidebar-tab-right 
   > .sidebar-tab-right-btm,
.box-texttab:hover:active[selected="true"]  
   > .sidebar-tab-right > .sidebar-tab-right-btm 
{
  background-image: url("chrome://communicator/skin/sidebar/sbtab-rit-btm-sel.gif");
}

.box-texttab[selected="true"] > .sidebar-tab-rightcap,
.box-texttab[selected="true"]:hover > .sidebar-tab-rightcap,
.box-texttab[selected="true"]:hover:active > .sidebar-tab-rightcap 
{
  background-image: url("chrome://communicator/skin/sidebar/sbtab-ritcap-sel.gif");
  background-color: #C6D3DC;
}

.box-texttab[last-panel="true"] {
  border-bottom: 1px solid #8998AA;
}

.box-texttab[first-panel-after-selected="true"] {
  border-top: 1px solid #D6E0EA;
}