/*@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@600&family=Inter:wght@100;200;300;400;500;700&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');*/
:root {
	--panel-bg: #3d3d3d;
	--panel-border: 1px solid #303030;
	--panel-color: #cacaca;
	--panel-button-bg: #d1d1d1;
	--panel-button-color: rgb(15, 15, 15);
	/*--pancap-bg: linear-gradient(to bottom, #000 0%, #474747 10%, #575757 85%, var(--panel-bg) 100%); /*#5f5f5f;*/
	--pancap-bg: #5f5f5f;
	--pancap-color: #f0f0f0;
	--pancap-but: #d1d1d1;
	--button-bg: #616161;
	--table_bg: #0e0e0e;
	--table_bg_sel: #0a0a80;
	--table_color: #c0c0c0;
	--table_color_hover: #f0f0f0;
	--table_color_sel: #fff;
	--dialog-bg: #3d3d3d;
	--dialog-color: #cacaca;
	/*linear-gradient(to left, 0% #000, 20% #ff2e2e, 80% #d1d1d1, 100% var(--panel-bg))*/
	--itmsheight: calc(100vh - 85px);
	--billsheight: calc(100vh - 135px);
	--bilitheight: calc(100vh - 137px);
}

body {
	height: 100vh;
	margin: 0;
	box-sizing: border-box;
	background-color: #020202;
	font-family: 'Inter';
	font-style: normal;
	font-size: 14px;
	user-select: none;
	scrollbar-color: #808080 #202020;
	scrollbar-width: 20px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

dialog {
	background-color: var(--dialog-bg);
	color: var(--dialog-color);
	border-radius: 5px;
	box-shadow: inset -1px -1px 2px #2c2c2c, inset 1px 1px 2px #4c4c4c;
	outline: none;
	border: none;
	padding: 10px 20px;
}

dialog p {
	margin: 10px 0;
	font-weight: 500;
	font-size: 14px;
	color: #ff9a9a;
}

input:focus {
	outline: none;
}

input:invalid {
	color: red;
}

input[type='text'] {
	border: none;
}

input[type='number'] {
	width: 100px;
}

label select {
	margin-left: 5px;
}

.diaflow {
	left: 50px;
	top: 93px;
	margin: 0;
}

table {
	background-color: #2e2e2e;
	table-layout: fixed;
	border-collapse: collapse;
	border-spacing: 2px;
}

td {
	/*	border-bottom: 1px solid #464646;*/
	border-right: 1px solid #2e2e2e;
	background-color: var(--table_bg);
}

tr {
	border-bottom: 1px solid #2e2e2e;
	border-top: 1px solid #2e2e2e;
	cursor: pointer;
}

tr:hover {
	color: var(--table_color_hover);
}

.tdred {
	color: red;
}

.tdrose {
	color: rgb(221 170 170);
}

.tdicon {
	/*	padding: 0 2px;*/
	width: 18px;
	text-align: center;
	border-right: none;
}
.tdnum {
	margin-left: 2px;
	width: 30px;
	text-align: center;
	user-select: text;
}
.tdname {
	width: 120px;
	text-align: left;
	padding-left: 5px;
	user-select: text;
}
.tddesc {
	width: 335px;
	text-align: left;
	padding-left: 5px;
}
.tdnote {
	width: 180px;
	text-align: left;
	padding-left: 5px;
	user-select: text;
}
.tddate {
	/*padding-left: 8px;*/
	width: 80px;
	text-align: center;
}
.tdpartner {
	/* Partner */
	padding-left: 8px;
	width: 165px; /*120*/
	text-align: left;
}
.tdprice {
	/* Price */
	width: 100px;
	text-align: right;
	padding-right: 5px;
	user-select: text;
}
.tdqty {
	/* Qty */
	width: 60px;
	text-align: center;
}
.tdmu {
	/* MU */
	width: 30px;
	text-align: center;
}

#left-side {
	height: calc(100vh - 45px);
	padding-left: 2px;
	padding-top: 2px;
}
#right-side {
	height: calc(100vh - 45px);
	padding-top: 2px;
}

#l_clipboard {
	margin: 12px 10px;
	font-size: 10px;
}

.treeitem {
	height: fit-content;
}

.ch {
	/*margin: 0 4px 4px 0; */
	width: 100%;
	/*height: 100%;*/
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
}

.th {
	height: fit-content;
	padding: 1px;
	margin: 5px auto -4px 0;
	width: calc(100% - 1px);
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	color: #909090;
	/*	background-color: #262626;*/
	/*	padding-left: 8px;*/
	font-size: 12px;
}
.tha:nth-child(1) {
	width: 30px;
	text-align: center;
}
.tha:nth-child(2) {
	width: 120px;
	text-align: left;
	padding-left: 5px;
}
.tha:nth-child(3) {
	width: 180px;
	text-align: left;
	padding-left: 5px;
}
.tha:nth-child(4) {
	width: 60px;
	text-align: center;
}
.tha:nth-child(5) {
	width: 100px;
	text-align: right;
	padding-right: 5px;
}
.tha:nth-child(6) {
	width: 100px;
	text-align: right;
	padding-right: 5px;
}

.tblabel {
	width: 200px;
	height: 22px;
	margin: 3px 3px;
	padding-top: 2px;
	border: 1px solid #4c4c4c;
	border-radius: 5px;
	font-size: 12px;
	text-align: center;
}

.label_cb {
	margin: 3px 10px;
}

.tbsum {
	width: 120px;
	margin-left: 5px;
	padding-right: 5px;
	text-align: right;
}

.dragging {
	opacity: 0.5;
}
.dragover {
	background-color: #333;
	color: #fff;
}

.toolbox {
	height: min-content;
	padding: 2px 10px;
	background-color: var(--panel-bg);
}

.chl {
	/*margin: 0 4px 4px 0; */
	width: 100%;
	/*height: 100%;*/
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: flex-start;
}

.cv {
	/*margin: 0 4px 4px 0; */
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
}

.cvc {
	/*margin: 0 4px 4px 0; */
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.cg {
	display: grid;
	grid-template-columns: 96px 1fr;
	row-gap: 5px;
	align-items: start;
	justify-items: left;
}
.ch > input[type='checkbox'] {
	margin: 9px 0 0 9px;
}

.header {
	margin: 4px 2px;
	height: fit-content;
	/*	border: 1px solid #0000FF;*/
}

.base {
	margin: 4px 2px;
	height: min-content;
	min-height: fit-content;
	/*	border: 1px solid #00FF00;*/
}

.content {
	margin: 0 0 2px 0;
	min-height: 100px;
	height: auto;
	/*border: 1px solid #FF0000;*/
}

.contentm {
	margin: 0 2px;
	height: auto;
}

.panel {
	margin: 1px;
	max-height: fit-content;
	min-height: fit-content;
	display: flex;
	flex-direction: column;
	/*height: max-content;*/
	/*max-height: calc(100% - 45px);*/
	border-left: var(--panel-border);
	border-right: var(--panel-border);
	border-bottom: var(--panel-border);
	background-color: var(--panel-bg);
	color: var(--panel-color);
	border-radius: 5px;
}
.panel-cap {
	margin: 0 0 2px 0;
	width: 100%;
	height: min-content;
	/*	height: 28px;*/
	background: var(--pancap-bg);
	color: var(--pancap-color);
	border-radius: 5px 5px 1px 1px;
	padding: 3px 5px 3px 12px;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	font-weight: 700;
	/*	height: 1.5em;*/
}

#items {
	min-height: 300px;
}

#witclose,
#wicclose,
#wacclose,
#wipclose,
#blsclose,
#wbdclose,
#wacclose,
#waiclose {
	height: 20px;
	width: 20px;
	background-image: url(pics/wclose.svg);
	background-size: 100%;
	background-repeat: no-repeat;
	/*	background-color: #c73939;
	border-top: 1px solid #c56161;
	border-bottom: 1px solid #9b2b2b;
	border-radius: 9px;*/
	margin-left: auto;
	cursor: pointer;
}

.button {
	margin: 2px 3px;
	height: 32px;
	width: 32px;
	border-radius: 4px;
	background-color: var(--button-bg);
	cursor: pointer;
	/*margin-right: 5px;*/
}

.b_additem {
	margin-top: 3px;
	margin-left: 3px;
	height: 22px;
	width: 22px;
	border-radius: 3px;
	cursor: pointer;
	background-color: var(--button-bg);
	background-image: url(pics/plus.svg);
	background-size: 100%;
	background-repeat: no-repeat;
}

.bdsv {
	margin: 2px 3px;
	margin-left: auto;
	height: 22px;
	width: 22px;
	border-radius: 4px;
	background-color: var(--button-bg);
	background-image: url(pics/csv.svg);
	background-size: 100%;
	background-repeat: no-repeat;
	cursor: pointer;
	/*margin-right: 5px;*/
}
.adsv {
	margin-top: 16px;
	margin-left: 20px;
	height: 32px;
	width: 32px;
	border-radius: 4px;
	background-color: var(--button-bg);
	background-image: url(pics/csv.svg);
	background-size: 100%;
	background-repeat: no-repeat;
	cursor: pointer;
	/*margin-right: 5px;*/
}

.bw {
	width: 64px;
}

#lasmdate {
	margin-left: 70px;
}
#lasmnum {
	margin-left: 36px;
}

.dbutton {
	margin: 15px 10px 0px 3px;
	height: 32px;
	width: 80px;
	border-radius: 4px;
	background-color: var(--button-bg);
	cursor: pointer;
	text-align: center;
	padding: 7px 0;
	color: var(--dialog-color);
	border: none;
}

#deg_ok,
#b_cok,
#b_aok,
#b_aiok {
	background-image: url(pics/ok.svg);
	background-position: 15px;
	background-size: 25%;
	background-repeat: no-repeat;
	padding-left: 10px;
}

.bdisabled {
	filter: grayscale(100%) contrast(0.5) brightness(0.7);
	cursor: default;
}

#deg_cancel,
#b_ccancel,
#b_acancel,
#b_aicancel {
	background-image: url(pics/cancel.svg);
	background-position: 7px;
	background-size: 25%;
	background-repeat: no-repeat;
	padding-left: 20px;
}

#b_acancel {
	margin-left: 420px;
	margin-bottom: 10px;
	margin-top: -22px;
}
#b_aok {
	margin-top: -22px;
}

#b_aicancel {
	margin-left: auto; /*350px;*/
	margin-bottom: 10px;
}

.tb_separator {
	border-left: 2px solid #363636;
	height: 32px;
	margin: 0 10px;
}

#b_items {
	background-image: url(pics/items.svg);
	background-position: center;
	background-size: 34%;
	background-repeat: no-repeat;
}

#b_assembly {
	background-image: url(pics/compiles.svg);
	background-position: center;
	background-size: 50%;
	background-repeat: no-repeat;
}

#b_accept {
	background-image: url(pics/accept.svg);
	background-position: center;
	background-size: 28%;
	background-repeat: no-repeat;
}

#b_issuance {
	background-image: url(pics/issuance.svg);
	background-position: center;
	background-size: 28%;
	background-repeat: no-repeat;
}

#b_bills {
	background-image: url(pics/bills.svg);
	background-position: center;
	background-size: 32%;
	background-repeat: no-repeat;
}

#b_rg {
	background-image: url(pics/reload.svg);
	background-position: center;
	background-size: 80%;
	background-repeat: no-repeat;
	margin-left: 10px;
}

#b_ng {
	background-image: url(pics/folder_new.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
}
#b_eg {
	background-image: url(pics/folder_edit.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}
#b_dg {
	background-image: url(pics/folder_del.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}

#b_tg {
	margin-left: 20px;
	background-image: url(pics/arrow_up.svg);
	background-position: center;
	background-size: 80%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}
#b_bg {
	background-image: url(pics/arrow_up.svg);
	background-position: center;
	background-size: 80%;
	background-repeat: no-repeat;
	transform: rotate(180deg);
}

#b_ni {
	background-image: url(pics/item_new.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	margin-left: 65px;
}
#b_ei {
	background-image: url(pics/item_edit.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}
#b_di,
#b_cdel,
#b_adel {
	background-image: url(pics/item_del.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}
#b_adel {
	margin-left: 30px;
	margin-top: -5px;
}

#b_ccpy {
	margin-left: 20px;
	background-image: url(pics/copy_item.svg);
	background-position: center;
	background-size: 70%;
	background-repeat: no-repeat;
}

#b_cpst {
	background-image: url(pics/paste_item.svg);
	background-position: center;
	background-size: 50%;
	background-repeat: no-repeat;
}

#b_ci {
	background-image: url(pics/compile_item.svg);
	background-position: center;
	background-size: 60%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}
#b_pi {
	background-image: url(pics/purchases.svg);
	background-position: center;
	background-size: 80%;
	background-repeat: no-repeat;
}

#b_ii {
	background-image: url(pics/issuances.svg);
	background-position: center;
	background-size: 80%;
	background-repeat: no-repeat;
}

#b_fi {
	background-image: url(pics/item_find.svg);
	background-position: center;
	background-size: 85%;
	background-repeat: no-repeat;
	/*margin-left: auto;*/
}

#it_find {
	margin-top: 5px;
	margin-left: 16px;
	border-radius: 5px;
	height: 26px;
}

#grouptree {
	float: left;
	min-width: 300px;
	height: 100%;
	/*height: calc(100% - 4px);*/
	/*min-height: 300px;*/
}
.container {
	margin: 2px 4px; /* 5px 4px*/
	/*padding: 4px 0;*/
	padding: 0;
	overflow-y: scroll;
	max-height: 100%;
	background-color: var(--table_bg);
	color: var(--table_color);
	border-left: 1px solid #262626;
	border-top: 1px solid #262626;
	border-right: 1px solid #464646;
	border-bottom: 1px solid #464646;
	font-style: normal;
	font-size: 12px;
	user-select: none;
	/*	border: 1px solid #FFFF00;	*/
}

.vmax {
	height: 100%;
}
#cont {
	height: 100%;
	min-height: calc(100% - 70px);
	/*height: calc(100% - 40px);*/
}

#bills {
	min-height: 320px;
}

#compiles {
	min-height: 240px; /*350px;	*/
}

#accept {
	min-height: 315px; /*380px;*/
}

.contitems {
	height: 100%;
}

#itemlist {
	min-width: 582px;
	height: 100%;
	/*height: calc(100% - 4px);*/
}

#purlist {
	margin: 0;
	min-width: 560px;
	min-height: 160px;
}

#assylist {
	margin: 0;
	min-width: 538px;
	min-height: 102px;
	max-height: calc(100vh - 300px);
}

#billlist {
	margin: 0;
	/*	min-width: 500px;
	min-height: 160px;
	height: 100%;*/
	/*	height: calc(100% - 87px);*/
}
/*
#billitems {
	max-height: var(--bilitheight);	
}*/

#bilist {
	margin: 0;
	min-width: 580px;
	/*	min-height: 158px;
	max-height: var(--bilitheight);	*/
	height: calc(100% - 2px);
}

#compileslist {
	min-height: 100px; /*200px;*/
	min-width: 510px;
	/*height: calc(100% - 140px);*/
}

#acceptlist {
	margin: 0;
	height: calc(100% - 10px);
	/*    min-height: 100px;*/
	min-width: 610px;
	height: 100%;
}

#itemstable,
#compilestable,
#accepttable,
#purtable,
#billtable,
#bitable,
#assytable {
	/*	background-color: var(--table_bg);*/
	color: var(--table_color);
	/*font-family: 'Inter';*/
	/*	font-style: normal;
	font-size: 12px;
	user-select: none;		*/
}

/*
#acceptlist::-webkit-scrollbar {
	width: 12px;
	background-color: #1a1a1a;
	border-radius: 5px;
}
#acceptlist::-webkit-scrollbar-thumb {
	background-color: #939393;
	border-radius: 5px;
	box-shadow: inset -1px -1px 2px rgba(0, 0, 0, 0.3);
} */

.gi {
	margin: 0 5px;
	width: 12px;
	height: 12px;
	cursor: pointer;
}
.gn {
	/*margin-left: 5px;*/
	margin-left: 3px;
	margin-right: 5px;
	width: 100%;
	cursor: pointer;
}

.gf {
	width: 16px;
	height: 14px;
	background-image: url(pics/folder.svg);
	background-position: left;
	background-size: 100%;
	background-repeat: no-repeat;
}

.gsel {
	background-color: var(--table_bg_sel);
	color: var(--table_color_sel);
}

.gc {
	overflow: hidden;
	margin-left: 10px;
	border-left: 1px solid #2e2e2e;
	padding-left: 5px;
}

.gn:hover {
	color: var(--table_color_hover);
}

.expanded {
	background-image: url(pics/expanded.svg);
	/*background-image: url(pics/collapsed.svg);*/
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	transform: rotate(0deg);
	transition: transform 0.1s ease 0s;
}
.collapsed {
	/*background-image: url(pics/collapsed.svg);*/
	background-image: url(pics/expanded.svg);
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	transform: rotate(-90deg);
	transition: transform 0.1s ease 0s;
}
.leave {
	cursor: default;
}

.tditem {
	background-image: url(pics/item.svg);
	background-position: right;
	background-size: 80%;
	background-repeat: no-repeat;
}

.tdassy {
	background-image: url(pics/gears.svg);
	background-position: right;
	background-size: 80%;
	background-repeat: no-repeat;
}

.tdin {
	background-image: url(pics/in.svg);
	background-position: right;
	background-size: 50%;
	background-repeat: no-repeat;
}

.tdout {
	background-image: url(pics/out.svg);
	background-position: right;
	background-size: 50%;
	background-repeat: no-repeat;
}

#assycost {
	margin: 10px 0 0 20px;
	font-size: 12px;
}
#b_ccancel {
	/*margin: -5px 10px 10px 320px;*/
	margin-left: 115px;
}
/*
#b_cok {
	margin: -5px 10px 10px 3px;
}*/

.inline_input {
	width: 34px;
	height: 18px;
}

.inline_anote {
	width: 174px;
	height: 18px;
}
.inline_aqty {
	width: 54px;
	height: 18px;
}
.inline_aprice {
	width: 94px;
	height: 18px;
}

.inline_aqty:invalid,
.inline_aprice:invalid {
	color: red;
}

.tblr {
	margin: 5px 6px 2px 5px;
	text-align: right;
}

.tbll {
	margin: 3px 5px 2px 1px;
	height: 20px;
	width: 150px;
}

.tblln {
	height: 20px;
	width: 100px;
	margin: 3px 3px;
	padding-top: 2px;
	padding-right: 5px;
	border: 1px solid #4c4c4c;
	border-radius: 5px;
	font-size: 12px;
	text-align: right;
}

.tbls {
	margin: 0 5px;
	height: 20px;
	width: 150px;
}

.tblt {
	margin: 2px 5px 2px 1px;
	height: 20px;
}

.tbld {
	margin: 3px 5px 2px 1px;
	height: 20px;
	/*	width: 150px;*/
}

.w60 {
	width: 60px;
}

.w100 {
	width: 100px;
}

.h70 {
	height: 70px;
}

.w150 {
	width: 150px;
}

#itoassemble {
	min-width: 545px;
	min-height: 135px;
	max-height: 200px;
	/*	transition: all 1s ease-out;*/
}

/*
#optassembly {
	margin-top: -10px;

}*/

.rollup {
	display: none;
	/*	transform: rotateX(90deg);
	height: 0;*/
}
.ian {
	height: 18px;
	width: 120px;
	padding: 2px 0 0 2px;
}
.iad {
	height: 18px;
	width: 335px;
	padding: 2px 0 0 2px;
}

.iag {
	height: 18px;
	width: 18px;
	background-image: url(pics/folder.svg);
	background-position: center;
	background-size: 75%;
	background-repeat: no-repeat;
	padding-left: 20px;
}
.iai {
	margin-left: 20px;
	height: 18px;
	width: 18px;
	background-image: url(pics/gears.svg);
	background-position: center;
	background-size: 75%;
	background-repeat: no-repeat;
	padding-left: 20px;
}
.ial {
	cursor: pointer;
	font-weight: 500px;
	/*background-color: #202020;*/
}
.iaf {
	background-color: rgb(0, 0, 71);
	color: #f0f0f0;
}
.ial:hover {
	color: #ffffff;
}
.ial:active {
	color: #ffffff;
	background-color: var(--table_bg_sel);
}
#b_asit {
	width: 22px;
	height: 22px;
	margin-top: 3px;
	background-image: url(pics/gears.svg);
	background-position: center;
	background-size: 70%;
	background-repeat: no-repeat;
}
