body
{
	font-size: 17px;
	color: black;
	font-family: 'Roboto Slab', serif;
	padding: 0;
	background-image: url('/img/pcb.png');
	background-repeat: repeat;
}
#body-wrapper
{
	display: none;
}
#flags
{
	display: inline-block;
	position: relative;
	top: -2px;
	margin-right: 10px;
}
#flags img
{
	height: 20px;
}
#top
{
	background-image: url('/img/pcb-top.png');
	background-repeat: repeat;
	margin: 0;
	padding: 10px;
	position: relative;
}
#top-right
{
	position: absolute;
	right: 10px;
	top: 15px;
	display: inline-block;
}
#top-right a
{
	display: inline;
}
#introduction button.close
{
	margin-top: 0;
}
.dropdown-toggle
{
	cursor: pointer;
}
#top-right .dropdown-menu a
{
	width: 100%;
	display: block;
}
#top-right .dropdown-menu a:hover
{
    background: lightblue;
}
#main
{
	height: calc(100vh - 58px);
	padding: 0;
	margin: 0;
}
input[type='text']::-ms-clear
{
	display: none; /* remove X button that Edge adds on all text inputs */
}
.splitter_panel .vsplitter, .splitter_panel .left_panel, .splitter_panel .right_panel
{
	height: calc(100vh - 58px) !important;
}
.splitter_panel .vsplitter
{
	z-index: 0 !important;
	cursor: ew-resize;
	background-image: url('/img/pcb-left.png');
	background-repeat: repeat;
	background-position: -25px -58px;
}
#left
{
	overflow-x: auto;
	white-space: nowrap;
	background-image: url('/img/pcb-left.png');
	background-repeat: repeat;
	background-position: 0px -58px;
}
.tree-expander
{
	position: fixed;
}
#tree-expander-collapse
{
	top: 47%;
	right: 0;
	font-size: 45px;
	z-index: 3;
	display: none;
}
#tree-expander-expand
{
	top: 55%; /* not 47% as collapse button because position is different after transform */
	left: 0;
	z-index: 3;
	display: none;
	transform-origin: top;
	transform: translateX(-50%) rotate(-90deg);
}
@media screen and (max-width: 599.99px)
{
	/* right side is made 100% wide via JS because splitter must be manipulated via JS*/
	#tree-expander-expand
	{
		display: block;
	}
	#login-email
	{
		display: none;
	}
	#login-icon
	{
		display: inline;
	}
}
@media screen and (min-width: 600px)
{
	#login-email
	{
		display: inline;
	}
	#login-icon
	{
		display: none;
	}
}
@media screen and (max-width: 699px)
{
	#inventory
	{
		width: 150px;
	}
}
@media screen and (max-width: 576px)
{
	#inventory
	{
		display: inline;
	}
	
	#inventory-mine
	{
		display: inline-block;
	}
	
	#inventory-form-group
	{
		margin-bottom: 0;
	}
}
@media screen and (max-width: 337px)
{
	#inventory-form-group .input-group-addon
	{
		display: none;
	}
}
.ui-autocomplete.ui-widget
{
	font-family: 'Roboto Slab', serif;
}
.ui-menu-item .ui-menu-item-wrapper.ui-state-active
{
    background: lightblue;
    color: black;
}
.form-inline .form-group label
{
	margin-right: 10px;
}
a.btn-primary
{
	color: white;
}
#parts-count
{
	margin-left: 10px;
	margin-top: 5px;
}
.search-parts-advanced
{
	margin-left: 10px;
	display: flex;
	gap: 20px;
}
@media screen and (max-width: 1090.99px)
{
	.search-parts-advanced-lowres-row1,
	.search-parts-advanced-lowres-row2
	{
		display: flex;
	}
	.search-parts-advanced-highres
	{
		display: none;
	}
}
@media screen and (min-width: 1090px)
{
	.search-parts-advanced-lowres-row1,
	.search-parts-advanced-lowres-row2
	{
		display: none;
	}
	.search-parts-advanced-highres
	{
		display: flex;
	}
}
@media screen and (max-width: 830.99px)
{
	#button-about-text
	{
		display: none;
	}
	#button-about-icon
	{
		display: inline;
	}
}
@media screen and (min-width: 831px)
{
	#button-about-text
	{
		display: inline;
	}
	#button-about-icon
	{
		display: none;
	}
}
@media screen and (max-width: 764.99px)
{
	#button-allparts-text
	{
		display: none;
	}
	#button-allparts-icon
	{
		display: inline;
	}
}
@media screen and (min-width: 765px)
{
	#button-allparts-text
	{
		display: inline;
	}
	#button-allparts-icon
	{
		display: none;
	}
}
@media screen and (max-width: 563.99px)
{
	#button-registration-text,
	#button-signin-text
	{
		display: none;
	}
	#button-registration-icon,
	#button-signin-icon
	{
		display: inline;
	}
}
@media screen and (min-width: 564px)
{
	#button-registration-text,
	#button-signin-text
	{
		display: inline;
	}
	#button-registration-icon,
	#button-signin-icon
	{
		display: none;
	}
}
@media screen and (max-width: 420px)
{
	#button-allparts
	{
		display: none !important;
	}
}
@media screen and (max-width: 375px)
{
	#button-about
	{
		display: none !important;
	}
}
#search-parts .fa-info-circle
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 21px;
	right: 0;
	cursor: pointer;
}
@media screen and (max-width: 768px)
{
	#search-parts .fa-info-circle
	{
		display: none;
	}
}
form#regform, form#regokform, form#signinform, form#forgottenpasswordform,
form#profileform, form#profileokform, form#locationsform, form#aboutform, form#manufacturersform, form#footprintsform,
form#privacypolicyform
{
	margin: 0 auto;
	width: 520px;
	background: lightblue;
	padding: 20px;
	position: relative;
}
form#aboutform
{
	width: 700px;
}
@media screen and (max-width: 720px)
{
	form#aboutform
	{
		width: 520px;
	}
}
#regform-top
{
	background: lightgreen;
	text-transform: uppercase;
	font-size: 20px;
	letter-spacing: 2px;
	margin: 0 auto;
	width: 350px;
	text-align: center;
	padding: 20px;
}
#register-loader, #signin-loader, #forgottenpassword-loader, #profile-loader
{
	position: absolute;
	right: 20px;
	bottom: 23px;
	display: none;
}
.btn[disabled]
{
	cursor: not-allowed;
}
.checkbox label
{
	padding-left: 0;
	cursor: default;
}

input[type=checkbox], input[type=radio] {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    line-height: 12px;
}

/* custom checkboxes https://community.mybb.com/thread-220715.html */
input[type=checkbox]:after, input[type=radio]:after {
    content: "\f111";
    color: white;
    display: block;
    border-radius: 0px;
	font-size: 20px;
}
input[type=checkbox]:checked:before {
    position: absolute;
    content: "\f058";
    color: #0069d9;
	font-size: 20px;
}

input[type=checkbox] {
	margin-top: 15px;
}

#forgotten-password
{
	position: absolute;
	left: 10px;
	bottom: 10px;
}
#categories-loader
{
	position: absolute;
	top: 40vh;
	left: 45%;
}
#categories-loading-error
{
	position: absolute;
	top: 45vh;
	left: 25%;
	display: none;
}
.ztree *
{
	font-family: 'Roboto Slab', serif !important;
	font-size: 17px !important;
}
.ztree .node_name
{
	margin-left: 5px;
}
.ztree li a.curSelectedNode
{
	border: 0 !important;
	background: lightblue !important;
	padding: 0 !important;
	height: 24px !important;
}
.ztree li a
{
	color: black !important;
	height: 24px !important;
	width: calc(100% - 15px); /* make selection go to the right (stretch) */
	padding: 0 !important;
}
.ztree li
{
	line-height: 24px !important;
}
.ztree li span.button.ico_close,
.ztree li span.button.ico_open,
.ztree li span.button.ico_docu
{
	vertical-align: top !important;
	margin-top: 4px;
}
.ztree li span.button.ico_close,
.ztree li span.button.ico_open,
.ztree li span.button.ico_docu,
.ztree li span.button.root_open,
.ztree li span.button.roots_open,
.ztree li span.button.center_open,
.ztree li span.button.bottom_open,
.ztree li span.button.root_close,
.ztree li span.button.roots_close,
.ztree li span.button.center_close,
.ztree li span.button.bottom_close
{
	background: none !important; /* hide default icon */
}
.ztree li span.button.ico_close::after
{
    font-family: "Font Awesome 5 Free" !important;
    content: "\f07b";
	line-height: 18px !important;
}
.ztree li span.button.ico_open::after
{
    font-family: "Font Awesome 5 Free" !important;
    content: "\f07c";
	line-height: 18px !important;
}
.ztree li span.button.ico_docu::after
{
    font-family: "Font Awesome 5 Free" !important;
    content: "\f03a";
	font-weight: 900; /* without this the icon does not work */
	line-height: 16px !important;
}
.ztree li span.button.roots_close::after,
.ztree li span.button.root_close::after,
.ztree li span.button.center_close::after,
.ztree li span.button.bottom_close::after
{ /* minus icon */
    font-family: "Font Awesome 5 Free" !important;
    content: "\f0fe";
	line-height: 16px !important;
}
.ztree li span.button.roots_open::after,
.ztree li span.button.root_open::after,
.ztree li span.button.center_open::after,
.ztree li span.button.bottom_open::after
{ /* plus icon */
    font-family: "Font Awesome 5 Free" !important;
    content: "\f146";
	line-height: 16px !important;
}

#categories-filter
{
	margin: 10px 0 10px 10px;
	padding-left: 35px;
	padding-right: 35px;
}
#left .fa-search
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 21px;
	left: 22px;
	z-index: 4; /* bootstrap has z-index 4 on focused textbox which would make this icon disappear */
}
#left .fa-times
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 21px;
	right: 12px; /* a different offset when inventory is set, thus filter button is visible */
	cursor: pointer;
	display: none;
	z-index: 4; /* bootstrap has z-index 4 on focused textbox which would make this icon disappear */
}
#left .fa-times.inventory-set
{
	right: 62px; /* a different offset when inventory is set, thus filter button is visible */
}
#categories-filter-inventory
{
	margin: 10px 10px 10px 0;
}
#parts-filter
{
	margin: 10px;
	width: calc(100% - 20px);
	padding-left: 35px;
	padding-right: 35px;
}
#search-parts .fa-search
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 21px;
	left: 36px;
}
#search-parts .fa-times
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 21px;
	right: 38px;
	cursor: pointer;
	display: none;
}
.category-path
{
	padding-left: 10px;
	padding-right: 5px;
	white-space: nowrap;
	overflow-x: hidden;
	text-overflow: ellipsis;
    direction: rtl;
    text-align: left;
}
#search-parts-with-category-path
{
	width: 100%; /* otherwise it goes beyond right browser boundary */
}
@media (max-width: 767px)
{
	#search-parts
	{
		padding-right: 0;
	}
}
#parts-loader, #part-loader
{
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: none;
	z-index: 100;
}
#parts-results
{
	padding: 10px;
	width: calc(100% - 10px);
}
#parts-noresults
{
	display: none;
	text-align: center;
	margin-top: 50px;
	font-size: 22px;
}
#parts-loadmore
{
	text-align: center;
	margin-bottom: 10px;
}
.part-result
{
	padding-top: 10px;
	padding-bottom: 10px;
	flex-wrap: nowrap;
}
.part-result:hover
{
	background-color: lightgray;
}
.part-picture
{
	margin-left: 15px;
}
.part-picture img, .part-picture div,
.footprint-picture img, .footprint-picture div
{
	width: 120px;
	box-shadow: 0 0 4px 4px rgba(173, 216, 230, .9);
}
.part-picture div,
.footprint-picture div
{
	height: 120px;
	color: gray;
	background-color: white;
	font-size: 80px;
	font-weight: bold;
	text-align: center;
}
.part-category-path
{
	text-align: right;
}
.part-datasheet
{
	text-align: right;
}
.part-middle
{
	flex-grow: 1;
	margin-left: 15px;
	margin-right: 15px;
}
.part-right
{
	flex-grow: 1;
	margin-right: 15px;
}
.part-name
{
	font-size: 22px;
}
#locationsform .input-group,
#manufacturersform .input-group
{
	margin-top: 10px;
	margin-bottom: 10px;
}
#locationsform .save, #locationsform .ok,
#manufacturersform .save, #manufacturersform .ok
{
	display: none;
}
.alert
{
	margin-bottom: 0;
}
.alert .close
{
	margin-top: 5px;
}
#usersform table
{
	margin: 0 auto;
}
#usersform td
{
	padding: 0 10px 0 10px;
}
#usersform .country img
{
	width: 20px;
	margin-right: 5px;
	margin-top: -5px;
	display: inline-block;
}
#usersform .country span
{
	display: inline-block;
}
form#usersform
{
	margin: 0 auto;
	background: lightblue;
	padding: 20px;
	position: relative;
}
#part-detail
{
	display: none;
}
#part-detail button.back,
#part-detail button.save,
#part-detail button.remove,
#part-detail button.saveandstay
{
	position: relative;
	top: 10px;
}
#part-detail .form-horizontal
{
	margin-left: 20px;
	width: calc(100% - 35px);
}
#footprint-img-div-wrapper img, #footprint-img-div-wrapper div,
#picture-img-div-wrapper img, #picture-img-div-wrapper div
{
	display: none;
	width: 120px;
	box-shadow: 0 0 4px 4px rgba(173, 216, 230, .9);
}
#footprint-img-div-wrapper div,
#picture-img-div-wrapper div
{
	height: 120px;
	color: gray;
	background-color: white;
	font-size: 40px;
	font-weight: bold;
	text-align: center;
	padding-top: 25px;
}
.parts-createnew
{
	position: absolute;
	right: 10px;
	top: 10px;
}
#part-detail .alert
{
	margin-bottom: 10px;
}
abbr
{
	text-decoration: none !important;
	font-variant: none;
}
#category-parameters
{
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 10px;
}
.category-parameter-value input
{
	margin-top: 0;
	margin-right: 5px;
}
.category-parameter-value label
{
	cursor: pointer;
	white-space: nowrap;
}
.search-parts-advanced-item
{
	white-space: nowrap;
}
.search-parts-advanced-item label
{
	cursor: pointer;
	white-space: nowrap;
}
.category-parameter-value
{
	white-space: nowrap;
}
.category-parameter
{
	background-image: url('/img/pcb-top.png');
	background-repeat: repeat;
	padding: 10px 10px 0 10px;
	margin: 5px;
	width: 170px;
	height: 200px;
}
.category-parameter-title
{
	background-image: url('/img/pcb-left.png');
	background-repeat: repeat;
	margin-left: -10px;
	margin-right: -10px;
	margin-top: -10px;
	padding-left: 10px;
	padding-right: 10px;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
}
.category-parameter-values
{
	padding-top: 5px;
	height: calc(100% - 25px);
	overflow: auto;
	position: relative;
}
.category-parameter-title .parameter-expand-collapse-angle
{
	position: absolute;
	top: 4px;
	right: 7px;
}
.swal2-html-container-footprint-picker .swal2-popup
{
	padding-bottom: 0;
	background-image: url('/img/pcb-top.png');
	background-repeat: repeat;
}
.swal2-html-container-footprint-picker .swal2-actions
{
	margin-top: 10px;
	margin-bottom: 10px;
}
.swal2-html-container-footprint-picker #swal2-html-container
{
	margin-top: 0;
}
.swal2-html-container-footprint-picker .swal2-close
{
	color: black;
}
.swal2-html-container-footprint-picker #swal2-html-container
{
	color: black;
}
input[type="checkbox"].footprint-picker-footprint-checkbox:after
{
	color: lightgray;
}
#footprint-picker-content
{
	max-height: calc(90vh - 85px); /* changed via JS on resize */
	height: calc(90vh - 85px); /* changed via JS on resize */
	position: relative;
	background-image: url('/img/pcb.png');
	background-repeat: repeat;
	padding-top: 10px; /* otherwise the top few px are cut off (?) */
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, 130px);
}
#footprint-picker-header
{
	margin-top: 10px;
	margin-bottom: 10px;
	text-align: left;
	display: flex;
	gap: 10px;
}
#footprint-picker-header .fa-search
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 12px;
	left: 15px;
}
#footprint-picker-header .fa-times
{
	position: absolute;
	font-weight: 900; /* without this the icon does not work */
	top: 12px;
	right: 25px;
	cursor: pointer;
	/*display: none;*/
}
#footprint-picker-search
{
	padding-left: 35px;
	padding-right: 35px;
	margin-top: 2px;
}
.footprint-picker-checkbox-wrapper
{
	white-space: nowrap;
	cursor: pointer;
}
#footprint-picker-header #footprint-picker-search-wrapper
{
	padding-left: 5px;
}
.footprint-picker-footprint-name
{
	margin-top: 10px;
}
label[for^='footprint-picker-']
{
	cursor: pointer;
}
@media screen and (max-width: 460px)
{
	#footprint-picker-pins,
	.footprint-picker-checkbox-wrapper,
	.footprint-picker-header-dummy
	{
		display: none;
	}
}
@media screen and (min-width: 280px)
{
	/* hack: there is an unwanted scrollbar when footprint picker is open in certain resolutions */
	.swal2-html-container-footprint-picker
	{
		overflow-y: hidden !important;
	}
}
.footprint-picker-footprint
{
	position: relative;
	cursor: pointer;
}
.footprint-picker-footprint-checkbox
{
	position: absolute;
	right: 15px;
	top: -7px;
}
#allparts-top, #part-top
{
	background: lightgreen;
	text-transform: uppercase;
	font-size: 20px;
	letter-spacing: 2px;
	margin: 0 auto;
	width: 550px;
	text-align: center;
	padding: 20px;
}
.allparts-category
{
	text-align: center;
	margin-top: 30px;
	margin-bottom: 20px;
	font-size: 23px;
}
#allparts-lead, #part-lead
{
	text-align: center;
	margin-top: 30px;
	margin-bottom: 30px;
}
#allparts-main .part-result
{
	margin-left: 30px;
	margin-right: 30px;
}
main.part-page .row
{
	margin-left: 15px;
	margin-right: 15px;
}
main.part-page .label
{
	text-align: right;
}
main.part-page .part-picture,
.footprint-picker-footprint .footprint-picture
{
	text-align: center;
}
main.part-page .part-picture div, 
.footprint-picker-footprint .footprint-picture div
{
	margin-left: auto;
	margin-right: auto;
	display: block;
}
#part-partname
{
	font-size: 23px;
	text-align: center;
	margin-top: 30px;
	margin-bottom: 20px;
}
.allparts-paging
{
	text-align: center;
}
.allparts-paging span
{
	margin-left: 5px;
	margin-right: 5px;
}
.allparts-paging-bottom
{
	margin: 20px auto;
}
#allparts-filter
{
	width: 400px;
}
#allparts-filter-form
{
	width: 500px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 20px;
}
#allparts-results-count
{
	margin-bottom: 20px;
}
.part-bottominfo
{
	width: 70%;
	margin: 20px auto 20px auto;
	display: flex;
}
.part-bottominfo-left
{
	padding-right: 15px;
}
#privacypolicyform-top
{
	background: lightgreen;
	text-transform: uppercase;
	font-size: 20px;
	letter-spacing: 2px;
	margin: 0 auto;
	width: 400px;
	text-align: center;
	padding: 20px;
}
