/* 
 * Copyright (c) 2005-2017 MicroPact, Inc. All Rights Reserved.
 *
 *  /\ /\ \/ /   Always design for the end goal, develop with them in mind
 * / / \ \  /    deploy with a path forward, and success will be more easily achieved
 * \ \_/ /  \
 *  \___/ /\ \                                           - Che de Bruin
 *            
 * This software is the proprietary information of MicroPact, Inc.
 * Use is subject to license terms.
 *
 * Page description: General CSS for the application
 *
 * @author MicroPact, Inc.
 * @since 1.0
 *
 */


/* Setting the box sizing for the entire application */
html {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

*, *:before, *:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}

body, html {
	background-color: #999999;
	color: #272727;
	font-family: Roboto;
	padding: 0;
	margin: 0;
	height: 100%;
	min-height: 100%;
	font-size: 16px;
}

strong {
	font-weight: 500;
}

a {
	text-decoration: none;
	display: inline-flex;
	color: #272727;
}

a.all-caps {
	text-transform: uppercase;
}

a.icon,
h3.icon,
label.icon {
	display: flex;
	align-items: center;
	width: fit-content;
}

a.icon svg,
h3.icon svg,
label.icon svg {
	margin: 0px 5px 0px 0px;
	height: 24px;
	width: 24px;
	min-height: 24px;
	min-width: 24px;
}

.icon.after svg {
	margin: 0px 0px 0px 5px;
}

.icon.small svg {
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
}

.icon.small-x svg {
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
}

.icon-spacer.small {
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
}

.hover-icon:hover svg {
	display: block;
}

a svg.small,
button svg.small,
svg.small {
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
}

a svg.small-x,
button svg.small-x,
svg.small-x {
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
}

svg.large-x {
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
}

a.close svg {
	margin: 0px;
	width: 14px;
	height: 14px;
	min-width: 14px;
	min-height: 14px;
}

svg {
	margin: 0 auto;
	display: block;
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;

	/* Added for animation purposed */
	transform: rotate(0deg);
	transform-origin: 50% 50%;
	transition: all .25s ease;
}

pre code, table {
    background-color: transparent;
}

pre {
	border-radius: 0;
    border-width: 0;
    background: 0 0;
    font-family: monospace;
    font-size: .9rem;
    margin: 0;
    white-space: pre;
    word-wrap: normal;
    line-height: inherit;
    color: inherit;
    z-index: 2;
    position: relative;
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
}

[contenteditable="true"].single-line {
	white-space: nowrap;
	overflow: hidden;
} 

[contenteditable="true"].single-line br {
	display:none;
}

[contenteditable="true"].single-line * {
	display:inline;
	white-space:nowrap;
}

table {
    border-spacing: 0;
    border-collapse: collapse;
}

h2 {
    margin: 0px;
    font-size: .9rem;
    font-weight: 400;
}

h3 {
    margin: 0px;
    font-size: .85rem;
	font-weight: 500;
	align-self: center;
}

h4 {
	margin: 0px;
    font-size: .85rem;
    font-weight: 400;
}

label {    
	font-size: .85rem;
    font-weight: 500;
    align-items: center;
    display: inline-flex;
	vertical-align: middle;
	cursor: inherit;
}

.grab {
	cursor: -webkit-grab; cursor: grab;
}

.grab:active {
	cursor: -webkit-grabbing; cursor: grabbing;
}

.pointer {
	cursor: pointer;
}

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

/* TABLE LAYOUT */

table {
	width: 100%;
	padding: 0px;
	box-sizing: border-box;
}

table th a {
	color: #8f8f8f
}

table th a.selected {
	color: #272727
}

table td, .etk-table th {
	padding: 10px;
	text-align: left;
}

table tr {
	border-bottom: solid 1px #cbcbcb;
}

table tbody tr:hover {
	background: #ececec;
}

table svg {
	display: inline;
	vertical-align: middle;
	margin-top: -2px;
	margin-right: 5px;
}

.table th svg {
	display: inline;
	vertical-align: middle;
	margin-top: -2px;
	margin-right: 2px;
}

div.spacer {
	height: 5px;
}

div.spacer-xl {
	height: 10px;
}

.header {
	font-weight: 500;
}

/* MISC */

.code, .data {    
	padding: 0px 0px 5px 0px;
    font-weight: 400;
	white-space: pre-wrap;
	font-size: .80rem;
}

.square {
	height: 60px;
	width: 60px;
	min-height: 60px;
	min-width: 60px;
	
	display: flex;
	align-items: center;
	justify-content: center;
}

.element {
	padding: 10px 0px 5px 0px;
	color: var(--main-font-primary-light);
}

.element-inline {
	padding: 10px 0px 0px 0px;
	height: 40px;
	align-items: center;
}

.element-blank {
	padding: 0px 0px 0px 0px;
}

.element-sub {
	padding: 10px 0px 0px 0px;
}

.element > label,
.element-blank > label,
.element-sub > label {
	padding: 0px 0px 0px 0px;
}

.element *, 
.element-blank *, 
.element-sub *, 
.element-form * {
	color: var(--main-font-primary-light)
}

/* 
 * Flex Containers
 */

.flex {
	flex-flow: row;
	display: flex;
	flex: 1;
}

.flex-wrap {
	flex-flow: row wrap;
	display: flex;
	flex: 1;
}

.flex-column {
	flex-flow: column;
	display: flex;
	flex: 1;
}

ul.flex, ul.flex-column {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.flex > li {
	height: 60px;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
}

.flex > li.spacer {
	width: 10px;
}

.flex > li.spacer-2x {
	width: 20px;
}

.flex > li.spacer-3x {
	width: 40px;
}

.flex > li.separator:after {
	content: '';
    height: 30px;
    border-left: solid 1px #272727;
    margin: 0px 3px;
}

.flex .small > li {
	height: 50px;
}

.flex .small-x > li {
	height: 45px;
}

.flex .small-2x > li {
	height: 40px;
}

.flex .small-3x > li {
	height: 30px;
}

.flex > li.small {
	height: 50px;
}

.flex > li.small-x {
	height: 45px;
}

.flex > li.small-2x {
	height: 40px;
}

.flex > li a:not(.button) {
	padding: 0px 5px;
    display: flex;
    align-items: center;
	justify-content: center;
	height: 100%;
	font-size: .9rem
}

.flex > li a.button {
	padding: 0px 10px;
}

.flex > .expanded {
	width: 100%;
}

.flex .fixed {
	flex-grow: initial;
}

.flex .align-top {
	align-self: flex-start;
	align-items: flex-start;
	align-content: flex-start;
    justify-content: flex-start;
}

.flex .align-center {
	align-self: center;
	align-items: center;    
	align-content: center;
    justify-content: center;
}

.flex > .align-right,
.flex-wrap > .align-right {
	margin-left: auto
}

.flex > .align-left,
.flex-wrap > .align-left {
	margin-right: auto
}

.flex-line-break {
	width: 100%;
}

.flex svg {
	margin: unset;
}

.space-between {
	justify-content: space-between;
}

.spacing {
	margin: 10px;
}

.spacing-x {
	margin: 15px;
}

.spacing-2x {
	margin: 20px;
}

.spacing-top {
	margin-top: 10px;
}

.spacing-bottom {
	margin-bottom: 10px;
}

.flex > .spacing-before,
.spacing-before {
	margin-left: 5px;
}

.flex > .spacing-after,
.spacing-after {
	margin-right: 5px;
}

.flex > .spacing-after-x,
.spacing-after-x {
	margin-right: 10px;
}

.flex > .spacing-after-2x,
.spacing-after-2x {
	margin-right: 20px;
}

container {
	display: flex;
	flex-flow: column;
	height: 100%;
	width: 100%;
}

.scrollable {
	height: 100%;
	overflow: auto;
}

.scrollable-x {
	/* height: 100%; */
	overflow-y: auto;
	overflow-x: hidden;
	flex-grow: 1;
}

.scrollable-y {
	height: 100%;
	overflow-y: hidden;
    overflow-x: auto;
}

.innershadow {
	-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px inset;
	box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.2)
}

.border-all,
.border-top,
.border-right,
.border-bottom,
.border-left  {
	border-width: 0px;
	border-style: solid;
	border-color: var(--main-color-gray);
}

.border-all {
	border-width: 1px;
}

.border-top  {
	border-top-width: 1px;
}

.border-right  {
	border-right-width: 1px;
}

.border-bottom  {
	border-bottom-width: 1px;
}

.border-left  {
	border-left-width: 1px;
}

.arrow-up {    
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-bottom-color: var(--main-font-primary-reverse);
	padding-top: 3px;
}

.arrow-right {
	border-style: solid;
	border-color: var(--main-fill-primary);
    border-width: 0 2px 2px 0;
    display: inline-block;
	
    transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	
	width: 7px;
    height: 7px;
    margin: 0px 5px 0px 0px;
}

.all-caps {
	text-transform: uppercase;
}

.hidden {
	display: none;
}

.open svg {
	transform: rotate(90deg);
	transform-origin: 50% 50%;
	transition: all .25s ease;
}

.tree {
	flex-flow: column;
	display: flex;
	flex: 1;
}

.tree > label {
	border-width: 1px;
    border-style: dashed;
    border-color: var(--main-color-gray);
    padding: 5px;
    /* position: relative; */
    /* margin: 0px 0px 0px -24px; */
	background-color: var(--main-color-gray-lighter);
	width: fit-content;
	display: inline;

}

.trunk {
	width: 15px;
	border-right: solid 1px #c1c1c1;
	height: 18px;
	align-self: flex-start;
}

.trunk-small {
	width: 12px;
	border-right: solid 1px #c1c1c1;
	height: 18px;
	align-self: flex-start;
}

.trunk.continue,
.trunk-small.continue {
	height: 100%;
	min-height: 100%
}

.trunk.short {
	height: 10px;
}

.branch {
	height: 1x;
	border-bottom: solid 1px #c1c1c1;
	width: 5px;
	margin-right: 5px;
}

.treefall {
	width: 10px;
}

.treefall:first-child {
	width: 8px;
}

.leaf {
	padding: 5px;
	align-items: center;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaf > label:not(.icon):not(.result):not(.conditional):not(.timestamp) {
	color: var(--main-font-primary);
	overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
	display: block;
	font-weight: 400;
	font-size: .80rem;
}

.tree .level-1,
.tree .level-2,
.tree .level-3,
.tree .level-4  {
	
	border-width: 0px 0px 0px 0px;
    border-style: solid;
    border-color: var(--main-color-gray-dark);
	
	display: flex;
	flex-flow: row wrap; 
	align-items: center;

	height: 35px;
	min-height: 35px;
	max-height: 35px;
}

.tree .active {
	background-color: var(--main-color-gray-lighter);
}

.tree input.small-x {
	width: 100%;
	text-align: center;
	display: table-row;
    width: 40px;
	margin: 0px 5px 0px 0px;
	text-transform: lowercase;
}

label.result {
    /* border-width: 1px;
    border-style: solid;
    border-color: var(--main-color-gray); */
    text-align: center;
    display: inline;
    padding: 0px;
    width: unset;
    overflow: initial;
}

label.conditional {
    border-width: 1px;
    border-style: dashed;
    border-color: var(--main-color-gray);
    padding: 5px;
    /* background-color: var(--main-color-gray-lighter); */
	width: fit-content;
	font-weight: 400;
}

label.conditional-text {
    padding: 5px;
    /* background-color: var(--main-color-gray-lighter); */
	width: fit-content;
	font-weight: 400;
}

label.conditional em,
label.conditional-text em {
	font-weight: 400;
	color: var(--main-color-blue);
}

label.timestamp {
	font-size: .775rem;
	color: var(--main-font-primary);
	display: block;
	font-weight: 400;
}

.tree em {
	font-weight: 400;
}

.tree label.small em {
	font-weight: 400;
}

ul.format {
	list-style-type: none;
	margin: 0px;
	padding: 0;
}

ul.format li {
	margin: 10px 0px 10px 0px;
}

ul.format li.title {
	font-weight: 700;
}

ul.format li.section {
	font-weight: 500;
}

ul.format li.subsection {
	padding-left: 40px;
}

.bound {
	transform: translate3d(0, 0, 0);
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #eeeeee;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}