/* Site Replica admin. */

.srp-wrap {
	max-width: 1200px;
}

.srp-title .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	margin-right: 4px;
	color: #142c6e;
}

.srp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.srp-card {
	padding: 18px 20px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
}

.srp-card h2 {
	margin-top: 0;
	font-size: 1.1em;
}

.srp-card--wide {
	margin: 16px 0;
}

.srp-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f0f0f1;
	color: #3c434a;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
}

.srp-pill.is-on {
	background: #e7f6ec;
	color: #14532d;
}

.srp-pill.is-warn {
	background: #fdf3e2;
	color: #6b3e00;
}

.srp-pill.is-bad {
	background: #fcebea;
	color: #8a1f11;
}

.srp-muted {
	color: #646970;
}

.srp-error {
	color: #b32d2e;
	font-weight: 600;
}

.srp-danger {
	color: #b32d2e !important;
}

.srp-nowrap {
	white-space: nowrap;
}

.srp-table td {
	vertical-align: middle;
}

.srp-actions {
	text-align: right;
	min-width: 18em;
}

.srp-actions .button {
	margin: 2px 0;
}

.srp-inline {
	display: inline;
	margin-left: 8px;
}

.srp-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.srp-steps li {
	margin-bottom: 4px;
}

.srp-keybox {
	margin: 16px 0;
	padding: 16px 20px;
	border: 2px solid #2aa3a0;
	border-radius: 10px;
	background: #f0fbfa;
}

.srp-keybox h2 {
	margin-top: 0;
}

/* Job panel */
.srp-job {
	margin: 16px 0 24px;
}

/* WordPress's .button sets display, which would otherwise override the hidden attribute. */
.srp-wrap [hidden] {
	display: none !important;
}

.srp-job__card {
	padding: 18px 20px;
	border: 1px solid #c3d4e6;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 6px 20px -12px rgba(20, 44, 110, 0.35);
}

.srp-job__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.srp-job__label {
	margin: 10px 0 8px;
	font-size: 14px;
}

.srp-bar {
	overflow: hidden;
	height: 10px;
	border-radius: 999px;
	background: #edf1f7;
}

.srp-bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #142c6e, #2aa3a0);
	transition: width 0.4s ease;
}

.srp-job__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 12px;
}

.srp-log {
	overflow: auto;
	max-height: 320px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #0f172a;
	color: #e2e8f0;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre-wrap;
}

.srp-job__logwrap {
	margin-top: 12px;
}

.srp-joblog {
	margin-bottom: 8px;
	padding: 8px 12px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
}

.srp-joblog summary {
	cursor: pointer;
}

/* Backups: bulk actions */
.srp-bulk {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 12px 0 8px;
}

.srp-table .check-column {
	width: 2.2em;
	padding-left: 10px;
	vertical-align: middle;
}

/* Restore review and decision */
.srp-job__await {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid #f0c36d;
	border-radius: 10px;
	background: #fffaf0;
}

.srp-job__await h3 {
	margin-top: 0;
}

.srp-plan {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 16px;
}

.srp-plan dt {
	font-weight: 600;
}

.srp-plan dd {
	margin: 0;
}

.srp-pairs {
	font-family: monospace;
	font-size: 12px;
}

.srp-opts {
	display: grid;
	gap: 6px;
	margin: 12px 0;
}

/* Phones: wide tables scroll inside their own box instead of widening the page. */
@media screen and (max-width: 782px) {
	table.widefat.srp-table {
		display: block;
		overflow-x: auto;
		max-width: 100%;
	}

	.srp-actions {
		min-width: 14em;
	}
}

/* Cloud backups */
.srp-lead {
	font-size: 14px;
	max-width: 60em;
}

.srp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 24em), 1fr));
	gap: 16px;
	margin: 16px 0 24px;
}

.srp-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 4px 16px 12px;
}

.srp-card h2 {
	margin-top: 12px;
}

.srp-details {
	margin: 8px 0;
}

.srp-details summary {
	cursor: pointer;
	color: #2271b1;
}

.srp-copyable {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: anywhere;
	user-select: all;
}

.srp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.srp-dest-choice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	margin: 12px 0;
}
