/* (c) 2016-2017 Business Collaborator Ltd */

div.taxonomy-tree.taxonomy-tree-sm ul.fancytree-container {
    max-height: 100px;
}
div.taxonomy-tree ul.fancytree-container,
div.taxonomy-tree.taxonomy-tree-md ul.fancytree-container {
    max-height: 200px;
}
div.taxonomy-tree.taxonomy-tree-lg ul.fancytree-container {
    max-height: 400px;
}
div.taxonomy-tree.taxonomy-tree-xlg ul.fancytree-container {
    max-height: none;
}

/* xs - for phones */
@media (max-width: 767px) {
    div.taxonomy-tree ul.fancytree-container,
    div.taxonomy-tree.taxonomy-tree-sm ul.fancytree-container,
    div.taxonomy-tree.taxonomy-tree-md ul.fancytree-container,
    div.taxonomy-tree.taxonomy-tree-lg ul.fancytree-container {
        max-height: 100px;
    }
}

div.taxonomy-tree, div.html5-taxonomy-tree {
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    padding: 6px 12px;
}

ul.fancytree-container {
    border: 0;
}

input.taxonomy-filter {
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    padding: 6px 12px;
}

/* xs - for phones */
@media (max-width: 767px) {
    input.taxonomy-filter {
        width: 175px;
    }
}

/* Formatting for subtile and external link additions. */

.fancytree-container div.fancytree-custom-content {
    display: inline-block;
    border: 1px solid transparent;
    float: right;
}

.fancytree-container div.fancytree-custom-content .fancytree-custom {
    display: inline-block;
    margin-left: 15px;
}

ul.fancytree-plain.fancytree-container li  {
    white-space: nowrap;
    clear: both;
}

.fancytree-plain.fancytree-container span.fancytree-node:hover {
    background-color: #f9f9f9;
}

/* Formatting for table views */
.taxonomy-tree-container table {
    width: 100%;
}

.taxonomy-tree-container th {
    font-weight: 900;
}

.taxonomy-tree-container .fancytree-folder {
    font-weight: bold;
}

.taxonomy-tree-container td.numeric,
.taxonomy-tree-container th.numeric
 {
    text-align: right;
}

.taxonomy-tree-container th.top {
    vertical-align: top;
}

/* taxonomy picker modal */

div.taxonomy-modal-selected-nodes  {
    margin-top: 10px;
}
div.taxonomy-modal-selected-nodes ul {
    list-style: none;
    margin-bottom: 0px;
}

div.taxonomy-modal-children {
    padding-top: 4px;
    display: none;
}

div.taxonomy-modal-children label {
    font-weight: normal;
}

div.filter-match-count {
    padding: 4px 0px;
}


/* ui-fancytree bootstrap mods - move 'fancytree-active' styles to 'fancytree-selected' */

div.html5-taxonomy-tree .fancytree-plain.fancytree-container span.fancytree-node.fancytree-active span.fancytree-title {
  background-color: transparent;
  border-color: transparent;
  color: inherit;
}
div.html5-taxonomy-tree .fancytree-plain.fancytree-container span.fancytree-node.fancytree-active:hover span.fancytree-title {
  background-color: transparent;
  border-color: transparent;
}

div.html5-taxonomy-tree .fancytree-plain.fancytree-container span.fancytree-node.fancytree-selected span.fancytree-title {
  background-color: #5094ce;
  color: #fff;
}
div.html5-taxonomy-tree .fancytree-plain.fancytree-container span.fancytree-node.fancytree-selected:hover span.fancytree-title {
  background-color: #3c87c8;
}
div.html5-taxonomy-tree .fancytree-plain.fancytree-container.fancytree-ext-wide span.fancytree-node.fancytree-selected {
  color: #fff;
}
div.html5-taxonomy-tree .fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected span.fancytree-title {
  background-color: #337ab7;
  border-color: #337ab7;
}
div.html5-taxonomy-tree .fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-node.fancytree-selected:hover span.fancytree-title {
  background-color: #2e6da4;
}
