html, body {
	height: 100%;
	min-height: 100%;
}
body { 
		font-family: Calibri, Arial, Verdana;
		margin: 0;
		padding-top: 50px; 
		font-size: 12px;
	}
	.box { max-width: 400px; padding: 20px; border: 1px solid #ccc; }
	input { width: 100%; padding: 8px; margin: 6px 0; box-sizing: border-box; }
	button { padding: 8px 12px; }
	.error { color: #b00; margin: 8px 0; }

#documents-file-input {
	display: none;
}

#header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 10px;
	text-align: right;
	border-bottom: 1px solid black;
	height: 30px;
	background: #b7b7b7;
	border: 1px solid black;
}

#header a {
	font-size: 16px;
	color: white;
	background: black;
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	text-decoration: none;
	height: 20px;
	line-height: 20px;
}

#wrapper {
	display: flex;
	padding: 0px;
	min-height: 800px;
	height: calc(100% - 60px);
	border-bottom: 1px solid black;
	border-right: 1px solid black;
	
}

#wrapper.wait #documents,
#wrapper.wait #viewer,
#wrapper.wait #repairshopper {
	opacity: 0.2;
}

#wrapper.wait::after{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	content: "Arbejder på sagen.";
	height: 100px;
	width: 400px;
	text-align: left;
	margin: auto;
	display: block;
	opacity: 1;
	z-index: 100;
	font-size: 30px;
	animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
	0%   { content: "Arbejder på sagen."; }
	33%  { content: "Arbejder på sagen.."; }
	66%  { content: "Arbejder på sagen..."; }
	100% { content: "Arbejder på sagen."; }
}

#documents {
	padding: 20px;
	border: 1px solid black;
	border-bottom: none;

}

#documents.disabled {
	opacity: 0.3;
	pointer-events: none;
}

button {
	display: block;
	margin: 5px 0;
	background: #07b;
	color: white;
	border: none;
	border-radius: 3px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: 0.25s;
}

button:disabled {
	opacity: 0.25;
	background: #333;
}

button:not(:disabled):hover {
	background: #046;
}

#documents .document {
	display: flex;
	align-items: center;
	gap: 10px;
}

#documents-docs {
	margin: 0 0 20px 0;
}

#documents .document .doc-remove {
	color: white;
	background: #b00;
	width: 15px;
	height: 15px;
	line-height: 15px;
	text-align: center;
	border-radius: 2px;
	margin-left: auto;
	cursor: pointer;
}

.dropzone {
	border: 1px dashed #333;
	border-radius: 12px;
	padding: 24px;
	cursor: pointer;
	user-select: none;
}
.dropzone.is-dragover {
	border-color: #07b;
	background: rgba(0,0,0,0.04);
}
.status { margin-top: 12px; font-family: system-ui, sans-serif; font-size: 14px; }
.status .ok { color: #0a7a2f; }
.status .err { color: #b00020; }



#viewer #docframe {
	width: 800px;
	height: 100%;
	outline: none;
	border: none;
}

#viewer #docframe[src]:not([src=""]) {
}

#repairshopper {
	border: 1px solid black;
	padding: 20px;
	display: none;
	border-bottom: none;
	border-right: none;

}

input {
	border: 1px solid black;
	display: block;
}

select {
	display: block;
	margin: 5px 0;
}

#repairshopper.show {
	display: block;
}

#match {
	margin: 0 0 20px 0;
}
.error-row {
	margin: 10px 0;
}

.error-row:last-child {

}

.match-row {
	display: flex;
	gap: 5px;
	border-bottom: 1px solid black;
	padding: 2px 0;
}

.match-row label {
	font-size: 12px;
	font-weight: bold;
}

.match-row span {
	margin-left: auto;	
}

h2 {
	margin: 0 0 10px 0;
}
.product-picker { gap:12px; align-items:end; flex-wrap:wrap; position: relative;max-width: 300px;}
.suggestions {
	position:absolute;
	background:#fff;
	border:1px solid #ccc;
	width:min(520px, 100%);
	max-height:260px;
	overflow:auto;
	z-index:9999;
	margin-top:4px;
	top: 55px;
	font-size: 12px;
}
.suggestions .item { padding:8px 10px; cursor:pointer; border-bottom:1px solid #eee; }
.suggestions .item:hover { background:#f5f5f5; }
.suggestions .meta { font-size:10px; opacity:.75; }

#addedProducts { margin-top:14px; }
.added-row { display:flex; gap:10px; align-items:center; padding:8px 10px; border:1px solid #ddd; margin-bottom:8px; }
.added-row .grow { flex:1; }
.added-row input[type="number"] { width:90px; }
.added-row button { cursor:pointer; }

#add-wrapper {
	display: flex;
	gap: 10px;
}

#add-wrapper button,
#add-wrapper input,
#add-wrapper select {
	height: 100%;
	vertical-align: middle;
	margin: 0;
	padding: 10px;
}


#login {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 300px;
	height: 200px;
}
#login input {
	box-sizing: border-box;
}

#sendStatus {
	font-size: 16px;
	margin: 10px 0;
}

#product-picker-wrapper {
	
}

#product-picker-wrapper.disabled {
	opacity: 0.3;
	pointer-events: none;
}




.repairshopr-choose-dialog {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.repairshopr-choose--dialog-box {
	background: white;
	padding: 20px;
	border-radius: 8px;
}

.repairshopr-choose--dialog-box button {
	display: block;
	width: 100%;
	margin: 5px 0;
}