/* Setup html pages */
html {
	height: 100%; /* Needed for 'empty-element.html' */
}

/* Base font-size 2px lower than Bootstrap's default 15px (Bora, 12 Aug 2026).
   Most other rules in this stylesheet use em/relative units, so this scales
   everything (headings, tables, markdown-doc content) proportionally. */
body {
	font-size: 13px;
}

html.model > body {
  background:#ddd;
  padding: 0;
}

html.frame > body {
  height: 100%;
  background:#ddd;
  /* padding: 15px; */
}

/* ModelTree */
ul, li {
  list-style-type: none;
  cursor: default;
}
li.tree-element, ul{
	padding-left: 15px;
}

/* jQuery UI Layout style */
.ui-layout-pane {
  padding: 0px;
  overflow: hidden;
  border: 0px solid #ddd;
	background: #ddd;
}
.ui-layout-resizer {
  border: 2px solid #ddd;
}

/* Force panels width/height */
.root-panel {
	height: 100%;
  overflow: hidden;
	background: #FFF;
}
.root-panel-body {
  /* height will be set though jQuery */
  overflow: auto;
}
.no-padding {
	padding: 0px;
}
.no-margin {
	margin: 0px;
}
.documentation {
	padding-top: 15px;
	padding-bottom: 15px;
}
.navbar {
	height: 100%;
}

/* iFrames are inside panel-body */
iframe {
  margin: 0px;
  padding: 0px;
  border: none;
  width: 100%;
  height: 100%;
}

p.centered {
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
}

.table-condensed th,td {
	font-size: 14px;
}

img.diagram {
	max-width: 100%;
}

xmp {
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

/* Alasql console */
#myconsole td {
    white-space: pre-wrap;
}

/* Changing Navbar color can be done by uncommenting and adapting what follows */
/*
.navbar {
    background-color: #017a54;
}

.navbar .navbar-nav>li>a:hover {
    background-color: rgb(255 255 255 / 20%);
}

.navbar .navbar-nav>li>a:focus {
    background-color: rgb(255 255 255 / 0%);
}
*/

/* Image Zoom Slider */
.root-panel-heading {
	position: relative;
}

#btnZoomIn, #btnZoomOut {
	cursor: pointer;
	padding: 0;
}

#zoomSlider {
	width: 150px;
    position: absolute;
    top: 50% !important;
    right: 0;
    transform: translateY(-50%);
}

#zoomRange {
	padding: 0;
}

/* Internet Explorer input range theming thanks to https://brennaobrien.com/blog/2014/05/style-input-type-range-in-every-browser.html */
input[type=range]::-ms-track {
    width: 300px;
    height: 5px;
    
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;

    /*remove default tick marks*/
    color: transparent;
}
input[type=range]::-ms-fill-lower {
    background: #777;
    border-radius: 10px;
}
input[type=range]::-ms-fill-upper {
    background: #ddd;
    border-radius: 10px;
}
input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #767676;
}
input[type=range]:focus::-ms-fill-lower {
    background: #888;
}
input[type=range]:focus::-ms-fill-upper {
    background: #ccc;
}


/* Firefox input range theming thanks to https://brennaobrien.com/blog/2014/05/style-input-type-range-in-every-browser.html */
input[type=range]{
	background: transparent;
}

input[type=range]::-moz-range-track {
    /*width: 300px;*/
    height: 5px;
    background: #ddd;
    border: none;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #767676;
}


/* Search Box */
#tree-search {
  width: 5px;
  box-sizing: border-box;
  border: transparent;
  border-radius: 20px;
  background-color: transparent;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADNQTFRFU1NT9fX1lJSUXl5e1dXVfn5+c3Nz6urqv7+/tLS0iYmJqampn5+fysrK39/faWlp////Vi4ZywAAABF0Uk5T/////////////////////wAlrZliAAABLklEQVR42rSWWRbDIAhFHeOUtN3/ags1zaA4cHrKZ8JFRHwoXkwTvwGP1Qo0bYObAPwiLmbNAHBWFBZlD9j0JxflDViIObNHG/Do8PRHTJk0TezAhv7qloK0JJEBh+F8+U/hopIELOWfiZUCDOZD1RADOQKA75oq4cvVkcT+OdHnqqpQCITWAjnWVgGQUWz12lJuGwGoaWgBKzRVBcCypgUkOAoWgBX/L0CmxN40u6xwcIJ1cOzWYDffp3axsQOyvdkXiH9FKRFwPRHYZUaXMgPLeiW7QhbDRciyLXJaKheCuLbiVoqx1DVRyH26yb0hsuoOFEPsoz+BVE0MRlZNjGZcRQyHYkmMp2hBTIzdkzCTc/pLqOnBrk7/yZdAOq/q5NPBH1f7x7fGP4C3AAMAQrhzX9zhcGsAAAAASUVORK5CYII=);
  background-size: 20px;
  background-position: right 5px center; 
  background-repeat: no-repeat;
  padding: 5px 15px 5px 15px;
  cursor: pointer;
}

#tree-search:focus {
  width: 100%;
  cursor: auto;
  background-color: #FFF !important;
  border: 1px solid #ddd;
  border-radius: 2px;
}

#tree-search.filtered {
  background-color: #ddd;
}

/* To remove cross symbol in input field  */
#tree-search::-ms-clear {
   display: none;
}

#searchBox {
    position: absolute;
    top: 50% !important;
    right: 0;
    transform: translateY(-50%);
	padding-right: 5px;
}

/* Markdown documentation rendering (model Purpose / element Documentation) */
.markdown-doc h1, .markdown-doc h2, .markdown-doc h3, .markdown-doc h4 {
	font-weight: 600;
	line-height: 1.3;
	margin: 1.2em 0 0.5em;
}
.markdown-doc h1 { font-size: 1.8em; border-bottom: 1px solid #e1e4e8; padding-bottom: 0.2em; }
.markdown-doc h2 { font-size: 1.4em; border-bottom: 1px solid #eee; padding-bottom: 0.2em; }
.markdown-doc h3 { font-size: 1.15em; }
.markdown-doc h4 { font-size: 1em; color: #555; }
.markdown-doc p { margin: 0.6em 0; line-height: 1.6; }
.markdown-doc ul, .markdown-doc ol {
	margin: 0.4em 0 0.8em;
	padding-left: 1.8em;
}
.markdown-doc ul > li { list-style-type: disc; }
.markdown-doc ul ul > li { list-style-type: circle; }
.markdown-doc ol > li { list-style-type: decimal; }
.markdown-doc li { cursor: auto; }
.markdown-doc li { margin: 0.15em 0; line-height: 1.5; }
.markdown-doc li > ul, .markdown-doc li > ol { margin: 0.15em 0; }
.markdown-doc code {
	background: #f3f3f3;
	border-radius: 3px;
	padding: 0.15em 0.4em;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.9em;
}
.markdown-doc pre {
	background: #f6f8fa;
	border: 1px solid #e1e4e8;
	border-radius: 4px;
	padding: 0.8em 1em;
	overflow-x: auto;
	margin: 0.8em 0;
}
.markdown-doc pre code {
	background: none;
	padding: 0;
	font-size: 0.85em;
}
.markdown-doc blockquote {
	margin: 0.8em 0;
	padding: 0.2em 1em;
	border-left: 4px solid #dfe2e5;
	color: #555;
}
.markdown-doc table {
	border-collapse: collapse;
	margin: 0.8em 0;
	width: 100%;
}
.markdown-doc th, .markdown-doc td {
	border: 1px solid #d8d8d8;
	padding: 6px 12px;
	text-align: left;
}
.markdown-doc th { background: #f6f8fa; font-weight: 600; }
.markdown-doc tr:nth-child(even) td { background: #fafafa; }
.markdown-doc hr {
	border: none;
	border-top: 1px solid #e1e4e8;
	margin: 1.2em 0;
}
.markdown-doc a { color: #0366d6; text-decoration: none; }
.markdown-doc a:hover { text-decoration: underline; }
.markdown-doc input[type="checkbox"] { margin-right: 0.4em; }

/* publisher:branding */
/* Site logo in the navbar. Replace <site>/customisations/img/site-logo.png to rebrand -- any
   image works; height is fixed and width scales to keep the aspect ratio. */
.navbar-header .site-logo {
    float: left;
    height: 28px;          /* navbar is 45px with 12px brand padding */
    width: auto;
    margin: 8px 0 0 15px;
    display: block;
}
.navbar-header .site-logo + .navbar-brand {
    margin-left: 8px;
}
/* /publisher:branding */
