﻿/*
 * CSS voor het supportdashboard in wp-admin.
 */
.hw-support-admin {
	--hw-support-line: #dfe4ec;
	color: #0f172a;
	margin-top: 20px;
	max-width: 1480px;
}

.hw-support-admin-header,
.hw-support-list-card header,
.hw-support-detail-header,
.hw-support-detail-actions {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.hw-support-admin-header {
	background: #ffffff;
	border: 1px solid var(--hw-support-line);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
	margin-bottom: 20px;
	padding: 18px 20px;
}

.hw-support-admin-header h1 {
	color: #0f172a;
	font-size: 28px;
	margin: 0 0 6px;
}

.hw-support-admin-header p {
	color: #667085;
	margin: 0;
}

.hw-support-availability {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--hw-support-line);
	border-radius: 8px;
	display: flex;
	gap: 10px;
	padding: 10px 12px;
}

.hw-support-availability span {
	font-weight: 800;
}

.hw-support-availability select,
.hw-support-list-card select,
.hw-support-detail-actions select {
	border: 1px solid var(--hw-support-line);
	border-radius: 6px;
	min-height: 38px;
}

.hw-support-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
}

.hw-support-stats article,
.hw-support-staff-card,
.hw-support-list-card,
.hw-support-detail-card {
	background: #ffffff;
	border: 1px solid var(--hw-support-line);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.hw-support-stats article {
	align-items: flex-start;
	display: flex;
	flex: 1 1 190px;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	min-height: 84px;
	padding: 16px;
}

.hw-support-stats span {
	align-self: start;
	color: #667085;
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.35;
	margin: 0;
	text-transform: uppercase;
}

.hw-support-stats strong {
	align-self: end;
	color: #0f172a;
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	text-align: right;
	white-space: nowrap;
}

.hw-support-staff-card {
	margin-bottom: 18px;
	padding: 18px;
}

.hw-support-staff-card h2 {
	font-size: 17px;
	margin: 0 0 14px;
}

.hw-support-staff-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow-x: auto;
}

.hw-support-staff {
	align-items: center;
	border-bottom: 1px solid #e5ebf3;
	display: flex;
	gap: 16px;
	min-width: 560px;
	padding: 12px 4px;
}

.hw-support-staff > strong {
	flex: 1.2 1 220px;
}

.hw-support-staff > span {
	flex: 0.6 1 130px;
}

.hw-support-staff > small {
	flex: 1 1 180px;
}

.hw-support-staff:first-child {
	border-top: 1px solid #e5ebf3;
}

.hw-support-staff-head {
	background: #f8fafc;
	color: #475467;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.hw-support-staff strong {
	min-width: 0;
	overflow-wrap: anywhere;
}

.hw-support-staff span {
	border-radius: 999px;
	font-size: 12px;
	font-weight: 900;
	line-height: 1;
	padding: 6px 9px;
	width: fit-content;
}

.hw-support-staff-beschikbaar span {
	background: #ecfdf3;
	color: #047857;
}

.hw-support-staff-bezet span {
	background: #fffaeb;
	color: #b45309;
}

.hw-support-staff-afwezig span {
	background: #f2f4f7;
	color: #667085;
}

.hw-support-staff small {
	color: #667085;
	overflow-wrap: anywhere;
}

.hw-support-staff-head span {
	background: transparent;
	color: inherit;
	font-weight: inherit;
	padding: 0;
}

.hw-support-alerts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.hw-support-alert {
	background: #f8fafc;
	border: 1px solid var(--hw-support-line);
	border-radius: 999px;
	font-weight: 800;
	padding: 9px 12px;
}

.hw-support-alert-hoog {
	background: #fef3f2;
	border-color: #fecdca;
	color: #b91c1c;
}

.hw-support-layout {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.hw-support-list-card {
	flex: 0.9 1 320px;
}

.hw-support-detail-card {
	flex: 1.5 1 520px;
}

.hw-support-list-card,
.hw-support-detail-card {
	min-height: 540px;
	padding: 20px;
}

.hw-support-list-card header {
	border-bottom: 1px solid var(--hw-support-line);
	margin: -2px -2px 18px;
	padding: 0 0 16px;
}

.hw-support-list-card h2 {
	align-items: center;
	display: flex;
	font-size: 18px;
	gap: 10px;
	margin: 0;
}

.hw-support-list-card h2 span,
.hw-support-ticket em {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	justify-content: center;
	line-height: 1;
	padding: 6px 9px;
	text-align: center;
}

.hw-support-ticket em {
	padding: 5px 8px;
}

.hw-support-list-card h2 span {
	background: #fff1f2;
	color: #be123c;
}

.hw-support-ticket-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 0;
	min-width: 0;
	overflow-x: hidden;
	width: 100%;
}

.hw-support-ticket {
	background: #ffffff;
	border: 0px solid #e5ebf3;
	border-top: 1px solid #e5ebf3;
	border-bottom: 1px solid #e5ebf3;
	border-radius: 0px;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	justify-content: space-between;
	max-width: 100%;
	min-width: 0;
	padding: 14px;
	text-align: left;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	width: 100%;
}

.hw-support-ticket > span {
	display: flex;
	flex: 1 1 220px;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hw-support-ticket:hover,
.hw-support-ticket:focus {
	border-color: #cbd5e1;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	outline: none;
	transform: translateY(-1px);
}

.hw-support-ticket strong,
.hw-support-ticket small,
.hw-support-ticket p {
	display: block;
}

.hw-support-ticket small,
.hw-support-ticket p,
.hw-support-meta,
.hw-support-message small {
	color: #667085;
}

.hw-support-ticket p {
	flex: 1 0 100%;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hw-support-priority-laag {
	background: #eff8ff;
	color: #175cd3;
}

.hw-support-priority-middel {
	background: #fffaeb;
	color: #b45309;
}

.hw-support-priority-hoog {
	background: #fef3f2;
	color: #b91c1c;
}

.hw-support-detail-header {
	align-items: stretch;
	border-bottom: 1px solid var(--hw-support-line);
	flex-direction: column;
	margin: -2px -2px 16px;
	padding: 0 0 16px;
}

.hw-support-detail-actions {
	flex-wrap: wrap;
	justify-content: flex-start;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.hw-support-detail-actions .button,
.hw-support-detail-actions select {
	max-width: 100%;
	min-width: 0;
	white-space: normal;
}

.hw-support-detail-header h2 {
	margin: 0 0 5px;
}

.hw-support-detail-header p {
	color: #667085;
	margin: 0;
}

.hw-support-meta {
	background: #f8fafc;
	border: 1px solid #e5ebf3;
	border-radius: 8px;
	line-height: 1.5;
	margin-bottom: 16px;
	overflow-wrap: anywhere;
	padding: 12px 14px;
}

.hw-support-thread {
	background: #f8fafc;
	border: 1px solid #e5ebf3;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 330px;
	margin-bottom: 14px;
	overflow-y: auto;
	padding: 14px;
}

.hw-support-message {
	background: #ffffff;
	border: 1px solid #e5ebf3;
	border-radius: 8px;
	max-width: 82%;
	padding: 10px 12px;
}

.hw-support-message-customer {
	align-self: flex-start;
}

.hw-support-message-staff {
	align-self: flex-end;
	background: #fff1f2;
	border-color: #fecdd3;
}

.hw-support-message-system {
	align-self: center;
	background: #eef2ff;
}

.hw-support-message p {
	margin: 5px 0 0;
	white-space: pre-wrap;
}

.hw-support-reply {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hw-support-reply textarea {
	border: 1px solid var(--hw-support-line);
	border-radius: 8px;
	padding: 10px 12px;
	width: 100%;
}

.hw-support-toast {
	background: #0f172a;
	border-radius: 999px;
	box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
	color: #ffffff;
	font-weight: 900;
	opacity: 0;
	padding: 11px 15px;
	pointer-events: none;
	position: fixed;
	right: 28px;
	top: 58px;
	transform: translateY(-8px);
	transition: opacity 180ms ease, transform 180ms ease;
	z-index: 100000;
}

.hw-support-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1100px) {
	.hw-support-layout {
		flex-direction: column;
	}

	.hw-support-admin-header,
	.hw-support-list-card header,
	.hw-support-detail-header {
		align-items: stretch;
		flex-direction: column;
	}
}

@media (max-width: 782px) {
	.hw-support-admin-header {
		padding: 16px;
	}

	.hw-support-availability {
		align-items: stretch;
		flex-direction: column;
	}

	.hw-support-stats article {
		flex-basis: 100%;
		min-height: 0;
	}

	.hw-support-list-card,
	.hw-support-detail-card {
		min-height: auto;
		padding: 16px;
	}

	.hw-support-ticket {
		flex-direction: column;
	}

	.hw-support-ticket em {
		width: fit-content;
	}

	.hw-support-detail-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.hw-support-detail-actions .button,
	.hw-support-detail-actions select {
		width: 100%;
	}
}

.hw *,
.hw *::before,
.hw *::after {
	box-sizing: border-box;
}


