/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (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.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.tree-theme-windows div.tree-subtree {
  margin: 0px 0px 0px 18px;
  padding: 0px;
}

html[dir="rtl"] .tree-theme-windows div.tree-subtree {
  margin: 0px 18px 0px 0px;
  padding: 0px;
}

.tree-theme-windows div.tree-branch {
  margin: 0px;
  padding: 0px;
}

.tree-theme-windows div.tree-branch-mid {
  background-image: url(tree.gif);
  background-position: -54px center;
  background-repeat: repeat-y;
}

html[dir="rtl"] .tree-theme-windows div.tree-branch-mid {
  background-image: url(tree-rtl.gif);
  background-position-x: calc(100% + 54px);
}

.tree-theme-windows div.tree-branch-last {
}

/* node */

.tree-theme-windows .tree-junction {
  display: block;
  float: left;
  width: 18px;
  background-image: url(tree.gif);
  background-position: -36px center;
  background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-junction {
  float: right;
  background-image: url(tree-rtl.gif);
  background-position-x: -18px;
}

.tree-theme-windows .tree-junction-expanded {
  display: block;
  float: left;
  width: 18px;
  background-image: url(tree.gif);
  background-position: -18px center;
  background-repeat: no-repeat;
  text-decoration: none;
}

html[dir="rtl"] .tree-theme-windows .tree-junction-expanded {
  float: right;
  background-image: url(tree-rtl.gif);
  background-position-x: -36px;
}

.tree-theme-windows .tree-junction-collapsed {
  display: block;
  float: left;
  width: 18px;
  background-image: url(tree.gif);
  background-position: 0px center;
  background-repeat: no-repeat;
  text-decoration: none;
}

html[dir="rtl"] .tree-theme-windows .tree-junction-collapsed {
  float: right;
  background-image: url(tree-rtl.gif);
  background-position-x: -54px;
}

.tree-theme-windows span.tree-content {
  display: block;
  margin-left: 18px;
}

html[dir="rtl"] .tree-theme-windows span.tree-content {
  margin-right: 18px;
  margin-left: initial;
}

/* tabletree */

.tree-theme-windows table {
  border-spacing: 0px;
  border-collapse: collapse;
}

.tree-theme-windows tr.selected {
  background-color: #0000ee;
  color: #FFFFFF;
}

.tree-theme-windows td {
  /* allow tree divs to fill complete td (regretfully height 100% on divs does not work) */
  margin: 0px;
  padding: 0px;
}

/* content */

.tree-theme-windows span.tree-content a {
  color: black;
  text-decoration: none;
}

.tree-theme-windows span.tree-content a:hover {
  text-decoration: underline;
}

.tree-theme-windows span.tree-content .selected span.tree-label {
  background-color: #0000ee;
  color: #FFFFFF;
}

.tree-theme-windows .tree-folder-closed {
  padding-left: 18px;
  background-image: url(folder-closed.gif);
  background-position: 0px 50%;
  background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-folder-closed {
  padding-right: 18px;
  padding-left: initial;
  background-image: url(folder-rtl-closed.gif);
  background-position-x: right;
}

.tree-theme-windows .tree-folder-open {
  padding-left: 18px;
  background-image: url(folder-open.gif);
  background-position: 0px 50%;
  background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-folder-open {
  padding-right: 18px;
  padding-left: initial;
  background-image: url(folder-rtl-open.gif);
  background-position-x: right;
}

.tree-theme-windows .tree-folder-other {
  padding-left: 18px;
  background-image: url(folder-other.gif);
  background-position: 0px 50%;
  background-repeat: no-repeat;
}

html[dir="rtl"] .tree-theme-windows .tree-folder-other {
  padding-right: 18px;
  padding-left: initial;
  background-image: url(folder-rtl-other.gif);
  background-position-x: right;
}
