
/* ************************************************************************************************************* */
/*                                           svelte / sapper                                                     */
/* ************************************************************************************************************* */

body #wrapper {
	margin: 0;
	font-family: Roboto, Segoe UI, -apple-system, BlinkMacSystemFont, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
	font-size: 14px;
	color: var(--font-color);
}

#wrapper h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em 0;
	font-weight: 400;
	line-height: 1.2;
}

.heading.intro {
	max-width: 80%;
	margin-top: 30px;
	margin-bottom: 30px;
	font-family: Segoe UI, Roboto, -apple-system, BlinkMacSystemFont, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

#wrapper h1 {
	font-size: 2em;
}

/* #wrapper a {
	color: var(--font-color);
} */

code {
	font-family: menlo, inconsolata, monospace;
	font-size: calc(1em - 2px);
	color: #555;
	background-color: #f0f0f0;
	padding: 0.2em 0.4em;
	border-radius: 2px;
}

@media (min-width: 400px) {
	body {
		font-size: 12px;
	}
}

#sapper {
	height: 100%;
}


/* ************************************************************************************************************* */
/*                                           themes                                                              */
/* ************************************************************************************************************* */

.theme-light {
	--color-primary: #5514b4;
	--color-secondary: #73B414;
	--color-accent: #14B4A5;

	--font-color: #333;
	--font-color-secondary: #222;
	
	--color-background-primary: #ffffff;
	--color-background-secondary: #e5e5e5;	
	--color-background-hover: #D8D8D8;

	--color-font-theme: #ffffff;
	--color-background-theme: #5514b4;
	--color-background-theme-hover: #3f0a72;
}

.theme-dark {
	--color-primary: #ea80fc;
	--color-secondary: #92FC80;
	--color-accent: #80D0FC;
	
	--font-color: #EAEAEA;
	--font-color-secondary: #f1f1f1;
	
	--color-background-primary: #1c1c1c;
	--color-background-secondary: #303030;
	--color-background-hover: #4d4d4d;

	--color-font-theme: #ffffff;
	--color-background-theme: #5514b4;
	--color-background-theme-hover: #3f0a72;
}


/* ************************************************************************************************************* */
/*                                          syncfusion validation                                                */
/* ************************************************************************************************************* */

.e-error {
	/* display: inline-block !important; */
}

.explicit-hidden {
	display: none !important;
}

/* ************************************************************************************************************* */
/*                                           sidebar navigation                                                  */
/* ************************************************************************************************************* */

.sidebar-nav {
	top: 55px;
	bottom: 0;
	left: 0;
	right: 0;
	position: absolute;
	z-index: 1001;
	width: 280px;
	transition: 0.2s ease-in-out;	
}

.sidebar-nav {
	color: var(--font-color);
	background: var(--color-background-secondary);
}

.sidebar-nav ul {
	padding: 0;
	margin: 0;
	list-style: none;
	background: var(--color-background-secondary);
}

.sidebar-nav .metismenu {
	background: var(--color-background-secondary);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
}

.sidebar-nav .metismenu>li {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	position: relative;
}

.sidebar-nav .metismenu a {
	cursor: pointer;
	position: relative;
	display: block;
	padding-top: 13px;
	padding-bottom: 13px;
	padding-left: 18px;
	color: var(--font-color);
	outline-width: 0;
	transition: all .3s ease-out;
}

.sidebar-nav .metismenu a i {
	width: 25px;
}

.sidebar-nav .metismenu a.home {
	padding-left: 15px;
}

.sidebar-nav .metismenu a.home i {
	width: 28px;
}

.sidebar-nav .metismenu a:hover,
.sidebar-nav .metismenu a:focus {
	color: var(--font-color);
	text-decoration: none;
	background: var(--color-background-hover);
}

.sidebar-nav .metismenu li a span {
	padding-left: 10px;
}

.sidebar-nav .metismenu li ul li a {
	padding-left: 70px;
}

/* .sidebar-nav .metismenu > li:not(:first-child).mm-active > a {
	border-left: 4px solid #057ece;
} */


.mini-nav .main-content {
	left: 55px !important;
}

.mini-nav .sidebar-nav {
	width: 55px !important;
}

.mini-nav .sidebar-nav .metismenu>li {
	position: relative;
}

.mini-nav .sidebar-nav .metismenu li a span {
	display: none;
}

.mini-nav .sidebar-nav .metismenu .has-arrow:after {
	display: none;
}

.mini-nav .sidebar-nav .metismenu li ul {
	display: none;
	position: absolute;
	left: 100%;
	top: 0;
	min-width: 200px;
	z-index: 1001;
}

.mini-nav .sidebar-nav .metismenu li ul li a {
	padding-left: 20px;
}

.mini-nav .sidebar-nav .metismenu>li:hover>ul {
	height: auto !important;
}

.mini-nav .sidebar-nav .metismenu>li:hover>ul,
.mini-nav .sidebar-nav .metismenu>li:hover>ul.collapse {
	display: block;
}

.mini-nav .sidebar-nav .metismenu>li:hover>a.has-arrow:after {
	transform: rotate(135deg);
}


/* ************************************************************************************************************* */
/*                                             theme switcher                                                    */
/* ************************************************************************************************************* */

/* https://proto.io/freebies/onoff/ */

.onoffswitch {
	position: relative;
	width: 54px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.onoffswitch-checkbox {
	display: none;
}

.onoffswitch-label {
	display: block;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid #1AB394;
	border-radius: 3px;
}

.onoffswitch-inner {
	display: block;
	width: 200%;
	margin-left: -100%;
	-moz-transition: margin 0.3s ease-in 0s;
	-webkit-transition: margin 0.3s ease-in 0s;
	-o-transition: margin 0.3s ease-in 0s;
	transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
	display: block;
	float: left;
	width: 50%;
	height: 16px;
	padding: 0;
	line-height: 16px;
	font-size: 10px;
	color: white;
	font-family: Trebuchet, Arial, sans-serif;
	font-weight: bold;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.onoffswitch-inner:before {
	content: "Dark";
	padding-left: 7px;
	background-color: #1AB394;
	color: #FFFFFF;
}

.onoffswitch-inner:after {
	content: "Light";
	padding-right: 7px;
	background-color: #FFFFFF;
	color: #919191;
	text-align: right;
}

.onoffswitch-switch {
	display: block;
	width: 18px;
	margin: 0;
	background: #FFFFFF;
	border: 2px solid #1AB394;
	border-radius: 3px;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 36px;
	-moz-transition: all 0.3s ease-in 0s;
	-webkit-transition: all 0.3s ease-in 0s;
	-o-transition: all 0.3s ease-in 0s;
	transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
	margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
	right: 0;
}


/* ************************************************************************************************************* */
/*                                             datasets                                                          */
/* ************************************************************************************************************* */

/* custom toolbar buttons */
.e-grid .e-reset::before,
.e-grid-menu .e-reset::before {
	content: '\e308';
}
.e-grid .e-import::before,
.e-grid-menu .e-import::before {
	content: '\e710';
}


/* row and cell fomatting, colours modelled on excel good, bad, neutral */
.datagrid-row-good {
	background: #C6EFCE;
}
.datagrid-row-good td,
.datagrid-row-good td i {
	color: #006100 !important;
}
.datagrid-cell-good,
.datagrid-cell-good i {
	background: #C6EFCE;
	color: #006100 !important;
}

.datagrid-row-bad {
	background: #FFC7CE;
}
.datagrid-row-bad td,
.datagrid-row-bad td i {
	color: #9C0006 !important;
}
.datagrid-cell-bad,
.datagrid-cell-bad i {
	background: #FFC7CE;
	color: #9C0006 !important;
}

.datagrid-row-neutral {
	background: #FFEB9C;
}
.datagrid-row-neutral td,
.datagrid-row-neutral td i {
	color: #9C6500 !important;
}
.datagrid-cell-neutral,
.datagrid-cell-neutral i {
	background: #FFEB9C;
	color: #9C6500 !important;
}


/* versioning stats counters */
.stats .stat.added {
	/* text-align: right; */
	font-size: 14px;
	border: 1px solid #C6EFCE;
	border-radius: 5px 0 0 5px;
	color: #006100;
	padding: 2px;
	vertical-align: middle;
}

.stats .stat.removed {
	/* text-align: left; */
	font-size: 14px;
    border: 1px solid #FFC7CE;
    border-radius: 0 5px 5px 0;
    color: #9C0006;
    padding: 2px;
    vertical-align: middle;
    margin-left: 1px;
}

.stats .stat.updated {
	/* text-align: left; */
	font-size: 14px;
    border: 1px solid #FFEB9C;
    border-radius: 0 0 0 0;
    color: #9C6500;
	padding-top: 2px;
	padding-bottom: 2px;
	padding-left: 4px;
	padding-right: 4px;
    vertical-align: middle;
    margin-left: 1px;
}


/* version notification badge */
.e-badge.e-badge-grid.e-badge-notification {
	position: relative;
	top: -5px;
	left: 5px;
	font-size: 10px;
}

/* pricelist notification badge */
.e-badge.e-badge-grid.e-badge-pricelist {
	font-size: 12px;
	width: 80px;
}

/* font awesome command icons in grid */
.e-btn .e-btn-icon.far,
.e-btn .e-btn-icon.fas,
.e-btn .e-btn-icon.fal,
.e-btn .e-btn-icon.fab,
.e-btn .e-btn-icon.fad {
	font-size: 20px;
}


/* minimal grid, similar look to office 365 admin */
.minimal.e-control.e-grid {
	border-width: 0px;
}
.minimal.e-control.e-grid .e-toolbar {
	border-width: 0px;
	background: var(--color-background-primary);
}
.minimal.e-control.e-grid .e-toolbar-items,
.minimal.e-control.e-grid .e-toolbar-items button {
	background: var(--color-background-primary);
}
.minimal.e-control.e-grid .e-toolbar-items button:hover {
	background: var(--color-background-hover);
}
.minimal.e-control.e-grid .e-gridheader  {
	margin-top: 20px;
	border-top-width: 0px;
}
.minimal.e-control.e-grid .e-headertext  {
	color: var(--font-color-secondary);
}
.minimal.e-control.e-grid .e-columnheader  {
	height: 30px !important;
}
.minimal.e-grid.e-gridhover tr[role='row']:not(.e-editedrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.minimal.e-grid.e-gridhover tr[role='row']:hover .e-detailrowcollapse:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.minimal.e-grid.e-gridhover tr[role='row']:hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.minimal.e-grid.e-rtl .e-gridhover tr[role='row']:hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.minimal.e-grid.e-gridhover tr[role='row']:hover .e-detailrowexpand:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
  background-color: #F8F8F8;
  color: #000;
}


.hover.e-grid.highlight {
	border: 2px dashed #a9a9a9 !important;	
}

.hover-row.e-grid .e-row.highlight td {
	border-top: 2px dashed #a9a9a9 !important;
	border-bottom: 2px dashed #a9a9a9 !important;
}


/* Might need to refactor or standardise on first column always being hidden id */

/* .hover-row.e-grid .e-row.highlight td:first-child {
	border-left: 2px dashed red !important;
} */
.hover-row.e-grid .e-row.highlight td:nth-of-type(2) {
	border-left: 2px dashed #a9a9a9 !important;
}

.hover-row.e-grid .e-row.highlight td:last-child {
	border-right: 2px dashed #a9a9a9 !important;
}



/* ************************************************************************************************************* */
/*                                           Version table and card                                              */
/* ************************************************************************************************************* */

.version-grid .e-rowcell {
	padding-bottom: 10px !important;
}

.version-grid .e-frozenheader .e-table, 
.version-grid .e-frozencontent .e-table {
	border-right-color: #e0e0e0 !important;
	border-right-width: 2px !important;
}

.ui.version.card {
	background-color: inherit;
	/* box-shadow: 0em; */
	border-radius: 0em;
}

.ui.version.card .content,
.ui.version.card .content .header {
	color: var(--color-background-primary) !important;
}
  


/* ************************************************************************************************************* */
/*                                             Progress bar                                                      */
/* ************************************************************************************************************* */





  .ui.progress .bar {
	  border-radius: 0rem;
  }


/* ************************************************************************************************************* */
/*                                             blokk font                                                        */
/* ************************************************************************************************************* */

  @font-face {
	font-family: 'BLOKK';
	src: url('/fonts/BLOKKNeue-Regular.eot');
	src: url('/fonts/BLOKKNeue-Regular.eot?#iefix') format('embedded-opentype'),
		 url('/fonts/BLOKKNeue-Regular.woff2') format('woff2'),
		 url('/fonts/BLOKKNeue-Regular.woff') format('woff'),
		 url('/fonts/BLOKKNeue-Regular.otf') format('opentype'),
		 url('/fonts/BLOKKNeue-Regular.ttf') format('truetype'),
		 url('/fonts/BLOKKNeue-Regular.svg#BLOKKRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}

.blokk {
	font-family: "BLOKK";
	color: #AAA;		
}

/* ************************************************************************************************************* */
/*                                             misc                                                              */
/* ************************************************************************************************************* */

.default.pricelist {
	color: green;
}

.assigned.pricelist {
	color: black;
}

.unassigned.pricelist {
	color: grey;
}

.ui.card {
	height: 100%;
}

.card.highlight {
	background-color: var(--color-primary) !important;
}


.date-picker-dialog.e-dialog .e-dlg-content {
	padding: 0px;
}


.timeline-item {
	padding-top: 60px !important;
}



/* ************************************************************************************************************* */
/*                                           fomantic-ui toast                                                   */
/* ************************************************************************************************************* */


/* .ui.toast-container .toast-box.compact,
.ui.toast-container .toast-box > .compact {
	min-width: 300px;
	max-width: 400px;
} */

.ui.toast-container .toast-box {
	width: 450px;
	/* min-width: 350px;
	max-width: 450px; */
}

.ui.toast-container .toast-box .toast {
	padding: 20px;
	font-size: 14px;
}

/* fix progress same colour as toast */
.ui.toast-container .toast-box > .attached.progress .error .bar.bar.bar {
	background: #9c1a1a !important;
}
.ui.ui.progress.error .bar {
	background-color: #9c1a1a !important;
}