/* ***** 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 Calendar Management code.
 *
 * The Initial Developer of the Original Code is
 *   Philipp Kewisch <mozilla@kewis.ch>
 * Portions created by the Initial Developer are Copyright (C) 2007
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * 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 ***** */

calendar-list-tree > tree > treechildren::-moz-tree-image(checkbox-treecol) {
    list-style-image: url(chrome://calendar/skin/checkbox-images.png);
    -moz-image-region: rect(0 16px 16px 0);
}

calendar-list-tree > tree > treechildren::-moz-tree-image(checkbox-treecol, checked) {
    -moz-image-region: rect(0 32px 16px 16px);
}

calendar-list-tree > tree > treechildren::-moz-tree-image(checkbox-treecol, disabled) {
    -moz-image-region: rect(0 48px 16px 32px);
}

calendar-list-tree > tree > treechildren::-moz-tree-cell(color-treecol, color-default) {
    background-color: #a8c2e1;
}

calendar-list-tree > tree > treechildren::-moz-tree-cell(checkbox-treecol) {
    padding: 0;
}

calendar-list-tree > tree > treechildren::-moz-tree-cell(color-treecol) {
    margin: 1px;
}

calendar-list-tree > tree > treechildren::-moz-tree-cell(calendarname-treecol) {
    -moz-margin-start: 1px;
}

calendar-list-tree > tree > treechildren::-moz-tree-image(status-treecol, readonly) {
    list-style-image: url(chrome://calendar/skin/calendar-status.png);
    -moz-image-region: rect(0px, 14px, 14px, 0px);
}

calendar-list-tree > tree > treechildren::-moz-tree-image(status-treecol, readfailed) {
    list-style-image: url(chrome://calendar/skin/calendar-status.png);
    -moz-image-region: rect(0px, 28px, 14px, 14px);
}

calendar-list-tree > tree {
  border: none;
  padding: 0;
  margin: 4px 0;
  -moz-border-top-colors: none;
  -moz-border-right-colors: none;
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-appearance: none;
}

calendar-list-tree > tree > treecols > treecol[hideheader="true"],
calendar-list-tree > tree > treecols > treecol[hideheader="true"] {
  font-size: 0px;
  border: none;
  padding: 0;
  max-height: 0px;
  height: 0px;
}

calendar-list-tree treechildren::-moz-tree-row(selected) {
  background: url(chrome://calendar/skin/sidebar-item.png) 0 0 repeat-x #90A0C0;
}

calendar-list-tree treechildren::-moz-tree-row(selected, focus) {
  background-position: 0 -18px;
}

calendar-list-tree:-moz-system-metric(mac-graphite-theme) treechildren::-moz-tree-row(selected) {
  background-position: 0 -36px;
}

calendar-list-tree:-moz-system-metric(mac-graphite-theme) treechildren::-moz-tree-row(selected, focus) {
  background-position: 0 -54px;
}

calendar-list-tree treechildren:-moz-window-inactive::-moz-tree-row(selected) {
  background-position: 0 -72px;
}

calendar-list-tree treechildren::-moz-tree-cell-text(selected, focus),
calendar-list-tree treechildren::-moz-tree-cell-text(selected) {
  color: HighlightText;
}
