.notificaciones-widget {
	position: static;
	z-index: 1;
	display: inline-flex;
	padding: 0;
	flex: 0 0 auto;
}

.greeting-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.greeting-actions .btn-sigaprep {
	width: auto;
	white-space: nowrap;
}

.notificaciones-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #ffffff;
	color: #5c5b5b;
	text-decoration: none;
	border: 1px solid #d9d9d9;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
	transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.notificaciones-trigger:hover {
	color: #7d8a00;
	border-color: #b2c344;
	transform: translateY(-1px);
}

.notificaciones-trigger i {
	font-size: 17px;
}

.notificaciones-count {
	position: absolute;
	top: 1px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #b3261e;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 0 0 2px #ffffff;
}

.notificaciones-page .content-box,
.notificaciones-panel {
	border-radius: 12px;
}

.notificaciones-page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.notificaciones-page-header h2 {
	margin: 0;
	color: #5c5b5b;
	text-align: left;
	font-size: 26px;
}

.notificaciones-page-header p {
	margin: 6px 0 0;
	color: #777;
	font-size: 15px;
}

.notificaciones-lista {
	display: grid;
	gap: 12px;
}

.notificacion-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 16px;
	border: 1px solid #e7e7e7;
	border-left: 5px solid #b2c344;
	border-radius: 8px;
	background: #ffffff;
}

.notificacion-card.prioridad-urgente {
	border-left-color: #b3261e;
}

.notificacion-card.prioridad-importante {
	border-left-color: #d49b00;
}

.notificacion-card.is-read {
	opacity: 0.72;
}

.notificacion-card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.notificacion-card-title h3 {
	margin: 0;
	font-size: 18px;
	color: #4c4c4c;
}

.notificacion-card-title i {
	color: #b2c344;
}

.prioridad-urgente .notificacion-card-title i {
	color: #b3261e;
}

.notificacion-card p {
	margin: 0;
	color: #666;
	font-size: 15px;
	line-height: 1.45;
}

.notificacion-meta,
.notificacion-detalle-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.notificacion-meta span,
.notificacion-detalle-meta span,
.notificaciones-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #f4f4f4;
	color: #666;
	font-size: 12px;
	font-weight: 600;
}

.notificaciones-badge.warning {
	background: #fff6df;
	color: #805b00;
}

.notificaciones-badge.prioridad-urgente {
	background: #fdebea;
	color: #9b1c16;
}

.notificaciones-badge.prioridad-importante {
	background: #fff6df;
	color: #805b00;
}

.notificaciones-badge.prioridad-informativa {
	background: #eef6d1;
	color: #667200;
}

.notificacion-card-actions,
.notificacion-detalle-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.btn-notificacion {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid #b2c344;
	border-radius: 6px;
	background: #b2c344;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-notificacion:hover {
	background: #9fad25;
	border-color: #9fad25;
	color: #ffffff;
}

.btn-notificacion.secondary {
	background: #ffffff;
	color: #5c5b5b;
	border-color: #d9d9d9;
}

.btn-notificacion.secondary:hover {
	border-color: #b2c344;
	color: #6e7800;
}

.btn-notificacion.danger {
	background: #b3261e;
	border-color: #b3261e;
}

.btn-notificacion.danger:hover {
	background: #921913;
	border-color: #921913;
}

.btn-notificacion:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.notificaciones-empty {
	padding: 46px 20px;
	text-align: center;
	color: #888;
	border: 1px dashed #d9d9d9;
	border-radius: 8px;
}

.notificaciones-empty i {
	display: block;
	margin-bottom: 12px;
	font-size: 38px;
	color: #b2c344;
}

.notificaciones-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	color: #666;
	text-decoration: none;
	font-size: 14px;
}

.notificacion-detalle-body {
	margin-top: 24px;
	color: #555;
	font-size: 16px;
	line-height: 1.6;
}

.notificacion-detalle-body p {
	margin-bottom: 12px;
}

.notificacion-detalle-body ul,
.notificacion-detalle-body ol {
	padding-left: 22px;
	margin-bottom: 12px;
}

.notificacion-detalle-actions {
	margin-top: 24px;
	justify-content: flex-start;
}

.notificaciones-readonly-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff6df;
	color: #805b00;
	font-size: 14px;
}

.notificaciones-urgentes-modal .modal-content {
	border-radius: 10px;
	border: none;
}

.notificaciones-urgentes-modal .modal-header {
	border-bottom-color: #f0d0cd;
}

.notificaciones-urgentes-modal .modal-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #9b1c16;
	font-weight: 700;
}

.notificacion-urgente-step,
.notificacion-urgente-vigencia {
	color: #777;
	font-size: 13px;
}

.notificacion-urgente-item h3 {
	margin: 8px 0 12px;
	color: #444;
	font-size: 20px;
}

.notificacion-urgente-body {
	color: #555;
	font-size: 15px;
	line-height: 1.55;
	max-height: 60vh;
	overflow-y: auto;
}

.notificacion-urgente-action {
	margin: 12px 0;
}

.notificacion-urgente-body img,
.notificacion-detalle-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 12px;
}

@media (max-width: 991px) {
	.notificaciones-widget {
		position: static;
	}

	.notificacion-card {
		grid-template-columns: 1fr;
	}

	.notificacion-card-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 575px) {
	.greeting-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.notificaciones-page-header {
		flex-direction: column;
	}

	.notificaciones-page-header h2 {
		font-size: 22px;
	}

	.btn-notificacion {
		width: 100%;
	}
}
