/* ***** 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 "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/MPL/
 *
 * 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.org code.
 *
 * The Initial Developer of the Original Code is Daniel Brooks.
 * Portions created by the Initial Developer are Copyright (C) 2001-2007
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Kevin Gerich  <webmail@kmgerich.com>
 *   Daniel Brooks <db48x@yahoo.com>
 *   Florian QUEZE <f.qu@queze.net>
 *   Markus Stange <mstange@themasta.com>
 *
 * 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 ***** */

@import "chrome://global/skin/";

#main-window {
  border: none !important;
  -moz-appearance: none !important;
  width: 500px !important;
  height: 530px !important;
}

windowdragbox {
  height: 36px;
  -moz-appearance: -moz-mac-unified-toolbar;
  -moz-box-pack: center;
}

#tabbox {
  margin: 0;
  -moz-appearance: none;
  padding: 0;
}

#tabs {
  padding: 4px 0 8px;
  margin: 0;
  -moz-appearance: none;
}

.tab-middle {
  padding: 0;
}

.tab-icon {
  display: none;
}

#mainDeck {
  -moz-appearance: none;
}

tab {
  -moz-appearance: none;
  -moz-box-orient: vertical;
  font: menu;
  text-shadow: rgba(255, 255, 255, 0.4) 0 1px;
  margin: 0;
  padding: 3px 0 0;
  height: 24px;
  background-color: transparent;
  border: solid transparent;
  border-width: 0 4px 0 5px;
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle.png") 0 4 0 5 repeat stretch;
}

tab:active:hover {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-down.png") 0 4 0 5 repeat stretch;
}

tab[selected=true] {
  color: #FFF !important;
  text-shadow: rgba(0, 0, 0, 0.4) 0 1px;
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-selected.png") 0 4 0 5 repeat stretch;
}

tab[selected=true]:active:hover {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-selected-down.png") 0 4 0 5 repeat stretch;
}

:root:not([active]) tab {
  color: #7C7C7C !important; /* remove this when we support click-through */
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-inactive.png") 0 4 0 5 repeat stretch;
}

:root:not([active]) tab[selected=true] {
  color: #C5C5C5 !important; /* remove this when we support click-through */
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-middle-selected-inactive.png") 0 4 0 5 repeat stretch;
}

#tabs > :first-child,
#tabs[chromedir=rtl] > :last-child {
  border-width: 0 4px 0 6px;
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left.png") 0 4 0 6 repeat stretch;
}

#tabs > :first-child:active:hover,
#tabs[chromedir=rtl] > :last-child:active:hover {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-down.png") 0 4 0 6 repeat stretch;
}

#tabs > tab:first-child[selected=true],
#tabs[chromedir=rtl] > tab:last-child[selected=true] {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-selected.png") 0 4 0 6 repeat stretch;
}

#tabs > tab:first-child[selected=true]:active:hover,
#tabs[chromedir=rtl] > tab:last-child[selected=true]:active:hover {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-selected-down.png") 0 4 0 6 repeat stretch;
}

:root:not([active]) #tabs > :first-child,
:root:not([active]) #tabs[chromedir=rtl] > :last-child {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-inactive.png") 0 4 0 6 repeat stretch;
}

:root:not([active]) #tabs > tab:first-child[selected=true],
:root:not([active]) #tabs[chromedir=rtl] > tab:last-child[selected=true] {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-left-selected-inactive.png") 0 4 0 6 repeat stretch;
}

#tabs > :last-child,
#tabs[chromedir=rtl] > :first-child {
  border-width: 0 6px 0 5px;
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right.png") 0 6 0 5 repeat stretch;
}

#tabs > :last-child:active:hover,
#tabs[chromedir=rtl] > :first-child:active:hover {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-down.png") 0 6 0 5 repeat stretch;
}

#tabs > tab:last-child[selected=true],
#tabs[chromedir=rtl] > tab:first-child[selected=true] {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-selected.png") 0 6 0 5 repeat stretch;
}

#tabs > tab:last-child[selected=true]:active:hover,
#tabs[chromedir=rtl] > tab:first-child[selected=true]:active:hover {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-selected-down.png") 0 6 0 5 repeat stretch;
}

:root:not([active]) #tabs > :last-child,
:root:not([active]) #tabs[chromedir=rtl] > :first-child {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-inactive.png") 0 6 0 5 repeat stretch;
}

:root:not([active]) #tabs > tab:last-child[selected=true],
:root:not([active]) #tabs[chromedir=rtl] > tab:first-child[selected=true] {
  -moz-border-image: url("chrome://global/skin/toolbar/viewbutton-right-selected-inactive.png") 0 6 0 5 repeat stretch;
}

/* Misc */
tree {
  margin: .5em;
}

.gridSeparator {
  width: .5em;
}

textbox {
  background: transparent !important;
  border: none;
  padding: 0px;
  margin-top: 1px;
  -moz-appearance: none;
  -moz-user-focus: none;
}

textbox.header {
  -moz-margin-start: 0;
}

.iframe {
  margin: .5em;
  background: white;
  overflow: auto;
}

.fixedsize {
  height: 8.5em;
}

textbox[disabled] {
  font-style: italic;
}

/* General Tab */
#metatree {
  margin: 0;
}

#metaTags > .groupbox-body {
  padding: 0;
}

#general-security-identity {
  white-space: pre-wrap;
  line-height: 2em;
}

/* Media Tab */
#imagetree {
  min-height: 10em;
}

#thepreviewimage {
  margin: 1em;
}

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

/* Feeds Tab */
#feedListbox > richlistitem {
  padding-top: 6px;
  padding-bottom: 6px;
  -moz-padding-start: 7px;
  -moz-padding-end: 7px;
  min-height: 25px;
  border-bottom: 1px dotted #C0C0C0;
}

.feedTitle { 
  font-weight: bold;
}

/* Permissions Tab */
#permList {
  margin-top: .5em;
  overflow: auto;
}

#permList > richlistitem {
  padding-top: 6px;
  padding-bottom: 6px;
  -moz-padding-start: 7px;
  -moz-padding-end: 7px;
  min-height: 25px;
  border-bottom: 1px dotted #C0C0C0;
}

#permList > richlistitem > label {
  font-weight: bold;
}

/* Security Tab */
#security-technical-longform1,
#security-technical-longform2 {
  -moz-margin-start: 6px;
}

.fieldValue {
  font-weight: bold;
}
