body {
	background: #555;
	color: #fff;
	font-family: sans-serif, Arial;
	width: 100%;

	width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0.5%;
	padding-bottom: 40px;
}

.hide {
	display: none !important;
}

* {
	box-sizing: border-box;

	cursor: url(../icons/mcurs.svg) 0 0, auto;
}

p {
	margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
	display: inline-block;
	vertical-align: top;
	position: relative;
	top: -3px;
}
h1 {
	margin: 0 0 0 20px;
}
h2 {
	font-size: 15px;
	margin: 5px 0 0 0;
}
h3 {
	font-size: 14px;
	margin: 0 0 10px 0;
	display: block;
}

.button {
	background: #ddd;
	padding: 1px 5px;
	border: 2px solid rgba(0,0,0,0.3);
	color: #000;
	display: inline-block;

	cursor: url(../icons/mpoint.svg) 0 0, auto;
}
.button:active {
	background: #ccc;
	border: 2px solid rgba(0,0,0,0.3);
}

.tabs button {
	height: 40px;
	border-width: 0 2px 0 0;
	border-color: black;
	border-style: solid;
	background: #fff;
	border-collapse: collapse;
	padding: 0 4px;
}
.tabs button:first-child {
	border-width: 0 2px;
}

.dbConnInfo {
	border: 2px solid rgba(0,0,0,0.3);
	color: #000;
	font-size: 18px;
	text-align: center;
	
	padding: 7px;
	border-radius: 8px;
	float: right;
}
.dbConnInfo.demo {
	background: red;
	width: calc(100% - 600px);
}
.dbConnInfo.live {
	background: #2eb82e;
	width: 500px;
}

ul.menu {
	font-weight: bold;
	list-style: none;
	padding: 0;

	margin-top: 0;
	margin-bottom: 10px;
	vertical-align: top;
	display: flex;
	
	gap: 0;
	border-radius: 14px 14px 5px 5px;
	border: 2px solid #ddd;
	width: min-content;
	
	box-shadow: 0 0 7px rgba(0, 100, 255, 0.4), 0 0 10px rgba(0, 100, 255, 0.2);
}
ul.menu > li {
	display: inline-block;
	width: 170px;
	vertical-align: top;
	position: relative;
	padding: 6px;
	text-align: center;
}
ul.menu > li:not(:first-child) {
	border-left: 2px solid #fff;
}

ul.menu li > ul {
	display: none;
	padding: 0;
	position: absolute;
	min-width: calc(100% + 5px);
	left: -1px;
	margin-top: 24px;
	margin-left: -2px;
	
	font-weight: normal;

	z-index: 9999;

	border: 2px solid #ddd;
	border-radius: 5px 5px 14px 14px;
	overflow: hidden;
	
	box-shadow: 0 0 7px rgba(0, 100, 255, 0.4), 0 0 10px rgba(0, 100, 255, 0.2);
}
ul.menu li > ul a {
	color: #fff;
	text-decoration: none;
	display: block;
	width: 100%;
	padding: 6px;
	display: block;
	width: 100%;
	padding: 6px;
	position: relative;
	z-index: 1;
	transition: color 0.3s ease;
}
ul.menu li > ul li {
	background: #555;
	position: relative;
	overflow: hidden;
	transition: 0.5s ease, box-shadow 0.5s ease;
	
	border-width: 3px 0px;
	border-style: solid;
	border-color: rgba(255, 255, 255, 0);
	padding: 5px 10px;
}
ul.menu li > ul li::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0, 175, 0, 1), rgba(35, 100, 35, 1));
	transform: translateX(-100%);
	transition: 0.5s ease;
	z-index: 0;
}
ul.menu li > ul li:hover {
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
	border-color: rgba(255, 255, 255, 1);
}
ul.menu li > ul li:hover::before {
	transform: translateX(0);
}

ul.menu li > ul li:hover a {
	cursor: url(../icons/mpoint.svg) 0 0, auto;
	color: #e8ffe8;
}
ul.menu li:hover > ul {
	display: inline-block;
}



table.data {
	font-size: 12px;
	cursor: url(../icons/mpoint.svg) 0 0, auto;
}
table.data {
	width: 100% !important;
}
table tbody {
	border-collapse: collapse;
}
table.data thead td {
	background-color: rgba(255,255,255,0.5);
	font-weight: bold;
}
table.data thead td::before {
	margin-top: -2px;
}
table.data thead td::after {
	margin-top: 2px;
}

table.data tbody tr:nth-child(odd) > td {
	background-color: rgba(255,255,255,0.1);
}
table.data tbody td {
	padding: 2px 4px;
	vertical-align: top;
}
.dataTables_filter {
	position: relative;
	top: -8px;
}

.blockLeft {
	width: 50%;
	display: inline-block;
	padding-right: 5px;
	vertical-align: top;
}
.blockRight {
	width: 50%;
	display: inline-block;
	padding-left: 5px;
	vertical-align: top;
}
.w1 { width: 10%; }
.w2 { width: 20%; }
.w25 { width: 25%; }
.w3 { width: 30%; }
.w4 { width: 40%; }
.w5 { width: 50%; }
.w6 { width: 60%; }
.w7 { width: 70%; }
.w75 { width: 75%; }
.w8 { width: 80%; }
.w9 { width: 90%; }


.orderList,
.personList,
.threadList {
	width: 60%;
	display: inline-block;

	overflow-x: scroll;
	overflow-y: scroll;

	vertical-align: top;
	float: left;
	margin-bottom: 40px;
}

table.dataTable>tbody>tr {
	transition: background-color 0.5s ease-out;
}
table.dataTable>tbody>tr:hover {
	background-color: rgba(135,155,200,0.5);
}

.personModal .personList {
	width: 100%;
}

.orderDetails,
.personDetails {
	width: 40%;
	display: inline-block;
	padding: 10px;
	vertical-align: top;
	float: right;
	margin-bottom: 40px;
}
.orderDetails label,
.personDetails label {
	padding-bottom: 2px;
	display: inline-block;
}

#currentPerson {
	width: auto;
}
#currentPerson > div {
	display: inline-block;
	width: auto;
	padding-right: 6px;

	font-size: 10px;
	vertical-align: bottom;
}
#currentPerson > div > span {
	font-size: 16px;
	padding-left: 5px;
}

.order_orderitemInfo, .order_orderStateInfo {
	padding: 2.5px 6px;
	background: rgba(246, 168, 24, 0.5);
	border-radius: 6px;
	margin-right: 5px;
	margin-bottom: 5px;
	display: inline-block;
	width: max-content;

	cursor: url(../icons/mpoint.svg) 0 0, auto;
}
.order_orderStateInfo {
	font-weight: bold;
}

/* HOVER BLOCK */
.order_orderitemInfo .orderitemHoverinfo {
	position: absolute;
	background: rgba(255,255,255,0.8);
	z-index: 999;
	color: #000;
	padding: 7px;
	border-radius: 7px;
	margin-left: -7px;
	margin-top: 5px;
	max-width: 300px;

	display: none;
}
.order_orderitemInfo:hover .orderitemHoverinfo {
	display: block;
}
.order_orderitemInfo .orderitemHoverinfo:hover {
	/* hover shouldnt get inherited! */
	display: none;
}

.orderList input[type="search"] {
	color: #fff;
}

#orderDetails {
	position: relative;
}

.orderDetails div.batchOrderitemState {
	margin: 10px 0 0 0;
	padding: 6px;
	border-radius: 6px 6px 0px 0px;
	text-align: left;
	border-top: 2px solid white;
	border-right: 2px solid white;
	border-left: 2px solid white;
}


form {
	margin-bottom: 8px;
}

form input,
form textarea{
	margin-bottom: 6px;
}
form input:not([type="checkbox"]):not([type="radio"]):not(.note-editable) {
  width: 100%;
}
form span.input {
	background: white;
	color: #000;
	font-size: 14px;
	padding: 2px;
	border: 2px solid #ccc;
	display: block;
	width: 100%;

	min-height: 25px;
}
form textarea {
	max-width: 100%;
	min-width: 100%;

	height: 200px;
}
form.orderitemDetails textarea {
	height: 120px;
}
form.orderitemDetails textarea.commentExtern {
	height: 240px;
}

form.orderitemDetails .articleSelectionRow {
	gap: 8px;
	align-items: center;
}

form.orderitemDetails .articleSelectionRow .button.small {
	padding: 2px 8px;
	font-size: 12px;
}

form.orderitemDetails .articleDetails {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid #555;
	border-radius: 4px;
	padding: 6px;
	margin-bottom: 10px;
	margin-top: 4px;
}

form.orderitemDetails .articleDetails div:last-child {
	margin-bottom: 0;
}

form.orderitemDetails .colorPreview {
	display: inline-block;
	width: 50%;
	padding: 2px;
	min-height: 16px;
	border: 1px solid #ccc;
	margin-left: 6px;
	vertical-align: middle;
}
form.orderitemDetails .colorPreview span {
	padding: 1px;
	display: block;
}


.articleSelectModal .articleSelectActions {
	text-align: right;
	margin-bottom: 10px;
	position: sticky;
	top: 10px;
}

form input:read-only {
	color: #555;

}
form .money::after {
	content: '€';
}



/* specific form styles BEGIN */
.orderDetails span.input#person {
	width: calc(100% - 100px);
	display: inline-block;
}
.orderDetails .button#selectUser {
	width: 97px;
	text-align: center;
	margin-top: -1px;
	padding: 1px;
	
	float: right;
}
.orderDetails .button#selectUser .icon {
	width: 23px;
	height: 21px;
}
/* specific form styles END */




.icon {
	width: 30px;
	height: 34px;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

button {
	border-radius: 5px;
	border: 2px solid rgba(0,0,0,0.3);
}
.mainButtons button
{
	height: 38px;
	width: 130px;
}

button {
	cursor: url(../icons/mpoint.svg) 0 0, auto;
}
button.reload
{
	background-color: #00b8e6;
}
button.new,
button.save,
button.addOrderitem
{
	background-color: #2eb82e;
}
button.cancel,
button.delete,
button.removeOrderitem
{
	background-color: #ff5c33;
}
button.addEmptyOrderitem
{
	background-color: #A57E36;
}

button.printOrderGross {
	background-color: #f2d04a;
	filter: saturate(0.7);
}
button.printOrderNet {
	background-color: #8de48d;
	filter: saturate(0.7);
}

button:hover
{
	filter: saturate(1.5);
}
button:active
{
	filter: hue-rotate(25deg);
}

button.disabled {
	filter: grayscale(70%);
}

button.cancel {
	height: 38px;
	width: 130px;
	font-weight: bold;
}

button.inlineButton {
	padding: 0 8px;
	border: 1px solid white;
}


.filterDropdownContainer {
	display: inline-block;
	vertical-align: middle;
	margin-left: 15px;
}

.filterDropdownContainer label {
	color: #fff;
	font-weight: bold;
	vertical-align: middle;
}

.filterDropdownContainer select.orderFilter {
	height: 38px;
	padding: 5px 10px;
	font-size: 14px;
	background: #fff;
	border: 2px solid rgba(0,0,0,0.3);
	border-radius: 3px;
	cursor: url(../icons/mpoint.svg) 0 0, auto;
	min-width: 250px;
	font-weight: bold;

	border: 2px solid rgba(0,0,0,0.25);
}


form.disabled input,
form.disabled textarea {
	background: #999;
	pointer-events: none;
}
form.disabled input:active,
form.disabled textarea:active {
	background: #a00;
}
form.disabled input:focus,
form.disabled textarea:focus {
	background: #700;
	outline: none;
}


/* Farbe blau Status, Produktion abgeschlossen, abgeholt & abgeschlossen */
table.orderItemData tr.State_4,
table.orderItemData tr.State_5,
table.orderItemData tr.State_6
{
	color: #aebeff;
}
/* Farbe rot Status storniert */
table.orderItemData tr.State_7
{
	color: #ffaeae;
}


/* Batch OrderitemState Selectors */
div.batchOrderitemState .batchOrderitemStateName {
	display: inline-block;
}
div.batchOrderitemState .batchOrderitemStateName {
	display: inline-block;
	vertical-align: top;
	font-weight: normal;
	line-height: 16px;

	padding-left: 10px;
}
div.batchOrderitemState input {
	display: none;
}
div.batchOrderitemState input + label {
	transition: all 0.5s ease;

	display: inline-block;
	text-align: left;
	width: 40px;
	overflow: hidden;
	white-space: nowrap;

	background: #aaa;
	border: 2px solid rgba(0,0,0,0.75);
	padding: 1px 3px;

	cursor: url(../icons/mpoint.svg) 0 0, auto;
	position: relative;

}
div.batchOrderitemState > label:not(:first-of-type) {
	margin-left: -2px;
}
div.batchOrderitemState > label:first-of-type {
	border-radius: 10px 0 0 10px;
}
div.batchOrderitemState > label:last-of-type {
	border-radius: 0 10px 10px 0;
}

div.batchOrderitemState input:checked + label{
	font-weight: bold;
	background: rgb(46,184,46);
	width: 165px;
	color: #000;

	box-shadow: -1px 0px 2px 2px rgba(0,255,0,0.45);
	z-index: 999;
}



.loading-container {
	position: relative;
}

.loading {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 9999;
	display: none;
}

.loading:after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin: -25px 0 0 -25px;
	border-radius: 50%;
	border: 5px solid #ccc;
	border-top-color: #333;
	animation: spin 1.5s infinite linear;
}

/* articlecolor */
.tab_colorsize {
	margin-top: 10px;
}
.tab_colorsize button {
	margin-top: -4px;
	margin-left: 10px;
	padding: 2px 12px;
}




@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}




.imgInputPasteContainer {
	display: none;
}

/* Person Comparison Styles */
.comparison-container {
	display: flex;
	gap: 20px;
	margin-top: 10px;
}

.comparison-column {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.comparison-column label {
	margin-top: 8px;
	font-weight: normal;
	font-size: 12px;
	color: #ccc;
}

.comparison-column input,
.comparison-column textarea {
	width: 100%;
}

.comparison-column.invoiceplane input {
	background-color: #444;
	border-color: #666;
	color: #aaa;
}

input.different,
textarea.different {
	background-color: #664400 !important;
	border: 2px solid #ff9900 !important;
}

.field-with-sync {
	position: relative;
	display: flex;
	flex-direction: column;
}

.sync-field-btn {
	position: absolute;
	right: 5px;
	top: 28px;
	width: 30px;
	height: 25px;
	padding: 2px;
	background: #ff9900;
	border: 1px solid #cc7700;
	color: #000;
	font-weight: bold;
	cursor: pointer;
	font-size: 14px;
}

.sync-field-btn:hover {
	background: #ffaa22;
}

.sync-field-btn:disabled {
	background: #666;
	color: #999;
	cursor: not-allowed;
}

/* Deadline Warning Bar */
.deadlineBar {
	position: fixed;
	bottom: -36px;
	left: 0;
	right: 0;
	background: #ccc;
	padding: 4px 15px 10px 15px;
	font-weight: bold;
	font-size: 13px;
	z-index: 1000;
	border-top: 2px solid orange;
	box-shadow: 0 -2px 4px rgba(255,255,0,0.3);
	overflow: visible;
	white-space: nowrap;
	cursor: url(../icons/mcurs.svg) 0 0, auto;
	
	transition: bottom 0.6s ease-out;
}

.deadlineBar.dragging {
	cursor: url(../icons/mpoint.svg) 0 0, grab;
	user-select: none;
}

.deadlineBar #deadlineBarContent {
	display: inline-block;
	
	transition: transform 0.2s ease-out
}

.deadline-item {
	display: inline-block;
	padding: 4px 10px;
	margin: 0 4px;
	background: rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	cursor: url(../icons/mpoint.svg) 0 0, auto;
	transition: all 0.2s ease;
	position: relative;
}

.deadline-item:hover {
	background: rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

.deadline-item.overdue {
	background: #ff3333;
	color: #fff;
	font-weight: bold;
}

.deadline-item.today {
	background: #ffcc00;
	color: #000;
}

.deadline-item.soon {
	background: rgba(255, 255, 255, 0.3);
	color: #000;
}

/* Tooltip für deadline items */
.deadline-item > span {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 8px;
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
	z-index: 9999;
	white-space: nowrap;
	visibility: hidden;
	pointer-events: none;
}

/* Edge cases - zu nah an Rändern */
.deadline-item > span.edge-left {
	left: 0;
	transform: none;
}

.deadline-item > span.edge-right {
	left: auto;
	right: 0;
	transform: none;
}

/* jquery confirm dialog */
.jconfirm {
	color: #000;
}