/*
Plugin Name: WP Kneaver
URI omitted because Chrome tries to fetch it :)
Description: WP Kneaver introduces short codes to reuse Kneaver's contents inside Wordpress posts or pages.
Version: 1.0.62
Author: Bruno Winck at Kneaver Corp
Author URI: https://kneaver.com/BrunoWinck
License: GPLv2 or later
*/
/*  Copyright 2015  Kneaver Corp  (email : support@kneaver.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as 
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
/* this was more pink, brick */
/* background-color: #ffcc99;*/
/* background-color: orange;*/
/* orange is too dark for a background */
/* ToDo generate a palette.scss for default palette */
/* Palette generated by Material Palette - materialpalette.com/orange/pink */
.DebugHidden {
  /* This is for Form elements normally of type=hidden */
  /*
    visibility: hidden;
    display: none;
    */
  color: red;
  font-size: 6pt; }

div.KNVRefreshingTime {
  /* Upper Right Position */
  position: absolute;
  top: 10px;
  right: 20px; }

p.LastBloc {
  border-top: 1;
  display: none;
  width: 100px; }

.KNVExtURL {
  font-size: 76%; }

.KNVPrintLabel {
  color: Aqua;
  font-size: 76%; }

img.KNVImage {
  /* used in KNVItemInline.foaf:Image */
  /*
    margin: 20px;
    max-width: 450px;
    float: right;
    */ }

.KNVInplaceHelp {
  background-color: yellow;
  display: none; }

.KNVFilet {
  border: solid thin blue;
  padding: 10px;
  margin: 10px 0px 10px 0px; }

.KNVTabZone {
  display: block;
  border: solid 2px blue;
  padding: 10px; }
  .KNVTabZone .nav {
    margin-top: -10px;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 10px; }

.KNVTabZone + .KNVTabZone {
  /* next sibling in tree 
  , rule applies to second one http://meyerweb.com/eric/articles/webrev/200007a.html */
  margin-top: 10px; }

.KNVDivision {
  border: solid 1px gray;
  margin: 8px;
  padding: 8px; }

.KNVActionBarLabel {
  font-style: italic;
  font-weight: bold; }

.KNVImageLabel {
  border: none;
  position: relative;
  bottom: -5px;
  height: 32px;
  margin-right: 5px; }

.KNVImageLabel16 {
  border: none;
  bottom: -4px;
  height: 16px;
  width: 16px;
  margin-right: 5px; }

img.KNVButtonLinks {
  border-width: 0px; }

.KNVButton {
  text-decoration: none;
  margin-left: 3px;
  vertical-align: middle;
  color: blue; }
  .KNVButton i {
    padding: 2px; }

.KNVToolbar, ol.KNVQuickToolbar {
  font-size: 16px;
  color: blue; }
  .KNVToolbar a + a, ol.KNVQuickToolbar a + a {
    margin-left: 3px; }

div.KNVScreenBlock {
  /* 50 is too dark */
  /*
    background-color: black; 
    filter: progid:DXImageTransform.Microsoft.Alpha(opacity=30);
    width: 3000px; 
    height: 3000px;
    position: absolute;
    top: -1000px;
    left: -1000px;
    */
  z-index: 3; }

span.EditableZoneQuick {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 5; }

textarea.EditableZoneQuick {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 5; }

div#RSTreeViewType {
  margin: 0px;
  padding: 0px;
  border-width: 1px;
  border-collapse: collapse;
  border-spacing: 0;
  border-color: black; }

/* RSTreeview is several tables imbricated one in another */
table.RSTreeViewType {
  margin: 0px;
  padding: 0px;
  border-width: 0px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 8pt; }
  table.RSTreeViewType tr {
    height: 16px;
    margin: 0px;
    border-width: 0px;
    padding: 0px; }
    table.RSTreeViewType tr td {
      vertical-align: top;
      margin: 0px;
      margin-left: 3px;
      border-width: 0px;
      padding: 0px; }
      table.RSTreeViewType tr td img {
        vertical-align: top;
        width: 16px;
        height: 16px; }

td.KNVEntranceFrame {
  border: solid 2px grey;
  border-collapse: collapse;
  padding: 10px; }

/* Starting here is the FrameMini tab on KNVDashboard */
#PP {
  height: 100%;
  min-height: 500px; }

#PPMenu {
  /* is a ul, is actually #PP ul, no need of PPMenu but accessed by getElementById */ }
  #PPMenu li {
    font-size: smaller; }

/* is actually #PP iframe, no need of FrameMini1 but accessed by getElementById */
iframe.FrameMinis {
  width: 100%;
  height: 100%;
  min-height: 500px; }

div.FrameMinis {
  width: 100%;
  height: 500px;
  min-height: 500px;
  overflow: scroll; }

/* Ending here is the FrameMini tab on KNVDashboard */
.KNVSearchMini {
  /* display in tabs */
  margin: 0px;
  font-size: 11px;
  /* This was for Search in FrameMini */ }
  .KNVSearchMini table.KNVSearch {
    width: 100%; }
  .KNVSearchMini .KNVSelectCheckbox {
    width: 25px;
    max-width: 25px; }

table.KNVReview table.KNVSearch > thead > tr,
table.KNVReview table.KNVSearch > tfoot > tr,
table.KNVAuditTable > thead > tr,
table.KNVAuditTable > tfoot > tr {
  background-color: silver; }

table.KNVSearch > tbody > tr + tr {
  border-top: dotted 1px silver; }

.KNVAlignedRight {
  position: absolute;
  right: 40px;
  top: 15px; }

/* for template page themselves */
/* for widgets in dashboard */
.KNVFrontAppMenu {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  /* better use a real separator like a hr border-bottom: solid 1px grey;*/ }

.KNVPageHeader {
  margin: 3px;
  padding: 3px; }

/* for KNVParagraph.htm */
.KNVInclude {
  display: block;
  background-color: #eee;
  border: 1pt solid gray; }
  .KNVInclude .KNVIncludeName {
    background-color: #ddf; }

.KNVRemark {
  color: teal;
  font-style: italic; }

img.KNVMath {
  /* this if for the img display of formulas using the <math></math> wiki tag and the KNVMath template*/
  vertical-align: middle; }

table.KNVFigureTable {
  border: outset 1px black;
  border-spacing: 15px;
  /* replaces cellspacing, bad support better place it in table also */
  width: 15%; }
  table.KNVFigureTable td.KNVFigureCell {
    height: 40px;
    text-align: center;
    border: inset 2px black;
    padding: 0px;
    /* padding on the td is equivalent to cellpadding on the table*/ }

#MainBody div:first-child {
  display: block; }
  #MainBody div:first-child .KNVBody {
    border-right: solid 2px #ddd; }
  #MainBody div:first-child.hover .KNVBody {
    border-color: black; }

ol.KNVQuickToolbar {
  list-style-type: none;
  /* 5 is visible above div#Name + ScreenBlock */
  z-index: 5;
  /* absolute is relative to first relative container BodyDiv */
  position: absolute;
  /* this will be behind editor right:35px;*/
  /* was 54 but there was no space between Edit icon and the text */
  margin-left: -60px;
  top: 0em; }
  ol.KNVQuickToolbar li {
    list-style-type: none; }
    ol.KNVQuickToolbar li:hover {
      background-color: #f0f0f0; }
    ol.KNVQuickToolbar li a {
      display: block;
      filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
      /*    visibility: hidden; */ }
  ol.KNVQuickToolbar:hover li a {
    /*    visibility: visible */
    filter: none; }

.hover ol.KNVQuickToolbar li {
  /* class for IE7 */
  background-color: #f0f0f0; }
  .hover ol.KNVQuickToolbar li a {
    visibility: visible; }

.KNVWithHover {
  /*  */ }

table.KNVAuditTable {
  width: 95%;
  border: solid 1px black;
  margin: 5px; }
  table.KNVAuditTable tr {
    border: solid 1px black;
    margin: 5px; }

textarea.KNVRawInput {
  width: 100%;
  height: 120px;
  border: 3px solid #cccccc;
  padding: 5px;
  background-image: url("../KNVImages/KNVRawInputBg.gif");
  background-position: bottom right;
  background-repeat: no-repeat; }

.errors {
  color: red; }

.LargeWysiwygZone {
  margin-right: 30px;
  margin-left: 30px; }

.KNVQuickSearch {
  width: 100%; }

#QuickSearchQuery {
  max-width: 110px; }

#QuickSearchButton {
  font-size: small; }

/*
The dropdown-submenu has been removed in Bootstrap 3 RC. In the words of Bootstrap author Mark Otto..

"Submenus just don't have much of a place on the web right now, especially the mobile web. They will be removed with 3.0" - https://github.com/twbs/bootstrap/pull/6342

http://stackoverflow.com/questions/18023493/bootstrap-3-dropdown-sub-menu-missing
solution is good but will not work on mobile devices as the hover state won't work.

for mobile sol1  comment in CSS

//.dropdown-submenu:hover>.dropdown-menu{display:block;}

and add

    $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
        // Avoid following the href location when clicking
        event.preventDefault(); 
        // Avoid having the menu to close when clicking
        event.stopPropagation(); 
        // If a menu is already open we close it
        $('ul.dropdown-menu [data-toggle=dropdown]').parent().removeClass('open');
        // opening the one you clicked on
        $(this).parent().addClass('open');
    });

 
*/
.dropdown-submenu1 {
  position: relative; }
  .dropdown-submenu1 > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px 6px;
    border-radius: 0 6px 6px 6px; }
  .dropdown-submenu1 :hover > .dropdown-menu {
    display: block; }
  .dropdown-submenu1 :hover > a:after {
    border-left-color: #ffffff; }
  .dropdown-submenu1 > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px; }
  .dropdown-submenu1 .pull-left {
    float: none; }
    .dropdown-submenu1 .pull-left > .dropdown-menu {
      left: -100%;
      margin-left: 10px;
      -webkit-border-radius: 6px 0 6px 6px;
      -moz-border-radius: 6px 0 6px 6px;
      border-radius: 6px 0 6px 6px; }

.dropdown-submenu2 {
  position: relative; }
  .dropdown-submenu2 > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px 6px;
    border-radius: 0 6px 6px 6px; }
  .dropdown-submenu2 :hover > .dropdown-menu {
    display: block; }
  .dropdown-submenu2 > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #cccccc;
    margin-top: 5px;
    margin-right: -10px; }
  .dropdown-submenu2 :hover > a:after {
    border-left-color: #ffffff; }
  .dropdown-submenu2 .pull-left {
    float: none; }
    .dropdown-submenu2 .pull-left > .dropdown-menu {
      left: -100%;
      margin-left: 10px;
      -webkit-border-radius: 6px 0 6px 6px;
      -moz-border-radius: 6px 0 6px 6px;
      border-radius: 6px 0 6px 6px; }

div.svg-containerA {
  position: relative;
  width: 50%;
  height: 0;
  padding-top: 48%; }
  div.svg-containerA svg {
    position: absolute;
    top: 0;
    left: 0; }

div.svg-containerB {
  display: inline-block;
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  vertical-align: middle;
  overflow: hidden; }
  div.svg-containerB svg {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block; }

/* KNVTPLMap.dll uses directly this file */
text {
  fill: #222222;
  stroke: none;
  stroke-width: 1; }

.KNVLabel {
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  fill: #000000;
  fill-opacity: 1;
  stroke: none; }

.KNVCell {
  shape: oval;
  fill: #AAAAFF;
  fillcolor: #AAAAFF;
  fillcolor2: #5555AA;
  stroke: #8888FF;
  strokecolor: #8888FF;
  strokeweight: 3;
  stroke-width: 5px;
  font-size: 15px;
  xxbaseline-shift: 100%; }

.KNVCentral {
  marker: none;
  stroke: #000000;
  stroke-width: 0.9;
  stroke-miterlimit: 4;
  stroke-dasharray: none;
  stroke-opacity: 1;
  fill: white;
  fill-opacity: 1;
  fill-rule: nonzero;
  color: gray;
  visibility: visible;
  display: inline;
  overflow: visible;
  enable-background: accumulate; }

.KNVStroke {
  stroke-width: 6px;
  strokeweight: 3;
  stroke: #888888;
  strokecolor: #888888; }

.KNVStroke.KNVRelatedToLinkType {
  stroke: #FF0000;
  strokecolor: #FF8888; }

.KNVArrow {
  fill: none;
  stroke: green;
  stroke-width: 1px;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-opacity: 1; }

.KNVUnderline {
  stroke-width: 2px; }

/*
no need now
g.KNVCell
{
    font-size:15px;
}

g.KNVLabel
{
}
*/
/* 
black fill bug on chrome is due to priority of user agent svg:a:link:hover (black) on parent of the a
solution 1: place the a above the element decaring the fill (the g)
solution 2: place the fill on the rect with a .KNVCell rect rule
*/
xlink:a:visited {
  fill: inherit;
  stroke: inherit; }

a:visited {
  fill: inherit;
  stroke: inherit; }

g.KNVCellx a:visited {
  fill: inherit;
  stroke: inherit; }

.KNVItem {
  display: block; }

a.KNVOutlineLink + .KNVToolbar, a.KNVOutlineLink + ol.KNVQuickToolbar {
  margin-left: 6px; }

.KNVHeader {
  font-weight: bold;
  display: block; }
  .KNVHeader > .KNVTitle + .KNVToolbar, .KNVHeader > .KNVTitle + ol.KNVQuickToolbar {
    margin-left: 6px; }
  .KNVHeader > .KNVTitle .KNVVignette {
    margin-right: 1em; }
  .KNVHeader > .KNVVignette + .KNVHeader > .KNVTitle {
    /* span or .KNVTitle ? */
    margin-left: 1em; }
  .KNVHeader + .KNVItemBody {
    margin-top: 1em; }

.KNVItemBody {
  /* no reason to indent from header margin-left: 1em;*/
  margin-bottom: 1em; }

.KNVItemOutline {
  /* replace the p tag */
  display: block; }

.KNVExternalLink {
  /* replace the strong */
  font-weight: bold; }

.KNVInternalLink {
  /* replace the strong */
  font-weight: bold; }

span.KNVInternalLink {
  color: #428bca;
  text-decoration: none; }

/*
.KNVLevel2 .KNVItem
{
    display: list-item;
    list-style: disc;
}

.SlideIntro
{
//    font-size: 2em;
}
*/
.KNVItemOutOfScope {
  /* Must be pale enough so that text can be read on the background */
  background-color: #CCCCCC;
  color: #2c2c2c; }

.KNVRecentItemsDate {
  color: blue; }

.KNVTracabilityInfo {
  font-size: xx-small;
  color: #727272;
  margin-right: 0.5em; }
  .KNVTracabilityInfo .KNVDate {
    margin-left: 0.8em; }
  .KNVTracabilityInfo .KNVAuthor {
    margin-left: 0.8em; }
  .KNVTracabilityInfo .KNVInductorCombo {
    margin-left: 0.8em; }
  .KNVTracabilityInfo .KNVDisplayScope {
    margin-left: 0.8em; }
  .KNVTracabilityInfo .KNVPreWord {
    margin-left: 0.8em; }

.KNVWikiLI {
  /* hard coded in KNVTPLWiki\KNVTPLWiki1.cpp */ }

.KNVItemPosterImage {
  position: absolute; }

.KNVItemPoster {
  border-color: blue;
  border-style: solid;
  position: absolute;
  width: 300px; }

.KNVPosterLinks {
  /* this will wrap the poster, setting it as relative makes that all coordinates starts from here*/
  position: relative;
  min-height: 100px; }

span.KNVItemOutline > a > .KNVVignette, span.KNVItemOutline span > .KNVVignette {
  margin-right: 1em; }

ul.KNVLinks {
  list-style: none inside none;
  margin-left: 0;
  padding-left: 0; }
  ul.KNVLinks > li.KNVLink {
    padding-left: 0;
    margin-left: 0; }
  ul.KNVLinks li.KNVOutline + li.KNVInline {
    margin-top: 1em; }
  ul.KNVLinks li.KNVInline + li.KNVOutline {
    margin-top: 1em; }

:not(.KNVLevel1) > .KNVItemBody {
  margin-left: 3em; }

.KNVLevel1 > .KNVHeader {
  border-radius: 10px;
  padding: 20px;
  margin-left: -20px;
  margin-bottom: -20px; }

.KNVConceptType .KNVPageHeader {
  /* very pale blue */
  background-color: #ccccff; }

.KNVFieldType .KNVPageHeader {
  /* good green */
  background-color: #00ff00; }

/* Darker more concrete, pale abstract*/
.DivisionType .KNVPageHeader {
  /* pink missing */
  background-color: #ffcccc; }

.KNVOrganizationType .KNVPageHeader {
  /* orange */
  background-color: #ff8000; }

.KNVCompanyType .KNVPageHeader {
  /* orange */
  background-color: #ff8000; }

.RoleType .KNVPageHeader {
  /* melon missing */
  background-color: #ffd899; }

.ProcedureType .KNVPageHeader {
  /* green */
  background-color: #b3ff33; }

.PersonType .KNVPageHeader {
  /* Players */
  /* yellow */
  background-color: #ffff99; }

.StoryType .KNVPageHeader {
  /* event / fact grey missing */
  background-color: #c0c0c0; }

.StandardType .KNVPageHeader {
  /* dense Blue*/
  background-color: #9999ff; }

.TypeType .KNVPageHeader {
  /* Brown not set */
  background-color: #994c00; }

.LinkTypeType .KNVPageHeader {
  /* Brick not set*/
  background-color: #cc3200; }

.KNVCommentType {
  background-color: #F9F9F9;
  /* light grey */
  border-top: 1px solid lightgray; }

.KNVNoteType {
  background-color: #ffff99;
  /* light yellow */
  border: none;
  position: relative; }
  .KNVNoteType > :before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 2em 2em 0;
    border-style: solid;
    border-color: #fff #fff #ffff66 #ffff66;
    background: #ffff66;
    /*
      -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
      -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
      box-shadow: 0 1px 1px rgba(0,0,0,0.3), -1px 1px 1px rgba(0,0,0,0.2);
      */
    /* Firefox 3.0 damage limitation */
    display: block;
    width: 0; }

.KNVPointType.KNVEdit {
  border: 1px solid beige;
  margin-left: -1px; }
  .KNVPointType.KNVEdit:hover {
    border-color: 1px solid lightgray; }

:not(.KNVLevel1).KNVPointType > .KNVItemBody {
  /* KNV:PointType should not appear as a "sub item" compared to Body/Introduction of owner although it is precisely one */
  margin-left: 0em; }

.KNVLevel1.KNVPersonType > .KNVHeader {
  background-color: #ffe2b5; }

.KNVLevel1.KNVOrganizationType > .KNVHeader {
  background-color: paleturquoise; }

.KNVLevel1.KNVToolType > .KNVHeader {
  background-color: lightskyblue; }

.KNVLevel1.KNVFieldType > .KNVHeader {
  background-color: #bebbb6; }

.KNVLevel1.KNVBookType > .KNVHeader {
  background-color: #ffe750; }

.KNVLevel1.KNVKnowledgeSourceType > .KNVHeader {
  background-color: moccasin; }

.KNVLevel1.KNVConceptType > .KNVHeader {
  background-color: #ffeac1; }

.KNVLevel1.KNVTaskType > .KNVHeader {
  background-color: thistle; }
