/* --- OLD IMPLEMENTATION (nová je níže) --- */
.bom th {
	cursor: default;
}

.bom .bom-index input {
	width: 100%;
	background-color: rgba(99, 95, 115, 0.3);
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    color: white;
    border: 0;
    font-size: 16px;

    -webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	border: 0px solid #000000;

	margin: 1px;
	position: relative;
	left: -8px;
}

.bom table.bom-index {
	border-collapse: collapse;
	border: dashed 0px;
	border-color: black;
	width: 100%;
	margin-top: 0px;
}

.bom-index .bom-ctrl {
	background-color: rgb(105, 135, 55);
}

#content .bom .bom-index td {
	text-align: left;
	padding: 2px;
    padding-left: 12px;
    padding-right: 12px;
    border-left: dashed rgb(31, 31, 40) 1px;
	overflow-x: hidden;
	text-overflow: ellipsis;
}

#content .bom .bom-index td:last-child {border-right: dashed rgb(31, 31, 40) 1px;}

.bom .bom-index th {
	padding: 2px;
	padding-bottom: 8px;
	padding-top: 8px;
	font-size: 15px;
    font-weight: normal;
    background-image:  url("../images/struct-bg.png");
    /*vertical-align: bottom;*/
}

.bom-index tr.bom-row, .bom-index th {
	border-bottom: 1px solid rgb(23, 27, 35);
}

tr.bom-row.invalid {background-color: rgb(189, 110, 62);}

tr.bom-row.bom-read-only {background-color: rgb(58, 52, 49);}

tr.bom-row.bom-manual-record {background-color: rgba(46, 47, 58, 0.4);}

tr.bom-row.bom-item-updated .bom-item,
tr.bom-row.bom-updated .bom-item {color: orange;}

tr.bom-row.bom-item-inserted .bom-item,
tr.bom-row.bom-inserted .bom-item {color: rgb(0, 198, 0);}

tr.bom-row.bom-hidden {color: rgb(240, 30, 79);}

tr.bom-row.bom-product-num .bom-product {font-weight: bold;}

#content .bom > .bom-index > tbody > tr.selected > td {
	border-right: solid rgb(191, 255, 5) 1px;
	background-color: rgba(191, 255, 5, 0.1);
}

#content .bom > .bom-index > tbody > tr > td:first-child *:before {
	content:"☐";
	font-size: 22px;
}

#content .bom > .bom-index > tbody > tr.selected > td:first-child *:before {
	content:"☑";
	font-size: 22px;
}

#content .bom > .bom-index > tbody > tr.bom-read-only > td:first-child *:before {content:"";}

.bom-index .filter-product {
	background-color: rgb(67, 107, 161);
    margin-left: 2px;
    margin-right: 6px;
}

.bom-item .add-choice,
.bom-index .add-product {
	background-color: rgb(2, 111, 64);
}

.bom-index .bom-to-opr {
	background-color: #763b86;
	margin-right: 6px;
}

#dialog-bom-to-opr-cond .bom-condition,
#dialog-bom-to-opr .bom-operation {
	display: inline-block;
    padding: 4px;
    width: 99%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow-x: hidden;
	white-space: nowrap;

	margin-top: 2px;
	padding-left: 12px;
	padding-right: 12px;
	background-color: rgb(93, 82, 139);
}

#dialog-bom-to-opr-cond .bom-condition.selected,
#dialog-bom-to-opr .bom-operation.selected {
	background-color: rgb(3, 143, 76);
}

#dialog-bom-to-opr-cond .bom-condition.selected:before,
#dialog-bom-to-opr .bom-operation.selected:before {
	content: "✓ ";
}

#dialog-manage-bom > div {
	display: inline-block;
}

#dialog-manage-bom .export-bom {
	min-width: 50%;
}

#dialog-manage-bom .max-level {
	margin-left: 14px;
}

#dialog-manage-bom .product {
	width: 100%;
	box-sizing: border-box;
}

#dialog-copy-bom input,
#dialog-add-product select,
#dialog-add-product input,
#dialog-bom-product input {
	margin: 2px;
	margin-bottom: 12px;
	width: 100%;
	box-sizing: border-box;
}

#dialog-bom-product a {
	display: block;
	padding: 4px;
	min-width: 120px;
	margin: 2px;
	padding-left: 6px;
	padding-right: 6px;
	background-color: rgb(93, 82, 139);
}

#dialog-bom-item input {
	width: 94%;
}

#dialog-product-detail table.product-contract-detail {
	border-collapse: collapse;
	border: dashed 0px;
	border-color: black;
	width: 98%;
	margin-top: 12px;
}

#dialog-product-detail table.product-contract-detail td {
	text-align: left;
	padding: 2px;
	padding-left: 12px;
	padding-right: 12px;
	border-left: dashed rgb(31, 31, 40) 1px;
	border-bottom: 1px solid rgb(23, 27, 35);
	overflow-x: hidden;
	text-overflow: ellipsis;
}

#dialog-product-detail table.product-contract-detail th {
	padding: 2px;
	padding-bottom: 8px;
	padding-top: 8px;
	border-left: dashed rgb(31, 31, 40) 1px;
	font-size: 15px;
    font-weight: normal;
    background-color: rgb(76, 69, 120);
}

#dialog-item-detail .bom-item-dependency {
	display: block;
	height: 150px;
	overflow-y: auto;
}

#dialog-item-detail .bom-item-dependency > * {
	display: inline-block;
    padding: 4px;
    padding-left: 12px;
    padding-right: 12px;
    background-color: rgb(59, 73, 116);
    min-width: 120px;
    margin: 1px;
}

#dialog-item-detail label {
	display: inline-block;
	margin-left: 12px;
}

#dialog-item-detail input {
	margin-left: 12px;
	margin-right: 12px;
	margin-bottom: 22px;
	width: 60%;
	box-sizing: border-box;
}

/* --- NEW IMPLEMENTATION --- */

#tab-id-product-config-content .level-0 .delete-row {
	display: none;
}

#dialog-add-product-config input,
#dialog-add-material input {
	width: 100%;
	box-sizing: border-box;
}

#dialog-add-material .labeled-checkbox label {
	display: inline-block;
	margin-right: 12px;
}

#tab-id-bom-tree-content .detail-container .detail-body > *,
#tab-id-bom-content .detail-container .detail-body > * {
	margin-bottom: 12px;
	display: block;
}

#tab-id-bom-tree-content .detail-container .detail-body .inactive > div,
#tab-id-bom-content .detail-container .detail-body .inactive > div {
	color: rgb(255, 111, 0);
}

#tab-id-bom-content .detail-body .dropzone {
	width: 360px;
}

#tab-id-bom-tree-content .detail-container-top .detail-body > *,
#tab-id-bom-content .detail-container-top .detail-body > * {
	display: inline-block;
}

.product-config-editor label,
#tab-id-tt-content .detail-container label,
#tab-id-bom-tree-content .detail-container label,
#tab-id-bom-content .detail-container label {
	margin-bottom: 2px;
    margin-top: 8px;
    margin-right: 12px;
    font-size: 14px;
    display: block;
}

.line.selected {
	background-color: rgb(3, 143, 76);
}

#tab-id-bom-tree-content .detail-container .labeled-checkbox label,
#tab-id-bom-content .detail-container .labeled-checkbox label {
	display: inline-block;
}

.detail-container .sum-inf-panel {
	padding: 8px;
    margin-top: 8px;
    background-color: rgb(67, 65, 92);
    box-sizing: border-box;
    width: 300px;
}

#tab-id-bom-tree-content .detail-container select,
#tab-id-bom-tree-content .detail-container input,
#tab-id-bom-tree-content .detail-container button,
#tab-id-bom-tree-content .detail-container .labeled-checkbox,
#tab-id-bom-tree-content .detail-container .sum-inf,

#tab-id-bom-content .detail-container select,
#tab-id-bom-content .detail-container input,
#tab-id-bom-content .detail-container button,
#tab-id-bom-content .detail-container .labeled-checkbox,
#tab-id-bom-content .detail-container .sum-inf {
	width: 300px;
	margin-top: 2px;
	margin-right: 4px;
	box-sizing: border-box;
}

#tab-id-bom-tree-content .detail-container-bottom select,
#tab-id-bom-tree-content .detail-container-bottom input,
#tab-id-bom-tree-content .detail-container-bottom button,
#tab-id-bom-tree-content .detail-container-bottom .labeled-checkbox,
#tab-id-bom-tree-content .detail-container-bottom .sum-inf,

#tab-id-bom-content .detail-container-bottom select,
#tab-id-bom-content .detail-container-bottom input,
#tab-id-bom-content .detail-container-bottom button,
#tab-id-bom-content .detail-container-bottom .labeled-checkbox,
#tab-id-bom-content .detail-container-bottom .sum-inf {
	width: 100%;
}

#tab-id-bom-tree-content .detail-container-top .detail-body > *,
#tab-id-bom-content .detail-container-top .detail-body > * {
	margin-right: 10px;
    margin-left: 10px;
}

.detail-container a.mono {
	margin-top: 8px;
	display: inline-block;
    padding: 4px;
    padding-left: 12px;
    padding-right: 12px;
    background-color: rgb(59, 73, 116);
    min-width: 120px;
}

.detail-container a.mono.selected {
	background-color: rgb(68, 128, 20);
}

.detail-container a.mono:before {
	content: "☐";
	margin-right: 6px;
}

.detail-container a.mono.selected:before {
	content: "☑";
}

#tab-id-tt-content .dropzone {
	width: 290px;
	margin-top: 8px;
}

#tab-id-tt-content .table-container .body > table > tbody > tr > td:not(.collapsed):nth-child(n+2) {
	min-width: 180px;
}

#tab-id-qc-content .table-container .body > table > tbody > tr > td:not(.collapsed):nth-child(n+4),
#tab-id-product-config-content .table-container .body > table > tbody > tr > td:not(.collapsed):nth-child(n+3) {
	min-width: 140px;
}

#tab-id-bom-tree-content .table-container .body > table > tbody > tr > td:not(.collapsed):nth-child(n+5),
#tab-id-bom-content .table-container .body > table > tbody > tr > td:not(.collapsed):nth-child(n+4) {
	min-width: 100px;
}

.table-editor-container .cell .sync-flag {
	display: inline-block;
	color: rgb(255, 169, 5);
}

.table-editor-container .cell.selected-choice,
.table-editor-container .cell.final {
	color: rgb(123, 240, 190);
}

.table-editor-container .cell.sub {
	font-style: italic;
}

.table-editor-container .cell.sub:before {
	content: "➞ ";
	color: rgb(110, 123, 185);
}

.table-editor-container tr.level-0 .tree-ctrl {
	background-color: rgb(55, 59, 103);
}

.product-config-editor .header > *:last-child {
	float: right;
}

.product-config-editor .header {
	display: flex;
	justify-content: space-between;
	width: 100%;
	border-bottom: 2px solid rgb(113, 133, 173);
	padding-bottom: 8px;
	margin-bottom: 8px;
}

.product-config-editor .bom-panel {
	display: inline-block;
	width: 100%;
}

.product-config-editor button {
	float: right;
	margin-top: 8px;
	margin-right: 4px;
	box-sizing: border-box;
	min-width: 150px;
}

.product-config-editor .sub {
	background-color: rgba(128, 117, 113, 0.12);
}

.product-config-editor .bom-item {
	width: 100%;
	padding-top: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgb(23, 27, 35);
	display: inline-block;
	position: relative;
}

.product-config-editor .bom-item > * {
	min-width: 22px;
	vertical-align: top;
}

.product-config-editor .bom-item .dd-select,
.product-config-editor .bom-item .description,
.product-config-editor .bom-item .level {
	padding-left: 8px;
	box-sizing: border-box;
}

.product-config-editor .bom-item .description {
	margin-right: 8px;
}

.product-config-editor .bom-item > .quantity {
	padding-left: 8px;
}

.product-config-editor .bom-item .editor {
	white-space: nowrap;
}

.product-config-editor .bom-item .editor > * {
	margin-left: 8px;
}

.product-config-editor .bom-item input.quantity {
	width: 40px;
	margin-left: 0;
}

.product-config-editor .bom-item .edit-choice {
	margin-left: 8px;
	background-color: rgb(2, 80, 93);
}

.product-config-editor .bom-item .level-num {
	margin-right: 8px;
}

.product-config-editor .bom-item .offset:before {
	content: "␣";
	display: inline-block;
	width: 18px;
	visibility: hidden;
}

.product-config-editor .bom-item .select-panel {
	margin-top: 4px;
	margin-left: 32px;
	margin-right: 0;
	white-space: nowrap;
	display: flex;
}

.product-config-editor .bom-item .dd-select {
	padding: 0;
	margin: 0;
	border: 2px solid rgb(125, 151, 128);
	min-height: 24px;
	max-height: 180px;
	min-width: 24px;
    overflow-y: auto;
    display: inline-block;
    box-sizing: border-box;
    white-space: pre-wrap;
    flex-grow: 1;
}

.product-config-editor .bom-item .dd-select:not(.disabled) {
	box-shadow: rgba(29, 32, 36, 0.9) 1px 8px 8px;
    -webkit-box-shadow: rgba(29, 32, 36, 0.9) 1px 8px 8px;
    -moz-box-shadow: rgba(29, 32, 36, 0.9) 1px 8px 8px;
}

.product-config-editor .bom-item .dd-select.disabled a {
	cursor: default;
}

.product-config-editor .bom-item .dd-select:not(.disabled) input {
	display: none;
}

.product-config-editor .bom-item .dd-select a {
	display: block;
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 12px;
    padding-left: 12px;
    background-color: rgb(58, 80, 89);
    border-bottom: 1px solid rgb(125, 151, 128);
}

.product-config-editor .bom-item .dd-select a.selected {
	background-color: rgb(3, 143, 76);
}

.product-config-editor .duration {
	width: 82px;
}

.bom-stock .link-editor-content .link-editor-item {
	display: block;
	min-height: 30px;
}

#dialog-new-stock input {
	box-sizing: border-box;
    width: 99%;
}

.table-editor-container .detail-container .tabs-panel {
	z-index: 1;
}

#dialog-wp-mat label {
	display: inline-block;
	margin-right: 6px;
	margin-top: 8px;
	margin-bottom: 7px;
	color: rgb(233, 233, 254);
}

#dialog-wp-mat input {
	width: 60px;
}

#dialog-wp-mat .line-config-corresponding span:after {
	content: "⚠";
	padding-left: 4px;
	padding-right: 4px;
	background-color: rgb(190, 38, 84);
}

#dialog-wp-mat .line-config-corresponding.selected span:after {
	content: "✓";
	padding-left: 4px;
    padding-right: 4px;
	background-color: green;
}

#dialog-wp-mat .oc .operation {
	margin-top: 2px;
	padding: 2px;
	padding-left: 6px;
	padding-right: 6px;
	background-color: rgb(78, 69, 92);
}

#dialog-wp-mat .oc .type {
	color: silver;
}

#dialog-wp-mat > div {
	border-bottom: 1px dashed rgb(64, 63, 97);
}