#setting_payment {

	.tab-pane {
		margin-top: 20px;
	}

	.error_output {
		position: absolute;
		color: red;
		font-size: 10px;
		right: 0;
		line-height: 2;
	}

	.tr-error {
		height: 4em;
	}

	.table {
		overflow-x: auto;
	}

	table {
		width: 100%;
		font-size: $font-size-small;
		position: relative;
	}

	th,
	td {
		font-weight: 300;

		&.total {
			text-align: center;
		}
	}

	th {
		padding: 10px 0;

	}


	tr {
		vertical-align: baseline;

		.time {
			width: 100px;
		}

		.type {
			width: 90px;
		}

		.email {
			width: 110px;
		}

		.list {
			width: 27%;
		}

		.total {
			width: 100px;
		}

		.action {
			width: 100px;

			&-failed {
				color: red;
			}
		}
	}

	td {
		border-bottom: 1px solid #ddd;
		padding: 10px 0;

		&.total {
			font-weight: bold;
		}

		&.action {
			font-weight: bold;
			text-align: right;

			a {
				color: #004f9c;
			}
		}
	}

	.refund_request_modal,
	.refund_form_modal,
	.refund_done_modal,
	.refund_pending_modal {
		display: none;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 999;

		.BGmodel {
			width: 100vw;
			height: 100vh;
			background: rgba(0, 0, 0, 0.8);
			position: fixed;
			display: flex;
			align-items: center;
			justify-content: center;
		}

		.modal-close {
			position: absolute;
			right: 40px;
		}

		.popup {
			background: #fff;
			padding: 30px 40px;
			position: relative;
			width: 550px;
			max-width: 90%;
			max-height: 90%;
			border-radius: 5px;

			&__title {
				font-size: 20px;
				font-weight: bold;
			}

			&__content {
				margin-top: 1.6rem;
				font-weight: 500;
				line-height: 1.8em;

				&--list {
					display: flex;

					div:first-child {
						width: 35%;
					}
				}

				&--remark {
					margin-top: 1em;

					div:first-child {
						margin-bottom: 0.5em;
					}

					textarea {
						width: 100%;
					}
				}

				.red {
					color: #f60100;
				}
			}

			&__date {
				color: #666;
				font-size: 12px;
				margin-top: 6px;
			}

			&__call {
				padding: 10px 30px;
				background: #e6e6e6;
				float: right;
				margin-top: -45px;
				font-weight: bold;
				box-shadow: 1px 1px 2px #666;

				&--icon {
					width: 15px;
					margin-right: 5px;
				}
			}

			&__status {
				display: flex;
				flex-wrap: wrap;

				&--radio {
					cursor: pointer;
					width: 33.33%;
					margin-top: 20px;
					text-align: center;

					input[type="radio"] {
						margin: 4px 5px 0 0;
						display: none;
					}

					input[type="radio"]+label {
						margin: 0;
						padding: 5px 10px;
						font-weight: normal;
						width: 90%;
						text-align: left;
					}

					input[type="radio"]+label span {
						display: inline-block;
						width: 12px;
						height: 12px;
						margin: -1px 7px 0 0;
						vertical-align: middle;
						cursor: pointer;
						-moz-border-radius: 50%;
						border-radius: 50%;
					}

					input[type="radio"]:checked+label {
						cursor: pointer;
						box-shadow: 1px 1px 2px #666;
						font-weight: bold;
						text-align: center;
					}
				}
			}

			&__action {

				display: flex;
				justify-content: center;
				margin-top: 2.3rem;

				&.right {
					justify-content: flex-end;
				}

				&--btn {
					min-width: 10rem;
					text-align: center;
					margin: 0 0.5rem;
					background: #00bcd4;
					border: none;
					border-radius: 3px;
					color: #fff;
					font-weight: 300;
					cursor: pointer;
					padding: .8em 2em;

					&.grey {
						color: #000;
						background: #d9d9d9;
					}

					&.red {
						color: #fff;
						background: #f60100;
					}

					&.blue {
						color: #fff;
						background: #004f9c;
					}
				}
			}

			&__note {
				margin-top: 20px;
				border-top: 1px solid #ddd;
				padding-top: 30px;

				&--input {
					border: 1px solid #ddd;
					padding: 10px 15px;
					width: 75%;
				}

				&--submit {
					width: 30%;
					display: flex;
					align-items: center;
					justify-content: center;
					margin-left: 5%;
					background: #00bcd4;
					border-radius: 3px;
					color: #fff;
					font-weight: bold;
					cursor: pointer;
					padding: 0.8em 0;
				}

				&--list {
					margin-top: 20px;
					width: 100%;
					max-height: 30vh;
					overflow-y: scroll;
				}

				&--item {
					display: flex;
					margin-bottom: 10px;
				}

				&--status {
					width: 12px;
					height: 12px;
					border-radius: 50%;
				}

				&--text {
					width: 85%;
					margin-left: 3%;
				}

				&--date {
					color: #7e7e7e;
					font-size: 9px;
					line-height: 1;
				}

				&--messages {
					font-weight: bold;
				}

				&--delete {
					width: 10%;
					text-align: center;

					img {
						width: 30%;
						cursor: pointer;
					}
				}

				.flex {
					align-items: flex-start;
				}
			}
		}
	}

	#credit {
		.tr-error {
			height: 4em;
		}

		.table {
			overflow-x: auto;
		}

		table {
			width: 100%;
			font-size: $font-size-small;
			position: relative;

			.amount {
				text-align: right;
			}
		}

		th {
			padding: 10px 0;
			font-weight: 500;
		}


		tr {
			vertical-align: baseline;
		}

		td {
			border-bottom: 1px solid #ddd;
			padding: 10px 0;

			&.add {
				color: #4caf50;
			}

			&.deduct {
				color: #e91e63;
			}

			&.refund {
				color: #4caf50;
			}
		}

		#table_credit_wrapper {
			margin-top: 20px;

			#table_credit_filter {
				input {
					border: 1px solid #888;
					border-radius: 3px;
					padding: 0.5em;
					font-weight: 100;
					font-size: 14px;
				}
			}

			.paging_simple_numbers {
				width: 100%;
				display: flex;
				justify-content: space-between;
				padding: 20px 0;
			}

			.paginate_button {
				line-height: 1em;
				font-weight: normal;
				border: 1px solid;
				border-color: transparent;
				font-size: $font-size-small;
			}

			.paginate_button:hover {
				background: transparent;
				color: #000 !important;
				border-color: transparent;
				font-weight: bold;
			}

			.paginate_button.current {
				background: transparent;
				border-color: #000;
				font-weight: bold;
			}

			.paginate_button.disabled:hover {
				color: #666 !important;
			}
		}
	}

	@media only screen and (max-width: 992px) {
		table {
			width: 230%;
		}
	}
}

#setting_payment.content {
	@media only screen and (max-width: 992px) {
		// padding: 25px 0 25px 25px;
	}
}