@charset "UTF-8";

/* Status dashboard */
.mail-doctor-status-layers {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	margin-top: 24px;
}

.mail-doctor-status-primary {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mail-doctor-status-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mail-doctor-kpi-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mail-doctor-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.mail-doctor-warning-list {
	margin: 0;
	padding-left: 18px;
}

.mail-doctor-warning-list li {
	margin-bottom: 4px;
}

.mail-doctor-trend {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	border-top: 1px solid var(--mail-doctor-color-border);
	padding-top: 10px;
}

.mail-doctor-trend__sparkline {
	width: 100%;
	height: 60px;
}

.mail-doctor-trend__sparkline svg {
	width: 100%;
	height: 100%;
	display: block;
}

.mail-doctor-trend__meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.mail-doctor-trend__current {
	font-size: 20px;
	font-weight: 700;
}

.mail-doctor-trend__delta {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mail-doctor-color-muted);
}

.mail-doctor-trend__delta[data-direction="up"] {
	color: var(--mail-doctor-color-success);
}

.mail-doctor-trend__delta[data-direction="down"] {
	color: var(--mail-doctor-color-danger);
}

.mail-doctor-trend__caption {
	margin: 0;
	font-size: 12px;
	color: var(--mail-doctor-color-muted);
}

.mail-doctor-health-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.mail-doctor-health-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--mail-doctor-color-border);
	border-radius: 8px;
	background: var(--mail-doctor-color-neutral-soft);
}

.mail-doctor-health-tile__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mail-doctor-color-muted);
	font-weight: 600;
}

.mail-doctor-health-tile__value {
	font-size: 20px;
	font-weight: 700;
	color: var(--mail-doctor-color-text);
}

.mail-doctor-health-tile__note {
	font-size: 12px;
	color: var(--mail-doctor-color-muted);
}

.mail-doctor-failure-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mail-doctor-failure-bar {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mail-doctor-failure-bar__segments {
	display: flex;
	height: 26px;
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid var(--mail-doctor-color-border);
	background: var(--mail-doctor-color-neutral-soft);
}

.mail-doctor-failure-bar__segment {
	position: relative;
	min-width: 2px;
	display: block;
}

.mail-doctor-failure-bar__segment span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 11px;
	font-weight: 600;
	color: #fff;
}

.mail-doctor-failure-legend {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.mail-doctor-failure-legend__item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.mail-doctor-failure-legend__swatch {
	width: 10px;
	height: 10px;
	border-radius: 999px;
}

.mail-doctor-failure-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid var(--mail-doctor-color-border);
	border-radius: 8px;
	padding: 14px 18px;
	background: var(--mail-doctor-color-surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mail-doctor-failure-item:hover {
	border-color: rgba(79, 70, 229, 0.35);
	box-shadow: var(--mail-doctor-shadow-sm);
}

.mail-doctor-failure-item__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.mail-doctor-failure-item__provider {
	font-weight: 600;
	color: var(--mail-doctor-color-text);
}

.mail-doctor-failure-item__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mail-doctor-color-surface);
}

.mail-doctor-failure-item__badge.is-warning {
	background: rgba(255, 159, 67, 0.9);
}

.mail-doctor-failure-item__badge.is-error {
	background: rgba(214, 54, 56, 0.9);
}

.mail-doctor-failure-item__badge.is-critical {
	background: rgba(136, 0, 27, 0.9);
}

.mail-doctor-failure-item__badge.is-info {
	background: rgba(79, 70, 229, 0.85);
}

.mail-doctor-failure-item__message {
	margin: 0;
	font-size: 13px;
	color: var(--mail-doctor-color-text);
}

.mail-doctor-failure-item__hint {
	margin: 0;
	font-size: 12px;
	color: var(--mail-doctor-color-muted);
}

.mail-doctor-empty {
	margin: 0;
	font-size: 13px;
	color: var(--mail-doctor-color-muted);
}

.mail-doctor-provider-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.mail-doctor-provider-table thead {
	text-align: left;
	color: var(--mail-doctor-color-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mail-doctor-provider-table th,
.mail-doctor-provider-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--mail-doctor-color-border);
}

.mail-doctor-provider-table__label {
	display: flex;
	flex-direction: column;
}

.mail-doctor-provider-table__status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.mail-doctor-provider-table__status.is-ok {
	color: var(--mail-doctor-color-success);
}

.mail-doctor-provider-table__status.is-warn {
	color: var(--mail-doctor-color-warning);
}

.mail-doctor-provider-table__status.is-fail {
	color: var(--mail-doctor-color-danger);
}

.mail-doctor-provider-table__body tr:last-child td {
	border-bottom: 0;
}

.mail-doctor-card--stacked .regular-text {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.mail-doctor-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mail-doctor-accordion details {
	border: 1px solid var(--mail-doctor-color-border);
	border-radius: 8px;
	background: var(--mail-doctor-color-surface);
	padding: 0;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mail-doctor-accordion details[open] {
	border-color: rgba(79, 70, 229, 0.35);
	box-shadow: var(--mail-doctor-shadow-sm);
}

.mail-doctor-accordion summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	list-style: none;
}

.mail-doctor-accordion summary::-webkit-details-marker {
	display: none;
}

.mail-doctor-accordion summary .dashicons {
	color: var(--mail-doctor-color-accent);
}

.mail-doctor-accordion summary:focus {
	outline: 2px solid var(--mail-doctor-color-accent);
	outline-offset: 2px;
}

.mail-doctor-accordion__list {
	margin: 0;
	padding: 0 16px 16px 32px;
	list-style: disc;
	color: var(--mail-doctor-color-text);
	font-size: 13px;
}

.mail-doctor-accordion__list li + li {
	margin-top: 6px;
}

@media (max-width: 782px) {
	.mail-doctor-status-layers {
		grid-template-columns: minmax(0, 1fr);
	}

	.mail-doctor-status-sidebar {
		flex-direction: column;
	}

	.mail-doctor-kpi-grid,
	.mail-doctor-info-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
