/**
 * Toasts estilo hub /task (jquery-toast). Duplicado mínimo desde task-form.css para usarlo en layout global.
 */
.jq-toast-wrap.cc-task-hub-toast-wrap,
.jq-toast-wrap:has(.cc-task-hub-toast) {
	width: min(360px, calc(100vw - 40px)) !important;
}

.jq-toast-single.cc-task-hub-toast {
	position: relative !important;
	display: grid !important;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: start;
	column-gap: 12px;
	row-gap: 6px;
	padding: 16px 42px 16px 16px !important;
	margin-bottom: 12px !important;
	border-radius: 14px !important;
	border: none !important;
	box-sizing: border-box;
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		Roboto,
		'Helvetica Neue',
		Arial,
		sans-serif !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.45),
		0 2px 8px rgba(0, 0, 0, 0.2) !important;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
}

.jq-toast-single.cc-task-hub-toast.cc-task-hub-toast--leave {
	opacity: 0 !important;
	transform: translate3d(0, 12px, 0) scale(0.985);
	pointer-events: none;
}

.jq-toast-single.cc-task-hub-toast .jq-toast-loader {
	display: none !important;
}

.jq-toast-single.cc-task-hub-toast::before {
	content: '';
	grid-column: 1;
	grid-row: 1 / -1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	align-self: center;
	justify-self: center;
	flex-shrink: 0;
	background-color: #4ade80;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231c1c1c' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.jq-toast-single.cc-task-hub-toast .jq-toast-heading {
	grid-column: 2;
	grid-row: 1;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #ffffff !important;
	letter-spacing: 0.01em;
	background: none !important;
	min-width: 0;
	overflow-wrap: break-word;
	word-break: normal;
}

.jq-toast-single.cc-task-hub-toast .cc-task-hub-toast__sub {
	grid-column: 2;
	grid-row: 2;
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.95);
	min-width: 0;
	overflow-wrap: break-word;
	word-break: normal;
}

.jq-toast-single.cc-task-hub-toast:not(:has(.cc-task-hub-toast__sub)) .jq-toast-heading {
	grid-row: 1 / span 2;
	align-self: center;
}

.jq-toast-single.cc-task-hub-toast .close-jq-toast-single {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	font-size: 18px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	color: rgba(255, 255, 255, 0.45) !important;
	opacity: 1 !important;
	cursor: pointer;
	transition: color 0.15s ease;
}

.jq-toast-single.cc-task-hub-toast .close-jq-toast-single:hover {
	color: #ffffff !important;
}

.jq-toast-single.cc-task-hub-toast--error::before {
	background-color: #f87171;
	box-shadow: 0 0 0 8px rgba(248, 113, 113, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231c1c1c' d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
}

.jq-toast-single.cc-task-hub-toast--info::before {
	background-color: #ffffff;
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
	background-size: 20px 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231c1c1c' d='M12 7a1.25 1.25 0 1 0 0 2.5A1.25 1.25 0 0 0 12 7Zm0 4.25a1.25 1.25 0 0 0-1.25 1.25v4.5a1.25 1.25 0 1 0 2.5 0v-4.5A1.25 1.25 0 0 0 12 11.25Z'/%3E%3C/svg%3E");
}

.jq-toast-single.cc-task-hub-toast--welcome::before {
	background-color: #4ade80;
	box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.14);
	background-size: 26px 26px;
	background-image: url("icons/happy-hi.svg");
}
