body {
	font-family: monospace;
}

.center { text-align: center !important; }
.right { text-align: right !important; }
.left { text-align: left !important; }
.error { color: #f22; font-size: 0.8em; }
.memo { font-size: 0.8em; }

.mt5px{ margin-top:5px; }
.mt10px{ margin-top:10px; }
.mt15px{ margin-top:15px; }
.mt20px{ margin-top:20px; }
.mb5px{ margin-bottom:5px; }
.mb10px{ margin-bottom:10px; }
.mb15px{ margin-bottom:15px; }
.mb20px{ margin-bottom:20px; }
.mr5px{ margin-right:5px; }
.mr10px{ margin-right:10px; }
.mr15px{ margin-right:15px; }
.mr20px{ margin-right:20px; }
.w50{ width:50px; }
.w100{ width:100px; }
.w150{ width:150px; }
.w200{ width:200px; }
.w250{ width:250px; }

.fright, .f_right { float: right; }
.fleft, .f_left { float: left; }
.clearfloat {
	clear: both;
	font-size: 0;
	width: 0;
	height: 0;
}

/* for input[type=file] */
input.inputFile {
	display: none;
}

label.inputFile,
.showCamera {
	padding: 4px 10px;
	color: #555 !important;
	cursor: pointer;
	border-radius: 4px;
}
label.inputFile{
	background: #fff !important;
}
.showCamera{
	background: #adffcc url(img/shutter_button.svg) no-repeat;
	background-position: 5px 50%;
	background-size: contain;
	padding-left: 33px;
}
.showCamera.stop{
	background: #ffadcc url(img/shutter_button.svg) no-repeat;
	background-position: 5px 50%;
	background-size: contain;
}

span.inputFile {
	margin: 5px 0 0 5px;
}

dialog{
	max-width: 90%;
}
dialog::backdrop{ background-color:rgba(0,0,0,0.7); }

body.noDialog dialog {
	position: fixed !important;
	z-index: 1000;
	top: 50px;
	padding: 0 10px;
	max-width: fit-content;
	left: calc((100% - 720px) / 2);
}

table th,
table td {
	vertical-align: top;
	text-align: left;
	line-height: 24px;
	padding: 0 5px;
}

#anno_edit .verbose,
#anno_edit input[name=c_fn],
#annotationEdit .verbose,
#annotationEdit input[name=c_fn] {
	display: none;
}

dialog#anno_edit,
dialog#anno_progress,
#annotationEdit {
	position: fixed !important;
	font-size: 12px !important;
	line-height: 30px !important;
	padding: 2px 20px;
	border: 30px 10px 10px 10px;
	box-shadow: 1px 1px 5px #000;
}

body.noDialog #annotationEdit {
	z-index: 1000;
	top: 0;
	max-height: calc(100% - 60px);
	overflow-y: auto;
	max-width: 520px;
	left: calc((100% - 520px) / 2);
}

#anno_edit li:first-line,
#annotationEdit li:first-line {
	font-weight: bold;
	padding-left: 0px;
}

#anno_edit li,
#annotationEdit li {
	list-style: none;
	padding-left: 1.2em;
	text-indent: -1.2em;
	line-height: 24px;
}

#anno_edit input,
#anno_edit select,
#annotationEdit input,
#annotationEdit select {
	font-size: 12px !important;
}

#anno_edit #annoedit_title,
#annotationEdit #annoedit_title,
#g8dialog #g8_title {
	position: absolute;
	top: -40px;
	left: 0;
	line-height: 30px;
}
div.annotation.tmp_hidden{ display:none; }

.dialog_content {
	position: relative;
	margin: 10px 0 0 0;
	min-width:300px;
}

.dialog_content .anno_attachment,
.dialog_content iframe {
	position: relative;
	margin-top: 20px;
	width: 100%;
	height: 100%;
	border: none;
}

iframe[src$=".pdf"] {
	width: 100vh !important;
	height: 80vh !important;
}

#anno_edit .dialog_content {
	margin: 50px 0 0 0;
}

#anno_edit #video_canvas{
}
#annotationEdit #video_canvas {
	margin: 0 15px 0 -15px;
	/* max-width: 540px; */
}
#button_div{
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 60px;
}
#camera_p1, #camera_p2{
	margin-block: auto;
}

.button {
	display: inline-block;
	margin: 2px 5px; padding: 2px 7px;
	border: 1px solid #555; border-radius: 5px;
	background-color: #f0f0f0; color: #000;
	text-decoration: none;
	line-height: 20px;
	text-indent: 0;
	min-width:30px;
	text-align:center;
}

.bottom_box {
	display: flex;
	flex-flow: wrap;
	justify-content: space-around;
	align-items: center;
	margin-top: 5px;
	margin-bottom: 1.0em;
}

#post_annotation_image_x {
	width: 60px;
	display: flex;
	flex-flow: wrap;
	justify-content: space-around;
	align-items: center;
}

#captureButton {
	display: inline-block;
	width: 60px;
	height: 40px;
	border-radius: 4px;
	font-size: 0;
	background-color: transparent;
	background-image: url(img/shutter_button.svg);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: contain;
	box-shadow: 1px 1px 5px #000;
	color: transparent;
	margin-bottom: 10px;
}
#cam_capture{
	display: inline-block; width: 40px; height: 40px;
	background-color: #aaa;
	border-radius:50%;
	border: 2px solid #f0f0f0;
	box-shadow: 0 0 5px #000;
	font-size: 0; color:transparent;
	margin: 10px;
}
#cam_capture:hover{
	background-color: #bbb;
}

#annoedit_title {
	top: -50px !important;
	right: 0;
	text-align: left;
}

#annoedit_title h3 {
	font-size: 1.4em;
	line-height: 1.5em;
}

.usf_content .dialog_content {
	margin: 10px 0 0 0 !important;
}

canvas#canvas_2d {
	zoom: 25%;
}

dialog {
	background: #555;
	border: none;
	color: #fff;
	box-shadow: 1px 1px 4px #000;
	border-radius: 4px;
	outline:none;
}

dialog video {
	max-height: 540px;
}

dialog img {
	max-height: 540px;
}

.usf_content dialog#anno_edit {
	color: #000;
	background: #f5f7fa;
}

#potree_annotation_container {
	position: absolute;
	z-index: 100000;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	pointer-events: none;
}

.annotation-titlebar {
	border: 2px solid transparent;
}

.highlight .annotation-titlebar {
	border: 2px solid orange;
}

.annotation-description table.viewer {
	position: relative;
	width: 100%;
}

#anno_edit table {
	border-spacing: 1px;
	width: 540px;
}

#anno_edit table th,
#anno_edit table td {
	padding: 2px 10px;
	vertical-align: top;
	text-align: left;
}
