/**
 * Use SuitCSS based classnames.
 */
:root {
	--sh-color-gray: #c3c4c7;
	/* For dividers and similar, like "Item 1 | Item 2". */
	--sh-color-gray-2: #a7aaad;
	/* For smaller meta header text */
	--sh-color-gray-3: rgb(137, 143, 156);
	/* For discrete elements like skeleton loading background */
	--sh-color-gray-4: #ededed;
	--sh-color-green: #3f9349;
	--sh-color-green-2: darkgreen;
	--sh-color-separator: rgb(229, 229, 229);
	--sh-color-item-hover: #fafafa;

	/* Colors from Figma document 2025 */
	--sh-color-black: #000000;
	--sh-color-black-2: #666666;
	--sh-color-white: #ffffff;
	--sh-color-blue: #004cff;
	--sh-color-green-mint: #12e2a3;
	--sh-color-green-light: #b0f4e6;
	--sh-color-cream: #fcf9ec;
	--sh-color-pink-light: #ffcee4;
	--sh-color-pink: #fb90b7;
	--sh-color-yellow: #fcc72c;

	/* Font sizes */
	--sh-font-size-small: 0.75rem;
	--sh-font-size-medium: 0.9rem;
	--sh-font-size-large: 1.1rem;
	--sh-font-size-xlarge: 1.3rem;
	--sh-font-size-xxlarge: 1.5rem;
	--sh-font-size-xxxlarge: 2rem;

	/* Spacing */
	--sh-spacing-xxsmall: 0.1rem;
	--sh-spacing-xsmall: 0.25rem;
	--sh-spacing-small: 0.5rem;
	--sh-spacing-medium: 1rem;
	--sh-spacing-large: 1.5rem;
	--sh-spacing-xlarge: 2rem;
	--sh-spacing-xxlarge: 3rem;
	--sh-spacing-xxxlarge: 5rem;

	/* Border radius */
	--sh-border-radius: 4px;

	/* Shadows. Resources to create: https://www.joshwcomeau.com/shadow-palette/ */
	--sh-shadow-color: 0deg 0% 57%;
	--sh-shadow-elevation-low: 0.1px 0.2px 0.2px
			hsl(var(--sh-shadow-color) / 0.4),
		0.2px 0.3px 0.4px -1.5px hsl(var(--sh-shadow-color) / 0.36),
		0.6px 0.8px 1.1px -3px hsl(var(--sh-shadow-color) / 0.31);
	--sh-shadow-elevation-medium: 0.1px 0.2px 0.2px
			hsl(var(--sh-shadow-color) / 0.42),
		0.4px 0.6px 0.8px -1px hsl(var(--sh-shadow-color) / 0.38),
		1.2px 1.5px 2px -2px hsl(var(--sh-shadow-color) / 0.35),
		2.9px 3.8px 5px -3px hsl(var(--sh-shadow-color) / 0.31);
	--sh-shadow-elevation-high: 0.1px 0.2px 0.2px
			hsl(var(--sh-shadow-color) / 0.45),
		0.6px 0.8px 1px -0.5px hsl(var(--sh-shadow-color) / 0.42),
		1.8px 2.3px 3px -1px hsl(var(--sh-shadow-color) / 0.38),
		3.5px 4.5px 6px -1.5px hsl(var(--sh-shadow-color) / 0.35),
		6px 8px 10px -2px hsl(var(--sh-shadow-color) / 0.32);

	/* Avatar size */
	--sh-avatar-size: var(--sh-font-size-xxxlarge);
}

/* clearfix */
.SimpleHistory__cf:before,
.SimpleHistory__cf:after {
	content: "";
	display: table;
}
.SimpleHistory__cf:after {
	clear: both;
}
.SimpleHistory__cf {
	zoom: 1;
} /* For IE 6/7 (trigger hasLayout) */

.SimpleHistoryGuiExample {
	position: relative;
	/* must have a height so "loading..." will be visible in dashboard */
	min-height: 6em;
}

.SimpleHistory__waitingForFirstLoad {
	position: absolute;
	top: 20px;
	left: 20px;
}

.SimpleHistory__waitingForFirstLoad img {
	vertical-align: text-bottom;
}

.SimpleHistory__waitingForFirstLoad--isLoaded {
	display: none;
}

/* wrap around the log items and the pagination */
.SimpleHistoryLogitemsWrap {
	transition: opacity 0.1s ease-out;
}

/* on its own page */
.SimpleHistoryGuiWrap {
	position: relative;
	min-height: 200px;
}

.SimpleHistory--isLoaded .SimpleHistoryGuiWrap {
	background-color: transparent;
}

.SimpleHistoryGuiWrap .SimpleHistoryGui {
	width: 100%;
}

@media only screen and (min-width: 960px) {
	.SimpleHistoryGuiWrap {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: space-between;
	}
}

/*
.SimpleHistoryGui:after {
	content: "\f206";
	font-family: dashicons;
	font-size: 510px;
	position: relative;
	line-height: 1;
	color: #ddd;
	z-index: 0;
}

.SimpleHistory--isLoaded .SimpleHistoryGui:after {
	display: none;
}
*/

/** UL with log items */
.SimpleHistoryLogitems {
	margin: 0;
	background: #fff;
	/* border-top: 1px solid var(--sh-color-separator); */
	border-bottom: 1px solid var(--sh-color-separator);
	opacity: 1;
	transition: all 0.25s ease-out;
}

.SimpleHistoryLogitems.is-loading {
	opacity: 0.5;
}

/* .SimpleHistory--isLoaded .SimpleHistoryLogitems,
.SimpleHistoryGuiExample .SimpleHistoryLogitems {
	opacity: 1;
} */

/**
 * Log items
 * There is always a 4px left border, just with different colors.
 */
.SimpleHistoryLogitem {
	position: relative;
	list-style-type: none;
	margin: 0;
	/* padding: 20px 20px 20px 16px; */
	padding: var(--sh-spacing-medium);
	/* Margin top gets same height as separator */
	/* margin-top: var(--sh-spacing-medium); */
}

.SimpleHistoryLogitem:hover {
	background-color: var(--sh-color-item-hover);
}

/* add border below items */
/* .SimpleHistoryLogitem::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 66px;
	height: 1px;
	right: 0;
	background: rgb(229, 229, 229);
} */

.postbox .SimpleHistoryLogitem::before {
	left: 0;
}

.SimpleHistoryLogitem:last-of-type:before {
	background: none;
}

/* Targets the element before a divider with a label. */
.SimpleHistoryLogitem:has(
		+ .SimpleHistoryLogitem .SimpleHistoryEventSeparator--hasLabel
	) {
	/* outline: 2px solid red; */
	padding-bottom: calc(var(--sh-spacing-medium) * 3);
}

.SimpleHistoryEventSeparator {
	width: calc(100% + var(--sh-spacing-medium) * 2);
	margin-left: calc(var(--sh-spacing-medium) * -1);
	display: flex;
	justify-content: center;
	align-items: center;
	border-top: 1px solid var(--sh-color-separator);
	margin-top: calc(var(--sh-spacing-medium) * -1);
	min-height: 30px;
	font-weight: 600;
	/* outline: 1px dotted pink; */
}

/* Divider line, at middle of divider. */

.SimpleHistoryEventSeparator__label {
	padding: var(--sh-spacing-small) var(--sh-spacing-medium);
	border-radius: 1rem;
	line-height: 1;
	background-color: var(--sh-color-white);
	border: 1px solid var(--sh-color-separator);
	font-size: var(--sh-font-size-small);
	transform: translateY(-50%);
	box-shadow: 0px 3px 3px 0px #f7f7f7;
}

/* Sticky events style */
.SimpleHistoryLogitem--is-sticky {
	/* background-color: var(--sh-color-cream); */
}

/* Text inside event, contains tooltip and SVG icon component */
.SimpleHistoryLogitem--sticky {
	display: inline-block;
	line-height: 1;
	vertical-align: middle;

	> svg {
		display: block;
	}
}

/*
Style different log levels.
Tag = the pill with the log level.
*/
.SimpleHistoryLogitem--logleveltag {
	display: inline-block;
	background-color: rgba(238, 238, 238, 1);
	font-size: 10px;
	padding: 3px 4px;
	border-radius: 3px;
	vertical-align: 1px;
	line-height: 1;
}

.SimpleHistoryLogitem--logleveltag-debug {
	background-color: #cef6d8;
	color: #111;
}

.SimpleHistoryLogitem--logleveltag-info {
	display: none;
}

.SimpleHistoryLogitem--logleveltag-notice {
	background-color: rgb(219, 219, 183);
	color: #111;
}

.SimpleHistoryLogitem--logleveltag-warning {
	background-color: #f7d358;
	color: #111;
}

.SimpleHistoryLogitem--logleveltag-error {
	background-color: #f79f81;
	color: #000;
}

.SimpleHistoryLogitem--logleveltag-critical {
	background-color: #fa5858;
	color: #fff;
}

.SimpleHistoryLogitem--logleveltag-alert {
	background-color: rgb(199, 69, 69);
	color: #eee;
}

.SimpleHistoryLogitem--logleveltag-emergency {
	background-color: #df0101;
	color: #eee;
}

.SimpleHistoryLogitem a {
	text-decoration: none;
}

.SimpleHistoryLogitem a:hover {
	text-decoration: underline;
}

.SimpleHistoryLogitem__firstcol {
	float: left;
}

.SimpleHistoryLogitem__senderImage {
	position: relative;
	border-radius: 50%;
	overflow: hidden;
	margin-top: 5px;
	width: 32px;
	height: 32px;
}

.SimpleHistoryLogitem__senderImage img {
	display: block;
	max-width: 100%;
	max-height: 100%;
}

.SimpleHistoryLogitem__secondcol {
	margin-left: 50px;
}

.SimpleHistoryLogitem__header {
	line-height: 1.2;
	margin-top: 2px;
}

.SimpleHistoryLogitem__header,
/*.SimpleHistoryLogitem__header time,*/
.SimpleHistoryLogitem__headerEmail {
	color: var(--sh-color-gray-3);
}

.SimpleHistoryLogitem__text,
.SimpleHistoryLogitem__details,
.SimpleHistoryLogitem__details p {
	line-height: 1.4;
}

.SimpleHistoryLogitem__text {
	margin-top: 0.4em;
	font-size: 15px;
	color: #333;
	/* break long lines so content always fit, even if very long (like very long url from http_api-logger */
	word-break: break-word;
}

.SimpleHistoryLogitem__details p {
	margin-top: 0.4em;
	margin-bottom: 0.4em;
}

.SimpleHistoryLogitem__occasions {
	color: var(--sh-color-gray-3);
	margin-top: 0.4em;
	display: flex;
	gap: 1rem;
}

.SimpleHistoryLogitem__occasionsAddOns {
	position: relative;
}

/* Add vertical line | before addons promo text */
.SimpleHistoryLogitem__occasionsAddOns::after {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 3px;
	width: 1px;
	left: -0.5rem;
	background-color: var(--sh-color-gray-2);
}

.SimpleHistoryLogitem__occasionsAddOnsText {
	margin: 0;
	line-height: inherit;
}

.SimpleHistoryLogitem__details {
	margin-top: 0.4em;
}

/* make video embeds responsive */
.SimpleHistoryLogitem__details .wp-video {
	max-width: 100%;
}

/* Actions button, dropdown with three dots ⋮ */
.SimpleHistoryLogitem__actions {
	position: absolute;
	top: 12px;
	right: 12px;
}

.SimpleHistoryLogitem__keyValueTable th,
.SimpleHistoryLogitem__keyValueTable td {
	vertical-align: top;
	word-break: break-word;
}

.SimpleHistoryLogitem__keyValueTable tr > td:first-child {
	text-align: right;
	padding-right: 1em;
	color: #757575;
	min-width: 8em;
	/* white-space: nowrap; */
}

.SimpleHistoryLogitem__keyValueTable p {
	margin: 0;
}

.SimpleHistoryLogitem__keyValueTable__addedThing {
	text-decoration: none;
	margin-right: 0.5em;
}

.SimpleHistoryLogitem__keyValueTable__removedThing {
	text-decoration: line-through;
	color: #999;
}

/* wrap span.SimpleHistoryLogitem__inlineDivided around things that should have a bullet between them */
.SimpleHistoryLogitem__inlineDivided {
	white-space: nowrap;
}

.SimpleHistoryLogitem__inlineDivided em {
	color: rgb(119, 119, 119);
	font-style: normal;
}

.SimpleHistoryLogitem__inlineDivided:before {
	/* \b7 = middot, \a0 = space */
	content: "\b7\a0";
	color: var(--sh-color-gray-3);
}

.SimpleHistoryLogitem__inlineDivided:first-child:before {
	content: "";
}

/*
Images/thumbs can be styles nicely
*/
.SimpleHistoryLogitemThumbnail {
	display: inline-block;
	margin: 0.5em 0 0 0;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 2px;
}

.SimpleHistoryLogitemThumbnailLink {
	display: inline-block;
}

.SimpleHistoryLogitemThumbnail img {
	/*
	photoshop-like background that represents transparency
	so user can see that an image have transparency
	*/
	display: block;
	background-image: url("data:image/gif;base64,R0lGODlhEAAQAIAAAOXl5f///yH5BAAAAAAALAAAAAAQABAAAAIfhG+hq4jM3IFLJhoswNly/XkcBpIiVaInlLJr9FZWAQA7");
	max-width: 200px;
	max-height: 125px;
	height: auto;
}

/* remove border below */
.SimpleHistoryLogitem--occasionsOpened::before {
	opacity: 0;
}

/* when occasions is loaded and have loaded hide the "show occasions"-link*/
.SimpleHistoryLogitem--occasionsOpening .SimpleHistoryLogitem__occasionsLink,
.SimpleHistoryLogitem--occasionsOpened .SimpleHistoryLogitem__occasionsLink {
	display: none;
}

/* hide the "loading" and "loaded occasions" text */
.SimpleHistoryLogitem__occasionsLoading,
.SimpleHistoryLogitem__occasionsLoaded {
	display: none;
}

/* show texts during load and when load is done */
.SimpleHistoryLogitem--occasionsOpening .SimpleHistoryLogitem__occasionsLoading,
.SimpleHistoryLogitem--occasionsOpened .SimpleHistoryLogitem__occasionsLoaded {
	display: block;
}

/* occasions are added to a wrapper element */
.SimpleHistoryLogitem__occasionsItemsWrap {
	margin: 0;
	padding: 0;
}

.SimpleHistoryLogitem__occasionsItems {
	opacity: 0;
	max-height: 0;
	transition:
		opacity 0.25s ease-out 0.5s,
		max-height 2s ease-out 0s,
		margin 0.25s 0s ease-out;
	background-color: white;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

.SimpleHistoryLogitem__occasionsItems.haveOccasionsAdded {
	opacity: 1;
	max-height: 3000px;
	margin-left: -5px;
	margin-right: -5px;
}

/*

.SimpleHistoryLogitem--occasion {
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	max-height: 0;
	border-top-width : 0;
	border-bottom-width : 0;
}
*/

/*
.SimpleHistoryLogitem--occasionsOpened:after,
.SimpleHistoryLogitem--occasion:after {
	content: "";
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 20px;
	width: 2px;
	background: rgba(0,0,0,0.3);
	border-radius: 3px / 7px;
}
*/

/* when the occasions log rows have been added show them in some kinda fancy way */
.SimpleHistoryLogitem--occasionAdded {
	max-height: 1000px;
	opacity: 1;
	border-top-width: 1px;
	border-bottom-width: 1px;
	padding-top: 15px;
	padding-bottom: 15px;
}

/*
Customizations for the dashboard,
i.e. the log is inside a .postbox element.
*/
#simple_history_dashboard_widget .postbox-header {
	background-image: url(./simple-history-logo-icon.svg);
	background-repeat: no-repeat;
	background-size: 20px;
	background-position: 12px center;
}

.postbox.closed .sh-Dashboard-settingsLink {
	display: none;
}

.sh-Dashboard-settingsLink {
	background-color: #787c82;
	mask-image: url(./icons/settings_FILL0_wght400_GRAD0_opsz48.svg);
	-webkit-mask-image: url(./icons/settings_FILL0_wght400_GRAD0_opsz48.svg);
	mask-size: 100%;
	-webkit-mask-size: 100%;
}

.sh-Dashboard-settingsLink:focus {
	box-shadow:
		0 0 0 1px #4f94d4,
		0 0 2px 1px rgba(79, 148, 212, 0.8);
	mask-image: none;
	background-color: transparent;
	background-image: url(./icons/settings_FILL0_wght400_GRAD0_opsz48.svg);
}

#simple_history_dashboard_widget .postbox-header h2 {
	margin-left: 25px;
}

#simple_history_dashboard_widget .inside {
	padding: 0;
	margin-top: 0;
}

.postbox .SimpleHistoryLogitem__senderImage {
	width: 24px;
	height: 24px;
}

.postbox
	.SimpleHistoryLogitem--initiator-wp
	.SimpleHistoryLogitem__senderImage:before,
.postbox
	.SimpleHistoryLogitem--initiator-wp_cli
	.SimpleHistoryLogitem__senderImage:before,
.postbox
	.SimpleHistoryLogitem--initiator-web_user
	.SimpleHistoryLogitem__senderImage:before {
	font-size: 24px;
}

.postbox .SimpleHistoryLogitem__secondcol {
	margin-left: 40px;
}

.postbox .SimpleHistoryLogitem__text {
	font-size: 1em;
}

.postbox .SimpleHistoryLogitem__details p {
	margin-top: 0;
	margin-bottom: 0;
}

.postbox .SimpleHistoryLogitem__text,
.postbox .SimpleHistoryLogitem__details,
.postbox .SimpleHistoryLogitem__details p {
	line-height: 1.5;
}

.postbox .SimpleHistoryPaginationCurrentPage {
	vertical-align: top;
}

/*
	.postbox .SimpleHistoryLogitem__details {
		display: none;
	}
	*/

/* // end dashboard */

/*
Styles for filter
*/
/*.simple-history-filters {
	float: left;
	width: 400px;
	margin-left: 50px;
}
*/

.SimpleHistoryLogitems__debug {
	font-family: monospace;
	white-space: pre;
}

/*
Pagination, below logRows
*/
.SimpleHistoryPaginationPages {
	text-align: center;
	padding-top: 20px;
	padding-bottom: 20px;
	background: white;
}

.postbox .SimpleHistoryPaginationPages {
	padding-top: 8px;
	padding-bottom: 8px;
}

.SimpleHistoryPaginationLinks .SimpleHistoryPaginationLink {
	vertical-align: baseline;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 0 4px;
	font-size: 16px;
	line-height: 1.625;
	text-align: center;
}

.SimpleHistoryPaginationLink.SimpleHistoryPaginationLink.disabled {
	color: rgb(170, 170, 170);
	background: rgb(238, 238, 238);
	background: rgba(0, 0, 0, 0.05);
	cursor: default;
}

.SimpleHistoryPaginationCurrentPage {
	margin: 0 2px 0 0;
	font-size: 13px;
	text-align: center;
}

.SimpleHistoryPaginationInput .total-pages {
	margin-right: 2px;
}

/*
animations/effects
*/
.SimpleHistory-isLoadingPage .SimpleHistoryLogitemsWrap {
	opacity: 0.5;
}

/*
Modal window with detailss
*/
.SimpleHistory-modal__background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	z-index: 10;
}

.SimpleHistory-modal__content {
	background: white;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	bottom: 60px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	left: 280px; /* admin menu width is 160 px*/
	position: fixed;
	overflow: auto;
	right: 120px;
	top: 60px;
	z-index: 15;
	-webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 960px) {
	.SimpleHistory-modal__background {
		z-index: 9991; /* #adminmenuwrap has z-index 9990 */
	}

	.SimpleHistory-modal__content {
		top: 10px;
		left: 10px;
		right: 10px;
		bottom: 10px;
		z-index: 9991; /* #adminmenuwrap has z-index 9990 */
	}
}

.SimpleHistory-modal__contentInner {
	padding: 15px;
}

.SimpleHistory-modal__contentSpinner {
	margin-left: 20px;
	margin-top: 20px;
}

.SimpleHistory-modal__contentClose {
	position: absolute;
	top: 10px;
	right: 10px;
}

.SimpleHistory-modal__contentClose button {
	cursor: pointer;
}

/* if wp left menu is collapsed .folded is added and menu width is 36 px */
.folded .SimpleHistory-modal__content {
	left: 156px; /* admin menu width is 160 px */
}

@media only screen and (max-width: 850px) {
	.SimpleHistory-modal__content {
		left: 10px; /* admin menu width is 160 px */
	}
}

.SimpleHistory-modal__content--enter {
	transition: all 0.15s ease-out;
	-webkit-transform: scale(0.95);
	transform: scale(0.95);
	opacity: 0;
}

.SimpleHistory-modal__content--enter-active {
	opacity: 1;
	-webkit-transform: scale(1);
	transform: scale(1);
}

.SimpleHistory-modal__content--leave-active {
	opacity: 0;
	-webkit-transform: scale(0.95);
	transform: scale(0.95);
}

.SimpleHistory-modal__leave-active {
	transition:
		all 0.15s 0.15s ease-out,
		visibility 0s 0.3s;

	opacity: 0;
	visibility: hidden;
}

.admin-bar .SimpleHistory-modal__content {
	top: 92px; /* admin bar height is 32 px*/
}

@media only screen and (max-width: 960px) {
	.admin-bar .SimpleHistory-modal__content {
		top: 10px;
		z-index: 100000;
	}
}

/* style the logRow a bit more when shown in modal */
.SimpleHistory-modal .SimpleHistoryLogitem__header {
	font-size: 16px;
}

.SimpleHistory-modal .SimpleHistoryLogitem__text,
.SimpleHistory-modal .SimpleHistoryLogitem__details,
.SimpleHistory-modal .SimpleHistoryLogitem__details p,
.SimpleHistory-modal .SimpleHistoryLogitem__moreDetails,
.SimpleHistory-modal .SimpleHistoryLogitem__moreDetails p {
	font-size: 18px;
}

.SimpleHistory-modal .SimpleHistoryLogitem:hover {
	background: inherit;
}

.SimpleHistoryLogitem__moreDetails {
	border-top: 1px solid rgb(229, 229, 229);
	margin-top: 20px;
}

.SimpleHistoryLogitem__moreDetailsHeadline {
	font-size: 14px;
	font-weight: bold;
	padding: 0;
	margin-top: 20px;
	margin-bottom: 0;
}

.SimpleHistory-modal .SimpleHistoryLogitem__moreDetails p {
	font-size: 14px;
}
/**
 * Table with more details.
 * Shown in modal when event details are shown.
 */
.SimpleHistoryLogitem__moreDetailsContext {
	width: 100%;
	font-family: monospace;
	white-space: pre-wrap;
	font-size: 12px;
	border-collapse: collapse;
}

.SimpleHistoryLogitem__moreDetailsContext th,
.SimpleHistoryLogitem__moreDetailsContext td {
	padding: 4px;
	padding-right: 20px;
	text-align: left;
	vertical-align: top;
}

.SimpleHistoryLogitem__moreDetailsContext th:first-child,
.SimpleHistoryLogitem__moreDetailsContext td:first-child {
	width: 300px;
}

.SimpleHistoryLogitem__moreDetailsContext tr:nth-child(odd) {
	background-color: #eee;
}

@media only screen and (max-width: 850px) {
	.SimpleHistoryLogitem__moreDetails {
		margin-left: -60px;
	}

	/* make table less table-like on small screens by putting tds below/after each other
	   instead of next to each other */
	.SimpleHistoryLogitem__moreDetailsContext th:first-child,
	.SimpleHistoryLogitem__moreDetailsContext td:first-child {
		display: block;
		font-weight: bold;
	}

	.SimpleHistoryLogitem__moreDetailsContext th:nth-child(2),
	.SimpleHistoryLogitem__moreDetailsContext td:nth-child(2) {
		display: block;
		margin-bottom: 1em;
	}
}

.SimpleHistory-modal
	.SimpleHistoryLogitem--initiator-web_user
	.SimpleHistoryLogitem__secondcol,
.SimpleHistory-modal
	.SimpleHistoryLogitem--initiator-other
	.SimpleHistoryLogitem__secondcol {
	margin-left: 0;
}

/* wordpress as initiator = add wordpress icon */
/* anonymous user as initiator = plain user image */
.SimpleHistoryLogitem--initiator-wp .SimpleHistoryLogitem__senderImage:before,
.SimpleHistoryLogitem--initiator-wp_cli
	.SimpleHistoryLogitem__senderImage:before,
.SimpleHistoryLogitem--initiator-web_user
	.SimpleHistoryLogitem__senderImage:before {
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	font: normal 32px/1 "dashicons";
	vertical-align: top;
	color: #999;
}

.SimpleHistoryLogitem--initiator-wp .SimpleHistoryLogitem__senderImage:before,
.SimpleHistoryLogitem--initiator-wp_cli
	.SimpleHistoryLogitem__senderImage:before {
	content: "\f120";
}

.SimpleHistoryLogitem--initiator-wp_cli
	.SimpleHistoryLogitem__senderImage:after {
	content: "CLI";
	position: absolute;
	background: rgba(255, 255, 255, 0.7);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	line-height: 36px;
	text-align: center;
	font-family: monospace;
	font-size: 12px;
}

.SimpleHistoryLogitem--initiator-web_user
	.SimpleHistoryLogitem__senderImage:before {
	content: "\f110";
}

.SimpleHistoryQuickStats {
	font-size: var(--sh-font-size-medium);
}

.SimpleHistoryQuickStats a {
	text-decoration: none;
}

/**
 * span is used as tooltip. The tooltip is text with dotted underline and the tooltip is shown on hover, using
 * built in browser tooltip.
 */
.sh-Tooltip {
	text-decoration: dotted underline;
	text-underline-offset: 2px;
	cursor: help;
}

/**
 * An icon that is used as tooltip.
 */
.sh-TooltipIcon {
	--sh-icon-size: 1.2em;
	cursor: help;
	top: -0.1em;
	margin-left: 0.25em;
	opacity: 0.6;
}

/* if not hits when using filter function + if ajax error */

.SimpleHistory--hasNoHits .SimpleHistoryLogitems__pagination {
	display: none;
}

.SimpleHistory--hasNoHits .SimpleHistoryLogitems {
	display: none;
}

.SimpleHistoryLogitems__noHits {
	display: none;
}

.SimpleHistory--hasNoHits .SimpleHistoryLogitems__noHits,
.SimpleHistory--ajaxHasErrors .SimpleHistoryLogitems__ajaxError {
	display: block;
	padding: 20px;
}

.SimpleHistory--ajaxHasErrors .SimpleHistoryLogitems__ajaxError {
	max-height: 20em;
	overflow: auto;
}

.postbox .SimpleHistory--hasNoHits .SimpleHistoryLogitems__noHits {
	margin-left: 13px;
	margin-right: 13px;
}

.SimpleHistoryLogitems__ajaxError__infoMessage {
	background: rgb(255, 255, 183);
	padding: 10px;
	font-weight: bold;
}

/* diff contents can be very high sometimes, so we limit the height and add scrollbars in those cases */
.SimpleHistory__diff__contents {
	max-height: 11em;
	overflow: hidden;
	position: relative;
	/* https://github.com/bonny/WordPress-Simple-History/issues/530 */
	scrollbar-gutter: stable both-edges;
}

.SimpleHistory__diff__contents--noContentsCrop {
	max-height: none;
}

.SimpleHistory__diff__contents:hover,
.SimpleHistory__diff__contents:focus {
	overflow-y: auto;
}

.SimpleHistory__diff__contents:focus {
	outline: 1px solid rgb(0, 115, 170);
	box-shadow:
		0 0 0 1px #5b9dd9,
		0 0 2px 1px rgba(30, 140, 190, 0.8);
}

.SimpleHistory__diff.SimpleHistory__diff {
	border-spacing: 1px;
}

.SimpleHistory__diff.SimpleHistory__diff td,
.SimpleHistory__diff.SimpleHistory__diff td:first-child {
	text-align: left;
	white-space: normal;
	font-size: 13px;
	line-height: 1.3;
	padding: 0.25em 0.5em;
	padding: 0.5em 0.5em 0.5em 2em;
	color: rgb(75, 75, 75);
	font-family: "Open Sans", sans-serif;
}

.SimpleHistory__diff.SimpleHistory__diff tbody tr td:nth-child(2) {
	width: auto;
}

.sh-ExternalLink::after {
	/* External icon on link */
	content: "\f504";
	font-family: dashicons;
	line-height: 0;
}

/**
 * White page header. Used for plugin title, tab navigation, settings/tools to the right.
 * Based on style uses by core for Site Health and Privacy Policy, to keep things consistent.
 */
.sh-PageHeader {
	margin: 0 0 0 -20px;
	padding: var(--sh-spacing-large);
	background: #fff;
	border-bottom: 1px solid var(--sh-color-gray);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	column-gap: 1rem;
}

/* 
When an admin notice with additional class "inline" is added it is shown above the header,
so add some extra place then to make it look a bit less ugly.
*/
.notice + .sh-PageHeader {
	margin-top: 25px;
}

.sh-PageHeader-title {
	flex: 1;
	font-size: 23px;
	font-weight: 400;
	margin: 0;
	line-height: 1;
}

.sh-PageHeader-logo {
	width: 200px;
	height: auto;
}

.sh-PageHeader-titleLink {
	display: block;
	color: inherit;
	text-decoration: none;
}

.sh-PageHeader-rightLink {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.25rem;
}

.sh-PageHeader-settingsLinkIcon {
	--sh-icon-size: 25px;
}

.sh-NotificationBar {
	position: relative;
	text-align: center;
	background-color: var(--sh-color-cream);
	padding: var(--sh-spacing-small) var(--sh-spacing-large);
	margin: 0 0 0 calc(var(--sh-spacing-large) * -1);
	font-weight: 600;
	border-bottom: 1px solid var(--sh-color-gray);
	transition: background-color 0.125s ease-out;
}

.sh-NotificationBar-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sh-PremiumFeatureBadge {
	--sh-badge-text-color: var(--sh-color-black);
	--sh-badge-background-color: var(--sh-color-green-mint);

	color: var(--sh-badge-text-color);
	background-color: var(--sh-badge-background-color);
	display: inline-flex;
	align-items: center;
	text-transform: uppercase;
	font-size: 0.8em;
	font-weight: 600;
	font-style: normal;
	border-radius: 4px;
	padding: 0.25em 0.5em;
	opacity: 0.75;
	line-height: 1;
	margin: 0;
}

.sh-PremiumFeaturesPostbox {
	--box-bg-color: var(--sh-color-white);
	text-wrap-style: pretty;
	padding: 1rem;
	background-color: var(--box-bg-color);
	border-radius: 10px;
}

.sh-PremiumFeaturesPostbox-preTitleFeaturesBadge {
	margin: 0 0 0.5rem 0;
}

.sh-PremiumFeaturesPostbox-title {
	color: #1d2327;
	font-size: 1.5em;
	margin: 0 0 1em 0;
}

.sh-PremiumFeaturesPostbox-button {
	display: inline-block;
	background-color: var(--sh-color-blue);
	color: white;
	text-decoration: none;
	padding: 0.75em 1.25em;
	border-radius: 5px;
	display: block;
	text-align: center;
	transition: background-color 0.25s ease-out;
}

.sh-PremiumFeaturesPostbox-button:active,
.sh-PremiumFeaturesPostbox-button:focus,
.sh-PremiumFeaturesPostbox-button:hover {
	color: white;
	/* background-color: var(--sh-color-black); */
}

.sh-PremiumFeaturesPostbox-featuresList {
	list-style: none;
	margin: 1.5rem 0 1.5rem 0;
}
.sh-PremiumFeaturesPostbox-featuresList-item {
	font-size: var(--sh-font-size-medium);
	margin-top: 0.5rem;
	padding-left: 30px;
	line-height: 1.2rem;
	background-image: url(./icons/check_circle_24dp_3F9349_FILL0_wght400_GRAD0_opsz24.svg);
	background-size: 1.1rem;
	background-repeat: no-repeat;
	background-position: 0px 1px;
}

.sh-PremiumFeaturesPostbox-featuresList-item-discrete {
	display: block;
	margin-top: 0.2rem;
	font-size: var(--sh-font-size-small);
	line-height: 1.4;
	font-style: normal;
}

.sh-PageNav {
	width: 100%;
	display: flex;
	margin-top: 1rem;
	margin-left: -1rem;
	margin-bottom: -1.5rem;
	gap: 2rem;
}

/* If only one page then we hide the tabs. */
.sh-PageNav--count-1 {
	display: none;
}

.sh-PageNav-tab {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
	padding: 0.5rem 1rem 1rem;
}

.sh-PageNav-tab::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0.5rem;
	right: 0.5rem;
	height: 3px;
	font-weight: 600;
	transition:
		background-color 0.25s ease-in-out,
		height 0.15s ease-in-out;
}

.sh-PageNav-tab:hover::after {
	background-color: #dcdcde;
}

.sh-PageNav-tab.is-active::after {
	background: var(--sh-color-green);
}

.sh-SettingsPage-settingsField {
	/* font-size: 1rem; */
	color: #3c434a;
}

.sh-SettingsPage-settingsSection-wrap {
	padding: 1rem 0;
	margin: 1rem 0;
}

.sh-SettingsPage-settingsSection-wrap h2 {
	margin: 0;
}

.sh-SettingsPage-settingsSection-title {
	display: block;
	font-size: 23px;
	font-weight: 400;
	margin: 0;
	padding: 9px 0 4px;
	line-height: 1.3;
}

.sh-SettingsPage-settingsSection-icon {
	--sh-icon-size: 24px;
	width: var(--sh-icon-size);
	height: var(--sh-icon-size);
	/* background-image: url(./icons/info_FILL0_wght400_GRAD0_opsz48.svg); */
	display: inline-block;
	background-size: 100%;
	vertical-align: middle;
	margin-right: 0.5em;
	position: relative;
	top: -2px;
}

.sh-SettingsPage-settingsField-icon {
	--sh-icon-size: 20px;
	width: var(--sh-icon-size);
	height: var(--sh-icon-size);
	/* background-image: url(./icons/info_FILL0_wght400_GRAD0_opsz48.svg); */
	display: inline-block;
	background-size: 100%;
	vertical-align: middle;
	margin-right: 0.5em;
	position: relative;
	top: -1px;
	left: 2px;
}

.sh-PageNav-icon {
	--sh-icon-size: 20px;
	width: var(--sh-icon-size);
	height: var(--sh-icon-size);
	/* background-image: url(./icons/info_FILL0_wght400_GRAD0_opsz48.svg); */
	display: inline-block;
	background-size: 100%;
	vertical-align: middle;
	margin-right: 0.5em;
	position: relative;
	top: -2px;
}

/** Subtabs on settings page */
.sh-SettingsTabs {
	border-bottom: 1px solid rgb(206, 206, 206);
	margin-bottom: 0;
	margin-left: -2.5em;
	padding-left: 2.5em;
}

.sh-SettingsTabs-tabs {
	display: flex;
	margin: 0;
	/* border-bottom: 1px solid #dcdcde; */
}

.sh-SettingsTabs-tab {
	margin-bottom: 0;
}

.sh-SettingsTabs-link {
	text-decoration: none;
	display: block;
	padding: 1rem 1.5rem;
	color: inherit;
}

.sh-SettingsTabs-link.is-active {
	font-weight: bold;
	box-shadow: inset 0 -2px #979797;
}

a.sh-SettingsTabs-link:hover {
	color: var(--sh-color-green);
}

.sh-SettingsSection {
	font-size: 1.5rem;
}

.sh-SettingsSectionIntroduction {
	margin-bottom: 1.5em;
}

.sh-SettingsSectionIntroduction p {
	font-size: 1rem;
}

.sh-mr-0 {
	margin-right: 0px;
}

.sh-mr-1 {
	margin-right: 0.25rem; /* 4px */
}
.sh-mr-2 {
	margin-right: 0.5rem; /* 8px */
}
.sh-mr-3 {
	margin-right: 0.75rem; /* 12px */
}

.sh-LicencesPage-plugin {
	background: #fff;
	border-radius: 0.5rem;
	margin-bottom: 2rem;
	padding: 1.5rem;
}

.form-table .sh-LicencesPage-plugin-name {
	margin: 0;
	font-weight: bold;
	font-size: 1.25em;
	font-weight: 400;
}

.form-table .sh-LicencesPage-plugin-version {
	color: #888;
	margin-bottom: 1rem;
}

.form-table .sh-LicencesPage-plugin-active {
	margin-bottom: 1rem;
}

.sh-FeedIntroduction {
	background: #f6f7f7;
	border-radius: 5px;
	padding: 1em;
	display: flex;
	flex-direction: column;
	gap: 1em;
	max-width: 80ch;
	font-size: 15px;
}

.sh-FeedIntroduction img {
	border-radius: 10px;
	width: 1.25rem;
	height: auto;
	line-height: 1;
	vertical-align: text-bottom;
}

.sh-FeedIntroduction-row {
	display: flex;
	gap: 1em;
	margin: 0;
	font-size: 1em;
}

.sh-FeedIntroduction-emoji {
	display: block;
	font-size: 1.5em;
	line-height: 1;
}

/* .sh-FeedIntroduction-ps {
	font-size: 13px;
} */

/* Filters, moved from old filter-dropin.css */
.SimpleHistory__filters {
	/* hide by default while log is loading */
	opacity: 0.5;
	transition: all 0.25s ease-out;
}

.SimpleHistory--isLoaded .SimpleHistory__filters {
	opacity: 1;
}

.SimpleHistory__filters__form select {
	/* width: 100%; */
	width: 310px;
}

.SimpleHistory__filters__form input[type="text"],
.SimpleHistory__filters__form input[type="search"] {
	/* width: 100%; */
	width: 310px !important;
}

.SimpleHistory__filters__filter--date,
.SimpleHistoryFilterDropin-searchInput {
	width: 310px;
}

.SimpleHistory__filters__filterLabel {
	display: inline-block;
	width: 150px;
	vertical-align: middle;
}

.SimpleHistory__filters__filterSubmitWrap {
	margin-left: 150px; /* same width as the label */
}

/* Component FormTokenField always adds element for label */
.SimpleHistory__filters__loglevels__select .components-form-token-field__label {
	display: none;
}

@media (max-width: 600px) {
	.SimpleHistory__filters__filterLabel {
		display: block;
		width: auto;
	}

	.SimpleHistory__filters__filterSubmitWrap {
		margin-left: 0;
	}
}

@media (min-width: 600px) {
	/* prevent "jump" during page load because of select elm changing to select2 */
	.SimpleHistoryWrap .SimpleHistory__filters__filterRow {
		height: 41px;
		line-height: 41px;
	}

	.SimpleHistoryWrap
		.wp-admin
		select[multiple].SimpleHistory__filters__filter--date {
		height: 2.25em;
		overflow: hidden;
	}
}

/* always label as blocks on dashboard because we don't know the width because of columns */
.postbox .SimpleHistory__filters__filterLabel {
	display: block;
	width: auto;
}
.postbox .SimpleHistory__filters__filterSubmitWrap {
	margin-left: 0;
}

/**
 * Search results in filter
 */
.SimpleHistory__filters__userfilter__gravatar,
.SimpleHistory__filters__userfilter__primary,
.SimpleHistory__filters__userfilter__secondary {
	display: inline-block;
	vertical-align: middle;
	line-height: 1;
}

.SimpleHistory__filters__userfilter__primary {
	margin-right: 5px;
}

.SimpleHistory__filters__userfilter__gravatar {
	margin-right: 10px;
}

.SimpleHistoryFilterDropin-showMoreFilters {
	margin-left: 1rem;
}

/* more filters are hidden by default */
.SimpleHistory__filters__moreFilters {
	display: none;
	margin-bottom: 20px;
}

.SimpleHistory__filters.is-showingMoreFilters
	.SimpleHistoryFilterDropin-showMoreFilters--first {
	display: none;
}

.SimpleHistory__filters.is-showingMoreFilters
	.SimpleHistory__filters__moreFilters {
	display: block;
}

.SimpleHistory__filters.is-showingMoreFilters
	.SimpleHistoryFilterDropin-doFilterButton--first {
	display: none;
}

/* dashboard */
.postbox .SimpleHistory__filters {
	margin-left: 13px;
	margin-right: 13px;
}

/* day filter */
/* hidden by default, shown by js when selecting "custom range" in dates picker */
.SimpleHistory__filters__filter--dayValuesWrap {
	display: block;
	visibility: hidden;
	opacity: 0;
	margin-left: 155px;
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.25s ease-in-out,
		opacity 0.25s ease-in-out,
		visibility 0s 1s;
}

.is-customDateFilterActive .SimpleHistory__filters__filter--dayValuesWrap {
	visibility: visible;
	opacity: 1;
	max-height: 150px;
	margin-top: 1em;
	transition:
		max-height 0.25s ease-in-out,
		opacity 0.25s ease-in-out,
		visibility 0s 0s;
}

.is-customDateFilterActive .SimpleHistory__filters__filterRow--date {
	line-height: inherit;
	height: inherit;
}

.postbox .SimpleHistory__filters__filter--dayValuesWrap {
	margin-left: 0;
}

.SimpleHistory__filters__filter--day {
	display: block;
}

.SimpleHistory__filters__filter--day select {
	width: 200px;
}

/* Old styles moved from new-rows-notifier-dropin.css */
.SimpleHistoryDropin__NewRowsNotifier {
	max-height: 0;
	overflow: hidden;
	text-align: center;
	background: rgba(0, 255, 30, 0.15);
	/* Make room for divider label that will overlap otherwise. */
	border-bottom: 30px;
	transition:
		max-height 0.5s ease-out,
		background 0s;
}

.SimpleHistoryDropin__NewRowsNotifier--haveNewRows {
	max-height: 50px;
	cursor: pointer;
}

/* when there is a remote error or server down etc */
.SimpleHistoryDropin__NewRowsNotifier--haveErrorCheck {
	max-height: 50px;
	background: rgb(254, 247, 241);
}

.SimpleHistoryLogitem--newRowSinceReload {
	background: rgba(254, 255, 0, 0.1);
}

/* Old styles moved from ip-info-dropin.css */

.SimpleHistoryIpInfoDropin__ipInfoTable {
	width: 100%;
	border-collapse: collapse;
}

.SimpleHistoryIpInfoDropin__ipInfoTable th,
.SimpleHistoryIpInfoDropin__ipInfoTable td {
	vertical-align: top;
	text-align: left;
	padding: 5px 5px;
	border-top: 1px solid #eee;
}

.SimpleHistoryIpInfoDropin__ipInfoTable tr:first-of-type th,
.SimpleHistoryIpInfoDropin__ipInfoTable tr:first-of-type td {
	border-top: 0;
}

.SimpleHistoryIpInfoDropin__ipInfoTable__mapRow a {
	display: inline-block;
}

.SimpleHistoryIpInfoDropin__ipInfoTable__mapRow td {
	padding: 0;
}

.SimpleHistoryIpInfoDropin__ipInfoTable__key {
	white-space: nowrap;
}

/* New styles for React */
.SimpleHistoryReactRoot {
	flex: 1;
}

.SimpleHistoryReactRoot.is-dashboard .SimpleHistory-filters {
	padding: 0 11px;
}

.SimpleHistory__modal {
	min-width: 50vw;
	min-height: 50vh;
}

.sh-PageHeader a,
.sh-NotificationBar a,
.sh-Page-content a {
	text-underline-position: from-font;
}
