@import "~@wordpress/base-styles/colors";
@import "~@wordpress/base-styles/variables";
@import "~@wordpress/base-styles/mixins";
@import "~@wordpress/base-styles/breakpoints";
@import "~@wordpress/base-styles/animations";
@import "~@wordpress/base-styles/z-index";

.simpay-admin-dashboard-widget-report {
	* {
		box-sizing: border-box;
	}

	&__chart {
		min-height: 300px;
	}

	&__no-data {
		position: absolute;
		top: 0;
		left: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		background: rgba(255, 255, 255, 0.5);
		z-index: 2;

		> div {
			text-align: center;
			padding: $grid-unit-30;
			background: #fff;
			border: 1px solid #c3c3c3;
			box-shadow: 0 2px 6px rgb(0, 0, 0, 0.10);
			border-radius: 2px;
			max-width: 60%;
		}

		strong {
			font-size: 15px;
			margin-bottom: 2px;
			display: block;
		}
	}

	&__tooltip {
		position: absolute;
		background: #fff;
		border: 1px solid #c3c3c3;
		box-shadow: 0 2px 6px rgb(0, 0, 0, 0.05);
		border-radius: 2px;
		padding: 9px 14px;
		z-Index: 10000;
		width: 175px;

		> div {
			margin-bottom: 5px;

			&:last-child {
				margin-bottom: 0;
			}
		}
	}

	&__badge {
		font-size: 11px;
		font-weight: 600;
		color: #3f3f46;
		text-align: center;
		line-height: 1;
		padding: 3px 5px;
		border-radius: 2px;
		background: #e4e4e7;
		border: 0;
		box-shadow: none;
		display: inline-flex;
		align-items: center;

		&.is-positive {
			color: #0e6245;
			background: #cbf4c9;
		}

		&.is-negative {
			color: #983705;
			background: #f8e5b9;
		}
	}

	&__chart {

	}

	&__data {
		margin: 30px -12px -12px;
		padding: 12px;
		border-top: 1px solid $gray-200;
		position: relative;
		z-index: 2;
	}

	&__data-filter {
		display: flex;
		justify-content: space-between;
		align-items: center;

		span {
			color: $gray-900;
			font-size: 14px;
			font-weight: 500;
		}

		.components-base-control__field {
			margin-bottom: 0;
		}
	}

	&__data-filter-title {
		display: flex;
		align-items: center;
		flex-shrink: 0;

		> * {
			margin-right: $grid-unit-10;
		}

		svg {
			fill: $gray-600;
		}
	}

	&__data-filter-controls {
		display: flex;
		align-items: center;
		flex-shrink: 0;

		> * {
			margin-left: $grid-unit-10;
		}
	}

	&__data-list {
		margin: 10px -12px -12px;

		> div {
			background-color: #fafafa;
			border-top: 1px solid $gray-200;
			padding: 10px 12px;
		}
	}
}

.simpay-admin-dashboard-widget-report-recommended-plugin {
	color: #777;
	margin: 12px -12px -12px;
	padding: 10px 12px;
	position: relative;
	border-top: 1px solid #e0e0e0;

	strong {
		color: initial;
	}

	p {
		margin: 0;
	}

	.simpay-notice-dismiss {
		position: absolute;
		top: 1px;
		right: 8px;
		font-size: 20px;
		color: #777;
		text-decoration: none;
		margin-left: 5px;
		padding: 6px 10px;
		z-index: 2;

		&:hover,
		&:active,
		&:focus {
			color: #666;
			text-decoration: none;
		}
	}
}