/**
 * File Changes Styles
 */
#adminmenu {
	#toplevel_page_wfcm-file-changes {
		a.wp-has-current-submenu {
			.update-plugins {
				background-color: #ea683c;
			}
		}
	}
}

.tablenav {
	.actions {
		padding: 0;
		margin: 3px 9px 9px 0;
	}

	.tablenav-pages {
		.button,
		.tablenav-pages-navspan,
		.paging-input {
			margin-left: 4px;
		}
	}
}

.tablenav-pages {
	.current-page {
		width: 30px;

		&::-webkit-inner-spin-button,
		&::-webkit-outer-spin-button {
			appearance: none;
			margin: 0;
		}
	}
}

.wp-list-table {
	.column-event-name {
		width: 17%;
	}

  	.column-content-type {
		width: 15%;
	}

  	.column-event-datetime {
		width: 13%;
	}

  	.column-event-actions {
		width: 230px;

	  .dashicons-info {
		margin-left: 5px;
	  }
	}

	td {
		.content-type {
			display: inline-block;
			width: auto;
			color: #fff;
			padding: 2px 10px;
			text-align: center;
			font-size: 12px;
			border-radius: 5px;
		}

		.content-type .dashicons {
			width: 16px;
			height: 16px;
			font-size: 17px;
			line-height: 20px;
			padding-left: 3px;
		}

		.directory {
			background: #35ad68;
		}

		.file {
			background: #a81cb9;

			&.origin-wp-org {
			  background: #eb3c3c;
			}
		}

		.wfcm-action-button {
		  margin-right: 5px;

		  &:last-of-type {
			margin-right: 0;
		  }
		}
	}
}

.wfcm-modal-header {
	display: flex;
	border-bottom: 1px solid #efefef;
	padding: 0 16px;
	margin: 0 -16px;
	margin-bottom: 16px;
	height: 60px;
	align-items: center;
	justify-content: space-between;

	h2 {
		display: inline-block;
		margin: 0;
		vertical-align: middle;
	}

	.logo {
		display: inline-block;
		width: 40px;
		vertical-align: middle;
		margin-right: 5px;
	}

	.button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 35px;
		height: 35px;
		background: #fff;
		padding: 0;
	}
}

.wfcm-modal-body {
	max-height: 500px;

	input[type=button]:not(:first-child) {
    	margin-left: 5px;
	}

  .action-info {

	position: relative;

	p {
	  text-indent: 20px;
	}

	> svg {
	  position: absolute;
	}
  }
}

.wfcm-modal-body--scrollable {
	overflow-y: scroll;
}

#last-scan-timestamp {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 0 1px;
    padding: 0 12px;
    font-weight: 300;
    border-radius: 3px;
    font-size: 13px;
    line-height: 30px;
    min-height: 30px;
}

.wfcm-action-button {
	display: inline-block;
	vertical-align: middle;
	background: no-repeat;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #444444;

	.dashicons {
		width: 27px;
		height: 27px;
		font-size: 27px;
	}
	
	svg {
		height: 22px;
	}
}

#wfcm-file-changes-view {
	.tablenav {
		.actions {
			padding: 0 0 1px;
		}
	}
}

/* Notice bubbles only has core CSS inside admin menu, try keep this in sync */
span.wfcm-update-plugins {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    margin: 3px -2px 0px 3px;
    padding: 0 5px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    z-index: 26;
    background-color: #ea683c;
    font-weight: 400;
}

.button.button-red {
    background: #eb3c3c;
    border-color: #d40000;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
}

.button.button-red:active {
    background: #d20000;
    border-color: #be0000;
    box-shadow: none;
}

.button.button-red:focus {
    background: #d20000;
    border-color: #ba0000;
    color: #fff;
    box-shadow: 0 0 0 1px #bb0000;
    outline: 2px solid transparent;
    outline-offset: 0;
}
.button.button-red:hover {
    background: #d20000;
    border-color: #bb0000;
    color: #fff;
}

.button.button-red:disabled, .button.button-red[disabled] {
    color: #ffccd5 !important;
    background-color: #fb7b7b !important;
    text-shadow: none !important;
    border-color: #ff8484 !important;
}

.__react_component_tooltip.wide-tooltip {
  max-width: 640px;
}

.__react_component_tooltip.actions-info-tooltip {

  max-width: 640px;
  padding: 15px;

  h4 {
	display: inline-block;
	line-height: 100%;
	margin: 0 0 0 8px;
	vertical-align: super;
  }

  p {
	color: white;
	margin-top: 0em;
	margin-bottom: 1.5em;

	&:last-of-type {
	  margin-bottom: 0;
	}
  }
}

.react-confirm-alert-overlay {

  z-index: 9999;

  .react-confirm-alert-body {
	overflow-wrap: break-word;
	word-wrap: break-word;

	> h1 {
	  font-size: 22px;
	  line-height: 20px;
	  user-select: none;
	  cursor: default;
	  padding-bottom: 15px;
	  margin: 0;
	  color: #666;
	  vertical-align: middle;
	  font-weight: 400;
	}
  }
  .react-confirm-alert-button-group button {
	font-size: 14px;
	padding: 6px 12px;
	text-transform: uppercase;
  }

}
