.oaws_scan_box {
    padding: 15px;
    border: 1px dashed var(--oaws-border-color);
    border-radius: 5px;
	overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    width: 500px;
    max-width: 100%;
    margin-bottom: 10px;
    .status {
        color: green;
    }
    .cancelled {
        color: red;
    }
}
.oaws_scan_attachment {
    display: flex;
    gap: 10px;
}
.button.loading {
    position: relative;
    pointer-events: none;
    &::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: url(../images/loading.gif) rgba(0,0,0,0.6) no-repeat center;
        left: 0;
        top: 0;
        background-size: 20px;
    }    
}
#oaws_loader_outer {
    background-color: #fff;
    border: 1px solid #c3c3c3;
    border-radius: 10px;
    display: none;
    height: 20px;
    width: 50%;
}
#oaws_loader_inner {
    background: #047BB5;
    border-radius: 9px;
    height: 100%;
    width: 0;
}
.oaws_notice p {
    margin: 10px 0 0 0;
    padding: 10px 15px;
    border-left: 3px solid var(--oaws-shadow-color);
    font-style: italic;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    display: inline-block;
}
.oaws_scanbox_status {
    position: relative;
    display: inline-block;
    img {
        position: absolute;
        left: 110%;
        top: 50%;
        transform: translateY(-50%);
        display: none;
    }
    &.is-running img {
        display: initial;
    }
}


// Process Scanning
#oaws_process_box {
	position: fixed;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	top: 0;
	left: 0;
	z-index: 999;
	background-color: rgba(0,0,0,0.5);
	padding: 15px;
}
.oaws_wrapper_process {
	width: 600px;
	background-color: #fff;
	max-width: 100%;
	border-radius: 5px;
	padding: 20px;
}

.oaws_title_process {
	margin: 0 0 10px;
	color: var(--oaws-primary-color);
	& + p {
		margin: 0 0 20px;
		color: #c0001a;
	}
}

.oaws_inner_process {
	padding: 20px;
	border: 1px dashed #ccc;
	border-radius: 5px;
	position: relative;
	&.stopping {
		cursor: wait;
		&::before {
			content: '';
			position: absolute;
			width: 100%;
			height: 100%;
			background-color: rgba(0,0,0,0.5);
			left: 0;
			top: 0;
			z-index: 99;
		}
	}
}

.oaws_header_process {
	display: flex;
	grid-gap: 20px;
}

.oaws_main_process {
	border-bottom: 1px solid #ebebeb;
	padding-bottom: 20px;

	#oaws_list_process {
		padding-right: 10px;
		max-height: 500px;
		overflow-y: auto;
		.oaws_item_process {
			margin-top: 15px;
			padding-top: 10px;
			border-top: 1px dashed #ebebeb;
			.oaws_resuilt_scan {
				display: flex;
				grid-gap: 50px;
				margin-bottom: 10px;
				.oaws_term_scan {
					margin: 0;
				}
			}
			.oaws_wrap_scan {
				display: flex;
				align-items: center;
			}
			.oaws_stop_process {
				text-decoration: none;
				background-color: #c0001a;
				color: #fff;
				margin-left: 15px;
				border-radius: 5px;
				opacity: 0.5;
				pointer-events: none;
			}
			&.is-scanning {
				.oaws_stop_process {
					opacity: 1;
					pointer-events: initial;
				}
			}
			&.is-finished {
				.oaws_stop_process {
					background-color: var(--oaws-shadow-color);
					opacity: 1;
					.dashicons::before {
						content: '\f15e';
					}
				}
			}
		}
	}

	.oaws_process_bar {
		flex: 1;
		height: 30px;
		background-color: #ddd;
		border-radius: 2px;
		overflow: hidden;
		position: relative;
		&  > span:first-child {
			display: block;
			position: absolute;
			height: 100%;
			left: 0;
			top: 0;
			background-color: var(--oaws-shadow-color);
			transition: all 0.2s linear;
		}
		.oaws_data_process {
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			color: #000;
		}
		
	}
}

.oaws_action_process {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	grid-gap: 10px;
	#start-scanning {
		&.loading + #close-scanbox {
			opacity: 0.3;
			pointer-events: none;
		}
	}
}

#upload-progress {
	& > div {
		line-height: 1.6;
	}
	.label-status {
		width: 80px;
		display: inline-block;
	}
}

#oaws-upload-status {
	position: relative;
	&.loading {
		cursor: wait;
		&::before {
			content: '';
			position: absolute;
			width: 100%;
			height: 100%;
			left: 0;
			top: 0;
			background-color: rgba(255,255,255,0.9);
			z-index: 9;
		}
	}
}
