/*
 * PortalGraf KGrid CSS — consolidated pg156 layer.
 *
 * This file contains the last validated PortalGraf Kunena cascade after pg152 plus cleanup/cache refresh for pg156.
 * Dynamic color variables remain inline in template.php because they depend on
 * Kunena template parameters.
 */

/* PortalGraf KGrid pg6: layout defensivo inline.
		   Regla PortalGraf: máximo 2 columnas en escritorio. Cada sección
		   se ajusta al número real de categorías: 1 categoría = 1 columna,
		   2 o más = hasta 2 columnas. Si el número de categorías es impar,
		   la última tarjeta ocupa toda la fila. */
		#kunena.layout {
			width: 100%;
			max-width: 100%;
			box-sizing: border-box;
		}

		#kunena.layout .kfrontend.section,
		#kunena.layout .kfrontend.kwho,
		#kunena.layout .kfrontend.statistics {
			width: 100%;
			max-width: 100%;
			box-sizing: border-box;
			clear: both;
		}

		#kunena.layout .kcat-list {
			display: grid !important;
			grid-template-columns: 1fr !important;
			gap: 1rem !important;
			width: 100% !important;
			max-width: 100% !important;
			margin: 0 !important;
			padding: 0 !important;
			align-items: stretch !important;
		}

		@media (min-width: 768px) {
			#kunena.layout .kcat-list.kcat-list--cols-2 {
				grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
			}

			#kunena.layout .kcat-list.kcat-list--cols-2.kcat-list--odd > .kcat-item:last-child {
				grid-column: 1 / -1 !important;
			}
		}

		#kunena.layout .kcat-item {
			display: block !important;
			width: 100% !important;
			max-width: 100% !important;
			min-width: 0 !important;
			flex: none !important;
			flex-basis: auto !important;
			float: none !important;
			clear: none !important;
			margin: 0 !important;
			padding: 0 !important;
			box-sizing: border-box;
		}

		#kunena.layout .kcat-inner {
			display: flex !important;
			flex-direction: column !important;
			flex-wrap: nowrap !important;
			align-items: stretch !important;
			align-content: stretch !important;
			width: 100% !important;
			max-width: 100% !important;
			min-width: 0 !important;
			height: 100%;
			box-sizing: border-box;
			overflow: hidden;
		}

		#kunena.layout .kcat-header,
		#kunena.layout .cat-meta,
		#kunena.layout .cat-desc,
		#kunena.layout .last-post-wrap,
		#kunena.layout .last-post-message {
			width: 100% !important;
			max-width: 100% !important;
			min-width: 0 !important;
			box-sizing: border-box;
		}

		#kunena.layout .kcat-header {
			flex: 0 0 auto !important;
		}

		#kunena.layout .cat-meta {
			flex: 0 0 auto !important;
		}

		#kunena.layout .cat-desc {
			flex: 1 1 auto !important;
			overflow-wrap: anywhere;
		}

		#kunena.layout .cat-title,
		#kunena.layout .cat-title a,
		#kunena.layout .ksection-header h2,
		#kunena.layout .ksection-header h2 a {
			min-width: 0 !important;
			max-width: 100%;
			overflow-wrap: anywhere;
		}

		#kunena.layout .last-post-wrap {
			left: 0 !important;
			right: 0 !important;
		}


		/* PortalGraf KGrid pg6: selector de categorías y cabeceras PortalGraf. */
		#kunena.layout .kfilter-wrap,
		#kunena.layout .kfilter-wrap-top,
		#kunena.layout .kfilter-wrap-bot {
			width: 100% !important;
			max-width: 100% !important;
			clear: both !important;
			margin: 0 0 1.1rem !important;
			padding: .85rem 1rem !important;
			background: #ffffff !important;
			border: 1px solid rgba(29, 121, 137, .16) !important;
			border-radius: 1rem !important;
			box-sizing: border-box !important;
			overflow: visible !important;
		}

		#kunena.layout .kfilter-wrap form,
		#kunena.layout .kfilter-wrap .selector {
			display: block !important;
			width: 100% !important;
			max-width: 100% !important;
			min-width: 0 !important;
			margin: 0 !important;
			padding: 0 !important;
			box-sizing: border-box !important;
			overflow: visible !important;
		}

		#kunena.layout .kfilter-wrap select,
		#kunena.layout .kfilter-wrap .form-select,
		#kunena.layout .kfilter-wrap .inputbox,
		#kunena.layout select#catid {
			display: block !important;
			width: 100% !important;
			max-width: 100% !important;
			min-width: 0 !important;
			min-height: 2.75rem !important;
			height: auto !important;
			line-height: 1.45 !important;
			padding: .55rem 2.5rem .55rem .85rem !important;
			color: #171717 !important;
			background-color: #ffffff !important;
			border: 1px solid rgba(29, 121, 137, .25) !important;
			border-radius: .75rem !important;
			box-shadow: none !important;
			white-space: nowrap !important;
			text-overflow: ellipsis !important;
			overflow: hidden !important;
		}

		#kunena.layout .ksection-header,
		#kunena.layout .kwho .kblock-header,
		#kunena.layout .statistics .kblock-header {
			background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 48%, rgba(222, 113, 13, .9)) !important;
			border: 0 !important;
			border-left: 5px solid #de710d !important;
			border-radius: 1rem !important;
			color: #ffffff !important;
			padding: 1rem 3rem 1rem 1.15rem !important;
			margin: 1.1rem 0 .9rem !important;
			box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
			position: relative !important;
			overflow: hidden !important;
			box-sizing: border-box !important;
		}

		#kunena.layout .ksection-header h2,
		#kunena.layout .kwho .kblock-header h2,
		#kunena.layout .statistics .kblock-header h2 {
			margin: 0 .35rem .25rem 0 !important;
			padding: 0 !important;
			line-height: 1.25 !important;
			color: #ffffff !important;
		}

		#kunena.layout .ksection-header h2 a,
		#kunena.layout .kwho .kblock-header h2 a,
		#kunena.layout .statistics .kblock-header h2 a {
			color: #ffffff !important;
			text-decoration: none !important;
		}

		#kunena.layout .ksection-header h2 a:hover,
		#kunena.layout .ksection-header h2 a:focus,
		#kunena.layout .kwho .kblock-header h2 a:hover,
		#kunena.layout .kwho .kblock-header h2 a:focus,
		#kunena.layout .statistics .kblock-header h2 a:hover,
		#kunena.layout .statistics .kblock-header h2 a:focus {
			color: #ffffff !important;
			text-decoration: underline !important;
			text-underline-offset: .18rem !important;
		}

		#kunena.layout .ksection-header .ksection-desc,
		#kunena.layout .ksection-header p {
			margin: .25rem 0 0 !important;
			padding: 0 !important;
			color: rgba(255, 255, 255, .92) !important;
			line-height: 1.45 !important;
		}

		#kunena.layout .ksection-header .kbadge {
			background: rgba(255, 255, 255, .16) !important;
			border: 1px solid rgba(255, 255, 255, .28) !important;
			color: #ffffff !important;
			margin-left: .45rem !important;
		}

		#kunena.layout .ksection-header .kbtn-collapse {
			right: .9rem !important;
			top: 50% !important;
			margin-top: -14px !important;
			width: 28px !important;
			height: 28px !important;
			line-height: 28px !important;
			border-radius: .65rem !important;
			background: rgba(255, 255, 255, .16) !important;
			color: #ffffff !important;
		}

		#kunena.layout .ksection-header .kbtn-collapse i {
			color: #ffffff !important;
		}

		
		/* PortalGraf KGrid pg8: tarjetas de categorías con estética de hubs PortalGraf. */
		#kunena.layout .kcat-inner {
		  position: relative !important;
		  overflow: hidden !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.1rem !important;
		  background: #ffffff !important;
		  padding: 1rem 1.1rem 1rem 1.25rem !important;
		  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
		  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
		}
		
		#kunena.layout .kcat-inner::before {
		  content: "" !important;
		  position: absolute !important;
		  inset: 0 auto 0 0 !important;
		  width: 4px !important;
		  background: linear-gradient(180deg, #1d7989, #de710d) !important;
		  opacity: .75 !important;
		  pointer-events: none !important;
		}
		
		#kunena.layout .kcat-item:hover .kcat-inner,
		#kunena.layout .kcat-item:focus-within .kcat-inner {
		  border-color: rgba(222, 113, 13, .38) !important;
		  box-shadow: 0 14px 30px rgba(15, 23, 42, .085) !important;
		  transform: translateY(-1px) !important;
		}
		
		#kunena.layout .kcat-header {
		  display: grid !important;
		  grid-template-columns: auto minmax(0, 1fr) !important;
		  align-items: center !important;
		  column-gap: .75rem !important;
		  margin: 0 0 .55rem !important;
		  padding: 0 !important;
		}
		
		#kunena.layout .kcat-header .cat-icon {
		  width: 42px !important;
		  height: 42px !important;
		  margin: 0 !important;
		}
		
		#kunena.layout .kcat-header .cat-icon a {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  width: 42px !important;
		  height: 42px !important;
		  border-radius: .9rem !important;
		  border: 1px solid rgba(29, 121, 137, .16) !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .065) 48%, rgba(222, 113, 13, .09)) !important;
		  color: #1d7989 !important;
		  text-decoration: none !important;
		  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease !important;
		}
		
		#kunena.layout .kcat-header .cat-icon a:hover,
		#kunena.layout .kcat-header .cat-icon a:focus {
		  border-color: rgba(222, 113, 13, .28) !important;
		  background: rgba(222, 113, 13, .08) !important;
		  color: #de710d !important;
		  transform: translateY(-1px) !important;
		}
		
		#kunena.layout .kcat-header .cat-icon a i {
		  color: currentColor !important;
		  font-size: 1.18rem !important;
		  line-height: 1 !important;
		}
		
		#kunena.layout .cat-title {
		  display: flex !important;
		  align-items: center !important;
		  flex-wrap: wrap !important;
		  gap: .35rem .55rem !important;
		  margin: 0 !important;
		  font-size: 1.12rem !important;
		  font-weight: 700 !important;
		  line-height: 1.28 !important;
		}
		
		#kunena.layout .cat-title a:not(.kcat-rss) {
		  min-width: 0 !important;
		  color: #171717 !important;
		  text-decoration: none !important;
		}
		
		#kunena.layout .cat-title a:not(.kcat-rss):hover,
		#kunena.layout .cat-title a:not(.kcat-rss):focus {
		  color: #de710d !important;
		  text-decoration: underline !important;
		  text-decoration-thickness: .08em !important;
		  text-underline-offset: .18em !important;
		}
		
		#kunena.layout .cat-title .kcat-rss {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  width: 1.35rem !important;
		  height: 1.35rem !important;
		  border-radius: 999px !important;
		  background: rgba(222, 113, 13, .08) !important;
		  color: #de710d !important;
		  text-decoration: none !important;
		}
		
		#kunena.layout .cat-title .kcat-rss i {
		  color: currentColor !important;
		  font-size: .72rem !important;
		}
		
		#kunena.layout .cat-meta {
		  margin: .35rem 0 .55rem !important;
		}
		
		#kunena.layout .cat-meta ul {
		  display: flex !important;
		  flex-wrap: wrap !important;
		  gap: .4rem !important;
		  margin: 0 !important;
		  padding: 0 !important;
		}
		
		#kunena.layout .cat-meta li {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  gap: .25rem !important;
		  margin: 0 !important;
		  padding: .34rem .62rem !important;
		  border: 1px solid rgba(29, 121, 137, .16) !important;
		  border-radius: 999px !important;
		  background: #eef2f4 !important;
		  color: #5f6f76 !important;
		  font-size: .76rem !important;
		  font-weight: 700 !important;
		  line-height: 1.15 !important;
		  letter-spacing: 0 !important;
		  text-transform: none !important;
		  white-space: nowrap !important;
		}
		
		#kunena.layout .cat-meta li span {
		  margin: 0 !important;
		  padding: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  color: #1d7989 !important;
		  font-weight: 800 !important;
		  line-height: inherit !important;
		}
		
		#kunena.layout .kcat-item:hover .cat-meta li,
		#kunena.layout .kcat-item:focus-within .cat-meta li {
		  border-color: rgba(222, 113, 13, .24) !important;
		  background: rgba(222, 113, 13, .08) !important;
		  color: #de710d !important;
		}
		
		#kunena.layout .kcat-item:hover .cat-meta li span,
		#kunena.layout .kcat-item:focus-within .cat-meta li span {
		  color: #de710d !important;
		}
		
		#kunena.layout .cat-desc {
		  margin: .45rem 0 .85rem !important;
		  color: #5f6f76 !important;
		  font-size: .96rem !important;
		  line-height: 1.62 !important;
		}
		
		#kunena.layout .last-post-wrap {
		  position: static !important;
		  display: block !important;
		  align-self: stretch !important;
		  flex: 0 0 auto !important;
		  float: none !important;
		  clear: both !important;
		  width: auto !important;
		  max-width: none !important;
		  min-width: 0 !important;
		  min-height: 0 !important;
		  margin-top: auto !important;
		  margin-right: -1.1rem !important;
		  margin-bottom: -1rem !important;
		  margin-left: -1.25rem !important;
		  padding: .78rem 1.1rem .82rem 1.25rem !important;
		  border-top: 1px solid rgba(29, 121, 137, .12) !important;
		  background: linear-gradient(180deg, rgba(29, 121, 137, .035), rgba(29, 121, 137, .06)) !important;
		  box-sizing: border-box !important;
		}
		
		#kunena.layout .last-post-wrap > *,
		#kunena.layout .last-post-message,
		#kunena.layout .last-post-no-message,
		#kunena.layout .last-post-message .user-info {
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  box-sizing: border-box !important;
		}
		
		#kunena.layout .last-post-message,
		#kunena.layout .last-post-no-message {
		  color: #5f6f76 !important;
		  font-size: .9rem !important;
		  line-height: 1.45 !important;
		}
		
		#kunena.layout .last-post-no-message {
		  display: flex !important;
		  align-items: center !important;
		  min-height: 1.6rem !important;
		}
		
		#kunena.layout .last-post-link {
		  margin-bottom: .25rem !important;
		  font-weight: 700 !important;
		}
		
		#kunena.layout .last-post-link a,
		#kunena.layout .last-post-by a,
		#kunena.layout .kwho-user {
		  color: #1d7989 !important;
		  text-decoration: none !important;
		}
		
		#kunena.layout .last-post-link a:hover,
		#kunena.layout .last-post-link a:focus,
		#kunena.layout .last-post-by a:hover,
		#kunena.layout .last-post-by a:focus,
		#kunena.layout .kwho-user:hover,
		#kunena.layout .kwho-user:focus {
		  color: #de710d !important;
		  text-decoration: underline !important;
		  text-underline-offset: .18em !important;
		}
		
		#kunena.layout .last-post-by,
		#kunena.layout .last-post-date {
		  color: #5f6f76 !important;
		  font-size: .84rem !important;
		}
		
		#kunena.layout .kfrontend.kwho,
		#kunena.layout .kfrontend.statistics {
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.1rem !important;
		  background: #ffffff !important;
		  overflow: hidden !important;
		  box-shadow: 0 10px 24px rgba(15, 23, 42, .045) !important;
		  margin-top: 1.1rem !important;
		}
		
		#kunena.layout .kwho .kblock-body,
		#kunena.layout .statistics .kblock-body {
		  padding: 1rem 1.1rem !important;
		  color: #5f6f76 !important;
		}
		
		@media (max-width: 640px) {
		  #kunena.layout .kcat-inner {
		    padding: .95rem .95rem .95rem 1.1rem !important;
		    border-radius: .95rem !important;
		  }
		
		  #kunena.layout .last-post-wrap {
		    margin: auto -.95rem -.95rem -1.1rem !important;
		    padding: .75rem .95rem .8rem 1.1rem !important;
		  }
		
		  #kunena.layout .kcat-header {
		    grid-template-columns: auto minmax(0, 1fr) !important;
		  }
		
		  #kunena.layout .cat-title {
		    font-size: 1.05rem !important;
		  }
		}
		


		/* PortalGraf KGrid pg11: ajuste limpio de categoría, temas y paginación.
		   Corrige el enfoque de pg10: el contenedor de buscador+paginación no se trata
		   como una única tarjeta; el buscador queda como filtro y la paginación recupera
		   estilo PortalGraf independiente. También se añade base visual para view-topic. */
		#kunena.layout .krss-time {
		  margin-top: 1.15rem !important;
		  padding-top: .75rem !important;
		  border-top: 1px solid rgba(29, 121, 137, .10) !important;
		  color: #6b7b82 !important;
		  font-size: .85rem !important;
		  line-height: 1.45 !important;
		  clear: both !important;
		}

		#kunena.layout .krss-time .ktime-to-create-page {
		  margin-top: .28rem !important;
		}

		#kunena.layout .krss-time .krss a {
		  color: #de710d !important;
		  text-decoration: none !important;
		}

		#kunena.layout .krss-time .krss a:hover,
		#kunena.layout .krss-time .krss a:focus {
		  color: #1d7989 !important;
		}

		#kunena.layout #category-headerdesc,
		#kunena.layout [id^="category-headerdesc"],
		#kunena.layout [id^="topic-item-category-headerdesc"] {
		  display: none !important;
		}

		/* Buscador de categoría: sin encerrar también la paginación. */
		#kunena.layout .ktopic-list-search {
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 0 0 1rem !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list-search > [class*="kcol-"] {
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  flex: none !important;
		  padding: 0 !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list-search .kunena-search {
		  width: 100% !important;
		  margin: 0 !important;
		  padding: .9rem 1rem !important;
		  border: 1px solid rgba(29, 121, 137, .16) !important;
		  border-radius: 1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .kunena-search form,
		#kunena.layout .kunena-search .input-group {
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  margin: 0 !important;
		}

		#kunena.layout .kunena-search .input-group {
		  display: flex !important;
		  align-items: stretch !important;
		  border-radius: .85rem !important;
		}

		#kunena.layout .kunena-search input[type="search"],
		#kunena.layout .kunena-search .form-control {
		  min-height: 2.55rem !important;
		  border: 1px solid rgba(29, 121, 137, .22) !important;
		  border-right: 0 !important;
		  border-radius: .85rem 0 0 .85rem !important;
		  background: #ffffff !important;
		  box-shadow: none !important;
		  color: #171717 !important;
		}

		#kunena.layout .kunena-search input[type="search"]:focus,
		#kunena.layout .kunena-search .form-control:focus {
		  border-color: rgba(222, 113, 13, .42) !important;
		  box-shadow: 0 0 0 .15rem rgba(222, 113, 13, .10) !important;
		}

		#kunena.layout .kunena-search button,
		#kunena.layout .kunena-search .kbtn {
		  min-width: 2.8rem !important;
		  min-height: 2.55rem !important;
		  border-radius: 0 .85rem .85rem 0 !important;
		  border: 1px solid #de710d !important;
		  background: #de710d !important;
		  color: #ffffff !important;
		}

		#kunena.layout .kunena-search button:hover,
		#kunena.layout .kunena-search button:focus,
		#kunena.layout .kunena-search .kbtn:hover,
		#kunena.layout .kunena-search .kbtn:focus {
		  background: #832320 !important;
		  border-color: #832320 !important;
		  color: #ffffff !important;
		}

		/* Paginación independiente, no integrada dentro del filtro. */
		#kunena.layout .kpagination,
		#kunena.layout .ktopic-list-search .kpagination,
		#kunena.layout .kaction-wrap-bot .kpagination {
		  display: flex !important;
		  justify-content: flex-end !important;
		  align-items: center !important;
		  width: 100% !important;
		  margin: .95rem 0 !important;
		  padding: 0 !important;
		  background: transparent !important;
		  border: 0 !important;
		  box-shadow: none !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list-search .kpagination {
		  margin: .85rem 0 0 !important;
		}

		#kunena.layout .kpagination .pagination {
		  display: flex !important;
		  flex-wrap: wrap !important;
		  justify-content: flex-end !important;
		  gap: .35rem !important;
		  margin: 0 !important;
		  padding: 0 !important;
		  list-style: none !important;
		}

		#kunena.layout .kpagination .page-item {
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .kpagination .page-link {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  min-width: 2.35rem !important;
		  min-height: 2.25rem !important;
		  padding: .45rem .75rem !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: .75rem !important;
		  background: #ffffff !important;
		  color: #1d7989 !important;
		  font-weight: 700 !important;
		  line-height: 1.2 !important;
		  text-decoration: none !important;
		  box-shadow: 0 4px 12px rgba(15, 23, 42, .035) !important;
		}

		#kunena.layout .kpagination .page-item.active .page-link {
		  border-color: #1d7989 !important;
		  background: #1d7989 !important;
		  color: #ffffff !important;
		}

		#kunena.layout .kpagination .page-link:hover,
		#kunena.layout .kpagination .page-link:focus {
		  border-color: #de710d !important;
		  background: #de710d !important;
		  color: #ffffff !important;
		  box-shadow: 0 6px 16px rgba(222, 113, 13, .13) !important;
		}

		#kunena.layout .kpagination .page-item.disabled .page-link {
		  border-color: rgba(29, 121, 137, .10) !important;
		  background: #f7f9fa !important;
		  color: #8b9aa0 !important;
		  box-shadow: none !important;
		  cursor: default !important;
		}

		/* Lista de temas: cabecera más suave y filas tipo tarjeta PortalGraf. */
		#kunena.layout .ktopic-list,
		#kunena.layout .kblocktable.ktopic-list {
		  display: grid !important;
		  grid-template-columns: 1fr !important;
		  gap: .75rem !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1rem 0 !important;
		  padding: 0 !important;
		  list-style: none !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list > li {
		  list-style: none !important;
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner {
		  display: grid !important;
		  grid-template-columns: 42px minmax(0, 1fr) 5.8rem 5rem minmax(10rem, .65fr) !important;
		  gap: .75rem !important;
		  align-items: center !important;
		  padding: .78rem 1rem .78rem 1.25rem !important;
		  border: 1px solid rgba(29, 121, 137, .14) !important;
		  border-left: 5px solid #de710d !important;
		  border-radius: 1rem !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%) !important;
		  color: #1d7989 !important;
		  box-shadow: 0 7px 18px rgba(15, 23, 42, .035) !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner > div,
		#kunena.layout .ktopic-list .ktopic-row-head a,
		#kunena.layout .ktopic-list .ktopic-row-head i {
		  color: #1d7989 !important;
		  font-weight: 800 !important;
		  text-decoration: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  position: relative !important;
		  display: grid !important;
		  grid-template-columns: 42px minmax(0, 1fr) 5.8rem 5rem minmax(10rem, .65fr) !important;
		  gap: .75rem !important;
		  align-items: stretch !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  padding: 1rem 1rem 1rem 1.25rem !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
		  overflow: hidden !important;
		  box-sizing: border-box !important;
		  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner::before,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner::before {
		  content: "" !important;
		  position: absolute !important;
		  inset: 0 auto 0 0 !important;
		  width: 4px !important;
		  background: linear-gradient(180deg, #1d7989, #de710d) !important;
		  opacity: .75 !important;
		  pointer-events: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-inner {
		  border-color: rgba(222, 113, 13, .38) !important;
		  box-shadow: 0 14px 30px rgba(15, 23, 42, .085) !important;
		  transform: translateY(-1px) !important;
		}

		#kunena.layout .ktopic-col-icon {
		  display: flex !important;
		  align-items: flex-start !important;
		  justify-content: center !important;
		  min-width: 0 !important;
		}

		#kunena.layout .ktopic-row.category .ktopic-col-icon a {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  width: 42px !important;
		  height: 42px !important;
		  border-radius: .9rem !important;
		  border: 1px solid rgba(29, 121, 137, .16) !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .065) 48%, rgba(222, 113, 13, .09)) !important;
		  color: #1d7989 !important;
		  text-decoration: none !important;
		}

		#kunena.layout .ktopic-row.category .ktopic-col-icon a:hover,
		#kunena.layout .ktopic-row.category .ktopic-col-icon a:focus {
		  color: #de710d !important;
		  border-color: rgba(222, 113, 13, .28) !important;
		  background: rgba(222, 113, 13, .08) !important;
		}

		#kunena.layout .ktopic-row.category .ktopic-col-icon i {
		  color: currentColor !important;
		  font-size: 1.05rem !important;
		  line-height: 1 !important;
		}

		#kunena.layout .ktopic-col-title,
		#kunena.layout .ktopic-col-last-reply {
		  min-width: 0 !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .topic-title,
		#kunena.layout .topic-title h3 {
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .topic-title h3 {
		  font-size: 1.08rem !important;
		  line-height: 1.3 !important;
		  font-weight: 750 !important;
		}

		#kunena.layout .topic-title a.topictitle,
		#kunena.layout .topic-title h3 a {
		  color: #171717 !important;
		  text-decoration: none !important;
		  overflow-wrap: anywhere !important;
		}

		#kunena.layout .topic-title a.topictitle:hover,
		#kunena.layout .topic-title a.topictitle:focus,
		#kunena.layout .topic-title h3 a:hover,
		#kunena.layout .topic-title h3 a:focus {
		  color: #de710d !important;
		  text-decoration: underline !important;
		  text-underline-offset: .18em !important;
		}

		#kunena.layout .topic-meta ul {
		  display: flex !important;
		  flex-wrap: wrap !important;
		  gap: .25rem .55rem !important;
		  margin: .45rem 0 0 !important;
		  padding: 0 !important;
		  list-style: none !important;
		  color: #5f6f76 !important;
		  font-size: .86rem !important;
		  line-height: 1.45 !important;
		}

		#kunena.layout .topic-meta li {
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .topic-meta a,
		#kunena.layout .klast-topic-info a,
		#kunena.layout .kmsg a,
		#kunena.layout .message-published a {
		  color: #1d7989 !important;
		  text-decoration: none !important;
		}

		#kunena.layout .topic-meta a:hover,
		#kunena.layout .topic-meta a:focus,
		#kunena.layout .klast-topic-info a:hover,
		#kunena.layout .klast-topic-info a:focus,
		#kunena.layout .kmsg a:hover,
		#kunena.layout .kmsg a:focus,
		#kunena.layout .message-published a:hover,
		#kunena.layout .message-published a:focus {
		  color: #de710d !important;
		  text-decoration: underline !important;
		  text-underline-offset: .18em !important;
		}

		#kunena.layout .ktopic-col-replies,
		#kunena.layout .ktopic-col-hits {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  min-width: 0 !important;
		  border: 1px solid rgba(29, 121, 137, .13) !important;
		  border-radius: .9rem !important;
		  background: #eef2f4 !important;
		  color: #1d7989 !important;
		  font-weight: 800 !important;
		  font-size: .95rem !important;
		}

		#kunena.layout .ktopic-col-last-reply {
		  display: flex !important;
		  align-items: center !important;
		  border-left: 1px solid rgba(29, 121, 137, .10) !important;
		  padding-left: .85rem !important;
		  color: #5f6f76 !important;
		  font-size: .88rem !important;
		  line-height: 1.45 !important;
		}

		#kunena.layout .klast-topic-info {
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		}

		#kunena.layout .klast-topic-info .last-post-link,
		#kunena.layout .klast-topic-info .date-post {
		  display: block !important;
		  color: #5f6f76 !important;
		}

		#kunena.layout .klast-topic-info .last-post-link {
		  font-weight: 700 !important;
		  margin-bottom: .22rem !important;
		}

		#kunena.layout .klast-topic-info .date-post {
		  font-size: .82rem !important;
		}

		#kunena.layout .ktopic-row-footer .ktopic-inner,
		#kunena.layout .ktopic-list > li:not(.ktopic-row):not(.ktopic-row-head) .ktopic-inner {
		  padding: .4rem 0 !important;
		  border: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		}

		#kunena.layout .kactions-top,
		#kunena.layout .ktopic-action-wrap,
		#kunena.layout .kaction-wrap-bot {
		  display: flex !important;
		  flex-wrap: wrap !important;
		  gap: .45rem !important;
		  margin: .75rem 0 !important;
		}

		/* Vista de tema: cabecera y mensaje base con estética PortalGraf. */
		#kunena.layout .kunena-topic-item {
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .kpage-heading.ktopic-title {
		  display: flex !important;
		  align-items: center !important;
		  gap: .75rem !important;
		  margin: 0 0 1rem !important;
		  padding: 1rem 1.15rem !important;
		  border: 0 !important;
		  border-left: 5px solid #de710d !important;
		  border-radius: 1rem !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 48%, rgba(222, 113, 13, .9)) !important;
		  color: #ffffff !important;
		  line-height: 1.25 !important;
		  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .kpage-heading.ktopic-title .ktopic-icon,
		#kunena.layout .kpage-heading.ktopic-title .ktopic-icon i {
		  color: #ffffff !important;
		  font-size: 1.15rem !important;
		  line-height: 1 !important;
		}

		#kunena.layout .topic-item-messages,
		#kunena.layout .topic-item-messages .message {
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .topic-item-messages .message {
		  display: grid !important;
		  grid-template-columns: minmax(9.5rem, 12rem) minmax(0, 1fr) !important;
		  gap: 1rem !important;
		  align-items: start !important;
		  margin: 1rem 0 !important;
		}

		#kunena.layout .kprofile-box-wrap,
		#kunena.layout .message-published {
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 10px 24px rgba(15, 23, 42, .045) !important;
		  overflow: hidden !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .kprofile-box-wrap {
		  padding: .9rem !important;
		}

		#kunena.layout .kprofile-box,
		#kunena.layout .kprofile-links {
		  margin: 0 !important;
		  padding: 0 !important;
		  list-style: none !important;
		}

		#kunena.layout .user-avatar img {
		  max-width: 100% !important;
		  height: auto !important;
		  border-radius: 1rem !important;
		  border: 1px solid rgba(29, 121, 137, .14) !important;
		  background: #f7f9fa !important;
		}

		#kunena.layout .message-published {
		  padding: 0 !important;
		}

		#kunena.layout .kmsg-wrap {
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  margin: 0 !important;
		  border: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		}

		#kunena.layout .mykmsg-header {
		  display: flex !important;
		  flex-wrap: wrap !important;
		  align-items: center !important;
		  gap: .45rem .75rem !important;
		  margin: 0 !important;
		  padding: .85rem 1rem !important;
		  border-left: 5px solid #de710d !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .10)) !important;
		  color: #1d7989 !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .mykmsg-header h4 {
		  margin: 0 auto 0 0 !important;
		  color: #171717 !important;
		  font-size: 1.05rem !important;
		  line-height: 1.3 !important;
		  font-weight: 800 !important;
		}

		#kunena.layout .kmsg-post-date,
		#kunena.layout .mykmsg-header > a {
		  color: #5f6f76 !important;
		  font-size: .86rem !important;
		}

		#kunena.layout .kmsg {
		  padding: 1rem 1.1rem !important;
		  color: #171717 !important;
		  line-height: 1.65 !important;
		}

		#kunena.layout .ksig {
		  margin: 0 1.1rem 1rem !important;
		  padding: .75rem .85rem !important;
		  border-top: 1px solid rgba(29, 121, 137, .12) !important;
		  border-radius: .85rem !important;
		  background: rgba(29, 121, 137, .045) !important;
		  color: #5f6f76 !important;
		  font-size: .9rem !important;
		}

		#kunena.layout .message-published > p {
		  margin: 0 !important;
		  padding: .9rem 1.1rem !important;
		  border-top: 1px solid rgba(29, 121, 137, .10) !important;
		  color: #5f6f76 !important;
		}

		@media (max-width: 991.98px) {
		  #kunena.layout .kpagination,
		  #kunena.layout .ktopic-list-search .kpagination,
		  #kunena.layout .kaction-wrap-bot .kpagination {
		    justify-content: flex-start !important;
		  }

		  #kunena.layout .kpagination .pagination {
		    justify-content: flex-start !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row-head {
		    display: none !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: 42px minmax(0, 1fr) !important;
		    gap: .75rem !important;
		  }

		  #kunena.layout .ktopic-col-replies,
		  #kunena.layout .ktopic-col-hits {
		    grid-column: 2 / -1 !important;
		    justify-content: flex-start !important;
		    width: max-content !important;
		    max-width: 100% !important;
		    padding: .35rem .65rem !important;
		    min-height: 0 !important;
		  }

		  #kunena.layout .ktopic-col-last-reply {
		    grid-column: 1 / -1 !important;
		    border-left: 0 !important;
		    border-top: 1px solid rgba(29, 121, 137, .10) !important;
		    padding: .75rem 0 0 !important;
		    margin-top: .1rem !important;
		  }

		  #kunena.layout .topic-item-messages .message {
		    grid-template-columns: 1fr !important;
		  }
		}

		@media (max-width: 575.98px) {
		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: 1fr !important;
		    padding: .95rem .95rem .95rem 1.1rem !important;
		  }

		  #kunena.layout .ktopic-col-icon {
		    justify-content: flex-start !important;
		  }

		  #kunena.layout .ktopic-col-replies,
		  #kunena.layout .ktopic-col-hits,
		  #kunena.layout .ktopic-col-last-reply {
		    grid-column: 1 / -1 !important;
		  }

		  #kunena.layout .kpage-heading.ktopic-title {
		    padding: .9rem 1rem !important;
		    font-size: 1.35rem !important;
		  }
		}



		/* PortalGraf KGrid pg12: lista de temas como bloque único.
		   La cabecera de columnas y las filas de tema pertenecen al mismo módulo visual.
		   Se suavizan Respuestas/Visitas para que no parezcan cajas aisladas. */
		#kunena.layout .ktopic-list,
		#kunena.layout .kblocktable.ktopic-list {
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1rem 0 1.15rem !important;
		  padding: 0 !important;
		  list-style: none !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
		  overflow: hidden !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list > li {
		  list-style: none !important;
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  display: grid !important;
		  grid-template-columns: 42px minmax(0, 1fr) 5.2rem 4.6rem minmax(10rem, .62fr) !important;
		  gap: .75rem !important;
		  align-items: center !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  margin: 0 !important;
		  box-sizing: border-box !important;
		  border-radius: 0 !important;
		  box-shadow: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner {
		  padding: .74rem 1rem .74rem 1.25rem !important;
		  border: 0 !important;
		  border-left: 5px solid #de710d !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .105) 0%, rgba(29, 121, 137, .055) 64%, rgba(222, 113, 13, .075) 100%) !important;
		  color: #1d7989 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner > div,
		#kunena.layout .ktopic-list .ktopic-row-head a,
		#kunena.layout .ktopic-list .ktopic-row-head i {
		  color: #1d7989 !important;
		  font-size: .78rem !important;
		  font-weight: 800 !important;
		  line-height: 1.2 !important;
		  text-decoration: none !important;
		  text-transform: uppercase !important;
		  letter-spacing: .025em !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-icon a {
		  opacity: .62 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  position: relative !important;
		  padding: 1rem 1rem 1rem 1.25rem !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .12) !important;
		  background: #ffffff !important;
		  overflow: hidden !important;
		  transition: background .18s ease !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner::before,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner::before {
		  content: "" !important;
		  position: absolute !important;
		  inset: 0 auto 0 0 !important;
		  width: 4px !important;
		  background: linear-gradient(180deg, #1d7989, #de710d) !important;
		  opacity: .72 !important;
		  pointer-events: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-inner {
		  background: linear-gradient(135deg, rgba(29, 121, 137, .025), rgba(222, 113, 13, .022)) !important;
		  transform: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-col-icon a {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  width: 42px !important;
		  height: 42px !important;
		  border-radius: .9rem !important;
		  border: 1px solid rgba(29, 121, 137, .16) !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .065) 48%, rgba(222, 113, 13, .09)) !important;
		  color: #1d7989 !important;
		  text-decoration: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-col-icon a:hover,
		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-col-icon a:focus {
		  color: #de710d !important;
		  border-color: rgba(222, 113, 13, .28) !important;
		  background: rgba(222, 113, 13, .08) !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-col-icon i {
		  color: currentColor !important;
		  font-size: 1.05rem !important;
		  line-height: 1 !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-title,
		#kunena.layout .ktopic-list .ktopic-col-last-reply {
		  min-width: 0 !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-col-hits {
		  display: flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  min-width: 0 !important;
		  min-height: 2rem !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  color: #1d7989 !important;
		  font-size: 1.02rem !important;
		  font-weight: 800 !important;
		  line-height: 1.2 !important;
		  box-shadow: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-col-hits,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-col-hits {
		  color: #de710d !important;
		  background: transparent !important;
		  border: 0 !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-last-reply {
		  display: flex !important;
		  align-items: center !important;
		  border-left: 1px solid rgba(29, 121, 137, .10) !important;
		  padding-left: .85rem !important;
		  color: #5f6f76 !important;
		  font-size: .88rem !important;
		  line-height: 1.45 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-footer .ktopic-inner,
		#kunena.layout .ktopic-list > li:not(.ktopic-row):not(.ktopic-row-head) .ktopic-inner {
		  display: grid !important;
		  grid-template-columns: 42px minmax(0, 1fr) !important;
		  padding: .55rem 1rem .65rem 1.25rem !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .08) !important;
		  background: rgba(29, 121, 137, .025) !important;
		  box-shadow: none !important;
		}

		@media (max-width: 991.98px) {
		  #kunena.layout .ktopic-list,
		  #kunena.layout .kblocktable.ktopic-list {
		    border-radius: 1rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row-head {
		    display: none !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: 42px minmax(0, 1fr) !important;
		    gap: .75rem !important;
		    border-top: 0 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies,
		  #kunena.layout .ktopic-list .ktopic-col-hits {
		    grid-column: 2 / -1 !important;
		    display: inline-flex !important;
		    justify-content: flex-start !important;
		    width: max-content !important;
		    max-width: 100% !important;
		    min-height: 0 !important;
		    padding: .18rem 0 !important;
		    color: #1d7989 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies::after {
		    content: " respuestas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .84rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-hits::after {
		    content: " visitas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .84rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-last-reply {
		    grid-column: 1 / -1 !important;
		    border-left: 0 !important;
		    border-top: 1px solid rgba(29, 121, 137, .10) !important;
		    padding: .75rem 0 0 !important;
		    margin-top: .1rem !important;
		  }
		}

		@media (max-width: 575.98px) {
		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: 1fr !important;
		    padding: .95rem .95rem .95rem 1.1rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-icon {
		    justify-content: flex-start !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies,
		  #kunena.layout .ktopic-list .ktopic-col-hits,
		  #kunena.layout .ktopic-list .ktopic-col-last-reply {
		    grid-column: 1 / -1 !important;
		  }
		}


		/* PortalGraf KGrid pg13: categoría como tabla limpia.
		   Se evita la mezcla tarjeta/tabla: el buscador queda arriba, la tabla contiene
		   solo cabecera y temas, y la paginación queda únicamente debajo. */
		#kunena.layout .ktopic-list-search {
		  display: block !important;
		  margin: 0 0 1rem !important;
		  padding: 0 !important;
		  background: transparent !important;
		  border: 0 !important;
		  box-shadow: none !important;
		}

		#kunena.layout .ktopic-list-search > .kcol-12,
		#kunena.layout .ktopic-list-search > [class*="kcol-"] {
		  width: 100% !important;
		  max-width: 100% !important;
		  padding: 0 !important;
		  flex: none !important;
		}

		#kunena.layout .ktopic-list-search > [class*="kcol-"] .kpagination,
		#kunena.layout .ktopic-list-search > .kcol-md-6:nth-child(2) {
		  display: none !important;
		}

		#kunena.layout .ktopic-list-search .kunena-search {
		  margin: 0 !important;
		  padding: .85rem 1rem !important;
		  border: 1px solid rgba(29, 121, 137, .16) !important;
		  border-radius: 1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 8px 20px rgba(15, 23, 42, .035) !important;
		}

		#kunena.layout .ktopic-list,
		#kunena.layout .kblocktable.ktopic-list {
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1rem 0 .95rem !important;
		  padding: 0 !important;
		  list-style: none !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
		  overflow: hidden !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list > li {
		  margin: 0 !important;
		  padding: 0 !important;
		  list-style: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  display: grid !important;
		  grid-template-columns: 40px minmax(0, 1.35fr) 5.4rem 4.8rem minmax(10rem, .8fr) !important;
		  gap: .7rem !important;
		  align-items: center !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  margin: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  box-shadow: none !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner {
		  padding: .72rem 1rem .72rem 1.15rem !important;
		  border-left: 5px solid #de710d !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%) !important;
		  color: #1d7989 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner > div,
		#kunena.layout .ktopic-list .ktopic-row-head a,
		#kunena.layout .ktopic-list .ktopic-row-head i {
		  color: #1d7989 !important;
		  font-size: .76rem !important;
		  font-weight: 800 !important;
		  line-height: 1.2 !important;
		  text-decoration: none !important;
		  text-transform: uppercase !important;
		  letter-spacing: .025em !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  position: relative !important;
		  padding: .95rem 1rem .95rem 1.15rem !important;
		  border-top: 1px solid rgba(29, 121, 137, .115) !important;
		  background: #ffffff !important;
		  overflow: hidden !important;
		  transition: background .16s ease !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner::before,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner::before {
		  content: "" !important;
		  position: absolute !important;
		  inset: 0 auto 0 0 !important;
		  width: 4px !important;
		  background: linear-gradient(180deg, #1d7989, #de710d) !important;
		  opacity: .68 !important;
		  pointer-events: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-inner {
		  background: linear-gradient(135deg, rgba(29, 121, 137, .025), rgba(222, 113, 13, .018)) !important;
		  transform: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-col-icon a {
		  display: inline-flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  width: 38px !important;
		  height: 38px !important;
		  border: 1px solid rgba(29, 121, 137, .15) !important;
		  border-radius: .8rem !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .06) 48%, rgba(222, 113, 13, .085)) !important;
		  color: #1d7989 !important;
		  text-decoration: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-col-icon i {
		  color: currentColor !important;
		  font-size: 1rem !important;
		  line-height: 1 !important;
		}

		#kunena.layout .ktopic-list .topic-title h3,
		#kunena.layout .ktopic-list .topic-title {
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .ktopic-list .topic-title h3 {
		  font-size: 1.04rem !important;
		  line-height: 1.3 !important;
		  font-weight: 800 !important;
		}

		#kunena.layout .ktopic-list .topic-meta ul {
		  display: flex !important;
		  flex-wrap: wrap !important;
		  gap: .18rem .55rem !important;
		  margin: .38rem 0 0 !important;
		  padding: 0 !important;
		  list-style: none !important;
		  color: #5f6f76 !important;
		  font-size: .84rem !important;
		  line-height: 1.45 !important;
		}

		#kunena.layout .ktopic-list .topic-meta li {
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-col-hits {
		  display: flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  min-width: 0 !important;
		  min-height: 0 !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  color: #1d7989 !important;
		  font-size: 1rem !important;
		  font-weight: 800 !important;
		  line-height: 1.2 !important;
		  text-align: center !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-hits {
		  font-size: .76rem !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-last-reply {
		  display: flex !important;
		  align-items: center !important;
		  min-width: 0 !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  padding-left: .85rem !important;
		  border-left: 1px solid rgba(29, 121, 137, .10) !important;
		  color: #5f6f76 !important;
		  font-size: .86rem !important;
		  line-height: 1.45 !important;
		}

		#kunena.layout .ktopic-list > li:not(.ktopic-row):not(.ktopic-row-head) {
		  display: none !important;
		}

		#kunena.layout #categoryactions + .kpagination,
		#kunena.layout .kaction-wrap-bot .kpagination {
		  display: flex !important;
		  justify-content: flex-end !important;
		  margin: .95rem 0 0 !important;
		  padding: 0 !important;
		  background: transparent !important;
		  border: 0 !important;
		  box-shadow: none !important;
		}

		@media (max-width: 991.98px) {
		  #kunena.layout .ktopic-list .ktopic-row-head {
		    display: none !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: 40px minmax(0, 1fr) !important;
		    gap: .7rem !important;
		    border-top: 0 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies,
		  #kunena.layout .ktopic-list .ktopic-col-hits {
		    grid-column: 2 / -1 !important;
		    display: inline-flex !important;
		    justify-content: flex-start !important;
		    width: max-content !important;
		    max-width: 100% !important;
		    padding: .12rem 0 !important;
		    font-size: .92rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies::after {
		    content: " respuestas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .82rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-hits::after {
		    content: " visitas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .82rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-last-reply {
		    grid-column: 1 / -1 !important;
		    border-left: 0 !important;
		    border-top: 1px solid rgba(29, 121, 137, .10) !important;
		    padding: .7rem 0 0 !important;
		    margin-top: .05rem !important;
		  }
		}

		@media (max-width: 575.98px) {
		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: 1fr !important;
		    padding: .9rem .95rem .9rem 1.05rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-icon,
		  #kunena.layout .ktopic-list .ktopic-col-replies,
		  #kunena.layout .ktopic-list .ktopic-col-hits,
		  #kunena.layout .ktopic-list .ktopic-col-last-reply {
		    grid-column: 1 / -1 !important;
		  }
		}


		/* PortalGraf KGrid pg14: corrección estructural de categoría.
		   El formulario de acciones no debe comportarse como tarjeta ni envolver
		   visualmente la paginación o el pie de tiempo de carga. La tabla de temas
		   es el único bloque con borde/sombra; lo demás queda fuera. */
		#kunena.layout form#categoryactions {
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 0 !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  overflow: visible !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout form#categoryactions .kactions-top:empty {
		  display: none !important;
		}

		#kunena.layout form#categoryactions .ktopic-list {
		  margin: 1rem 0 0 !important;
		}

		#kunena.layout form#categoryactions + .kpagination {
		  display: flex !important;
		  justify-content: flex-end !important;
		  align-items: center !important;
		  width: 100% !important;
		  margin: .95rem 0 0 !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  overflow: visible !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout form#categoryactions + .kpagination .pagination {
		  margin: 0 !important;
		}

		#kunena.layout form#categoryactions ~ .krss-time,
		#kunena.layout .kpagination + .clearfix + .krss-time,
		#kunena.layout .kpagination ~ .krss-time {
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1.15rem 0 0 !important;
		  padding: .75rem 0 0 !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .10) !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  color: #6b7b82 !important;
		  clear: both !important;
		}

		#kunena.layout .ktopic-list > li:not(.ktopic-row):not(.ktopic-row-head),
		#kunena.layout .ktopic-list > li:not(.ktopic-row):not(.ktopic-row-head) .ktopic-inner {
		  display: none !important;
		}



		/* PortalGraf KGrid pg15: tabla de temas compacta y limpia.
		   - Se elimina la primera columna de icono en la vista de categoría.
		   - Respuestas y Visitas reducen anchura para no dominar la tabla.
		   - El filete izquierdo pasa a ser único, degradado y envolvente de todo el bloque.
		   - La paginación superior queda fuera de uso; se conserva la inferior.
		   - El pie RSS/tiempo queda centrado en una sola línea. */
		#kunena.layout .ktopic-list-search > .kcol-md-6:nth-child(2),
		#kunena.layout .ktopic-list-search > [class*="kcol-"]:has(.kpagination) {
		  display: none !important;
		}

		#kunena.layout .ktopic-list-search > .kcol-md-6:first-child,
		#kunena.layout .ktopic-list-search > [class*="kcol-"]:first-child {
		  width: 100% !important;
		  max-width: 100% !important;
		}

		#kunena.layout form#categoryactions .ktopic-list,
		#kunena.layout .ktopic-list,
		#kunena.layout .kblocktable.ktopic-list {
		  position: relative !important;
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1rem 0 1rem !important;
		  padding: 0 !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.05rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
		  overflow: hidden !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list::before,
		#kunena.layout .kblocktable.ktopic-list::before {
		  content: "" !important;
		  position: absolute !important;
		  inset: 0 auto 0 0 !important;
		  width: 5px !important;
		  background: linear-gradient(180deg, #1d7989 0%, #2a7f84 48%, #de710d 100%) !important;
		  opacity: .95 !important;
		  pointer-events: none !important;
		  z-index: 2 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  display: grid !important;
		  grid-template-columns: minmax(0, 1.75fr) 4.05rem 3.35rem minmax(8.5rem, .58fr) !important;
		  gap: .62rem !important;
		  align-items: center !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  margin: 0 !important;
		  border-left: 0 !important;
		  border-radius: 0 !important;
		  box-shadow: none !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-icon {
		  display: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner {
		  padding: .72rem .95rem .72rem 1.25rem !important;
		  border: 0 !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%) !important;
		  color: #1d7989 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  position: relative !important;
		  padding: .92rem .95rem .92rem 1.25rem !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .115) !important;
		  background: #ffffff !important;
		  overflow: hidden !important;
		  transition: background .16s ease !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner::before,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner::before {
		  display: none !important;
		  content: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-inner {
		  background: linear-gradient(135deg, rgba(29, 121, 137, .026), rgba(222, 113, 13, .020)) !important;
		  transform: none !important;
		  box-shadow: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-title,
		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-last-reply {
		  text-align: left !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-hits {
		  text-align: center !important;
		  justify-content: center !important;
		  font-size: .68rem !important;
		  letter-spacing: .018em !important;
		  white-space: normal !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner > div,
		#kunena.layout .ktopic-list .ktopic-row-head a,
		#kunena.layout .ktopic-list .ktopic-row-head i {
		  color: #1d7989 !important;
		  font-weight: 800 !important;
		  line-height: 1.15 !important;
		  text-decoration: none !important;
		  text-transform: uppercase !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-col-hits {
		  display: flex !important;
		  align-items: center !important;
		  justify-content: center !important;
		  min-width: 0 !important;
		  min-height: 0 !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  color: #1d7989 !important;
		  font-size: .96rem !important;
		  font-weight: 800 !important;
		  line-height: 1.2 !important;
		  text-align: center !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-last-reply {
		  display: flex !important;
		  align-items: center !important;
		  min-width: 0 !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  padding-left: .7rem !important;
		  border-left: 1px solid rgba(29, 121, 137, .10) !important;
		  color: #5f6f76 !important;
		  font-size: .84rem !important;
		  line-height: 1.42 !important;
		}

		#kunena.layout form#categoryactions + .kpagination {
		  display: flex !important;
		  justify-content: flex-end !important;
		  align-items: center !important;
		  width: 100% !important;
		  margin: .95rem 0 0 !important;
		  padding: 0 !important;
		  border: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		}

		#kunena.layout form#categoryactions ~ .krss-time,
		#kunena.layout .kpagination + .clearfix + .krss-time,
		#kunena.layout .kpagination ~ .krss-time,
		#kunena.layout .krss-time {
		  display: flex !important;
		  justify-content: center !important;
		  align-items: center !important;
		  gap: .55rem !important;
		  flex-wrap: wrap !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1.1rem 0 0 !important;
		  padding: .72rem 0 0 !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .10) !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  color: #6b7b82 !important;
		  clear: both !important;
		  text-align: center !important;
		  font-size: .84rem !important;
		  line-height: 1.4 !important;
		}

		#kunena.layout .krss-time .krss,
		#kunena.layout .krss-time .ktime-to-create-page {
		  display: inline-flex !important;
		  align-items: center !important;
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .krss-time .krss::after {
		  content: "·" !important;
		  margin-left: .55rem !important;
		  color: rgba(29, 121, 137, .45) !important;
		  font-weight: 700 !important;
		}

		@media (max-width: 991.98px) {
		  #kunena.layout .ktopic-list .ktopic-row-head {
		    display: none !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: minmax(0, 1fr) !important;
		    gap: .38rem !important;
		    border-top: 0 !important;
		    padding: .9rem .95rem .9rem 1.15rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies,
		  #kunena.layout .ktopic-list .ktopic-col-hits {
		    justify-content: flex-start !important;
		    width: max-content !important;
		    max-width: 100% !important;
		    padding: .1rem 0 !important;
		    font-size: .9rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies::after {
		    content: " respuestas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .82rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-hits::after {
		    content: " visitas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .82rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-last-reply {
		    border-left: 0 !important;
		    border-top: 1px solid rgba(29, 121, 137, .10) !important;
		    padding: .7rem 0 0 !important;
		    margin-top: .08rem !important;
		  }
		}


		/* PortalGraf KGrid pg16: compactación final de tabla de temas en categoría.
		   - Sin primera columna visual.
		   - Columnas Respuestas/Visitas más estrechas.
		   - Cabecera más baja.
		   - Sombra/hover alineados con las tarjetas PortalGraf ya aprobadas.
		   - Un solo filete degradado envolvente en el bloque. */
		#kunena.layout form#categoryactions .ktopic-list,
		#kunena.layout .ktopic-list,
		#kunena.layout .kblocktable.ktopic-list {
		  position: relative !important;
		  display: block !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: .9rem 0 1rem !important;
		  padding: 0 !important;
		  border: 1px solid rgba(29, 121, 137, .18) !important;
		  border-radius: 1.1rem !important;
		  background: #ffffff !important;
		  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
		  overflow: hidden !important;
		  box-sizing: border-box !important;
		  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
		}

		#kunena.layout form#categoryactions .ktopic-list:hover,
		#kunena.layout .ktopic-list:hover,
		#kunena.layout .kblocktable.ktopic-list:hover {
		  border-color: rgba(222, 113, 13, .26) !important;
		  box-shadow: 0 14px 30px rgba(15, 23, 42, .075) !important;
		}

		#kunena.layout form#categoryactions .ktopic-list::before,
		#kunena.layout .ktopic-list::before,
		#kunena.layout .kblocktable.ktopic-list::before {
		  content: "" !important;
		  position: absolute !important;
		  inset: 0 auto 0 0 !important;
		  width: 5px !important;
		  background: linear-gradient(180deg, #1d7989 0%, #2a7f84 48%, #de710d 100%) !important;
		  opacity: .95 !important;
		  pointer-events: none !important;
		  z-index: 3 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner::before,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner::before,
		#kunena.layout form#categoryactions .ktopic-list .ktopic-row.category .ktopic-inner::before,
		#kunena.layout form#categoryactions .ktopic-list .ktopic-row.no-topics .ktopic-inner::before {
		  display: none !important;
		  content: none !important;
		  width: 0 !important;
		  background: transparent !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  display: grid !important;
		  grid-template-columns: minmax(0, 1.95fr) 3.05rem 2.75rem minmax(7.25rem, .48fr) !important;
		  gap: .42rem !important;
		  align-items: center !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  min-width: 0 !important;
		  margin: 0 !important;
		  border-left: 0 !important;
		  border-radius: 0 !important;
		  box-shadow: none !important;
		  box-sizing: border-box !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-icon {
		  display: none !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner {
		  min-height: 0 !important;
		  padding: .48rem .85rem .48rem 1.18rem !important;
		  border: 0 !important;
		  background: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%) !important;
		  color: #1d7989 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner > div,
		#kunena.layout .ktopic-list .ktopic-row-head a,
		#kunena.layout .ktopic-list .ktopic-row-head i {
		  color: #1d7989 !important;
		  font-size: .68rem !important;
		  font-weight: 800 !important;
		  line-height: 1.12 !important;
		  text-decoration: none !important;
		  text-transform: uppercase !important;
		  letter-spacing: .018em !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-hits,
		#kunena.layout .ktopic-list .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-col-hits {
		  justify-content: center !important;
		  text-align: center !important;
		  white-space: normal !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  position: relative !important;
		  padding: .78rem .85rem .78rem 1.18rem !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .11) !important;
		  background: #ffffff !important;
		  overflow: hidden !important;
		  transition: background .18s ease !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-inner {
		  background: linear-gradient(135deg, rgba(29, 121, 137, .026), rgba(222, 113, 13, .020)) !important;
		  transform: none !important;
		  box-shadow: none !important;
		}

		#kunena.layout .ktopic-list .topic-title h3 {
		  font-size: 1.02rem !important;
		  line-height: 1.28 !important;
		}

		#kunena.layout .ktopic-list .topic-meta ul {
		  margin-top: .32rem !important;
		  gap: .18rem .5rem !important;
		  font-size: .82rem !important;
		  line-height: 1.38 !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-col-hits {
		  display: flex !important;
		  align-items: center !important;
		  min-width: 0 !important;
		  min-height: 0 !important;
		  padding: 0 !important;
		  border: 0 !important;
		  border-radius: 0 !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  color: #1d7989 !important;
		  font-size: .9rem !important;
		  font-weight: 800 !important;
		  line-height: 1.15 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row.category:hover .ktopic-col-hits,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row.category:focus-within .ktopic-col-hits {
		  color: #de710d !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-last-reply {
		  display: flex !important;
		  align-items: center !important;
		  min-width: 0 !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  padding-left: .58rem !important;
		  border-left: 1px solid rgba(29, 121, 137, .10) !important;
		  color: #5f6f76 !important;
		  font-size: .80rem !important;
		  line-height: 1.34 !important;
		}

		#kunena.layout .ktopic-list .klast-topic-info .last-post-link {
		  margin-bottom: .16rem !important;
		  font-weight: 700 !important;
		}

		#kunena.layout .ktopic-list .klast-topic-info .date-post {
		  font-size: .78rem !important;
		}

		#kunena.layout form#categoryactions + .kpagination,
		#kunena.layout #categoryactions + .kpagination {
		  justify-content: flex-end !important;
		  margin: .85rem 0 0 !important;
		}

		#kunena.layout form#categoryactions ~ .krss-time,
		#kunena.layout .kpagination + .clearfix + .krss-time,
		#kunena.layout .kpagination ~ .krss-time,
		#kunena.layout .krss-time {
		  display: flex !important;
		  justify-content: center !important;
		  align-items: center !important;
		  gap: .5rem !important;
		  flex-wrap: wrap !important;
		  width: 100% !important;
		  max-width: 100% !important;
		  margin: 1.05rem 0 0 !important;
		  padding: .7rem 0 0 !important;
		  border: 0 !important;
		  border-top: 1px solid rgba(29, 121, 137, .10) !important;
		  background: transparent !important;
		  box-shadow: none !important;
		  color: #6b7b82 !important;
		  clear: both !important;
		  text-align: center !important;
		  font-size: .84rem !important;
		  line-height: 1.4 !important;
		}

		#kunena.layout .krss-time .krss,
		#kunena.layout .krss-time .ktime-to-create-page {
		  display: inline-flex !important;
		  align-items: center !important;
		  margin: 0 !important;
		  padding: 0 !important;
		}

		#kunena.layout .krss-time .krss::after {
		  content: "·" !important;
		  margin-left: .5rem !important;
		  color: rgba(29, 121, 137, .45) !important;
		  font-weight: 700 !important;
		}

		@media (max-width: 991.98px) {
		  #kunena.layout .ktopic-list .ktopic-row-head {
		    display: none !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: minmax(0, 1fr) !important;
		    gap: .34rem !important;
		    border-top: 0 !important;
		    padding: .82rem .9rem .82rem 1.1rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies,
		  #kunena.layout .ktopic-list .ktopic-col-hits {
		    justify-content: flex-start !important;
		    width: max-content !important;
		    max-width: 100% !important;
		    padding: .08rem 0 !important;
		    font-size: .88rem !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-replies::after {
		    content: " respuestas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .8rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-hits::after {
		    content: " visitas" !important;
		    margin-left: .25rem !important;
		    color: #5f6f76 !important;
		    font-size: .8rem !important;
		    font-weight: 600 !important;
		  }

		  #kunena.layout .ktopic-list .ktopic-col-last-reply {
		    border-left: 0 !important;
		    border-top: 1px solid rgba(29, 121, 137, .10) !important;
		    padding: .65rem 0 0 !important;
		    margin-top: .05rem !important;
		  }
		}


		/* PortalGraf KGrid pg18: más aire para Respuestas y Visitas.
		   Mantiene la tabla compacta, pero evita que los encabezados centrales
		   queden comprimidos o con sensación apelmazada. */
		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		  grid-template-columns: minmax(0, 1.72fr) minmax(5.45rem, .20fr) minmax(4.55rem, .16fr) minmax(8rem, .50fr) !important;
		  gap: .55rem !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-col-hits {
		  font-size: .72rem !important;
		  line-height: 1.12 !important;
		  letter-spacing: .012em !important;
		  white-space: nowrap !important;
		}

		#kunena.layout .ktopic-list .ktopic-col-replies,
		#kunena.layout .ktopic-list .ktopic-col-hits {
		  font-size: .93rem !important;
		  line-height: 1.15 !important;
		}

		#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner {
		  padding-top: .50rem !important;
		  padding-bottom: .50rem !important;
		}

		@media (max-width: 991.98px) {
		  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner,
		  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner {
		    grid-template-columns: minmax(0, 1fr) !important;
		    gap: .34rem !important;
		  }
		}

		/* PortalGraf KGrid pg9: ocultación defensiva del breadcrumb interno de Kunena.
		   La salida PHP también queda suprimida en layouts/page/default.php. */
		#kunena.layout .kbreadcrumbs,
		#kunena.layout .mod-kunena-breadcrumbs {
		  display: none !important;
		}


		/* PortalGraf KGrid pg19: contador de temas integrado en título de sección.
		   Sustituye la píldora por texto natural: “Título, 1 tema”. */
		#kunena.layout .ksection-header .ksection-title-separator,
		#kunena.layout .ksection-header .ksection-topic-count {
			display: inline !important;
			margin: 0 !important;
			padding: 0 !important;
			border: 0 !important;
			border-radius: 0 !important;
			background: transparent !important;
			box-shadow: none !important;
			color: rgba(255, 255, 255, .88) !important;
			font-size: .92rem !important;
			font-weight: 600 !important;
			line-height: inherit !important;
			letter-spacing: 0 !important;
			text-transform: none !important;
			white-space: nowrap !important;
			vertical-align: baseline !important;
		}

		#kunena.layout .ksection-header .ksection-topic-count {
			font-variant-numeric: tabular-nums !important;
		}


/* PortalGraf KGrid pg25: corrección real de vista de tema.
   Refuerza selectores sobre body.view-topic para evitar que la SCSS original
   deje iconos, filetes interrumpidos, textos blancos o anclas # flotando. */
body.view-topic #kunena.layout .kpage-heading.ktopic-title {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 1rem 1.15rem !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 48%, rgba(222, 113, 13, .9)) !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  color: #ffffff !important;
  font-size: 1.52rem !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon,
body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon *,
body.view-topic #kunena.layout .kpage-heading.ktopic-title > i,
body.view-topic #kunena.layout .kpage-heading.ktopic-title > svg {
  display: none !important;
}

body.view-topic #kunena.layout .topic-item-messages {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  margin: 1rem 0 !important;
  padding: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .message {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(9.25rem, 11.5rem) minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.view-topic #kunena.layout .topic-item-messages .message:hover,
body.view-topic #kunena.layout .topic-item-messages .message:focus-within {
  border-color: rgba(222, 113, 13, .34) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .085) !important;
  transform: translateY(-1px) !important;
}

body.view-topic #kunena.layout .topic-item-messages .message::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  height: auto !important;
  background: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) !important;
  opacity: .96 !important;
  pointer-events: none !important;
  z-index: 5 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap,
body.view-topic #kunena.layout .topic-item-messages .message-published,
body.view-topic #kunena.layout .topic-item-messages .message-deleted {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
  padding: 1rem .95rem 1rem 1.15rem !important;
  border-right: 1px solid rgba(29, 121, 137, .11) !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(222, 113, 13, .035)) !important;
  color: #5f6f76 !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap *,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap span,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap li {
  color: #5f6f76 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap a,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap a *,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap .kwho-admin,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap .kwho-admin * {
  color: #1d7989 !important;
  text-decoration: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap a:hover,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap a:focus,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap a:hover *,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap a:focus * {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar a.badge,
body.view-topic #kunena.layout .topic-item-messages .user-avatar .badge,
body.view-topic #kunena.layout .topic-item-messages .badge.bg-default {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  margin-top: .45rem !important;
  padding: .28rem .55rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #6b7b82 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar img {
  width: 74px !important;
  height: 74px !important;
  max-width: 74px !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  object-fit: cover !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-name {
  margin-top: .25rem !important;
  font-size: .98rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body.view-topic #kunena.layout .topic-item-messages .topic-starter,
body.view-topic #kunena.layout .topic-item-messages .user-title span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: .22rem .5rem !important;
  border-radius: 999px !important;
  background: rgba(29, 121, 137, .07) !important;
  color: #1d7989 !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-rank-bar {
  display: block !important;
  width: 72px !important;
  height: 6px !important;
  margin: .1rem auto !important;
  border-radius: 999px !important;
  background: rgba(29, 121, 137, .10) !important;
  overflow: hidden !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-rank-level {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #1d7989, #de710d) !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  flex-wrap: wrap !important;
  margin: .65rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-links span,
body.view-topic #kunena.layout .topic-item-messages .kprofile-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.55rem !important;
  height: 1.55rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: .55rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .35rem .7rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .72rem 1rem !important;
  border: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%) !important;
  color: #1d7989 !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header::before,
body.view-topic #kunena.layout .topic-item-messages .message-published::before,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap::before {
  display: none !important;
  content: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: 1.04rem !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  flex: 0 1 auto !important;
  color: #5f6f76 !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a[id],
body.view-topic #kunena.layout .topic-item-messages .kmsg-anchor {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg {
  padding: 1.05rem 1.1rem !important;
  color: #171717 !important;
  font-size: .98rem !important;
  line-height: 1.68 !important;
}

body.view-topic #kunena.layout .topic-item-messages .ksig {
  margin: 0 1.1rem 1rem !important;
  padding: .75rem .85rem !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .85rem !important;
  background: rgba(29, 121, 137, .045) !important;
  color: #5f6f76 !important;
  font-size: .9rem !important;
  line-height: 1.5 !important;
}

body.view-topic #kunena.layout .topic-item-messages .message-published > p,
body.view-topic #kunena.layout .topic-item-messages .message-deleted > p {
  margin: 0 !important;
  padding: .88rem 1.1rem !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  background: rgba(29, 121, 137, .025) !important;
  color: #5f6f76 !important;
  font-size: .9rem !important;
  line-height: 1.45 !important;
}

/* PortalGraf pg98: no ocultar la botonera propia del mensaje; ahí están Responder, Citar y Editar.
   Solo se eliminan listas realmente vacías para evitar huecos. */
body.view-topic #kunena.layout .ktopic-action-wrap:empty,
body.view-topic #kunena.layout .topic-actions:empty {
  display: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
  margin: .85rem 0 0 !important;
  padding: .72rem 0 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  clear: both !important;
  position: relative !important;
  z-index: 3 !important;
}

body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .topic-actions,
body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .moderate-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .topic-actions > li,
body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .moderate-actions > li {
  margin: 0 !important;
  padding: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .kbtn,
body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .kbutton,
body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap a.kbtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .38rem !important;
  min-height: 2.15rem !important;
  padding: .45rem .75rem !important;
  border-radius: .75rem !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .kbutton-edit,
body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap #btn_edit {
  border-color: rgba(222, 113, 13, .32) !important;
  color: #de710d !important;
  background: rgba(222, 113, 13, .08) !important;
}

body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap .kbutton-edit:hover,
body.view-topic #kunena.layout .topic-item-messages .ktopic-action-wrap #btn_edit:hover {
  color: #ffffff !important;
  background: #de710d !important;
  border-color: #de710d !important;
}

body.view-topic #kunena.layout .kunena-topic-item > .kfilter-wrap {
  margin: 1.05rem 0 0 !important;
  padding: .85rem 1rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035) !important;
}

body.view-topic #kunena.layout .kunena-topic-item + .krss-time,
body.view-topic #kunena.layout .krss-time {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .55rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.15rem 0 0 !important;
  padding: .72rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7b82 !important;
  clear: both !important;
  text-align: center !important;
  font-size: .84rem !important;
  line-height: 1.4 !important;
}

@media (max-width: 991.98px) {
  body.view-topic #kunena.layout .topic-item-messages .message {
    grid-template-columns: 1fr !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(29, 121, 137, .11) !important;
    text-align: left !important;
  }
}

@media (max-width: 575.98px) {
  body.view-topic #kunena.layout .topic-item-messages .message::before {
    width: 3px !important;
  }

  body.view-topic #kunena.layout .kpage-heading.ktopic-title {
    padding: .9rem 1rem !important;
    font-size: 1.28rem !important;
  }
}


/* PortalGraf KGrid pg26: vista de tema con dos tarjetas separadas.
   Se restaura la lectura correcta: una tarjeta para el perfil y otra para el post.
   El perfil no lleva filete lateral; el post conserva un único filete degradado continuo.
   La cabecera del post actúa como banda superior: esquinas inferiores rectas. */
body.view-topic #kunena.layout .topic-item-messages {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 !important;
  padding: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .message {
  position: static !important;
  display: grid !important;
  grid-template-columns: minmax(9.25rem, 11.5rem) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
  transition: none !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .topic-item-messages .message:hover,
body.view-topic #kunena.layout .topic-item-messages .message:focus-within {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .message::before {
  display: none !important;
  content: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap,
body.view-topic #kunena.layout .topic-item-messages .message-published,
body.view-topic #kunena.layout .topic-item-messages .message-deleted {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap:hover,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap:focus-within,
body.view-topic #kunena.layout .topic-item-messages .message-published:hover,
body.view-topic #kunena.layout .topic-item-messages .message-published:focus-within,
body.view-topic #kunena.layout .topic-item-messages .message-deleted:hover,
body.view-topic #kunena.layout .topic-item-messages .message-deleted:focus-within {
  border-color: rgba(222, 113, 13, .30) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .075) !important;
  transform: translateY(-1px) !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
  position: relative !important;
  padding: 1rem .95rem !important;
  border-right: 1px solid rgba(29, 121, 137, .18) !important;
  background: #ffffff !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap::before {
  display: none !important;
  content: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .message-published,
body.view-topic #kunena.layout .topic-item-messages .message-deleted {
  position: relative !important;
  padding: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .message-published::before,
body.view-topic #kunena.layout .topic-item-messages .message-deleted::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  height: auto !important;
  background: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) !important;
  opacity: .96 !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .35rem .7rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .72rem 1rem .72rem 1.18rem !important;
  border: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%) !important;
  color: #1d7989 !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header::before {
  display: none !important;
  content: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: 1.04rem !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  flex: 0 1 auto !important;
  color: #5f6f76 !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg {
  padding: 1.05rem 1.1rem 1.05rem 1.25rem !important;
}

body.view-topic #kunena.layout .topic-item-messages .ksig {
  margin: 0 1.1rem 1rem 1.25rem !important;
}

body.view-topic #kunena.layout .topic-item-messages .message-published > p,
body.view-topic #kunena.layout .topic-item-messages .message-deleted > p {
  padding-left: 1.25rem !important;
}

@media (max-width: 991.98px) {
  body.view-topic #kunena.layout .topic-item-messages .message {
    grid-template-columns: 1fr !important;
    gap: .9rem !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
    border-bottom: 1px solid rgba(29, 121, 137, .18) !important;
    text-align: left !important;
  }
}




/* PortalGraf KGrid pg34: ajuste móvil del perfil en vista de tema.
   Evita que el bloque de perfil se comprima en vertical y que la parte superior
   del avatar quede recortada en móvil. No modifica el estado “Fuera de línea”. */
@media (max-width: 991.98px) {
  body.view-topic #kunena.layout .topic-item-messages,
  body.view-topic #kunena.layout .topic-item-messages .message {
    overflow: visible !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 1.15rem .95rem 1rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kprofile-box {
    gap: .42rem !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .user-avatar-wrap,
  body.view-topic #kunena.layout .topic-item-messages .user-avatar {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .user-avatar {
    gap: .48rem !important;
    padding-top: .05rem !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    min-height: 92px !important;
    max-width: 92px !important;
    max-height: 92px !important;
    overflow: visible !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge),
  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a.kwho-admin:not(.badge),
  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a.hasTooltip:not(.badge) {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    min-height: 92px !important;
    max-width: 92px !important;
    max-height: 92px !important;
    overflow: visible !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge) img,
  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge) img.rounded,
  body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a.kwho-admin:not(.badge) img {
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    min-height: 86px !important;
    max-width: 86px !important;
    max-height: 86px !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .user-name {
    margin-top: .1rem !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kprofile-links {
    margin-top: .7rem !important;
  }
}

@media (max-width: 575.98px) {
  body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
    padding: 1.2rem .9rem 1rem !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .message {
    gap: .85rem !important;
  }
}

body.view-topic #kunena.layout .kpage-heading.ktopic-title {
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
  min-height: 3.05rem !important;
  padding-top: .86rem !important;
  padding-bottom: .86rem !important;
  line-height: 1.18 !important;
}

body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon {
  display: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  align-content: center !important;
  min-height: 2.8rem !important;
  padding-top: .64rem !important;
  padding-bottom: .64rem !important;
  row-gap: .28rem !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 1.42rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.18 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date .kdate {
  display: inline-flex !important;
  align-items: center !important;
  line-height: inherit !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a[id] {
  display: none !important;
}

@media (max-width: 575.98px) {
  body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    padding-top: .68rem !important;
    padding-bottom: .68rem !important;
  }
}

/* PortalGraf KGrid pg28: centrado definitivo de avatar y ajuste fino de vista de tema.
   Corrige desplazamiento del avatar de ejemplo, mantiene dos tarjetas separadas
   y refuerza cabeceras/anclas tras la prueba visual de pg27. */
body.view-topic #kunena.layout .kpage-heading.ktopic-title {
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  min-height: 0 !important;
  padding: .78rem 1.15rem .94rem 1.15rem !important;
  line-height: 1.20 !important;
  border-left-color: #de710d !important;
}

body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon,
body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon *,
body.view-topic #kunena.layout .kpage-heading.ktopic-title > i,
body.view-topic #kunena.layout .kpage-heading.ktopic-title > svg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .message {
  grid-template-columns: minmax(9.75rem, 11.25rem) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: .95rem .82rem !important;
  background: #ffffff !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box > li,
body.view-topic #kunena.layout .topic-item-messages .user-avatar-wrap,
body.view-topic #kunena.layout .topic-item-messages .user-avatar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .34rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box > li {
  display: block !important;
  float: none !important;
  clear: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  list-style: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar-wrap,
body.view-topic #kunena.layout .topic-item-messages .user-avatar,
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span,
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar {
  flex-direction: column !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar > span {
  width: 100% !important;
  margin: 0 auto !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a {
  width: 88px !important;
  height: 88px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar img,
body.view-topic #kunena.layout .topic-item-messages .user-avatar a img,
body.view-topic #kunena.layout .topic-item-messages .user-avatar img.rounded {
  display: block !important;
  width: 84px !important;
  height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  margin: 0 auto !important;
  padding: .28rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar a.badge,
body.view-topic #kunena.layout .topic-item-messages .user-avatar .badge,
body.view-topic #kunena.layout .topic-item-messages .badge.bg-default {
  align-self: center !important;
  margin: .48rem auto 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-links {
  justify-content: center !important;
  width: 100% !important;
  margin: .55rem auto 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  align-content: center !important;
  min-height: 0 !important;
  padding: .62rem 1rem .66rem 1.18rem !important;
  border-radius: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  display: flex !important;
  align-items: center !important;
  min-height: 1.36rem !important;
  line-height: 1.18 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  white-space: nowrap !important;
  line-height: 1.18 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date .kdate {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: .25rem !important;
  line-height: inherit !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a[id],
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a[href^="#"],
body.view-topic #kunena.layout .topic-item-messages .kmsg-anchor {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  color: transparent !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 991.98px) {
  body.view-topic #kunena.layout .topic-item-messages .message {
    grid-template-columns: 1fr !important;
    gap: .9rem !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap {
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  body.view-topic #kunena.layout .kpage-heading.ktopic-title {
    padding: .78rem 1rem .9rem 1rem !important;
    line-height: 1.18 !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    padding-top: .66rem !important;
    padding-bottom: .68rem !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
    justify-content: flex-start !important;
    white-space: normal !important;
  }
}


/* PortalGraf KGrid pg29: cierre visual de perfil de usuario y refinado final de tema.
   - Aplica el degradado aprobado tipo búsqueda a cabeceras Kunena.
   - Añade diseño completo para view-user: perfil, pestañas, buscador y tabla de mensajes.
   - Corrige estados/avatares para evitar óvalos extraños y textos invisibles.
   - Refuerza la fecha “Publicado:” en una sola línea cuando hay espacio. */
body.com_kunena #kunena.layout {
  --pgk-gradient-search: linear-gradient(135deg, #176b78 0%, #1d7989 52%, #2a7f84 72%, #bd5a0d 100%);
  --pgk-gradient-soft: linear-gradient(135deg, rgba(29, 121, 137, .12) 0%, rgba(29, 121, 137, .075) 48%, rgba(222, 113, 13, .105) 100%);
  --pgk-filet-gradient: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%);
  --pgk-card-shadow: 0 10px 24px rgba(15, 23, 42, .055);
  --pgk-card-shadow-hover: 0 14px 30px rgba(15, 23, 42, .075);
  --pgk-border: rgba(29, 121, 137, .18);
  --pgk-border-soft: rgba(29, 121, 137, .11);
  --pgk-text: #171717;
  --pgk-muted: #5f6f76;
  --pgk-green: #1d7989;
  --pgk-orange: #de710d;
}

body.com_kunena #kunena.layout .ksection-header,
body.com_kunena #kunena.layout .kwho .kblock-header,
body.com_kunena #kunena.layout .statistics .kblock-header,
body.view-topic #kunena.layout .kpage-heading.ktopic-title,
body.view-user #kunena.layout > .kpage-heading,
body.view-user #kunena.layout .ktab-heading {
  background: var(--pgk-gradient-search) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  color: #ffffff !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.view-topic #kunena.layout .kpage-heading.ktopic-title,
body.view-user #kunena.layout > .kpage-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 1rem !important;
  padding: .88rem 1.15rem !important;
  font-size: 1.48rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-wrap: balance !important;
}

body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon,
body.view-topic #kunena.layout .kpage-heading.ktopic-title .ktopic-icon *,
body.view-topic #kunena.layout .kpage-heading.ktopic-title > i,
body.view-topic #kunena.layout .kpage-heading.ktopic-title > svg {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap,
body.view-topic #kunena.layout .topic-item-messages .message-published,
body.view-topic #kunena.layout .topic-item-messages .message-deleted,
body.view-user #kunena.layout .kuser-main-info,
body.view-user #kunena.layout .kuser-other-info,
body.view-user #kunena.layout .tabs .tab-content,
body.view-user #kunena.layout .kaction-wrap-top .kunena-search,
body.view-user #kunena.layout .ktopic-search .kunena-search {
  border: 1px solid var(--pgk-border) !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  box-shadow: var(--pgk-card-shadow) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap:hover,
body.view-topic #kunena.layout .topic-item-messages .kprofile-box-wrap:focus-within,
body.view-topic #kunena.layout .topic-item-messages .message-published:hover,
body.view-topic #kunena.layout .topic-item-messages .message-published:focus-within,
body.view-topic #kunena.layout .topic-item-messages .message-deleted:hover,
body.view-topic #kunena.layout .topic-item-messages .message-deleted:focus-within,
body.view-user #kunena.layout .kuser-main-info:hover,
body.view-user #kunena.layout .kuser-main-info:focus-within,
body.view-user #kunena.layout .kuser-other-info:hover,
body.view-user #kunena.layout .kuser-other-info:focus-within,
body.view-user #kunena.layout .tabs .tab-content:hover,
body.view-user #kunena.layout .tabs .tab-content:focus-within {
  border-color: rgba(222, 113, 13, .30) !important;
  box-shadow: var(--pgk-card-shadow-hover) !important;
  transform: translateY(-1px) !important;
}

body.view-topic #kunena.layout .topic-item-messages .message-published,
body.view-topic #kunena.layout .topic-item-messages .message-deleted {
  position: relative !important;
}

body.view-topic #kunena.layout .topic-item-messages .message-published::before,
body.view-topic #kunena.layout .topic-item-messages .message-deleted::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  background: var(--pgk-filet-gradient) !important;
  opacity: .96 !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  align-content: center !important;
  min-height: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .66rem 1rem .66rem 1.22rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: 0 !important;
  background: var(--pgk-gradient-soft) !important;
  color: var(--pgk-green) !important;
  box-sizing: border-box !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 1.36rem !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pgk-text) !important;
  font-size: 1.04rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  overflow-wrap: anywhere !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .25rem !important;
  color: var(--pgk-muted) !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  line-height: 1.18 !important;
  white-space: nowrap !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date .kmsg-post-label,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date .kdate {
  display: inline-flex !important;
  align-items: center !important;
  line-height: inherit !important;
  margin: 0 !important;
}

body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date .kmsg-post-label {
  color: var(--pgk-green) !important;
  font-weight: 800 !important;
}

body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a[id],
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header > a[href^="#"],
body.view-topic #kunena.layout .topic-item-messages .kmsg-anchor {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  color: transparent !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar a.badge,
body.view-topic #kunena.layout .topic-item-messages .user-avatar .badge,
body.view-topic #kunena.layout .topic-item-messages .badge.bg-default,
body.view-user #kunena.layout .kuser-avatar a.badge,
body.view-user #kunena.layout .kuser-avatar .badge,
body.view-user #kunena.layout .badge.bg-default {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: .48rem auto 0 !important;
  padding: .22rem .5rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .45rem !important;
  background: #ffffff !important;
  color: #6b7b82 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar a.badge::after,
body.view-topic #kunena.layout .topic-item-messages .user-avatar .badge::after,
body.view-topic #kunena.layout .topic-item-messages .badge.bg-default::after,
body.view-user #kunena.layout .kuser-avatar a.badge::after,
body.view-user #kunena.layout .kuser-avatar .badge::after,
body.view-user #kunena.layout .badge.bg-default::after {
  display: none !important;
  content: none !important;
}

body.view-user #kunena.layout .kuser-profile {
  display: grid !important;
  grid-template-columns: minmax(9.75rem, 11.5rem) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.05rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.view-user #kunena.layout .kuser-main-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .95rem .85rem !important;
  text-align: center !important;
  color: var(--pgk-muted) !important;
}

body.view-user #kunena.layout .kuser-main-info *,
body.view-user #kunena.layout .kuser-other-info * {
  box-sizing: border-box !important;
}

body.view-user #kunena.layout .kuser-avatar,
body.view-user #kunena.layout .kuser-avatar > div,
body.view-user #kunena.layout .kuser-avatar > div > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  text-align: center !important;
}

body.view-user #kunena.layout .kuser-avatar > div > a {
  width: 96px !important;
  height: 96px !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
}

body.view-user #kunena.layout .kuser-avatar img,
body.view-user #kunena.layout .kuser-avatar img.rounded {
  display: block !important;
  width: 92px !important;
  height: 92px !important;
  max-width: 92px !important;
  max-height: 92px !important;
  margin: 0 auto !important;
  padding: .3rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

body.view-user #kunena.layout .kuser-personal-info {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: .45rem !important;
  width: 100% !important;
  margin: .7rem 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body.view-user #kunena.layout .kuser-personal-info a,
body.view-user #kunena.layout .kuser-personal-info button,
body.view-user #kunena.layout .kuser-socials a,
body.view-user #kunena.layout .kuser-socials button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .65rem !important;
  background: #ffffff !important;
  color: var(--pgk-green) !important;
  text-decoration: none !important;
}

body.view-user #kunena.layout .kuser-personal-info a:hover,
body.view-user #kunena.layout .kuser-personal-info a:focus,
body.view-user #kunena.layout .kuser-socials a:hover,
body.view-user #kunena.layout .kuser-socials a:focus {
  border-color: rgba(222, 113, 13, .32) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: var(--pgk-orange) !important;
}

body.view-user #kunena.layout .kuser-other-info {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1rem 1.05rem 1rem 1.25rem !important;
  color: var(--pgk-muted) !important;
}

body.view-user #kunena.layout .kuser-other-info::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  background: var(--pgk-filet-gradient) !important;
  opacity: .96 !important;
  pointer-events: none !important;
}

body.view-user #kunena.layout .kuser-other-info ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .55rem .7rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: visible !important;
}

body.view-user #kunena.layout .kuser-other-info li {
  position: relative !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: .2rem .35rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .54rem .65rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .78rem !important;
  background: rgba(29, 121, 137, .035) !important;
  color: var(--pgk-muted) !important;
  line-height: 1.35 !important;
}

body.view-user #kunena.layout .kuser-other-info li::before {
  display: none !important;
  content: none !important;
}

body.view-user #kunena.layout .kuser-other-info li strong {
  display: inline !important;
  margin: 0 !important;
  color: var(--pgk-green) !important;
  font-weight: 800 !important;
}

body.view-user #kunena.layout .kuser-other-info li span,
body.view-user #kunena.layout .kuser-other-info li span *,
body.view-user #kunena.layout .kuser-other-info li a {
  color: var(--pgk-muted) !important;
}

body.view-user #kunena.layout .kuser-other-info li a {
  text-decoration: none !important;
}

body.view-user #kunena.layout .kuser-other-info li a:hover,
body.view-user #kunena.layout .kuser-other-info li a:focus {
  color: var(--pgk-orange) !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.view-user #kunena.layout .kuser-other-info li span.admin,
body.view-user #kunena.layout .kuser-other-info li .admin {
  color: var(--pgk-green) !important;
  font-weight: 800 !important;
}

body.view-user #kunena.layout .kuser-other-info li img {
  display: inline-block !important;
  width: auto !important;
  max-width: 70px !important;
  height: auto !important;
  vertical-align: middle !important;
}

body.view-user #kunena.layout .kuser-signature {
  margin: .9rem 0 0 !important;
  padding: .75rem .85rem !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .85rem !important;
  background: rgba(29, 121, 137, .045) !important;
  color: var(--pgk-muted) !important;
  font-size: .9rem !important;
  line-height: 1.5 !important;
}

body.view-user #kunena.layout .tabs {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 0 !important;
}

body.view-user #kunena.layout .tabs .nav-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .4rem !important;
  margin: 0 0 .85rem !important;
  padding: 0 !important;
  border: 0 !important;
}

body.view-user #kunena.layout .tabs .nav-tabs > li.nav-item {
  margin: 0 !important;
  padding: 0 !important;
}

body.view-user #kunena.layout .tabs .nav-tabs > li.nav-item > .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.25rem !important;
  padding: .46rem .85rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: var(--pgk-green) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .035) !important;
}

body.view-user #kunena.layout .tabs .nav-tabs > li.nav-item > .nav-link:hover,
body.view-user #kunena.layout .tabs .nav-tabs > li.nav-item > .nav-link:focus {
  border-color: var(--pgk-orange) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: var(--pgk-orange) !important;
}

body.view-user #kunena.layout .tabs .nav-tabs > li.nav-item > .nav-link.active {
  border-color: var(--pgk-green) !important;
  background: var(--pgk-green) !important;
  color: #ffffff !important;
}

body.view-user #kunena.layout .tabs .nav-tabs > li.nav-item > .nav-link::after {
  display: none !important;
  content: none !important;
}

body.view-user #kunena.layout .tabs .tab-content {
  padding: 1rem !important;
  overflow: visible !important;
}

body.view-user #kunena.layout .tabs .tab-content > .active {
  opacity: 1 !important;
}

body.view-user #kunena.layout .ktab-heading {
  margin: 0 0 1rem !important;
  padding: .82rem 1rem !important;
  border-bottom: 0 !important;
}

body.view-user #kunena.layout .ktab-heading h2,
body.view-user #kunena.layout .ktab-heading .ktab-title {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: .25rem .45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body.view-user #kunena.layout .ktab-heading .kbadge,
body.view-user #kunena.layout .ktab-heading .kbadge-success {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
}

body.view-user #kunena.layout .kaction-wrap-top,
body.view-user #kunena.layout .ktopic-search {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.view-user #kunena.layout .kaction-wrap-top .kunena-search,
body.view-user #kunena.layout .ktopic-search .kunena-search {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: .85rem 1rem !important;
}

body.view-user #kunena.layout .kaction-wrap-top .kunena-search form,
body.view-user #kunena.layout .kaction-wrap-top .kunena-search .input-group,
body.view-user #kunena.layout .ktopic-search .kunena-search form,
body.view-user #kunena.layout .ktopic-search .kunena-search .input-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.view-user #kunena.layout #ktopicsform {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.view-user #kunena.layout #ktopicsform .kblocktable.ktopic-list,
body.view-user #kunena.layout #ktopicsform .ktopic-list {
  margin: 0 !important;
}

/* pg160: keep user-topic bulk action footer visible when moderation actions exist.
   Earlier user-profile cleanup hid all view-user footers, which removed the action
   controls in /foro/mis-temas while leaving checkboxes visible for moderators. */
body.view-user #kunena.layout .ktopic-row-footer:not(:has(.ktopic-col-actions)),
body.view-user #kunena.layout .ktopic-row-footer:not(:has(.ktopic-col-actions)) .ktopic-inner {
  display: none !important;
}

body.view-user #kunena.layout .ktopic-row-footer:has(.ktopic-col-actions) {
  display: list-item !important;
}

body.view-user #kunena.layout .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-inner {
  display: grid !important;
}

body.view-user #kunena.layout .krss-time,
body.view-topic #kunena.layout .krss-time {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: .5rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.05rem 0 0 !important;
  padding: .7rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7b82 !important;
  clear: both !important;
  text-align: center !important;
  font-size: .84rem !important;
  line-height: 1.4 !important;
}

body.view-user #kunena.layout .krss-time .krss,
body.view-user #kunena.layout .krss-time .ktime-to-create-page,
body.view-topic #kunena.layout .krss-time .krss,
body.view-topic #kunena.layout .krss-time .ktime-to-create-page {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.view-user #kunena.layout .krss-time .krss::after,
body.view-topic #kunena.layout .krss-time .krss::after {
  content: "·" !important;
  margin-left: .5rem !important;
  color: rgba(29, 121, 137, .45) !important;
  font-weight: 700 !important;
}

@media (max-width: 991.98px) {
  body.view-user #kunena.layout .kuser-profile,
  body.view-topic #kunena.layout .topic-item-messages .message {
    grid-template-columns: 1fr !important;
    gap: .9rem !important;
  }

  body.view-user #kunena.layout .kuser-main-info,
  body.view-user #kunena.layout .kuser-other-info {
    text-align: center !important;
  }

  body.view-user #kunena.layout .kuser-other-info ul {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 575.98px) {
  body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
    justify-content: flex-start !important;
    white-space: normal !important;
  }

  body.view-user #kunena.layout > .kpage-heading,
  body.view-topic #kunena.layout .kpage-heading.ktopic-title {
    padding: .78rem 1rem !important;
    font-size: 1.28rem !important;
    line-height: 1.18 !important;
  }
}



/* PortalGraf KGrid pg30: perfil de usuario ordenado y pestaña residual oculta.
   - Mantiene el avatar tipo post, centrado y completo.
   - Reordena la tarjeta izquierda del perfil para evitar filas/óvalos extraños.
   - Oculta la pestaña única “Mensajes”, que duplicaba el bloque real de mensajes.
   - Refuerza colores de texto en view-user para que nada quede blanco sobre blanco. */
body.view-user #kunena.layout .tabs > .nav-tabs {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.view-user #kunena.layout .tabs .tab-content {
  margin-top: 0 !important;
}

body.view-user #kunena.layout .kuser-profile {
  grid-template-columns: minmax(9.5rem, 10.85rem) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
}

body.view-user #kunena.layout .kuser-main-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .62rem !important;
  min-height: 0 !important;
  padding: .95rem .78rem !important;
  background: #ffffff !important;
  color: var(--pgk-muted) !important;
  text-align: center !important;
}

body.view-user #kunena.layout .kuser-main-info::before,
body.view-user #kunena.layout .kuser-main-info::after,
body.view-user #kunena.layout .kuser-avatar::before,
body.view-user #kunena.layout .kuser-avatar::after {
  display: none !important;
  content: none !important;
}

body.view-user #kunena.layout .kuser-avatar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .48rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body.view-user #kunena.layout .kuser-avatar > div,
body.view-user #kunena.layout .kuser-avatar > div.kwho-admin,
body.view-user #kunena.layout .kuser-avatar .kwho-admin {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center !important;
}

body.view-user #kunena.layout .kuser-avatar > div > a,
body.view-user #kunena.layout .kuser-avatar > div.kwho-admin > a,
body.view-user #kunena.layout .kuser-avatar .kwho-admin > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  color: var(--pgk-green) !important;
  text-align: center !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body.view-user #kunena.layout .kuser-avatar img,
body.view-user #kunena.layout .kuser-avatar a img,
body.view-user #kunena.layout .kuser-avatar img.rounded {
  display: block !important;
  width: 84px !important;
  height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  margin: 0 auto !important;
  padding: .28rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body.view-user #kunena.layout .kuser-avatar a.badge,
body.view-user #kunena.layout .kuser-avatar .badge,
body.view-user #kunena.layout .kuser-avatar .badge.bg-default {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: .24rem .5rem !important;
  border-radius: .48rem !important;
  white-space: normal !important;
  text-align: center !important;
}

body.view-user #kunena.layout .kuser-personal-info {
  margin: 0 !important;
  padding: .05rem 0 0 !important;
}

body.view-user #kunena.layout .kuser-personal-info a,
body.view-user #kunena.layout .kuser-personal-info a i,
body.view-user #kunena.layout .kuser-socials a,
body.view-user #kunena.layout .kuser-socials a i {
  color: var(--pgk-green) !important;
}

body.view-user #kunena.layout .kuser-personal-info a:hover,
body.view-user #kunena.layout .kuser-personal-info a:focus,
body.view-user #kunena.layout .kuser-personal-info a:hover i,
body.view-user #kunena.layout .kuser-personal-info a:focus i {
  color: var(--pgk-orange) !important;
}

body.view-user #kunena.layout .kuser-main-info .action-wrap:empty,
body.view-user #kunena.layout .kuser-socials:empty,
body.view-user #kunena.layout .kuser-social-list:empty {
  display: none !important;
}

body.view-user #kunena.layout .kuser-other-info {
  padding: 1rem 1.05rem 1rem 1.28rem !important;
}

body.view-user #kunena.layout .kuser-other-info,
body.view-user #kunena.layout .kuser-other-info li,
body.view-user #kunena.layout .kuser-other-info li span,
body.view-user #kunena.layout .kuser-other-info li .kdate,
body.view-user #kunena.layout .kuser-signature,
body.view-user #kunena.layout .tabs .tab-content,
body.view-user #kunena.layout .tab-pane,
body.view-user #kunena.layout .topic-meta,
body.view-user #kunena.layout .topic-meta li,
body.view-user #kunena.layout .klast-topic-info,
body.view-user #kunena.layout .date-post {
  color: var(--pgk-muted) !important;
}

body.view-user #kunena.layout .kuser-other-info strong,
body.view-user #kunena.layout .kuser-other-info li strong,
body.view-user #kunena.layout .topic-meta li:first-child,
body.view-user #kunena.layout .ktopic-col-replies,
body.view-user #kunena.layout .ktopic-col-hits {
  color: var(--pgk-green) !important;
}

body.view-user #kunena.layout .kuser-other-info a,
body.view-user #kunena.layout .ktopic-list a,
body.view-user #kunena.layout .ktab-heading a {
  color: var(--pgk-green) !important;
  text-decoration: none !important;
}

body.view-user #kunena.layout .kuser-other-info a:hover,
body.view-user #kunena.layout .kuser-other-info a:focus,
body.view-user #kunena.layout .ktopic-list a:hover,
body.view-user #kunena.layout .ktopic-list a:focus {
  color: var(--pgk-orange) !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.view-user #kunena.layout .kaction-wrap-top .kunena-search input[type="search"],
body.view-user #kunena.layout .ktopic-search .kunena-search input[type="search"],
body.view-user #kunena.layout .kaction-wrap-top .kunena-search .form-control,
body.view-user #kunena.layout .ktopic-search .kunena-search .form-control {
  color: var(--pgk-text) !important;
  background: #ffffff !important;
}

body.view-user #kunena.layout .kaction-wrap-top .kunena-search input[type="search"]::placeholder,
body.view-user #kunena.layout .ktopic-search .kunena-search input[type="search"]::placeholder {
  color: #7d8b91 !important;
  opacity: 1 !important;
}

body.view-user #kunena.layout .ktab-heading {
  margin-top: 0 !important;
}

@media (max-width: 991.98px) {
  body.view-user #kunena.layout .kuser-profile {
    grid-template-columns: 1fr !important;
  }

  body.view-user #kunena.layout .kuser-main-info {
    max-width: 100% !important;
  }
}


/* PortalGraf KGrid pg33: corrección del contenedor del avatar en vista de tema.
   No modifica el estado “Fuera de línea”; solo fuerza el marco del avatar
   para que no se renderice como óvalo y quede igual que en la vista de perfil. */
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  overflow: hidden !important;
  clip-path: none !important;
  transform: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge),
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a.kwho-admin:not(.badge),
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a.hasTooltip:not(.badge) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  overflow: hidden !important;
  clip-path: none !important;
  transform: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge)::before,
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge)::after {
  display: none !important;
  content: none !important;
}

body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge) img,
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a:not(.badge) img.rounded,
body.view-topic #kunena.layout .topic-item-messages .user-avatar > span > a.kwho-admin:not(.badge) img {
  display: block !important;
  width: 84px !important;
  height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  margin: 0 auto !important;
  padding: .28rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  object-fit: contain !important;
  object-position: center center !important;
  clip-path: none !important;
  transform: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* PortalGraf KGrid pg36: index language polish. Visual CSS preserved from pg34. */
body.com_kunena #kunena.layout .cat-meta .topic-count.no-topic {
  color: #5f6f76 !important;
}

/* PortalGraf KGrid pg37: ajuste de paridad tipográfica y portada.
   Mantiene el CSS externo, pero suaviza la capa final para recuperar la nitidez
   de la versión de desarrollo: cabeceras menos pesadas, sin engrosado forzado,
   y portada del índice protegida frente a reglas generales de KGrid. */
body.com_kunena #kunena.layout {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

body.com_kunena #kunena.layout .ksection-header h2,
body.com_kunena #kunena.layout .kwho .kblock-header h2,
body.com_kunena #kunena.layout .statistics .kblock-header h2,
body.view-topic #kunena.layout .kpage-heading.ktopic-title,
body.view-user #kunena.layout > .kpage-heading,
body.view-user #kunena.layout .ktab-heading h2,
body.view-user #kunena.layout .ktab-heading .ktab-title {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.com_kunena #kunena.layout .ksection-header h2 a,
body.com_kunena #kunena.layout .kwho .kblock-header h2 a,
body.com_kunena #kunena.layout .statistics .kblock-header h2 a,
body.view-user #kunena.layout .ktab-heading a {
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.com_kunena #kunena.layout .ksection-header .ksection-topic-count,
body.com_kunena #kunena.layout .ksection-header .ksection-title-separator,
body.view-user #kunena.layout .ktab-heading .kbadge,
body.view-user #kunena.layout .ktab-heading .kbadge-success {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.com_kunena #kunena.layout .ksection-header .ksection-desc,
body.com_kunena #kunena.layout .ksection-header p {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

/* Refuerzo exclusivo del índice principal /foro para que la portada no herede
   reglas de tablas/listas de temas ni variaciones tipográficas posteriores. */
body.view-category.layout-list #kunena.layout .kfrontend.section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.view-category.layout-list #kunena.layout .ksection-header {
  display: block !important;
  padding: .95rem 3rem .95rem 1.15rem !important;
  margin: 1.05rem 0 .9rem !important;
  background: var(--pgk-gradient-search, linear-gradient(135deg, #176b78 0%, #1d7989 52%, #2a7f84 72%, #bd5a0d 100%)) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

body.view-category.layout-list #kunena.layout .ksection-header h2 {
  margin: 0 .35rem .22rem 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 1.22rem !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

body.view-category.layout-list #kunena.layout .ksection-header h2 a {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.view-category.layout-list #kunena.layout .ksection-header .ksection-topic-count,
body.view-category.layout-list #kunena.layout .ksection-header .ksection-title-separator {
  color: rgba(255, 255, 255, .88) !important;
  font-size: .92rem !important;
  font-weight: 500 !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
}

body.view-category.layout-list #kunena.layout .ksection-header .ksection-desc,
body.view-category.layout-list #kunena.layout .ksection-header p {
  margin: .25rem 0 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: .96rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body.view-category.layout-list #kunena.layout .kcat-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

@media (min-width: 768px) {
  body.view-category.layout-list #kunena.layout .kcat-list.kcat-list--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.view-category.layout-list #kunena.layout .kcat-list.kcat-list--cols-2.kcat-list--odd > .kcat-item:last-child {
    grid-column: 1 / -1 !important;
  }
}

body.view-category.layout-list #kunena.layout .kcat-item,
body.view-category.layout-list #kunena.layout .kcat-inner {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.view-category.layout-list #kunena.layout .kcat-inner {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 100% !important;
  padding: 1rem 1.1rem 1rem 1.25rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
  overflow: hidden !important;
}

body.view-category.layout-list #kunena.layout .kcat-inner::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  background: linear-gradient(180deg, #1d7989, #de710d) !important;
  opacity: .75 !important;
  pointer-events: none !important;
}

body.view-category.layout-list #kunena.layout .cat-title,
body.view-category.layout-list #kunena.layout .cat-title a:not(.kcat-rss) {
  color: #171717 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.view-category.layout-list #kunena.layout .cat-meta li {
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

body.view-category.layout-list #kunena.layout .cat-meta li span {
  font-weight: 750 !important;
}

body.view-category.layout-list #kunena.layout .cat-desc,
body.view-category.layout-list #kunena.layout .last-post-message,
body.view-category.layout-list #kunena.layout .last-post-no-message,
body.view-category.layout-list #kunena.layout .last-post-by,
body.view-category.layout-list #kunena.layout .last-post-date {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.view-category.layout-list #kunena.layout .last-post-link {
  font-weight: 650 !important;
}

@media (max-width: 575.98px) {
  body.view-category.layout-list #kunena.layout .ksection-header {
    padding: .9rem 2.7rem .9rem 1rem !important;
  }

  body.view-category.layout-list #kunena.layout .ksection-header h2 {
    font-size: 1.12rem !important;
  }
}


/* PortalGraf KGrid pg38: títulos de temas en vista de categoría.
   Mantiene los títulos de tema como elemento principal en negro, sin mezclarlos
   con enlaces secundarios; el color PortalGraf entra solo en hover/focus. */
body.view-category #kunena.layout .ktopic-list .topic-title a,
body.view-category #kunena.layout .ktopic-list .topic-title a.topictitle,
body.view-category #kunena.layout .ktopic-list .topic-title h3 a {
  color: #171717 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
}

body.view-category #kunena.layout .ktopic-list .topic-title a:hover,
body.view-category #kunena.layout .ktopic-list .topic-title a:focus,
body.view-category #kunena.layout .ktopic-list .topic-title a.topictitle:hover,
body.view-category #kunena.layout .ktopic-list .topic-title a.topictitle:focus,
body.view-category #kunena.layout .ktopic-list .topic-title h3 a:hover,
body.view-category #kunena.layout .ktopic-list .topic-title h3 a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
  text-shadow: none !important;
}

/* PortalGraf KGrid pg39: navegación Kunena visible, sombra tipográfica nítida y perfil alineado con topic.
   - El menú propio de Kunena recupera contraste en estados activo/seleccionado.
   - Las cabeceras recuperan una sombra mínima sin blur, para definir el borde del texto sin emborronarlo.
   - La ficha de usuario usa el mismo criterio compacto de avatar/placeholder que la vista de topic, con sombreado suave. */
body.com_kunena #kunena.layout .knavbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .65rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: .62rem .72rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .knav-collapse,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .navbar-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .4rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_kunena #kunena.layout .knavbar .nav-item,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li {
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .nav-link,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li > a,
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.22rem !important;
  padding: .44rem .78rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  font-size: .92rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .025) !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .knavbar .nav-link:hover,
body.com_kunena #kunena.layout .knavbar .nav-link:focus,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li > a:hover,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li > a:focus,
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:hover,
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:focus {
  border-color: rgba(222, 113, 13, .34) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  text-decoration: none !important;
}

body.com_kunena #kunena.layout .knavbar .nav-item.active > .nav-link,
body.com_kunena #kunena.layout .knavbar .nav-item.current > .nav-link,
body.com_kunena #kunena.layout .knavbar .nav-link.active,
body.com_kunena #kunena.layout .knavbar .nav-link[aria-current],
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.active > a,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.current > a,
body.com_kunena #kunena.layout .knavbar .dropdown-menu .active > a,
body.com_kunena #kunena.layout .knavbar .dropdown-menu a.active {
  border-color: #1d7989 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .16) !important;
}

body.com_kunena #kunena.layout .knavbar .nav-item.active > .nav-link:hover,
body.com_kunena #kunena.layout .knavbar .nav-item.active > .nav-link:focus,
body.com_kunena #kunena.layout .knavbar .nav-link.active:hover,
body.com_kunena #kunena.layout .knavbar .nav-link.active:focus,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.active > a:hover,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.active > a:focus {
  border-color: #de710d !important;
  background: #de710d !important;
  color: #ffffff !important;
}

body.com_kunena #kunena.layout .knavbar .login-icon,
body.com_kunena #kunena.layout .knavbar .login-icon i {
  color: currentColor !important;
}

body.com_kunena #kunena.layout .knavbar .knav-phone {
  display: none !important;
}

body.com_kunena #kunena.layout .ksection-header h2,
body.com_kunena #kunena.layout .kwho .kblock-header h2,
body.com_kunena #kunena.layout .statistics .kblock-header h2,
body.view-topic #kunena.layout .kpage-heading.ktopic-title,
body.view-user #kunena.layout > .kpage-heading,
body.view-user #kunena.layout .ktab-heading h2,
body.view-user #kunena.layout .ktab-heading .ktab-title,
body.com_kunena #kunena.layout .ksection-header h2 a,
body.com_kunena #kunena.layout .kwho .kblock-header h2 a,
body.com_kunena #kunena.layout .statistics .kblock-header h2 a,
body.view-user #kunena.layout .ktab-heading a {
  text-shadow: 0 1px 0 rgba(18, 44, 49, .22) !important;
}

body.com_kunena #kunena.layout .ksection-header .ksection-topic-count,
body.com_kunena #kunena.layout .ksection-header .ksection-title-separator,
body.view-user #kunena.layout .ktab-heading .kbadge,
body.view-user #kunena.layout .ktab-heading .kbadge-success,
body.com_kunena #kunena.layout .ksection-header .ksection-desc,
body.com_kunena #kunena.layout .ksection-header p {
  text-shadow: 0 1px 0 rgba(18, 44, 49, .16) !important;
}

body.view-category.layout-list #kunena.layout .ksection-header h2,
body.view-category.layout-list #kunena.layout .ksection-header h2 a {
  text-shadow: 0 1px 0 rgba(18, 44, 49, .22) !important;
}

body.view-category.layout-list #kunena.layout .ksection-header .ksection-topic-count,
body.view-category.layout-list #kunena.layout .ksection-header .ksection-title-separator,
body.view-category.layout-list #kunena.layout .ksection-header .ksection-desc,
body.view-category.layout-list #kunena.layout .ksection-header p {
  text-shadow: 0 1px 0 rgba(18, 44, 49, .16) !important;
}

body.view-user #kunena.layout .kuser-main-info {
  background: #ffffff !important;
}

body.view-user #kunena.layout .kuser-avatar > div > a,
body.view-user #kunena.layout .kuser-avatar > div.kwho-admin > a,
body.view-user #kunena.layout .kuser-avatar .kwho-admin > a {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .085), rgba(29, 121, 137, .045) 52%, rgba(222, 113, 13, .075)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 7px 18px rgba(15, 23, 42, .075) !important;
  overflow: hidden !important;
}

body.view-user #kunena.layout .kuser-avatar img,
body.view-user #kunena.layout .kuser-avatar a img,
body.view-user #kunena.layout .kuser-avatar img.rounded {
  width: 84px !important;
  height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  padding: .28rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #f7f9fa !important;
  object-fit: contain !important;
  object-position: center center !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, .06) !important;
  clip-path: none !important;
  transform: none !important;
}

body.view-user #kunena.layout .kuser-avatar a.badge,
body.view-user #kunena.layout .kuser-avatar .badge,
body.view-user #kunena.layout .kuser-avatar .badge.bg-default {
  margin-top: .48rem !important;
}

@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout .knavbar {
    align-items: stretch !important;
    padding: .58rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-collapse,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
    width: auto !important;
  }

  body.com_kunena #kunena.layout .knavbar .navbar-nav {
    gap: .35rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .nav-link,
  body.com_kunena #kunena.layout .knavbar .navbar-nav > li > a {
    min-height: 2.12rem !important;
    padding: .4rem .62rem !important;
    font-size: .86rem !important;
  }
}


/* PortalGraf KGrid pg40: reset real del botón de login en navegación Kunena.
   El hover naranja se mantiene solo mientras existe interacción real con el puntero
   o foco accesible por teclado. Tras abrir/cerrar o perder hover, el botón vuelve
   a su estado de reposo blanco/verde y no queda pegado en naranja por :focus/.show. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 2.24rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle {
  width: 2.24rem !important;
  min-width: 2.24rem !important;
  max-width: 2.24rem !important;
  height: 2.24rem !important;
  min-height: 2.24rem !important;
  padding: 0 !important;
  flex: 0 0 2.24rem !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:focus:not(:focus-visible):not(:hover),
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle.show:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle[aria-expanded="true"]:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap.show > a.dropdown-toggle:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap.dropdown.show > a.dropdown-toggle:not(:hover):not(:focus-visible) {
  border-color: rgba(29, 121, 137, .16) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .025) !important;
  outline: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:hover,
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:focus-visible {
  border-color: rgba(222, 113, 13, .34) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(222, 113, 13, .10) !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:focus-visible {
  outline: 2px solid rgba(222, 113, 13, .24) !important;
  outline-offset: 2px !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:active:not(:hover):not(:focus-visible) {
  border-color: rgba(29, 121, 137, .16) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  transform: none !important;
}

@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle {
    width: 2.12rem !important;
    min-width: 2.12rem !important;
    max-width: 2.12rem !important;
    height: 2.12rem !important;
    min-height: 2.12rem !important;
    flex-basis: 2.12rem !important;
  }
}

/* PortalGraf KGrid pg41: ajuste de navegación, login y vistas auxiliares.
   - El botón de login recupera tamaño medio y queda centrado en la barra.
   - La lista de miembros usa tabla técnica PortalGraf con contención de ancho.
   - Se añade cobertura visual a búsqueda, estadísticas y página personalizada de reglas. */

/* Navegación Kunena: alineación estable y estados activos legibles. */
body.com_kunena #kunena.layout .knavbar {
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
  gap: .6rem !important;
  min-height: 3.25rem !important;
  padding: .62rem .75rem !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .knav-collapse {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  transform: none !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.52rem !important;
  min-width: 2.52rem !important;
  max-width: 2.52rem !important;
  height: 2.34rem !important;
  min-height: 2.34rem !important;
  max-height: 2.34rem !important;
  flex: 0 0 2.52rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: .78rem !important;
  line-height: 1 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle .login-icon,
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle .login-icon i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: .95rem !important;
  color: currentColor !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:focus:not(:focus-visible):not(:hover),
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle.show:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle[aria-expanded="true"]:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap.show > a.dropdown-toggle:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap.dropdown.show > a.dropdown-toggle:not(:hover):not(:focus-visible) {
  border-color: rgba(29, 121, 137, .18) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .03) !important;
  outline: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:hover,
body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle:focus-visible {
  border-color: rgba(222, 113, 13, .34) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  text-decoration: none !important;
  box-shadow: 0 5px 14px rgba(222, 113, 13, .11) !important;
}

body.com_kunena #kunena.layout .knavbar .user-wrap .dropdown-menu {
  top: calc(100% + .45rem) !important;
  right: 0 !important;
  left: auto !important;
  margin: 0 !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1rem !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .13) !important;
  overflow: hidden !important;
}

body.com_kunena #kunena.layout .knavbar .nav-item.active > .nav-link,
body.com_kunena #kunena.layout .knavbar .nav-item.current > .nav-link,
body.com_kunena #kunena.layout .knavbar .nav-link.active,
body.com_kunena #kunena.layout .knavbar .nav-link[aria-current],
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.active > a,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.current > a,
body.com_kunena #kunena.layout .knavbar .dropdown-menu .active > a,
body.com_kunena #kunena.layout .knavbar .dropdown-menu a.active {
  border-color: #1d7989 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18) !important;
}

body.com_kunena #kunena.layout .knavbar .nav-item.active > .nav-link:hover,
body.com_kunena #kunena.layout .knavbar .nav-item.current > .nav-link:hover,
body.com_kunena #kunena.layout .knavbar .nav-link.active:hover,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.active > a:hover,
body.com_kunena #kunena.layout .knavbar .navbar-nav > li.current > a:hover {
  border-color: #de710d !important;
  background: #de710d !important;
  color: #ffffff !important;
}

/* Cabeceras blancas: sombra mínima, sin halo difuso. */
body.com_kunena #kunena.layout .ksection-header h2,
body.com_kunena #kunena.layout .kwho .kblock-header h2,
body.com_kunena #kunena.layout .statistics .kblock-header h2,
body.view-topic #kunena.layout .kpage-heading.ktopic-title,
body.view-user #kunena.layout > .kpage-heading,
body.view-search #kunena.layout .kpage-heading,
body.view-statistics #kunena.layout .kpage-heading,
body.com_kunena #kunena.layout .kpage .kpage-header,
body.com_kunena #kunena.layout .ksection-header h2 a,
body.com_kunena #kunena.layout .kwho .kblock-header h2 a,
body.com_kunena #kunena.layout .statistics .kblock-header h2 a {
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18) !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
}

/* Lista de miembros: tabla técnica PortalGraf compacta. */
body.view-user.layout-list #kunena.layout > h1,
body.view-user.layout-list #kunena.layout .kpage-heading {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 1rem !important;
  padding: .88rem 1.15rem !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  background: var(--pgk-gradient-search, linear-gradient(135deg, #176b78 0%, #1d7989 52%, #2a7f84 72%, #bd5a0d 100%)) !important;
  color: #ffffff !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  box-sizing: border-box !important;
}

body.view-user.layout-list #kunena.layout > h2.float-end {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 .9rem !important;
  padding: .85rem 1rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035) !important;
  box-sizing: border-box !important;
}

body.view-user.layout-list #kunena.layout > .float-start {
  display: none !important;
}

body.view-user.layout-list #kunena.layout #kuserlist-form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
  box-sizing: border-box !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table {
  width: 100% !important;
  min-width: 560px !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
  background: #ffffff !important;
  font-size: .92rem !important;
  line-height: 1.42 !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table tr {
  height: auto !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table thead,
body.view-user.layout-list #kunena.layout .pgk-userlist-table thead tr,
body.view-user.layout-list #kunena.layout .pgk-userlist-table thead th {
  background-image: none !important;
  box-shadow: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table thead th {
  padding: .72rem .86rem !important;
  border: 1px solid #166575 !important;
  background-color: #1d7989 !important;
  color: #ffffff !important;
  font-size: .84rem !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table th a {
  color: #ffffff !important;
  text-decoration: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table th a:hover,
body.view-user.layout-list #kunena.layout .pgk-userlist-table th a:focus {
  color: #fff4e8 !important;
  text-decoration: underline !important;
  text-underline-offset: .16em !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table tbody td {
  padding: .68rem .86rem !important;
  border: 1px solid #d9e1e5 !important;
  color: #4f5f66 !important;
  font-size: .9rem !important;
  line-height: 1.38 !important;
  vertical-align: middle !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  background: #ffffff !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table tbody tr:nth-child(even) td {
  background: #f8fbfc !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table tbody tr:hover td {
  background: #eef6f8 !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-avatar,
body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-status,
body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-posts,
body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-karma {
  text-align: center !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-avatar {
  width: 4.4rem !important;
  white-space: nowrap !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-name {
  min-width: 12rem !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-status {
  width: 8.25rem !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-posts,
body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-karma {
  width: 5.5rem !important;
  white-space: nowrap !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table td.pgk-userlist-name a {
  color: #1d7989 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table td a:hover,
body.view-user.layout-list #kunena.layout .pgk-userlist-table td a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .post-image,
body.view-user.layout-list #kunena.layout .pgk-userlist-table .post-image a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 auto !important;
  border-radius: .76rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .085), rgba(222, 113, 13, .065)) !important;
  overflow: hidden !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .post-image img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  padding: .14rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .68rem !important;
  object-fit: contain !important;
  background: #f7f9fa !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-table .badge,
body.view-user.layout-list #kunena.layout .pgk-userlist-table .bg-default {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: .24rem .5rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .5rem !important;
  background: #ffffff !important;
  color: #5f6f76 !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination {
  float: none !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: .85rem 0 0 !important;
  padding: 0 !important;
  clear: both !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination > .pagination,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .pagination-small,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .kpagination {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination ul.pagination,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: .22rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .page-link,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination li > a {
  min-width: 1.9rem !important;
  padding: .25rem .46rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .55rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .page-item.active .page-link,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination li.active > a {
  border-color: #1d7989 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .page-link:hover,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .page-link:focus,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination li > a:hover,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination li > a:focus {
  border-color: #de710d !important;
  background: #fff7ef !important;
  color: #de710d !important;
  text-decoration: none !important;
}

body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .page-item.disabled,
body.view-user.layout-list #kunena.layout .pgk-userlist-pagination li.disabled {
  display: none !important;
}

@media (max-width: 767.98px) {
  body.view-user.layout-list #kunena.layout .pgk-userlist-table-wrap {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.view-user.layout-list #kunena.layout .pgk-userlist-table {
    min-width: 520px !important;
    font-size: .86rem !important;
  }

  body.view-user.layout-list #kunena.layout .pgk-userlist-table thead th,
  body.view-user.layout-list #kunena.layout .pgk-userlist-table tbody td {
    padding: .55rem .58rem !important;
  }

  body.view-user.layout-list #kunena.layout .pgk-userlist-table .pgk-userlist-name {
    min-width: 9.5rem !important;
  }

  body.view-user.layout-list #kunena.layout .pgk-userlist-pagination {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: .1rem !important;
  }

  body.view-user.layout-list #kunena.layout .pgk-userlist-pagination ul.pagination,
  body.view-user.layout-list #kunena.layout .pgk-userlist-pagination .pagination {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
}

/* Estadísticas: tablas y barras con criterio técnico PortalGraf. */
body.view-statistics #kunena.layout .kpage-heading,
body.view-search #kunena.layout .kpage-heading,
body.com_kunena #kunena.layout .kpage .kpage-header {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 1rem !important;
  padding: .88rem 1.15rem !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  background: var(--pgk-gradient-search, linear-gradient(135deg, #176b78 0%, #1d7989 52%, #2a7f84 72%, #bd5a0d 100%)) !important;
  color: #ffffff !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  box-sizing: border-box !important;
}

body.view-statistics #kunena.layout .kstatistics {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.view-statistics #kunena.layout .kstatistics > h3 {
  margin: 0 !important;
  padding: .72rem .95rem .72rem 1rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .065) 58%, rgba(222, 113, 13, .09)) !important;
  color: #1d7989 !important;
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  line-height: 1.24 !important;
}

body.view-statistics #kunena.layout .kstatistics > .ktable,
body.view-statistics #kunena.layout .kstatistics table.ktable {
  width: 100% !important;
  max-width: 100% !important;
  margin: -.45rem 0 .15rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1rem !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable th {
  padding: .62rem .75rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .14) !important;
  background: rgba(29, 121, 137, .055) !important;
  color: #1d7989 !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
  letter-spacing: .018em !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable td {
  padding: .62rem .75rem !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .08) !important;
  color: #5f6f76 !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable td a {
  color: #1d7989 !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable td a:hover,
body.view-statistics #kunena.layout .kstatistics table.ktable td a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.view-statistics #kunena.layout .kstatistics .progress {
  height: 1.05rem !important;
  border-radius: 999px !important;
  background: rgba(29, 121, 137, .09) !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08) !important;
}

body.view-statistics #kunena.layout .kstatistics .progress-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.75rem !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #1d7989, #de710d) !important;
  color: #ffffff !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}

body.view-statistics #kunena.layout .kstatistics .kfrontend.statistics {
  margin: 0 !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .55rem .7rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body li {
  padding: .55rem .7rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .78rem !important;
  background: rgba(29, 121, 137, .035) !important;
  color: #5f6f76 !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body strong,
body.view-statistics #kunena.layout .kstatistics .kblock-body b {
  color: #1d7989 !important;
  font-weight: 850 !important;
}

@media (max-width: 575.98px) {
  body.view-statistics #kunena.layout .kstatistics .kblock-body ul {
    grid-template-columns: 1fr !important;
  }
}

/* Búsqueda avanzada. */
body.view-search #kunena.layout form[action*="view=search"],
body.view-search #kunena.layout form {
  width: 100% !important;
  max-width: 100% !important;
}

body.view-search #kunena.layout #search,
body.view-search #kunena.layout #search-options,
body.view-search #kunena.layout .search-by {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.view-search #kunena.layout .search-by,
body.view-search #kunena.layout #search-options {
  margin: 0 0 1rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045) !important;
}

body.view-search #kunena.layout .ksub-heading {
  margin: 1rem 0 .85rem !important;
  padding: .72rem .95rem .72rem 1rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .065) 58%, rgba(222, 113, 13, .09)) !important;
  color: #1d7989 !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  line-height: 1.24 !important;
}

body.view-search #kunena.layout fieldset {
  min-width: 0 !important;
  margin: 0 0 .9rem !important;
  padding: .85rem .9rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: .95rem !important;
  background: rgba(29, 121, 137, .025) !important;
}

body.view-search #kunena.layout fieldset legend {
  float: none !important;
  width: auto !important;
  margin: 0 0 .55rem !important;
  padding: 0 !important;
  color: #1d7989 !important;
  font-size: .94rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.view-search #kunena.layout .form-control,
body.view-search #kunena.layout .form-select,
body.view-search #kunena.layout .custom-select,
body.view-search #kunena.layout select,
body.view-search #kunena.layout input[type="text"] {
  min-height: 2.5rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .75rem !important;
  background-color: #ffffff !important;
  color: #171717 !important;
  box-shadow: none !important;
}

body.view-search #kunena.layout .form-control:focus,
body.view-search #kunena.layout .form-select:focus,
body.view-search #kunena.layout .custom-select:focus,
body.view-search #kunena.layout select:focus,
body.view-search #kunena.layout input[type="text"]:focus {
  border-color: rgba(222, 113, 13, .42) !important;
  box-shadow: 0 0 0 .15rem rgba(222, 113, 13, .10) !important;
}

body.view-search #kunena.layout .action-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .5rem !important;
  justify-content: flex-end !important;
  margin: 1rem 0 0 !important;
}

body.view-search #kunena.layout .action-wrap .kbutton,
body.view-search #kunena.layout .action-wrap button {
  min-height: 2.38rem !important;
  padding: .48rem .85rem !important;
  border-radius: .78rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  font-weight: 800 !important;
}

body.view-search #kunena.layout .action-wrap .kbutton-primary,
body.view-search #kunena.layout .action-wrap button[type="submit"] {
  border-color: #de710d !important;
  background: #de710d !important;
  color: #ffffff !important;
}

body.view-search #kunena.layout .action-wrap .kbutton:hover,
body.view-search #kunena.layout .action-wrap .kbutton:focus,
body.view-search #kunena.layout .action-wrap button:hover,
body.view-search #kunena.layout .action-wrap button:focus {
  border-color: #832320 !important;
  background: #832320 !important;
  color: #ffffff !important;
}

/* Reglas del foro y páginas personalizadas Kunena. */
body.com_kunena #kunena.layout .kpage {
  width: 100% !important;
  max-width: 100% !important;
}

body.com_kunena #kunena.layout .kpage .kpage-body {
  position: relative !important;
  margin: 0 !important;
  padding: 1.05rem 1.15rem 1.1rem 1.32rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  color: #171717 !important;
  line-height: 1.68 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055) !important;
  overflow: hidden !important;
}

body.com_kunena #kunena.layout .kpage .kpage-body::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  background: var(--pgk-filet-gradient, linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%)) !important;
  pointer-events: none !important;
}

body.com_kunena #kunena.layout .kpage .kpage-body p,
body.com_kunena #kunena.layout .kpage .kpage-body li {
  color: #171717 !important;
  font-size: .98rem !important;
  line-height: 1.68 !important;
}

body.com_kunena #kunena.layout .kpage .kpage-body a {
  color: #1d7989 !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

body.com_kunena #kunena.layout .kpage .kpage-body a:hover,
body.com_kunena #kunena.layout .kpage .kpage-body a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout .knavbar {
    align-items: center !important;
    min-height: 3.08rem !important;
    padding: .56rem .58rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .user-wrap > a.dropdown-toggle {
    width: 2.36rem !important;
    min-width: 2.36rem !important;
    max-width: 2.36rem !important;
    height: 2.2rem !important;
    min-height: 2.2rem !important;
    max-height: 2.2rem !important;
    flex-basis: 2.36rem !important;
  }

  body.view-search #kunena.layout .action-wrap {
    justify-content: flex-start !important;
  }
}

/* PortalGraf KGrid pg43: ajuste limitado desde pg41.
   Alcance: botón de login, menú Kunena en móvil y contención de textos en búsqueda.
   No reestructura tablas, estadísticas, lista de miembros ni vistas auxiliares. */

/* Barra Kunena: estructura estable de escritorio. */
body.com_kunena #kunena.layout .knavbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  align-content: center !important;
  gap: .65rem !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: .62rem .72rem !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .knavbar .knav-collapse {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.com_kunena #kunena.layout .knavbar .knav-phone {
  display: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: center !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
  transform: none !important;
}

/* Login: neutraliza la posición absoluta original de KGrid y centra la caja real. */
body.com_kunena #kunena.layout .knavbar .user-wrap,
body.com_kunena #kunena.layout .knavbar .user-wrap.dropdown {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  float: none !important;
  clear: none !important;
  transform: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .knavbar #klogin-desktop,
body.com_kunena #kunena.layout .knavbar .user-wrap > a#klogin-desktop.dropdown-toggle {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.44rem !important;
  min-width: 2.44rem !important;
  max-width: 2.44rem !important;
  height: 2.34rem !important;
  min-height: 2.34rem !important;
  max-height: 2.34rem !important;
  flex: 0 0 2.44rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  vertical-align: middle !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .03) !important;
  transform: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.com_kunena #kunena.layout .knavbar #klogin-desktop::after {
  display: none !important;
  content: none !important;
}

body.com_kunena #kunena.layout .knavbar #klogin-desktop .login-icon,
body.com_kunena #kunena.layout .knavbar #klogin-desktop .login-icon:hover,
body.com_kunena #kunena.layout .knavbar #klogin-desktop .login-icon:focus {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  color: currentColor !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .knavbar #klogin-desktop .login-icon i {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  font-size: .95rem !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar #klogin-desktop:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar #klogin-desktop.show:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar #klogin-desktop[aria-expanded="true"]:not(:hover):not(:focus-visible),
body.com_kunena #kunena.layout .knavbar .user-wrap.show > #klogin-desktop:not(:hover):not(:focus-visible) {
  border-color: rgba(29, 121, 137, .18) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .03) !important;
  outline: 0 !important;
}

body.com_kunena #kunena.layout .knavbar #klogin-desktop:hover,
body.com_kunena #kunena.layout .knavbar #klogin-desktop:focus-visible {
  border-color: rgba(222, 113, 13, .34) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  box-shadow: 0 5px 14px rgba(222, 113, 13, .11) !important;
}

body.com_kunena #kunena.layout .knavbar #userdropdown,
body.com_kunena #kunena.layout .knavbar .user-wrap .dropdown-menu {
  top: calc(100% + .5rem) !important;
  right: 0 !important;
  left: auto !important;
  margin: 0 !important;
  min-width: min(21rem, calc(100vw - 2rem)) !important;
  max-width: calc(100vw - 2rem) !important;
  box-sizing: border-box !important;
}

/* Móvil: se recupera el comportamiento original del KGrid: hamburguesa + login. */
@media (max-width: 991.98px) {
  body.com_kunena #kunena.layout .knavbar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: .55rem !important;
    padding: .58rem .62rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-collapse {
    display: none !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: center !important;
    justify-self: start !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone > .nav,
  body.com_kunena #kunena.layout .knavbar .knav-phone > .navbar-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.44rem !important;
    height: 2.34rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(29, 121, 137, .18) !important;
    border-radius: .78rem !important;
    background: #ffffff !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .03) !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle:hover,
  body.com_kunena #kunena.layout .knavbar .knav-toggle:focus {
    border-color: rgba(222, 113, 13, .34) !important;
    background: rgba(222, 113, 13, .08) !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-1,
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-2,
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-3,
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-4 {
    left: 50% !important;
    width: 1.16rem !important;
    height: 2px !important;
    margin-left: -.58rem !important;
    border-radius: 999px !important;
    background: #1d7989 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-1 { top: .63rem !important; }
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-2,
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-3 { top: 1.08rem !important; }
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-4 { bottom: .63rem !important; }

  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse,
  body.com_kunena #kunena.layout .knavbar .knav-phone .dropdown-menu {
    position: absolute !important;
    top: calc(100% + .5rem) !important;
    left: .62rem !important;
    right: auto !important;
    width: min(20rem, calc(100vw - 1.24rem)) !important;
    max-width: calc(100vw - 1.24rem) !important;
    height: auto !important;
    margin: 0 !important;
    padding: .65rem !important;
    border: 1px solid rgba(29, 121, 137, .18) !important;
    border-radius: 1rem !important;
    background: #ffffff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .13) !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    z-index: 1000 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .navbar-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .4rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .nav-item,
  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .navbar-nav > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .nav-link,
  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.28rem !important;
    padding: .48rem .7rem !important;
    color: #1d7989 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .nav-item.active > .nav-link,
  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .nav-item.current > .nav-link,
  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .navbar-nav > li.active > a,
  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse .navbar-nav > li.current > a {
    border-color: #1d7989 !important;
    background: #1d7989 !important;
    color: #ffffff !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: center !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena #kunena.layout .knavbar #klogin-desktop,
  body.com_kunena #kunena.layout .knavbar .knav-toggle {
    width: 2.34rem !important;
    min-width: 2.34rem !important;
    max-width: 2.34rem !important;
    height: 2.28rem !important;
    min-height: 2.28rem !important;
    max-height: 2.28rem !important;
    flex-basis: 2.34rem !important;
  }
}

/* Búsqueda: evita que títulos, leyendas y controles se salgan de sus módulos. */
body.view-search #kunena.layout form,
body.view-search #kunena.layout #search,
body.view-search #kunena.layout .search-by,
body.view-search #kunena.layout #search-options,
body.view-search #kunena.layout fieldset {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.view-search #kunena.layout .search-by .krow,
body.view-search #kunena.layout #search-options .krow {
  display: grid !important;
  gap: .85rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.view-search #kunena.layout .search-by > .krow {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.view-search #kunena.layout #search-options > .krow:first-child {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.view-search #kunena.layout #search-options > .krow:nth-of-type(2) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-top: .85rem !important;
}

body.view-search #kunena.layout .search-by [class*="kcol-"],
body.view-search #kunena.layout #search-options [class*="kcol-"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.view-search #kunena.layout fieldset {
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.view-search #kunena.layout fieldset legend,
body.view-search #kunena.layout .ksub-heading,
body.view-search #kunena.layout label,
body.view-search #kunena.layout .checkbox,
body.view-search #kunena.layout .form-group {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  box-sizing: border-box !important;
}

body.view-search #kunena.layout input,
body.view-search #kunena.layout select,
body.view-search #kunena.layout textarea,
body.view-search #kunena.layout .form-control,
body.view-search #kunena.layout .form-select,
body.view-search #kunena.layout .custom-select,
body.view-search #kunena.layout .input-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 767.98px) {
  body.view-search #kunena.layout .search-by > .krow,
  body.view-search #kunena.layout #search-options > .krow:first-child,
  body.view-search #kunena.layout #search-options > .krow:nth-of-type(2) {
    grid-template-columns: 1fr !important;
  }
}

/* PortalGraf KGrid pg44: centrado real de desplegables móviles y hamburguesa tipo Joomla.
   Parte de pg43. No toca tablas, vistas auxiliares ni la estética general validada. */
@media (max-width: 991.98px) {
  body.com_kunena #kunena.layout .knavbar {
    position: relative !important;
    overflow: visible !important;
  }

  /* Botón hamburguesa más limpio: tres líneas, sin la cuarta barra ni animación rara. */
  body.com_kunena #kunena.layout .knavbar .knav-toggle {
    color: #1d7989 !important;
    overflow: hidden !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle::after {
    display: none !important;
    content: none !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-1,
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-2,
  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-3 {
    position: absolute !important;
    display: block !important;
    left: 50% !important;
    width: 1.12rem !important;
    height: 2px !important;
    margin-left: -.56rem !important;
    border-radius: 999px !important;
    background: currentColor !important;
    opacity: 1 !important;
    transform: none !important;
    transition: background .16s ease, color .16s ease !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-1 {
    top: .68rem !important;
    bottom: auto !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-2 {
    top: 50% !important;
    bottom: auto !important;
    margin-top: -1px !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-3 {
    top: auto !important;
    bottom: .68rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle .bar-4 {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle:hover,
  body.com_kunena #kunena.layout .knavbar .knav-toggle:focus-visible,
  body.com_kunena #kunena.layout .knavbar .knav-toggle[aria-expanded="true"] {
    color: #de710d !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-toggle[aria-expanded="true"] .bar-1,
  body.com_kunena #kunena.layout .knavbar .knav-toggle[aria-expanded="true"] .bar-2,
  body.com_kunena #kunena.layout .knavbar .knav-toggle[aria-expanded="true"] .bar-3 {
    transform: none !important;
  }

  /* Menú y login: mismo tamaño que pg43, pero centrados bajo la barra Kunena. */
  body.com_kunena #kunena.layout .knavbar .knav-phone-collapse,
  body.com_kunena #kunena.layout .knavbar .knav-phone .dropdown-menu,
  body.com_kunena #kunena.layout .knavbar #userdropdown,
  body.com_kunena #kunena.layout .knavbar .user-wrap .dropdown-menu {
    position: absolute !important;
    top: calc(100% + .5rem) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(20rem, calc(100vw - 1.24rem)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 1.24rem) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transform-origin: top center !important;
  }

  /* Login: conserva la anchura cómoda de pg43 cuando hay espacio, pero sin salirse. */
  body.com_kunena #kunena.layout .knavbar #userdropdown,
  body.com_kunena #kunena.layout .knavbar .user-wrap .dropdown-menu {
    width: min(21rem, calc(100vw - 1.24rem)) !important;
    max-width: calc(100vw - 1.24rem) !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-phone,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse,
  body.com_kunena #kunena.layout .knavbar .user-wrap,
  body.com_kunena #kunena.layout .knavbar .user-wrap.dropdown {
    position: static !important;
  }
}

/* PortalGraf KGrid pg45: el centrado de desplegables queda limitado a móvil.
   En escritorio se recupera el anclaje original del login: dropdown pegado al botón,
   alineado a la derecha del icono y sin centrarse respecto a la barra completa. */
@media (min-width: 992px) {
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
    position: relative !important;
    overflow: visible !important;
  }

  body.com_kunena #kunena.layout .knavbar .user-wrap,
  body.com_kunena #kunena.layout .knavbar .user-wrap.dropdown {
    position: relative !important;
    inset: auto !important;
    overflow: visible !important;
  }

  body.com_kunena #kunena.layout .knavbar #userdropdown,
  body.com_kunena #kunena.layout .knavbar .user-wrap .dropdown-menu {
    position: absolute !important;
    top: calc(100% + .45rem) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    transform-origin: top right !important;
    width: auto !important;
    min-width: min(21rem, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

/* PortalGraf KGrid pg46: lista de miembros ajustada con tabla técnica, paginación inferior única y compacta. */

/* PortalGraf KGrid pg48: estadísticas con tabla técnica PortalGraf y resumen centrado.
   Parte de pg47. No toca login, menú móvil, lista de miembros ni vistas de temas. */
body.view-statistics #kunena.layout .kstatistics {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.view-statistics #kunena.layout .kstatistics > h3 {
  margin: .25rem 0 -.35rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1d7989 !important;
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  line-height: 1.28 !important;
  box-shadow: none !important;
}

body.view-statistics #kunena.layout .kstatistics > .ktable,
body.view-statistics #kunena.layout .kstatistics table.ktable {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 .25rem !important;
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
  table-layout: auto !important;
  font-size: .92rem !important;
  line-height: 1.42 !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable thead,
body.view-statistics #kunena.layout .kstatistics table.ktable thead tr,
body.view-statistics #kunena.layout .kstatistics table.ktable thead th {
  background-image: none !important;
  box-shadow: none !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable th {
  padding: .72rem .86rem !important;
  border: 1px solid #166575 !important;
  background: #1d7989 !important;
  background-color: #1d7989 !important;
  color: #ffffff !important;
  font-size: .84rem !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable th.center,
body.view-statistics #kunena.layout .kstatistics table.ktable td.center {
  text-align: center !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable td {
  padding: .68rem .86rem !important;
  border: 1px solid #d9e1e5 !important;
  color: #4f5f66 !important;
  font-size: .9rem !important;
  line-height: 1.38 !important;
  vertical-align: middle !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  background: #ffffff !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable tbody tr:nth-child(even) td {
  background: #f8fbfc !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable tbody tr:hover td {
  background: #eef6f8 !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable td a {
  color: #1d7989 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.view-statistics #kunena.layout .kstatistics table.ktable td a:hover,
body.view-statistics #kunena.layout .kstatistics table.ktable td a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.view-statistics #kunena.layout .kstatistics .progress {
  height: 1.05rem !important;
  border-radius: 999px !important;
  background: #eef3f4 !important;
  overflow: hidden !important;
  box-shadow: inset 0 0 0 1px rgba(29, 121, 137, .10) !important;
}

body.view-statistics #kunena.layout .kstatistics .progress-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.75rem !important;
  border-radius: inherit !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  line-height: 1.05rem !important;
  text-shadow: none !important;
}

body.view-statistics #kunena.layout .kstatistics .kfrontend.statistics {
  width: 100% !important;
  max-width: 100% !important;
  margin: .35rem 0 0 !important;
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
}

body.view-statistics #kunena.layout .kstatistics .kfrontend.statistics .kblock-header {
  margin: 0 !important;
  padding: .72rem .86rem !important;
  border: 0 !important;
  border-bottom: 1px solid #166575 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
}

body.view-statistics #kunena.layout .kstatistics .kfrontend.statistics .kblock-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: .98rem !important;
  font-weight: 750 !important;
  line-height: 1.24 !important;
  text-align: center !important;
  text-shadow: none !important;
}

body.view-statistics #kunena.layout .kstatistics .kfrontend.statistics .kblock-body {
  padding: 1rem !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .6rem .75rem !important;
  width: min(34rem, 100%) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  justify-content: center !important;
  align-items: stretch !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body li {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.55rem !important;
  margin: 0 !important;
  padding: .55rem .75rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .62rem !important;
  background: #f8fbfc !important;
  color: #4f5f66 !important;
  text-align: center !important;
  line-height: 1.28 !important;
  box-sizing: border-box !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body strong,
body.view-statistics #kunena.layout .kstatistics .kblock-body b {
  color: #1d7989 !important;
  font-weight: 800 !important;
}

@media (max-width: 767.98px) {
  body.view-statistics #kunena.layout .kstatistics table.ktable {
    display: block !important;
    overflow-x: auto !important;
  }

  body.view-statistics #kunena.layout .kstatistics table.ktable th,
  body.view-statistics #kunena.layout .kstatistics table.ktable td {
    padding: .55rem .58rem !important;
  }
}

@media (max-width: 575.98px) {
  body.view-statistics #kunena.layout .kstatistics .kblock-body ul {
    grid-template-columns: 1fr !important;
  }
}


/* PortalGraf KGrid pg49: ajuste fino de estadísticas.
   Mantiene la tabla técnica de pg48, recupera el degradado de las barras y evita centrar cada texto del resumen. */
body.view-statistics #kunena.layout .kstatistics .progress {
  background: rgba(29, 121, 137, .09) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08) !important;
}

body.view-statistics #kunena.layout .kstatistics .progress-bar {
  background: linear-gradient(90deg, #1d7989, #de710d) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .22) !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body ul {
  margin: 0 auto !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body li {
  justify-content: space-between !important;
  gap: .65rem !important;
  text-align: left !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body strong,
body.view-statistics #kunena.layout .kstatistics .kblock-body b {
  flex: 0 0 auto !important;
  margin-left: .25rem !important;
  text-align: right !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body strong a {
  color: #1d7989 !important;
  text-decoration: none !important;
}

body.view-statistics #kunena.layout .kstatistics .kblock-body strong a:hover,
body.view-statistics #kunena.layout .kstatistics .kblock-body strong a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

@media (max-width: 575.98px) {
  body.view-statistics #kunena.layout .kstatistics .kblock-body li {
    align-items: flex-start !important;
  }
}

/* ==========================================================
   PortalGraf Kunena · PG50
   Vista Temas recientes sin resultados
   ========================================================== */

body.com_kunena.view-topics .topic-list .kpage-heading {
  margin-bottom: 1rem;
}

body.com_kunena.view-topics .topic-list .kpage-title small {
  display: none;
}

/* Solo cuando el listado contiene la fila "No hay temas" */
body.com_kunena.view-topics .kfrontend form .kblocktable.ktopic-list:has(.ktopic-row.no-topics) {
  margin: 1.1rem 0 1.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Ocultar cabecera y pie de listado vacío */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row-head,
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row-footer {
  display: none;
}

/* Tarjeta de estado vacío */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics {
  display: block;
  border: 1px solid rgba(29, 121, 137, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(29, 121, 137, 0.045), rgba(222, 113, 13, 0.035)),
    #fff;
  box-shadow: 0 0.35rem 1.1rem rgba(23, 23, 23, 0.055);
  overflow: hidden;
}

body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  padding: 2rem 1.25rem;
  color: #495057;
  text-align: center;
  line-height: 1.5;
}

/* Oculta el texto plano original para sustituirlo por una presentación más cuidada */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner {
  font-size: 0;
}

/* Icono */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner::before {
  content: "\f086";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(29, 121, 137, 0.09);
  color: #1d7989;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
}

/* Mensaje del estado vacío */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner::after {
  content: "No hay temas recientes\A No se han encontrado temas en el periodo seleccionado.";
  white-space: pre-line;
  color: #495057;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Ajuste responsive */
@media (max-width: 575.98px) {
  body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner {
    min-height: 8.5rem;
    padding: 1.6rem 1rem;
  }
}


/* ==========================================================
   PortalGraf Kunena · PG51
   Temas recientes vacío: texto no comprimido + módulos inferiores homogéneos
   ========================================================== */

/* Estado vacío: conserva la tarjeta, pero evita el texto estrecho/centrado en exceso */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
  min-height: auto !important;
  padding: 1.15rem 1.25rem !important;
  text-align: left !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner::before {
  flex: 0 0 3rem !important;
  margin: 0 !important;
}

body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner::after {
  content: "No hay temas recientes. No se han encontrado temas en el periodo seleccionado." !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  white-space: normal !important;
  text-align: left !important;
  color: #495057 !important;
  font-size: .98rem !important;
  font-weight: 400 !important;
  line-height: 1.48 !important;
}

/* Módulos inferiores en Temas recientes: Miembros + Estadísticas */
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 0 !important;
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-header,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-header {
  margin: 0 !important;
  padding: .72rem .86rem !important;
  border: 0 !important;
  border-bottom: 1px solid #166575 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-header h2,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-header h2,
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-header h2 a,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-header h2 a {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: .98rem !important;
  font-weight: 750 !important;
  line-height: 1.24 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-header h2 a:hover,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-header h2 a:hover,
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-header h2 a:focus,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-header h2 a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body {
  padding: 1rem !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body > ul,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul {
  display: grid !important;
  gap: .6rem .75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body > ul {
  grid-template-columns: 1fr !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .75rem !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul {
  grid-template-columns: 1fr !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body li,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .65rem !important;
  min-height: 2.55rem !important;
  margin: 0 !important;
  padding: .55rem .75rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .62rem !important;
  background: #f8fbfc !important;
  color: #4f5f66 !important;
  text-align: left !important;
  line-height: 1.28 !important;
  box-sizing: border-box !important;
}

/* Evita que el segundo li vacío de Miembros cree una caja fantasma */
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body li:empty {
  display: none !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body strong,
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body b,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body strong,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body b {
  flex: 0 0 auto !important;
  margin-left: .25rem !important;
  color: #1d7989 !important;
  font-weight: 800 !important;
  text-align: right !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body a,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body a {
  color: #1d7989 !important;
  text-decoration: none !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body a:hover,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body a:hover,
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body a:focus,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner {
    align-items: flex-start !important;
    padding: 1rem !important;
  }
}


/* ==========================================================
   PortalGraf Kunena · PG52
   Recientes: estado vacío real + módulos inferiores refinados
   ========================================================== */

/* Estado vacío propio: ya no depende de la estructura de tabla/listado. */
body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: .95rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.1rem 0 1.4rem !important;
  padding: 1rem 1.15rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background:
    linear-gradient(135deg, rgba(29, 121, 137, .045), rgba(222, 113, 13, .035)),
    #fff !important;
  box-shadow: 0 .35rem 1.1rem rgba(23, 23, 23, .055) !important;
  color: #495057 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state__icon {
  display: flex !important;
  flex: 0 0 3rem !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3rem !important;
  height: 3rem !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: rgba(29, 121, 137, .09) !important;
  color: #1d7989 !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state__body {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: .08rem 0 0 !important;
  text-align: left !important;
}

body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state__title {
  display: block !important;
  margin: 0 0 .18rem !important;
  color: #31464d !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state__text {
  display: block !important;
  margin: 0 !important;
  color: #5d6c72 !important;
  font-size: .96rem !important;
  font-weight: 400 !important;
  line-height: 1.48 !important;
  text-align: left !important;
  white-space: normal !important;
}

/* Fallback defensivo: si otra vista vuelve a imprimir el ul vacío, no comprimir texto. */
body.com_kunena.view-topics .kblocktable.ktopic-list:has(.ktopic-row.no-topics) .ktopic-row.no-topics .ktopic-inner {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  text-align: left !important;
}

/* Miembros: elimina cajas fantasma creadas por salidas vacías con espacios/saltos de línea. */
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body li.pg-empty,
body.com_kunena.view-topics #kunena.layout > .kfrontend.kwho .kblock-body li:empty {
  display: none !important;
}

/* Estadísticas inferiores: mismo criterio de resumen compacto de la página de estadísticas, en dos columnas. */
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body {
  display: block !important;
  padding: 1rem !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul,
body.com_kunena #kunena.layout > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .6rem .75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul > li,
body.com_kunena #kunena.layout > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul > li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  min-height: 2.55rem !important;
  margin: 0 !important;
  padding: .55rem .75rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .62rem !important;
  background: #f8fbfc !important;
  color: #4f5f66 !important;
  text-align: left !important;
  line-height: 1.28 !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul > li strong,
body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul > li b,
body.com_kunena #kunena.layout > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul > li strong,
body.com_kunena #kunena.layout > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul > li b {
  flex: 0 0 auto !important;
  margin-left: .35rem !important;
  color: #1d7989 !important;
  font-weight: 800 !important;
  text-align: right !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state {
    gap: .8rem !important;
    padding: .95rem !important;
  }

  body.com_kunena.view-topics #kunena.layout .pg-kunena-empty-state__icon {
    flex-basis: 2.65rem !important;
    width: 2.65rem !important;
    height: 2.65rem !important;
    font-size: 1.1rem !important;
  }

  body.com_kunena.view-topics #kunena.layout > .kfrontend.statistics .kblock-body > ul,
  body.com_kunena #kunena.layout > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   PortalGraf Kunena · PG54
   Portada y recientes: resumen inferior apilado
   ========================================================== */

body.com_kunena #kunena.layout > .pg-forum-bottom-summary {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.15rem 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-header,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-header {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: .72rem .86rem !important;
  border: 0 !important;
  border-bottom: 1px solid #166575 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  text-align: center !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-header h2,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-header h2,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-header h2 a,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-header h2 a {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: .98rem !important;
  font-weight: 750 !important;
  line-height: 1.24 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-header h2 a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-header h2 a:focus,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-header h2 a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-header h2 a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body {
  display: block !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 1rem !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body > ul,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body > ul {
  display: grid !important;
  gap: .6rem .75rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body > ul {
  grid-template-columns: 1fr !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body > ul,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body li,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  min-height: 2.55rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .55rem .75rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .62rem !important;
  background: #f8fbfc !important;
  color: #4f5f66 !important;
  text-align: left !important;
  line-height: 1.28 !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body li:empty,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body li.pg-empty {
  display: none !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body strong,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body b,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body strong,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body b {
  flex: 0 0 auto !important;
  margin-left: .35rem !important;
  color: #1d7989 !important;
  font-weight: 800 !important;
  text-align: right !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body a,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body a {
  color: #1d7989 !important;
  text-decoration: none !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho .kblock-body a:focus,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

@media (max-width: 991.98px) {
  body.com_kunena #kunena.layout > .pg-forum-bottom-summary {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics .kblock-body > ul,
  body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary .kblock-body > ul {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================
   PortalGraf Kunena · PG54 hotfix
   Miembros y Estadísticas siempre apilados en portada y recientes
   ========================================================== */

body.com_kunena #kunena.layout > .pg-forum-bottom-summary {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-auto-flow: row !important;
  gap: 1rem !important;
}

body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ==========================================================
   PortalGraf Kunena · PG55
   Cabeceras unificadas en módulos Miembros / Estadísticas
   ========================================================== */

body.com_kunena #kunena.layout .kfrontend.kwho,
body.com_kunena #kunena.layout .kfrontend.statistics,
body.com_kunena #kunena.layout .kfrontend.statistics.pg-statistics-summary,
body.com_kunena #kunena.layout .kstatistics .kfrontend.statistics,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary {
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .kfrontend.kwho > .kblock-header,
body.com_kunena #kunena.layout .kfrontend.statistics > .kblock-header,
body.com_kunena #kunena.layout .kfrontend.statistics.pg-statistics-summary > .kblock-header,
body.com_kunena #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho > .kblock-header,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics > .kblock-header,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary > .kblock-header {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .72rem .92rem !important;
  border: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid #166575 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  text-align: left !important;
  box-shadow: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .kfrontend.kwho > .kblock-header h2,
body.com_kunena #kunena.layout .kfrontend.statistics > .kblock-header h2,
body.com_kunena #kunena.layout .kfrontend.statistics.pg-statistics-summary > .kblock-header h2,
body.com_kunena #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header h2,
body.com_kunena #kunena.layout .kfrontend.kwho > .kblock-header h2 a,
body.com_kunena #kunena.layout .kfrontend.statistics > .kblock-header h2 a,
body.com_kunena #kunena.layout .kfrontend.statistics.pg-statistics-summary > .kblock-header h2 a,
body.com_kunena #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header h2 a,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho > .kblock-header h2,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics > .kblock-header h2,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary > .kblock-header h2,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho > .kblock-header h2 a,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics > .kblock-header h2 a,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary > .kblock-header h2 a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: .98rem !important;
  font-weight: 750 !important;
  line-height: 1.24 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body.com_kunena #kunena.layout .kfrontend.kwho > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout .kfrontend.kwho > .kblock-header h2 a:focus,
body.com_kunena #kunena.layout .kfrontend.statistics > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout .kfrontend.statistics > .kblock-header h2 a:focus,
body.com_kunena #kunena.layout .kfrontend.statistics.pg-statistics-summary > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout .kfrontend.statistics.pg-statistics-summary > .kblock-header h2 a:focus,
body.com_kunena #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header h2 a:focus,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.kwho > .kblock-header h2 a:focus,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics > .kblock-header h2 a:focus,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary > .kblock-header h2 a:hover,
body.com_kunena #kunena.layout > .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary > .kblock-header h2 a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

/* ==========================================================
   PortalGraf Kunena · PG56
   Vista Estadísticas: resumen inferior alineado con el resto
   ========================================================== */

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 0 !important;
  clear: both !important;
  border: 1px solid #d9e1e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .72rem .92rem !important;
  border: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid #166575 !important;
  border-radius: 10px 10px 0 0 !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  text-align: left !important;
  box-shadow: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header h2,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header h2 a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: .98rem !important;
  font-weight: 750 !important;
  line-height: 1.24 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header h2 a:hover,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header h2 a:focus {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body {
  padding: 1rem !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .6rem .75rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  justify-content: stretch !important;
  align-items: stretch !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul > li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  min-height: 2.55rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .55rem .75rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .62rem !important;
  background: #f8fbfc !important;
  color: #4f5f66 !important;
  text-align: left !important;
  line-height: 1.28 !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul > li strong,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul > li b {
  flex: 0 0 auto !important;
  margin-left: .35rem !important;
  color: #1d7989 !important;
  font-weight: 800 !important;
  text-align: right !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul > li a {
  color: #1d7989 !important;
  text-decoration: none !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul > li a:hover,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul > li a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body > ul {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================
   PortalGraf Kunena · PG57
   Vista Estadísticas: eliminar hueco interno cabecera/cuerpo
   ========================================================== */

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics.pg-statistics-summary,
body.com_kunena.view-statistics #kunena.layout .kstatistics .kfrontend.statistics {
  padding: 0 !important;
  gap: 0 !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics.pg-statistics-summary > .kblock-header,
body.com_kunena.view-statistics #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header {
  margin: 0 !important;
  border-radius: 10px 10px 0 0 !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-body,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics.pg-statistics-summary > .kblock-body,
body.com_kunena.view-statistics #kunena.layout .kstatistics .kfrontend.statistics > .kblock-body {
  margin: 0 !important;
  border-top: 0 !important;
  border-radius: 0 0 10px 10px !important;
  padding-top: .85rem !important;
}

body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics > .kblock-header + .kblock-body,
body.com_kunena.view-statistics #kunena.layout .kstatistics > .kfrontend.statistics.pg-statistics-summary > .kblock-header + .kblock-body,
body.com_kunena.view-statistics #kunena.layout .kstatistics .kfrontend.statistics > .kblock-header + .kblock-body {
  margin-top: 0 !important;
}

/* ==========================================================
   PortalGraf Kunena · PG59
   Perfil de usuario: quitar solo el contenedor global inferior
   ----------------------------------------------------------
   Conserva la cabecera interna de mensajes, el buscador y el
   listado tal como estaban; solo neutraliza la tarjeta que envolvía
   conjuntamente pestaña/cabecera/buscador/listado en el perfil.
   ========================================================== */

body.com_kunena.view-user.layout-default #kunena.layout .tabs {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-user.layout-default #kunena.layout .tabs .tab-content,
body.com_kunena.view-user.layout-default #kunena.layout .tabs .tab-content:hover,
body.com_kunena.view-user.layout-default #kunena.layout .tabs .tab-content:focus-within {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
  transition: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-user.layout-default #kunena.layout .tabs .tab-pane,
body.com_kunena.view-user.layout-default #kunena.layout .tabs .tab-pane > div {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* PortalGraf KGrid pg60: búsqueda avanzada Kunena más legible.
   Mantiene la lógica original de Kunena y solo ordena visualmente el formulario. */
body.com_kunena.view-search #kunena.layout form[action*="view=search"],
body.com_kunena.view-search #kunena.layout form[action*="/foro/buscar"],
body.com_kunena.view-search #kunena.layout > form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .kpage-heading {
  margin-bottom: 1.05rem !important;
}

body.com_kunena.view-search #kunena.layout #search {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .search-by,
body.com_kunena.view-search #kunena.layout #search-options {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: 5px solid rgba(222, 113, 13, .92) !important;
  border-radius: 1rem !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    linear-gradient(135deg, rgba(29,121,137,.09), rgba(222,113,13,.055)) !important;
  box-shadow: 0 .55rem 1.1rem rgba(15, 23, 42, .055) !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .search-by {
  position: relative !important;
  overflow: hidden !important;
}

body.com_kunena.view-search #kunena.layout .search-by::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: .22rem !important;
  background: linear-gradient(180deg, #00a6c8, #d61a7f 34%, #f4c400 67%, #171717) !important;
  opacity: .95 !important;
  pointer-events: none !important;
}

body.com_kunena.view-search #kunena.layout .ksub-heading {
  margin: 1.15rem 0 .75rem !important;
  padding: 0 0 .42rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .18) !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #171717 !important;
  font-size: 1.18rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .search-by .krow,
body.com_kunena.view-search #kunena.layout #search-options .krow {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: .9rem !important;
  align-items: stretch !important;
}

body.com_kunena.view-search #kunena.layout .search-by > .krow {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.com_kunena.view-search #kunena.layout #search-options > .krow:first-child {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.com_kunena.view-search #kunena.layout #search-options > .krow:nth-of-type(2) {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
  margin-top: .9rem !important;
}

body.com_kunena.view-search #kunena.layout .search-by [class*="kcol-"],
body.com_kunena.view-search #kunena.layout #search-options [class*="kcol-"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout fieldset {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .92rem .95rem .95rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .9rem !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72) !important;
  overflow: hidden !important;
}

body.com_kunena.view-search #kunena.layout fieldset legend {
  float: none !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 0 .68rem !important;
  padding: 0 0 .42rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  color: #1d7989 !important;
  font-size: .96rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-search #kunena.layout .form-group {
  display: grid !important;
  gap: .55rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.com_kunena.view-search #kunena.layout .form-control,
body.com_kunena.view-search #kunena.layout .form-select,
body.com_kunena.view-search #kunena.layout .custom-select,
body.com_kunena.view-search #kunena.layout select,
body.com_kunena.view-search #kunena.layout input[type="text"],
body.com_kunena.view-search #kunena.layout input[type="search"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 2.45rem !important;
  padding: .5rem .72rem !important;
  border: 1px solid rgba(29, 121, 137, .24) !important;
  border-radius: .72rem !important;
  background-color: #ffffff !important;
  color: #171717 !important;
  font-size: .96rem !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout select[multiple],
body.com_kunena.view-search #kunena.layout #categorylist {
  min-height: 14rem !important;
  padding: .45rem .55rem !important;
  line-height: 1.38 !important;
  overflow: auto !important;
}

body.com_kunena.view-search #kunena.layout select[multiple] option,
body.com_kunena.view-search #kunena.layout #categorylist option {
  padding: .22rem .35rem !important;
}

body.com_kunena.view-search #kunena.layout .form-control:focus,
body.com_kunena.view-search #kunena.layout .form-select:focus,
body.com_kunena.view-search #kunena.layout .custom-select:focus,
body.com_kunena.view-search #kunena.layout select:focus,
body.com_kunena.view-search #kunena.layout input[type="text"]:focus,
body.com_kunena.view-search #kunena.layout input[type="search"]:focus {
  border-color: rgba(222, 113, 13, .58) !important;
  box-shadow: 0 0 0 .16rem rgba(222, 113, 13, .12) !important;
  outline: 0 !important;
}

body.com_kunena.view-search #kunena.layout .checkbox,
body.com_kunena.view-search #kunena.layout fieldset > label,
body.com_kunena.view-search #kunena.layout .radio {
  margin: .45rem 0 0 !important;
  color: #5f6f76 !important;
  font-size: .92rem !important;
  line-height: 1.35 !important;
}

body.com_kunena.view-search #kunena.layout .checkbox label,
body.com_kunena.view-search #kunena.layout fieldset > label,
body.com_kunena.view-search #kunena.layout .radio label {
  display: inline-flex !important;
  align-items: center !important;
  gap: .42rem !important;
  max-width: 100% !important;
  margin: 0 !important;
  cursor: pointer !important;
}

body.com_kunena.view-search #kunena.layout input[type="checkbox"],
body.com_kunena.view-search #kunena.layout input[type="radio"] {
  width: 1rem !important;
  min-width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
  accent-color: #1d7989 !important;
}

body.com_kunena.view-search #kunena.layout #searchatdate .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.com_kunena.view-search #kunena.layout #searchatdate .input-group .form-control {
  flex: 1 1 auto !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body.com_kunena.view-search #kunena.layout #searchatdate .input-group-addon,
body.com_kunena.view-search #kunena.layout #searchatdate .input-group-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.6rem !important;
  min-width: 2.6rem !important;
  border: 1px solid rgba(29, 121, 137, .24) !important;
  border-left: 0 !important;
  border-radius: 0 .72rem .72rem 0 !important;
  background: rgba(29, 121, 137, .075) !important;
  color: #1d7989 !important;
}

body.com_kunena.view-search #kunena.layout .action-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: .55rem !important;
  margin: 1.05rem 0 0 !important;
  padding: .9rem 0 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .14) !important;
}

body.com_kunena.view-search #kunena.layout .action-wrap .kbutton,
body.com_kunena.view-search #kunena.layout .action-wrap button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem !important;
  min-height: 2.42rem !important;
  padding: .5rem .95rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  font-size: .94rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 .18rem .42rem rgba(15, 23, 42, .045) !important;
}

body.com_kunena.view-search #kunena.layout .action-wrap .kbutton-primary,
body.com_kunena.view-search #kunena.layout .action-wrap button[type="submit"] {
  border-color: #de710d !important;
  background: linear-gradient(135deg, #de710d, #bd5a0d) !important;
  color: #ffffff !important;
}

body.com_kunena.view-search #kunena.layout .action-wrap .kbutton:hover,
body.com_kunena.view-search #kunena.layout .action-wrap .kbutton:focus,
body.com_kunena.view-search #kunena.layout .action-wrap button:hover,
body.com_kunena.view-search #kunena.layout .action-wrap button:focus {
  border-color: #832320 !important;
  background: #832320 !important;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  body.com_kunena.view-search #kunena.layout .search-by > .krow,
  body.com_kunena.view-search #kunena.layout #search-options > .krow:first-child,
  body.com_kunena.view-search #kunena.layout #search-options > .krow:nth-of-type(2) {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena.view-search #kunena.layout .search-by,
  body.com_kunena.view-search #kunena.layout #search-options {
    padding: .85rem !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-search #kunena.layout .action-wrap {
    justify-content: stretch !important;
  }

  body.com_kunena.view-search #kunena.layout .action-wrap .kbutton,
  body.com_kunena.view-search #kunena.layout .action-wrap button {
    width: 100% !important;
  }
}

/* PortalGraf KGrid pg70: ajuste fino de búsqueda y contexto del foro.
   - El rótulo PortalGraf · Foro hereda el estilo real de .pg-section-context del user.css global.
   - Se evita que el rótulo sea seleccionable sin redefinir fuente/color/peso.
   - Se fuerza separación vertical real entre cabecera, módulos y acciones.
   - Las tarjetas recuperan sombra y hover tipo tarjeta PortalGraf.
   - Se neutraliza cualquier filete sólido heredado de #search-options. */

/* Contexto superior: anclar el rótulo fuera del flujo variable interno de Kunena.
   La apariencia la sigue gobernando user.css mediante .pg-section-context. */
body.com_kunena .pg-section.pgk-forum-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.com_kunena .pg-section.pgk-forum-section .pg-section-context.pgk-forum-context {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: default !important;
}

body.com_kunena .pg-section.pgk-forum-section .pg-section-context.pgk-forum-context::before {
  content: attr(data-pgk-label) !important;
}

body.com_kunena .pg-section.pgk-forum-section .pg-section-context.pgk-forum-context .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.com_kunena .pg-section.pgk-forum-section + #kunena.layout .knavbar {
  margin-top: 0 !important;
}

/* Estructura base de búsqueda. */
body.com_kunena.view-search #kunena.layout .pg-ksearch-form--pg70,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 {
  --pgk-green-dark: #176b78;
  --pgk-green: #1d7989;
  --pgk-green-mid: #2a7f84;
  --pgk-orange: #de710d;
  --pgk-orange-dark: #bd5a0d;
  --pgk-red: #832320;
  --pgk-text: #171717;
  --pgk-muted: #5f6f76;
  --pgk-line: rgba(29, 121, 137, .16);
  --pgk-line-strong: rgba(29, 121, 137, .26);
  --pgk-card-shadow: 0 10px 24px rgba(15, 23, 42, .055);
  --pgk-card-shadow-hover: 0 16px 32px rgba(15, 23, 42, .085);
  display: block !important;
}

/* Margen uniforme real: no depender solo de gap. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-top,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module {
  margin: 0 0 1rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-actions {
  margin: .08rem 0 0 !important;
}

/* Cabecera de búsqueda: degradado corporativo y filete naranja sólido. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-top {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 1.05rem 1.15rem 1.08rem 1.18rem !important;
  border: 0 !important;
  border-left: 5px solid var(--pgk-orange) !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, var(--pgk-green-dark) 0%, var(--pgk-green) 42%, var(--pgk-green-mid) 68%, var(--pgk-orange-dark) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 .35rem .9rem rgba(15, 23, 42, .08) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-top::before {
  content: none !important;
  display: none !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-top::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .18), transparent 34%) !important;
  pointer-events: none !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-eyebrow,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-page-title,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-lead {
  position: relative !important;
  z-index: 1 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-eyebrow {
  margin: 0 0 .34rem !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: .76rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-page-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem) !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .08) !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-lead {
  max-width: 58rem !important;
  margin: .48rem 0 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: .96rem !important;
  line-height: 1.5 !important;
}

/* Módulos técnicos: una tarjeta por módulo, un único filete degradado. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module,
body.com_kunena.view-search #kunena.layout section.pg-ksearch-module,
body.com_kunena.view-search #kunena.layout section#search-options.pg-ksearch-module,
body.view-search #kunena.layout section#search-options.pg-ksearch-module {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 1rem 1rem 1.04rem 1.18rem !important;
  border: 1px solid var(--pgk-line) !important;
  border-left: 0 !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  box-shadow: var(--pgk-card-shadow) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module:hover,
body.com_kunena.view-search #kunena.layout section.pg-ksearch-module:hover,
body.com_kunena.view-search #kunena.layout section#search-options.pg-ksearch-module:hover,
body.view-search #kunena.layout section#search-options.pg-ksearch-module:hover {
  border-color: var(--pgk-line-strong) !important;
  box-shadow: var(--pgk-card-shadow-hover) !important;
  transform: translateY(-1px) !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module::before,
body.com_kunena.view-search #kunena.layout section.pg-ksearch-module::before,
body.com_kunena.view-search #kunena.layout section#search-options.pg-ksearch-module::before,
body.view-search #kunena.layout section#search-options.pg-ksearch-module::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  border: 0 !important;
  background: linear-gradient(180deg, var(--pgk-green) 0%, var(--pgk-orange) 100%) !important;
  opacity: .96 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module::after,
body.com_kunena.view-search #kunena.layout section.pg-ksearch-module::after,
body.com_kunena.view-search #kunena.layout section#search-options.pg-ksearch-module::after,
body.view-search #kunena.layout section#search-options.pg-ksearch-module::after {
  content: none !important;
  display: none !important;
}

/* Neutralización fuerte del filete sólido heredado de #search-options/tarjeta 2. */
body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module,
body.view-search #kunena.layout #search-options.pg-ksearch-module,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #search-options,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-module--settings {
  margin-top: 0 !important;
  border-left: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
}

body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module,
body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module .pg-ksearch-field,
body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module .pg-ksearch-module__heading,
body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module .pg-ksearch-settings-grid,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--categories,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--date-specific,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--moderation {
  border-left: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module > :first-child::before,
body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module .pg-ksearch-field::before,
body.com_kunena.view-search #kunena.layout #search-options.pg-ksearch-module .pg-ksearch-settings-grid::before {
  content: none !important;
  display: none !important;
}

/* Cabeceras internas de módulos. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-module__heading {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: .72rem !important;
  align-items: start !important;
  min-height: 0 !important;
  margin: 0 0 .95rem !important;
  padding: 0 0 .76rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-step {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.08rem !important;
  height: 2.08rem !important;
  flex: 0 0 2.08rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .72rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .13), rgba(222, 113, 13, .075)) !important;
  color: var(--pgk-green) !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-module__heading h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pgk-green) !important;
  font-size: 1.04rem !important;
  font-weight: 900 !important;
  line-height: 1.22 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-module__heading p {
  margin: .2rem 0 0 !important;
  padding: 0 !important;
  color: var(--pgk-muted) !important;
  font-size: .9rem !important;
  line-height: 1.42 !important;
}

/* Retículas internas. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(11rem, .65fr) !important;
  gap: .9rem 1rem !important;
  align-items: end !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--query {
  grid-row: span 2 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--query .pg-ksearch-input--query {
  min-height: 3rem !important;
  font-size: 1rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-settings-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)) !important;
  gap: .9rem 1rem !important;
  align-items: end !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-scope-layout {
  display: grid !important;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr) !important;
  gap: .9rem 1rem !important;
  align-items: start !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-scope-short {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)) !important;
  gap: .9rem 1rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field {
  display: grid !important;
  gap: .45rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-label {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--pgk-text) !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-control-pair,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-choice-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)) !important;
  gap: .5rem !important;
  min-width: 0 !important;
}

/* Campos. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .form-control,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .form-select,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .custom-select,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 input[type="text"],
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 input[type="search"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 2.48rem !important;
  margin: 0 !important;
  padding: .54rem .72rem !important;
  border: 1px solid rgba(29, 121, 137, .24) !important;
  border-radius: .72rem !important;
  background-color: #ffffff !important;
  color: var(--pgk-text) !important;
  font-size: .95rem !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .form-control:focus,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .form-select:focus,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .custom-select:focus,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select:focus,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 input[type="text"]:focus,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 input[type="search"]:focus {
  border-color: rgba(222, 113, 13, .62) !important;
  box-shadow: 0 0 0 .18rem rgba(222, 113, 13, .12) !important;
  outline: 0 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #categorylist,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select[multiple] {
  min-height: 11.6rem !important;
  padding: .45rem .55rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #categorylist option,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select[multiple] option {
  padding: .16rem .28rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--categories {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Checks y radio. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: .45rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .55rem .62rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .72rem !important;
  background: rgba(29, 121, 137, .026) !important;
  color: var(--pgk-muted) !important;
  font-size: .92rem !important;
  line-height: 1.34 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check--exact {
  align-self: end !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check--children {
  margin-top: .55rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check input[type="checkbox"],
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check input[type="radio"] {
  flex: 0 0 auto !important;
  margin: .12rem 0 0 !important;
}

/* Datepicker Kunena. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate.input-group.date {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate.input-group.date .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate .input-group-addon,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate .input-group-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.6rem !important;
  min-width: 2.6rem !important;
  margin: 0 !important;
  border: 1px solid rgba(29, 121, 137, .24) !important;
  border-left: 0 !important;
  border-radius: 0 .72rem .72rem 0 !important;
  background: rgba(29, 121, 137, .075) !important;
  color: var(--pgk-green) !important;
  box-sizing: border-box !important;
}

/* Acciones. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: .55rem !important;
  padding: .9rem 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .14) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions .kbutton,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem !important;
  min-height: 2.42rem !important;
  padding: .5rem .95rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: var(--pgk-green) !important;
  font-size: .94rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: 0 .18rem .42rem rgba(15, 23, 42, .045) !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions .kbutton-primary,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions button[type="submit"] {
  border-color: var(--pgk-orange) !important;
  background: linear-gradient(135deg, var(--pgk-orange), var(--pgk-orange-dark)) !important;
  color: #ffffff !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions .kbutton:hover,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions .kbutton:focus,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions button:hover,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions button:focus {
  border-color: var(--pgk-red) !important;
  background: var(--pgk-red) !important;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-main-grid,
  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-scope-layout {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--query {
    grid-row: auto !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check--exact {
    align-self: start !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-top,
  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module {
    margin-bottom: .9rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-top {
    padding: .94rem .88rem .98rem 1rem !important;
    border-left-width: 4px !important;
    border-radius: .92rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module,
  body.com_kunena.view-search #kunena.layout section.pg-ksearch-module,
  body.com_kunena.view-search #kunena.layout section#search-options.pg-ksearch-module {
    padding: .9rem .86rem .94rem 1rem !important;
    border-radius: .92rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 > .pg-ksearch-module::before,
  body.com_kunena.view-search #kunena.layout section.pg-ksearch-module::before,
  body.com_kunena.view-search #kunena.layout section#search-options.pg-ksearch-module::before {
    width: 4px !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-module__heading {
    gap: .58rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-step {
    flex-basis: 1.8rem !important;
    width: 1.8rem !important;
    height: 1.8rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions {
    justify-content: stretch !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions .kbutton,
  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-actions button {
    width: 100% !important;
  }
}

/* PortalGraf KGrid pg70: ajuste quirúrgico del módulo 01 y de selectores.
   - Reordena Contenido para evitar que el checkbox Nombre exacto rompa la retícula.
   - El campo de palabras clave ocupa la primera fila completa.
   - Modo y Usuario quedan en una segunda fila estable.
   - Normaliza los selectores para que la flecha/zona clicable no se solape con el texto. */
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-main-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .88rem 1rem !important;
  align-items: start !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--query {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--query .pg-ksearch-input--query {
  min-height: 2.72rem !important;
  font-size: 1rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--mode,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--user {
  align-self: start !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-field--user {
  gap: .45rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check--exact {
  align-self: stretch !important;
  min-height: 2.38rem !important;
  margin-top: .06rem !important;
  padding: .48rem .62rem !important;
  align-items: center !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select.form-control:not([multiple]),
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select.custom-select:not([multiple]),
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select.form-select:not([multiple]),
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 select:not([multiple]) {
  min-height: 2.52rem !important;
  height: 2.52rem !important;
  line-height: 1.25 !important;
  padding: .48rem 2.65rem .48rem .72rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background-position: right .78rem center !important;
  background-size: 16px 12px !important;
  cursor: pointer !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-control-pair select.form-control:not([multiple]),
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-control-pair select.custom-select:not([multiple]),
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-control-pair select.form-select:not([multiple]) {
  min-width: 0 !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate.input-group.date .form-control {
  min-height: 2.52rem !important;
  height: 2.52rem !important;
}

body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate .input-group-addon,
body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 #searchatdate .input-group-text {
  min-height: 2.52rem !important;
  height: 2.52rem !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-main-grid {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena.view-search #kunena.layout .pg-ksearch--pg70 .pg-ksearch-check--exact {
    min-height: auto !important;
  }
}


/* PortalGraf KGrid pg71: aislamiento del login dropdown en la vista de búsqueda.
   La vista search tenía reglas heredadas demasiado amplias sobre #kunena que afectaban
   también al formulario de login del menú. Se restaura su geometría sin tocar el
   formulario avanzado de búsqueda pg70. */
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown,
body.com_kunena.view-search #kunena.layout .knavbar .user-wrap .dropdown-menu#userdropdown {
  padding: 1rem !important;
  overflow: visible !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #kdesktop-loginform,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-username,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-password {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 .78rem !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-username label,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-password label {
  display: block !important;
  width: auto !important;
  margin: 0 0 .32rem !important;
  padding: 0 !important;
  color: #495057 !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  overflow: visible !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-username input,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-password input,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown input#kform-login-username,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown input#kform-login-password {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 2.38rem !important;
  min-height: 2.38rem !important;
  margin: 0 !important;
  padding: .52rem .72rem .52rem 2.15rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .72rem !important;
  background-color: #ffffff !important;
  color: #171717 !important;
  font-size: .94rem !important;
  line-height: 1.25 !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-username input:focus,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-password input:focus,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown input#kform-login-username:focus,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown input#kform-login-password:focus {
  border-color: rgba(222, 113, 13, .48) !important;
  box-shadow: 0 0 0 .14rem rgba(222, 113, 13, .10) !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-username i,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .kform-login-password i {
  position: absolute !important;
  left: .78rem !important;
  bottom: .72rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(29, 121, 137, .62) !important;
  font-size: .92rem !important;
  line-height: 1 !important;
  pointer-events: none !important;
  transform: none !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .form-check {
  display: flex !important;
  align-items: center !important;
  gap: .48rem !important;
  width: auto !important;
  min-width: 0 !important;
  margin: .1rem 0 .78rem !important;
  padding: 0 !important;
  color: #5f6f76 !important;
  font-size: .9rem !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .form-check .form-check-input,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown input#dropdownCheck,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown input[type="checkbox"]#dropdownCheck {
  position: static !important;
  float: none !important;
  display: inline-block !important;
  flex: 0 0 1rem !important;
  width: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  height: 1rem !important;
  min-height: 1rem !important;
  max-height: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: .22rem !important;
  transform: none !important;
  box-sizing: border-box !important;
  accent-color: #1d7989 !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown .form-check .form-check-label,
body.com_kunena.view-search #kunena.layout .knavbar #userdropdown label[for="dropdownCheck"] {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #5f6f76 !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown #kform-login-submit {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-search #kunena.layout .knavbar #userdropdown #kform-login-submit .kbutton {
  width: 100% !important;
  min-height: 2.38rem !important;
}

/* PortalGraf KGrid pg73: login global, vista responder y estabilidad de modales de reporte.
   Objetivo: conservar pg70/pg71 y aplicar ajustes prudentes sin rediseñar Kunena. */

/* Iconos interiores del login: verde PortalGraf en todas las vistas, no solo en búsqueda. */
body.com_kunena #kunena.layout .knavbar #userdropdown .kform-login-username i,
body.com_kunena #kunena.layout .knavbar #userdropdown .kform-login-password i {
  color: rgba(29, 121, 137, .68) !important;
}

body.com_kunena #kunena.layout .knavbar #userdropdown .kform-login-username input:focus + i,
body.com_kunena #kunena.layout .knavbar #userdropdown .kform-login-password input:focus + i,
body.com_kunena #kunena.layout .knavbar #userdropdown .kform-login-username:focus-within i,
body.com_kunena #kunena.layout .knavbar #userdropdown .kform-login-password:focus-within i {
  color: #1d7989 !important;
}

/* Responder tema/post: tarjeta limpia y coherente, sin convertirla en una cabecera pesada. */
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 1.25rem !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1.05rem !important;
  box-shadow: 0 .65rem 1.4rem rgba(15, 23, 42, .06) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible form,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible form {
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-header,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-header {
  display: block !important;
  margin: 0 !important;
  padding: .95rem 1.15rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .86) 48%, rgba(222, 113, 13, .88)) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  color: #ffffff !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-header h3,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-header h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 1.08rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-header a,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-header a {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: .18rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-body,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-body {
  padding: 1.15rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .form-group,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .form-group,
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .control-group,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .control-group {
  margin: 0 0 .95rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible label,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible label,
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .control-label,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .control-label {
  display: block !important;
  margin: 0 0 .35rem !important;
  color: #495057 !important;
  font-size: .9rem !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible input[type="text"],
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible input[type="text"],
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible textarea,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible textarea,
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .form-control,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .form-control {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: #171717 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible input[type="text"],
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible input[type="text"],
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .form-control:not(textarea),
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .form-control:not(textarea) {
  min-height: 2.45rem !important;
  padding: .55rem .8rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible textarea,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible textarea {
  min-height: 10rem !important;
  padding: .75rem .85rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible input:focus,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible input:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible textarea:focus,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible textarea:focus {
  border-color: rgba(222, 113, 13, .46) !important;
  box-shadow: 0 0 0 .14rem rgba(222, 113, 13, .10) !important;
  outline: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .kreply-editor-foot,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .kreply-editor-foot {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .65rem 1rem !important;
  margin-top: .75rem !important;
  padding-top: .85rem !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .kreply-editor-foot .control-group,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .kreply-editor-foot .control-group {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible input[type="checkbox"],
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible input[type="checkbox"] {
  accent-color: #1d7989 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-footer,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .65rem !important;
  margin: 0 !important;
  padding: .95rem 1.15rem !important;
  background: rgba(29, 121, 137, .035) !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-footer small,
body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-footer small {
  flex: 1 1 18rem !important;
  color: #5f6f76 !important;
  line-height: 1.35 !important;
}

/* Reportar mensaje: estabilización Bootstrap 5 y estilo técnico discreto del modal. */
body.com_kunena #kunena.layout .report .modal {
  z-index: 1065 !important;
}

body.com_kunena #kunena.layout .report .modal-dialog {
  max-width: min(42rem, calc(100vw - 2rem)) !important;
  margin: 1.75rem auto !important;
}

body.com_kunena #kunena.layout .report .modal-content {
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1rem !important;
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, .18) !important;
  overflow: hidden !important;
}

body.com_kunena #kunena.layout .report .modal-header {
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .86) 54%, rgba(222, 113, 13, .88)) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  color: #ffffff !important;
  padding: .9rem 1rem !important;
}

body.com_kunena #kunena.layout .report .modal-title {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

body.com_kunena #kunena.layout .report .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(220%) !important;
  opacity: .85 !important;
}

body.com_kunena #kunena.layout .report .modal-body {
  padding: 1rem !important;
  background: #ffffff !important;
}

body.com_kunena #kunena.layout .report .modal-body .card,
body.com_kunena #kunena.layout .report .modal-body .card-body {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

body.com_kunena #kunena.layout .report .modal-body .control-group {
  margin: 0 0 .85rem !important;
}

body.com_kunena #kunena.layout .report .modal-body label {
  display: block !important;
  margin: 0 0 .32rem !important;
  color: #495057 !important;
  font-size: .9rem !important;
  font-weight: 650 !important;
}

body.com_kunena #kunena.layout .report .modal-body input[type="text"],
body.com_kunena #kunena.layout .report .modal-body textarea,
body.com_kunena #kunena.layout .report .modal-body .form-control {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .72rem !important;
  box-shadow: none !important;
}

body.com_kunena #kunena.layout .report .modal-body input[type="text"]:focus,
body.com_kunena #kunena.layout .report .modal-body textarea:focus,
body.com_kunena #kunena.layout .report .modal-body .form-control:focus {
  border-color: rgba(222, 113, 13, .46) !important;
  box-shadow: 0 0 0 .14rem rgba(222, 113, 13, .10) !important;
  outline: none !important;
}

body.com_kunena #kunena.layout .report .modal-body .btn,
body.com_kunena #kunena.layout .report .modal-body .kbutton {
  border-radius: 999px !important;
  min-height: 2.25rem !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-footer,
  body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-footer {
    justify-content: stretch !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-footer .kbtn,
  body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-footer .kbtn,
  body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-footer input[type="submit"],
  body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-footer input[type="submit"],
  body.com_kunena.view-topic.layout-reply #kunena.layout .kreply.always-visible .modal-footer input[type="reset"],
  body.com_kunena.layout-reply #kunena.layout .kreply.always-visible .modal-footer input[type="reset"] {
    width: 100% !important;
  }
}

/* PortalGraf KGrid pg73: reply page polish actually targets the full reply form,
   and report modals are promoted to a global overlay instead of being trapped
   inside the topic card/module stacking context. */
body.com_kunena.view-topic.layout-reply #kunena.layout > h2.kpage-heading,
body.com_kunena.layout-reply #kunena.layout > h2.kpage-heading {
  margin: 1rem 0 0 !important;
  padding: .9rem 1.1rem .95rem 1.15rem !important;
  color: #ffffff !important;
  font-size: 1.18rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .86) 52%, rgba(222, 113, 13, .88)) !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem 1rem 0 0 !important;
  box-shadow: 0 .65rem 1.35rem rgba(15, 23, 42, .06) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform,
body.com_kunena.layout-reply #kunena.layout #postform {
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-top: 0 !important;
  border-radius: 0 0 1rem 1rem !important;
  box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .055) !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-form-wrap,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-form-wrap {
  padding: 1.1rem 1.15rem 1.2rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-topic-cat,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-topic-cat,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-topic-title,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-topic-title,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-topic-icons,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-topic-icons,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .form-group,
body.com_kunena.layout-reply #kunena.layout #postform .form-group {
  margin: 0 0 1rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-field-label,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-field-label,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform label,
body.com_kunena.layout-reply #kunena.layout #postform label {
  display: block !important;
  margin: 0 0 .36rem !important;
  color: #495057 !important;
  font-size: .92rem !important;
  font-weight: 680 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform input[type="text"],
body.com_kunena.layout-reply #kunena.layout #postform input[type="text"],
body.com_kunena.view-topic.layout-reply #kunena.layout #postform input[type="email"],
body.com_kunena.layout-reply #kunena.layout #postform input[type="email"],
body.com_kunena.view-topic.layout-reply #kunena.layout #postform select,
body.com_kunena.layout-reply #kunena.layout #postform select,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform textarea,
body.com_kunena.layout-reply #kunena.layout #postform textarea,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .form-control,
body.com_kunena.layout-reply #kunena.layout #postform .form-control {
  max-width: 100% !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .78rem !important;
  background-color: #ffffff !important;
  color: #171717 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform input[type="text"],
body.com_kunena.layout-reply #kunena.layout #postform input[type="text"],
body.com_kunena.view-topic.layout-reply #kunena.layout #postform select,
body.com_kunena.layout-reply #kunena.layout #postform select,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .form-control:not(textarea),
body.com_kunena.layout-reply #kunena.layout #postform .form-control:not(textarea) {
  min-height: 2.45rem !important;
  padding: .55rem .82rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform textarea,
body.com_kunena.layout-reply #kunena.layout #postform textarea {
  min-height: 11rem !important;
  padding: .78rem .86rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform input:focus,
body.com_kunena.layout-reply #kunena.layout #postform input:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform select:focus,
body.com_kunena.layout-reply #kunena.layout #postform select:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform textarea:focus,
body.com_kunena.layout-reply #kunena.layout #postform textarea:focus {
  border-color: rgba(222, 113, 13, .46) !important;
  box-shadow: 0 0 0 .14rem rgba(222, 113, 13, .10) !important;
  outline: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #kpost-attachments,
body.com_kunena.layout-reply #kunena.layout #postform #kpost-attachments,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-subscribe-wrap,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-subscribe-wrap,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .fieldset-style,
body.com_kunena.layout-reply #kunena.layout #postform .fieldset-style {
  margin: 0 !important;
  padding: 1rem 1.15rem !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  background: rgba(29, 121, 137, .025) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kaction-wrap,
body.com_kunena.layout-reply #kunena.layout #postform .kaction-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: .65rem !important;
  margin: 0 !important;
  padding: 1rem 1.15rem !important;
  background: rgba(29, 121, 137, .04) !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

/* Report modal: it can be moved to <body>; keep the same look outside #kunena. */
body.com_kunena .modal.pgk-report-modal,
body.com_kunena .modal[id^="report"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1085 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0 !important;
}

body.com_kunena .modal-backdrop {
  z-index: 1080 !important;
}

body.com_kunena .modal.pgk-report-modal .modal-dialog,
body.com_kunena .modal[id^="report"] .modal-dialog {
  max-width: min(42rem, calc(100vw - 2rem)) !important;
  margin: 1.75rem auto !important;
  transform: none;
}

body.com_kunena .modal.pgk-report-modal .modal-content,
body.com_kunena .modal[id^="report"] .modal-content {
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1rem !important;
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, .18) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body.com_kunena .modal.pgk-report-modal .modal-header,
body.com_kunena .modal[id^="report"] .modal-header {
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .86) 54%, rgba(222, 113, 13, .88)) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  color: #ffffff !important;
  padding: .9rem 1rem !important;
}

body.com_kunena .modal.pgk-report-modal .modal-title,
body.com_kunena .modal[id^="report"] .modal-title {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

body.com_kunena .modal.pgk-report-modal .modal-header .btn-close,
body.com_kunena .modal[id^="report"] .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(220%) !important;
  opacity: .85 !important;
}

body.com_kunena .modal.pgk-report-modal .modal-body,
body.com_kunena .modal[id^="report"] .modal-body {
  padding: 1rem !important;
  background: #ffffff !important;
}

body.com_kunena .modal.pgk-report-modal .modal-body .card,
body.com_kunena .modal.pgk-report-modal .modal-body .card-body,
body.com_kunena .modal[id^="report"] .modal-body .card,
body.com_kunena .modal[id^="report"] .modal-body .card-body {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

body.com_kunena .modal.pgk-report-modal .modal-body .control-group,
body.com_kunena .modal[id^="report"] .modal-body .control-group {
  margin: 0 0 .85rem !important;
}

body.com_kunena .modal.pgk-report-modal .modal-body label,
body.com_kunena .modal[id^="report"] .modal-body label {
  display: block !important;
  margin: 0 0 .32rem !important;
  color: #495057 !important;
  font-size: .9rem !important;
  font-weight: 650 !important;
}

body.com_kunena .modal.pgk-report-modal .modal-body input[type="text"],
body.com_kunena .modal.pgk-report-modal .modal-body textarea,
body.com_kunena .modal.pgk-report-modal .modal-body .form-control,
body.com_kunena .modal[id^="report"] .modal-body input[type="text"],
body.com_kunena .modal[id^="report"] .modal-body textarea,
body.com_kunena .modal[id^="report"] .modal-body .form-control {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .72rem !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kaction-wrap,
  body.com_kunena.layout-reply #kunena.layout #postform .kaction-wrap {
    justify-content: stretch !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kaction-wrap .kbtn,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kaction-wrap .kbutton,
  body.com_kunena.layout-reply #kunena.layout #postform .kaction-wrap .kbtn,
  body.com_kunena.layout-reply #kunena.layout #postform .kaction-wrap .kbutton {
    width: 100% !important;
  }
}

/* PortalGraf KGrid pg74: reply form header continuity and topic history card.
   Scope: layout-reply only. Search pg70/pg71 and report modal pg73 stay untouched. */
body.com_kunena.view-topic.layout-reply #kunena.layout > h2.kpage-heading,
body.com_kunena.layout-reply #kunena.layout > h2.kpage-heading {
  box-sizing: border-box !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem 1rem 0 0 !important;
  margin: 1rem 0 0 !important;
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .055) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform,
body.com_kunena.layout-reply #kunena.layout #postform {
  box-sizing: border-box !important;
  border-top: 0 !important;
  border-right: 1px solid rgba(29, 121, 137, .16) !important;
  border-bottom: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: 5px solid #de710d !important;
  border-radius: 0 0 1rem 1rem !important;
  box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .06) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .kpost-form-wrap,
body.com_kunena.layout-reply #kunena.layout #postform .kpost-form-wrap {
  padding: 1.15rem 1.2rem 1.25rem !important;
}

/* CKEditor / editor tabs: avoid the half-cut header effect inside the reply card. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.layout-reply #kunena.layout #postform #myTab {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .25rem !important;
  margin: 1rem 0 0 !important;
  padding: .65rem .75rem 0 !important;
  background: rgba(29, 121, 137, .04) !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-bottom: 0 !important;
  border-radius: .9rem .9rem 0 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
  min-height: 2.2rem !important;
  padding: .48rem .82rem !important;
  border: 1px solid transparent !important;
  border-radius: .7rem .7rem 0 0 !important;
  color: #495057 !important;
  font-size: .92rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  background: transparent !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active {
  color: #1d7989 !important;
  background: #ffffff !important;
  border-color: rgba(29, 121, 137, .16) rgba(29, 121, 137, .16) #ffffff !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .tab-content,
body.com_kunena.layout-reply #kunena.layout #postform .tab-content,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.layout-reply #kunena.layout #postform #myTabContent {
  margin: 0 0 1rem !important;
  padding: .9rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: 0 0 .9rem .9rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .cke,
body.com_kunena.layout-reply #kunena.layout #postform .cke,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .cke_chrome,
body.com_kunena.layout-reply #kunena.layout #postform .cke_chrome {
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .82rem !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .cke_top,
body.com_kunena.layout-reply #kunena.layout #postform .cke_top {
  background: rgba(29, 121, 137, .045) !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform textarea#message,
body.com_kunena.layout-reply #kunena.layout #postform textarea#message,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform textarea#message_private,
body.com_kunena.layout-reply #kunena.layout #postform textarea#message_private {
  min-height: 13rem !important;
}

/* Attachments area: keep it secondary and attached to the main reply card. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #kpost-attachments,
body.com_kunena.layout-reply #kunena.layout #postform #kpost-attachments {
  margin: 0 !important;
  padding: 1rem 1.2rem 1.1rem !important;
  background: rgba(29, 121, 137, .025) !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #kpost-attachments h4,
body.com_kunena.layout-reply #kunena.layout #postform #kpost-attachments h4 {
  margin: 0 0 .75rem !important;
  color: #1d7989 !important;
  font-size: 1.02rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #kpost-attachments .alert,
body.com_kunena.layout-reply #kunena.layout #postform #kpost-attachments .alert {
  margin: 0 0 .8rem !important;
  padding: .75rem .9rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .82rem !important;
  background: #ffffff !important;
  color: #495057 !important;
}

/* Topic history: give it the same technical card hierarchy instead of a flat tail. */
body.com_kunena.view-topic.layout-reply #kunena.layout h3.khistory-subject,
body.com_kunena.layout-reply #kunena.layout h3.khistory-subject {
  margin: 1.35rem 0 0 !important;
  padding: .85rem 1.05rem .9rem 1.12rem !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .86) 54%, rgba(222, 113, 13, .86)) !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem 1rem 0 0 !important;
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .055) !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history,
body.com_kunena.layout-reply #kunena.layout #history {
  margin: 0 0 1.4rem !important;
  padding: 1rem 1.05rem 1.1rem !important;
  background: #ffffff !important;
  border-top: 0 !important;
  border-right: 1px solid rgba(29, 121, 137, .16) !important;
  border-bottom: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: 5px solid #de710d !important;
  border-radius: 0 0 1rem 1rem !important;
  box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .055) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .knote-msg,
body.com_kunena.layout-reply #kunena.layout #history .knote-msg {
  margin: 0 0 .9rem !important;
  padding: .72rem .85rem !important;
  color: #5f6f76 !important;
  background: rgba(29, 121, 137, .04) !important;
  border: 1px solid rgba(29, 121, 137, .11) !important;
  border-radius: .82rem !important;
  line-height: 1.4 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-item,
body.com_kunena.layout-reply #kunena.layout #history .khistory-item {
  display: grid !important;
  grid-template-columns: minmax(8.5rem, 11rem) minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
  margin: 0 0 .9rem !important;
  padding: .95rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .95rem !important;
  box-shadow: 0 .45rem 1.05rem rgba(15, 23, 42, .045) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-item:last-child,
body.com_kunena.layout-reply #kunena.layout #history .khistory-item:last-child {
  margin-bottom: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-info,
body.com_kunena.layout-reply #kunena.layout #history .user-info {
  min-width: 0 !important;
  padding: .75rem !important;
  background: rgba(29, 121, 137, .035) !important;
  border-radius: .82rem !important;
  text-align: center !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar img,
body.com_kunena.layout-reply #kunena.layout #history .user-avatar img {
  width: 4.25rem !important;
  height: 4.25rem !important;
  max-width: 100% !important;
  object-fit: cover !important;
  margin: 0 auto .55rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-profile-box,
body.com_kunena.layout-reply #kunena.layout #history .khistory-profile-box {
  display: grid !important;
  gap: .25rem !important;
  color: #5f6f76 !important;
  font-size: .86rem !important;
  line-height: 1.3 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-msg,
body.com_kunena.layout-reply #kunena.layout #history .khistory-msg {
  min-width: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory,
body.com_kunena.layout-reply #kunena.layout #history .khistory {
  padding: .85rem .95rem !important;
  background: rgba(29, 121, 137, .018) !important;
  border: 1px solid rgba(29, 121, 137, .09) !important;
  border-radius: .82rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .kmessage,
body.com_kunena.layout-reply #kunena.layout #history .kmessage,
body.com_kunena.view-topic.layout-reply #kunena.layout #history .kmsg,
body.com_kunena.layout-reply #kunena.layout #history .kmsg {
  margin: 0 !important;
  color: #171717 !important;
  line-height: 1.55 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-item,
  body.com_kunena.layout-reply #kunena.layout #history .khistory-item {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-info,
  body.com_kunena.layout-reply #kunena.layout #history .user-info {
    text-align: left !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar img,
  body.com_kunena.layout-reply #kunena.layout #history .user-avatar img {
    width: 3.2rem !important;
    height: 3.2rem !important;
    margin: 0 0 .45rem !important;
  }
}

/* PortalGraf KGrid pg75: reply editor tabs and history user placeholder polish.
   Scope: layout-reply only. Keeps pg73 report modal fix and pg70 search stable. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
  position: relative !important;
  align-items: flex-end !important;
  gap: .5rem !important;
  margin: 1.05rem 0 0 !important;
  padding: .72rem .82rem 0 !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(29, 121, 137, .018)) !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-bottom: 0 !important;
  border-radius: .95rem .95rem 0 0 !important;
  box-shadow: inset 0 -1px 0 rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs::before,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs::before {
  content: "Tipo de mensaje" !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 2.15rem !important;
  margin: 0 .25rem .35rem 0 !important;
  color: #5f6f76 !important;
  font-size: .82rem !important;
  font-weight: 740 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-item,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-item,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-item,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-item {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.35rem !important;
  padding: .55rem .95rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-bottom-color: rgba(29, 121, 137, .16) !important;
  border-radius: .82rem .82rem 0 0 !important;
  color: #495057 !important;
  background: rgba(255, 255, 255, .72) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-shadow: 0 .22rem .55rem rgba(15, 23, 42, .035) !important;
  opacity: .88 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus {
  color: #1d7989 !important;
  background: #ffffff !important;
  border-color: rgba(29, 121, 137, .24) !important;
  opacity: 1 !important;
  outline: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d7989 0%, #1d7989 68%, #de710d 100%) !important;
  border-color: rgba(29, 121, 137, .34) !important;
  border-bottom-color: transparent !important;
  box-shadow: 0 .45rem 1rem rgba(29, 121, 137, .18) !important;
  opacity: 1 !important;
  transform: translateY(1px) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  right: .62rem !important;
  bottom: -.2rem !important;
  left: .62rem !important;
  height: .18rem !important;
  border-radius: 999px !important;
  background: #de710d !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .tab-content,
body.com_kunena.layout-reply #kunena.layout #postform .tab-content {
  border-top-color: rgba(29, 121, 137, .12) !important;
  box-shadow: inset 0 .2rem .45rem rgba(15, 23, 42, .018) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform .tab-pane,
body.com_kunena.layout-reply #kunena.layout #postform .tab-pane {
  min-height: 13rem !important;
}

/* Reply history avatar: reuse the approved compact placeholder/avatar treatment from topic/profile cards. */
body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar,
body.com_kunena.layout-reply #kunena.layout #history .user-avatar {
  display: flex !important;
  justify-content: center !important;
  margin: 0 0 .65rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar a:not(.badge),
body.com_kunena.layout-reply #kunena.layout #history .user-avatar a:not(.badge),
body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar a.kwho-admin:not(.badge),
body.com_kunena.layout-reply #kunena.layout #history .user-avatar a.kwho-admin:not(.badge) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, #ffffff, #f7f9fa) !important;
  box-shadow: 0 .45rem 1rem rgba(15, 23, 42, .055) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar img,
body.com_kunena.layout-reply #kunena.layout #history .user-avatar img,
body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar img.rounded,
body.com_kunena.layout-reply #kunena.layout #history .user-avatar img.rounded {
  display: block !important;
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  margin: 0 auto !important;
  padding: .28rem !important;
  border: 0 !important;
  border-radius: .92rem !important;
  background: #f7f9fa !important;
  object-fit: contain !important;
  object-position: center center !important;
  clip-path: none !important;
  transform: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-profile-box strong,
body.com_kunena.layout-reply #kunena.layout #history .khistory-profile-box strong {
  font-size: .95rem !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-profile-box strong a,
body.com_kunena.layout-reply #kunena.layout #history .khistory-profile-box strong a {
  color: #1d7989 !important;
  font-weight: 760 !important;
  text-decoration: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-profile-box strong a:hover,
body.com_kunena.layout-reply #kunena.layout #history .khistory-profile-box strong a:hover {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .18em !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #history .khistory-post-date,
body.com_kunena.layout-reply #kunena.layout #history .khistory-post-date {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .28rem !important;
  color: #5f6f76 !important;
  font-size: .82rem !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
    gap: .35rem !important;
    padding: .65rem .65rem 0 !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab::before,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab::before,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs::before,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs::before {
    flex-basis: 100% !important;
    min-height: auto !important;
    margin-bottom: .25rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
    min-height: 2.25rem !important;
    padding: .5rem .72rem !important;
    font-size: .88rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #history .user-avatar,
  body.com_kunena.layout-reply #kunena.layout #history .user-avatar {
    justify-content: flex-start !important;
  }
}

/* PortalGraf KGrid pg76: reply editor tabs refinement.
   Scope: layout-reply only. Keeps pg75 structure/history and removes the heavy tab header label. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: .38rem !important;
  margin: 1rem 0 .55rem !important;
  padding: 0 0 .45rem !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs::before,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs::before {
  content: none !important;
  display: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-item,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-item,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-item,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-item {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2rem !important;
  padding: .38rem .78rem !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #5f6f76 !important;
  background: transparent !important;
  font-size: .9rem !important;
  font-weight: 690 !important;
  line-height: 1.15 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus {
  color: #1d7989 !important;
  background: rgba(29, 121, 137, .055) !important;
  border-color: rgba(29, 121, 137, .13) !important;
  box-shadow: none !important;
  outline: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active {
  color: #1d7989 !important;
  background: #ffffff !important;
  border-color: rgba(29, 121, 137, .24) !important;
  box-shadow: 0 .32rem .75rem rgba(15, 23, 42, .055) !important;
  opacity: 1 !important;
  transform: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  right: .72rem !important;
  bottom: -.53rem !important;
  left: .72rem !important;
  height: .18rem !important;
  border-radius: 999px !important;
  background: #de710d !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .tab-content,
body.com_kunena.layout-reply #kunena.layout #postform .tab-content {
  margin-top: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
    gap: .28rem !important;
    padding: 0 0 .42rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
    min-height: 1.95rem !important;
    padding: .35rem .66rem !important;
    white-space: nowrap !important;
    font-size: .86rem !important;
  }
}


/* PortalGraf KGrid pg77: restore original-looking reply editor tabs.
   Scope: layout-reply only. Keep the orange active underline; remove the heavy/pill treatment. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
  position: relative !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 0 !important;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs::before,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs::before {
  content: none !important;
  display: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-item,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-item,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-item,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-item {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
  position: relative !important;
  display: block !important;
  min-height: auto !important;
  margin: 0 0 -1px !important;
  padding: .55rem .95rem !important;
  border: 1px solid transparent !important;
  border-radius: .45rem .45rem 0 0 !important;
  color: #495057 !important;
  background: transparent !important;
  font-size: .92rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus {
  color: #1d7989 !important;
  background: rgba(29, 121, 137, .035) !important;
  border-color: rgba(29, 121, 137, .14) rgba(29, 121, 137, .14) transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active {
  color: #1d7989 !important;
  background: #ffffff !important;
  border-color: rgba(29, 121, 137, .18) rgba(29, 121, 137, .18) #ffffff !important;
  font-weight: 720 !important;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  right: .78rem !important;
  bottom: -1px !important;
  left: .78rem !important;
  height: .18rem !important;
  border-radius: 999px !important;
  background: #de710d !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .tab-content,
body.com_kunena.layout-reply #kunena.layout #postform .tab-content {
  margin: 0 0 1rem !important;
  padding: .9rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-top: 0 !important;
  border-radius: 0 0 .9rem .9rem !important;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
    padding: .5rem .78rem !important;
    white-space: nowrap !important;
    font-size: .88rem !important;
  }
}

/* PortalGraf KGrid pg78: logged-in user dropdown polish.
   Scope: Kunena top user menu only. Keeps forum/search/reply layouts untouched. */
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu,
body.com_kunena #kunena.layout .knavbar #nav-menu.klogout-box-wrap {
  min-width: 18.5rem !important;
  max-width: min(21rem, calc(100vw - 2rem)) !important;
  padding: .95rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .14) !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .klogout-user-info {
  display: grid !important;
  grid-template-columns: 4.35rem minmax(0, 1fr) !important;
  column-gap: .78rem !important;
  row-gap: .12rem !important;
  align-items: center !important;
  margin: 0 0 .75rem !important;
  padding: .72rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: .9rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .055), rgba(222, 113, 13, .045)) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .035) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  grid-row: 1 / span 2 !important;
  width: 3.8rem !important;
  height: 3.8rem !important;
  margin: 0 !important;
  padding: .36rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06) !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar > a:first-child,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar > a:first-child img,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: .75rem !important;
  background: transparent !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar .bg-success {
  position: absolute !important;
  right: -.28rem !important;
  bottom: -.28rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  height: 1.15rem !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: #1d7989 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 10px rgba(29, 121, 137, .2) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar .badge::after,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar .bg-success::after {
  content: "" !important;
  display: block !important;
  width: .42rem !important;
  height: .42rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-name {
  min-width: 0 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-name a {
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #1d7989 !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-name a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-name a:focus {
  color: #de710d !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-last-visit {
  display: flex !important;
  align-items: center !important;
  gap: .32rem !important;
  min-width: 0 !important;
  margin: .15rem 0 0 !important;
  color: #66767c !important;
  font-size: .82rem !important;
  line-height: 1.25 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-last-visit i {
  color: #1d7989 !important;
  font-size: .82rem !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .38rem .42rem !important;
  margin: 0 0 .78rem !important;
  padding: .62rem !important;
  border: 1px solid rgba(29, 121, 137, .11) !important;
  border-radius: .82rem !important;
  background: #f8fbfb !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status input {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 1.72rem !important;
  padding: .34rem .58rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #40535a !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .035) !important;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-online label a {
  border-color: rgba(29, 121, 137, .32) !important;
  background: rgba(29, 121, 137, .08) !important;
  color: #1d7989 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a:focus {
  border-color: rgba(222, 113, 13, .38) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  box-shadow: 0 5px 12px rgba(222, 113, 13, .09) !important;
  transform: translateY(-1px) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #statustext,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #announcement,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #settings,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #allread,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form {
  display: block !important;
  width: 100% !important;
  margin: .22rem 0 0 !important;
  padding: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #statustext a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #announcement a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #settings a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #allread a {
  display: flex !important;
  align-items: center !important;
  gap: .48rem !important;
  width: 100% !important;
  min-height: 2.08rem !important;
  padding: .48rem .62rem !important;
  border-radius: .72rem !important;
  color: #34474f !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #statustext a i,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #announcement a i,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #settings a i,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #allread a i {
  width: 1rem !important;
  color: #1d7989 !important;
  text-align: center !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #statustext a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #announcement a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #settings a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #allread a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #statustext a:focus,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #announcement a:focus,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #settings a:focus,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #allread a:focus {
  background: rgba(29, 121, 137, .065) !important;
  color: #de710d !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #statustext a:hover i,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #announcement a:hover i,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #settings a:hover i,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #allread a:hover i {
  color: #de710d !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form {
  margin-top: .62rem !important;
  padding-top: .62rem !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form > div {
  margin: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form .kbutton,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .42rem !important;
  width: 100% !important;
  min-height: 2.25rem !important;
  margin: 0 !important;
  border-color: rgba(222, 113, 13, .35) !important;
  border-radius: .75rem !important;
  background: rgba(222, 113, 13, .085) !important;
  color: #832320 !important;
  font-weight: 750 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form .kbutton:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form button:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form .kbutton:focus,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form button:focus {
  background: #de710d !important;
  color: #ffffff !important;
}

@media (max-width: 575.98px) {
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu,
  body.com_kunena #kunena.layout .knavbar #nav-menu.klogout-box-wrap {
    min-width: min(18rem, calc(100vw - 1.2rem)) !important;
    max-width: calc(100vw - 1.2rem) !important;
    padding: .78rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form {
    gap: .34rem !important;
  }

  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a {
    padding-inline: .5rem !important;
    font-size: .75rem !important;
  }
}


/* PortalGraf KGrid pg79: report modal full-height filete + reply tabs subtle inactive state.
   Scope: report modal and reply editor tabs only. Keeps pg78 user menu and previous layouts intact. */

/* Report modal: move the orange filete from the header to the full modal block. */
body.com_kunena .modal.pgk-report-modal .modal-content,
body.com_kunena .modal[id^="report"] .modal-content {
  position: relative !important;
  overflow: hidden !important;
}

body.com_kunena .modal.pgk-report-modal .modal-content::before,
body.com_kunena .modal[id^="report"] .modal-content::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 5px !important;
  background: #de710d !important;
  border-radius: 1rem 0 0 1rem !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

body.com_kunena .modal.pgk-report-modal .modal-header,
body.com_kunena .modal[id^="report"] .modal-header {
  border-left: 0 !important;
  padding-left: 1.15rem !important;
}

body.com_kunena .modal.pgk-report-modal .modal-body,
body.com_kunena .modal[id^="report"] .modal-body,
body.com_kunena .modal.pgk-report-modal .modal-footer,
body.com_kunena .modal[id^="report"] .modal-footer {
  padding-left: 1.15rem !important;
}

/* Reply editor tabs: original Bootstrap-like tabs, but inactive tabs keep a light visual body. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.layout-reply #kunena.layout #postform #myTab,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
  gap: .18rem !important;
  margin: 1rem 0 0 !important;
  padding: 0 .35rem !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .18) !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.layout-reply #kunena.layout #postform #myTab::before,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs::before,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs::before {
  content: none !important;
  display: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
  min-height: auto !important;
  margin: 0 0 -1px !important;
  padding: .52rem .9rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-bottom-color: rgba(29, 121, 137, .18) !important;
  border-radius: .45rem .45rem 0 0 !important;
  background: rgba(247, 250, 251, .94) !important;
  color: #495057 !important;
  font-size: .92rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:hover,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link:focus,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link:focus {
  background: rgba(29, 121, 137, .055) !important;
  border-color: rgba(29, 121, 137, .22) !important;
  color: #1d7989 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active {
  background: #ffffff !important;
  color: #1d7989 !important;
  border-color: rgba(29, 121, 137, .20) rgba(29, 121, 137, .20) #ffffff !important;
  font-weight: 720 !important;
  z-index: 2 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after,
body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  right: .72rem !important;
  bottom: -1px !important;
  left: .72rem !important;
  height: .18rem !important;
  border-radius: 999px !important;
  background: #de710d !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.layout-reply #kunena.layout #postform #myTabContent,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform .tab-content,
body.com_kunena.layout-reply #kunena.layout #postform .tab-content {
  margin-top: 0 !important;
  border-top: 0 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 0 .2rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform #myTab .nav-link,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform .nav-tabs .nav-link,
  body.com_kunena.layout-reply #kunena.layout #postform .nav-tabs .nav-link {
    white-space: nowrap !important;
    padding: .5rem .75rem !important;
    font-size: .88rem !important;
  }
}


/* PortalGraf KGrid pg80: logged-in user menu status and dropdown modals fix.
   Scope: Kunena user dropdown only. Keeps pg79 report modal/tabs and previous views intact. */

/* User status selector: remove inherited status color badges/dots and avoid overlap with text. */
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .38rem !important;
  align-items: stretch !important;
  margin: 0 0 .78rem !important;
  padding: .62rem !important;
  border: 1px solid rgba(29, 121, 137, .11) !important;
  border-radius: .82rem !important;
  background: #f8fbfb !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status input,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status input.hide {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label[class] {
  position: static !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label::after,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status a::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status a::after {
  content: none !important;
  display: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a[class] {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 2rem !important;
  margin: 0 !important;
  padding: .43rem .62rem .43rem .72rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-radius: .66rem !important;
  background: #ffffff !important;
  color: #40535a !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .028) !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-online label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-online label a[class] {
  border-color: rgba(29, 121, 137, .34) !important;
  background: rgba(29, 121, 137, .065) !important;
  color: #1d7989 !important;
  box-shadow: inset 3px 0 0 #1d7989, 0 3px 8px rgba(15, 23, 42, .03) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a:focus {
  border-color: rgba(222, 113, 13, .32) !important;
  background: rgba(222, 113, 13, .055) !important;
  color: #de710d !important;
  box-shadow: inset 3px 0 0 #de710d, 0 4px 10px rgba(222, 113, 13, .065) !important;
  transform: none !important;
}

/* Keep dropdown modals independent from the menu flow when JS promotes them to body. */
body.com_kunena .pgk-user-menu-modal.modal {
  z-index: 1060 !important;
}

body.com_kunena .pgk-user-menu-modal .modal-dialog {
  max-width: min(32rem, calc(100vw - 2rem)) !important;
}

body.com_kunena .pgk-user-menu-modal .modal-content {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18) !important;
}

body.com_kunena .pgk-user-menu-modal .modal-content::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 5px !important;
  background: #de710d !important;
  pointer-events: none !important;
}

body.com_kunena .pgk-user-menu-modal .modal-header {
  padding-left: 1.2rem !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .06), rgba(222, 113, 13, .045)) !important;
}

body.com_kunena .pgk-user-menu-modal .modal-body,
body.com_kunena .pgk-user-menu-modal .modal-footer {
  padding-left: 1.2rem !important;
}

body.com_kunena .pgk-user-menu-modal textarea,
body.com_kunena .pgk-user-menu-modal .form-control,
body.com_kunena .pgk-user-menu-modal .input-block-level {
  width: 100% !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .75rem !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
}

@media (max-width: 575.98px) {
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a,
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a[class] {
    min-height: 1.95rem !important;
    font-size: .77rem !important;
  }
}

/* PortalGraf KGrid pg81: new topic, announcements, profile edit and user dropdown hardening.
   Scope: continuation from pg80. Keeps search/reply/report modal foundations intact. */

/* Logged-in user dropdown: remove status colour overlays and keep status choices readable. */
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .42rem !important;
  padding: .58rem !important;
  background: #f9fbfb !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-online,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-away,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-busy,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-invisible {
  position: static !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label[class],
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a[class] {
  background-image: none !important;
  text-shadow: none !important;
  filter: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label::after,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status a::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status a::after,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-online::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-away::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-busy::before,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-invisible::before {
  content: none !important;
  display: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a[class],
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-online label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-away label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-busy label a,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status-invisible label a {
  justify-content: flex-start !important;
  min-height: 2rem !important;
  padding: .45rem .65rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-left: 3px solid rgba(29, 121, 137, .22) !important;
  border-radius: .62rem !important;
  background: #ffffff !important;
  color: #40535a !important;
  font-size: .8rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a:hover,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-status label a:focus {
  border-color: rgba(222, 113, 13, .28) !important;
  border-left-color: #de710d !important;
  background: rgba(222, 113, 13, .045) !important;
  color: #de710d !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Logged-in dropdown avatar/placeholder: keep person.svg centred, never rotated or cropped. */
body.com_kunena #kunena.layout .knavbar .klogout .dropdown-toggle img.rounded.green,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar img,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar img.rounded,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar > a:first-child img {
  display: block !important;
  transform: none !important;
  rotate: 0deg !important;
  translate: none !important;
  scale: 1 !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar > a:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout .dropdown-toggle img.rounded.green {
  width: 40px !important;
  height: 40px !important;
  padding: .18rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .75rem !important;
  background: #ffffff !important;
}

/* Status text modal: promoted modal and form must behave as global overlay, never as dropdown content. */
body.com_kunena #status-text-form.pgk-user-menu-modal-form {
  position: static !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena .modal.pgk-user-menu-modal,
body.com_kunena #statusTextModal.pgk-user-menu-modal,
body.com_kunena #statusText.pgk-user-menu-modal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1065 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.com_kunena.modal-open .modal-backdrop {
  z-index: 1055 !important;
}

/* Topic edit/create/reply form: apply the approved reply treatment to new-topic/edit forms as well. */
body.com_kunena.view-topic #kunena.layout > h2.kpage-heading {
  position: relative !important;
  margin: 1rem 0 0 !important;
  padding: 1rem 1.15rem 1rem 1.25rem !important;
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-bottom: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem 1rem 0 0 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 48%, rgba(222, 113, 13, .9)) !important;
  color: #ffffff !important;
  font-size: clamp(1.25rem, 2.1vw, 1.65rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: 0 .35rem .9rem rgba(15, 23, 42, .08) !important;
}

body.com_kunena.view-topic #kunena.layout #postform {
  position: relative !important;
  margin: 0 0 1.2rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-top: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 0 0 1rem 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .07) !important;
}

body.com_kunena.view-topic #kunena.layout #postform .kpost-form-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-cat,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform .form-group,
body.com_kunena.view-topic #kunena.layout #postform .control-group {
  margin: 0 0 .9rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform label,
body.com_kunena.view-topic #kunena.layout #postform .col-form-label {
  display: block !important;
  margin: 0 0 .35rem !important;
  color: #31454c !important;
  font-size: .86rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic #kunena.layout #postform input[type="text"],
body.com_kunena.view-topic #kunena.layout #postform input[type="email"],
body.com_kunena.view-topic #kunena.layout #postform select,
body.com_kunena.view-topic #kunena.layout #postform textarea,
body.com_kunena.view-topic #kunena.layout #postform .form-control {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .75rem !important;
  background-color: #ffffff !important;
  color: #17252a !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04) !important;
}

body.com_kunena.view-topic #kunena.layout #postform input[type="text"],
body.com_kunena.view-topic #kunena.layout #postform select,
body.com_kunena.view-topic #kunena.layout #postform .form-control:not(textarea) {
  min-height: 2.65rem !important;
  padding: .55rem .78rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform #myTab,
body.com_kunena.view-topic #kunena.layout #postform .nav-tabs {
  margin: .75rem 0 0 !important;
  padding: 0 .75rem !important;
  border-bottom: 1px solid rgba(29, 121, 137, .16) !important;
  background: transparent !important;
}

body.com_kunena.view-topic #kunena.layout #postform #myTab .nav-link,
body.com_kunena.view-topic #kunena.layout #postform .nav-tabs .nav-link {
  margin: 0 0 -1px !important;
  padding: .54rem .9rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-bottom-color: rgba(29, 121, 137, .16) !important;
  border-radius: .45rem .45rem 0 0 !important;
  background: rgba(248, 251, 251, .95) !important;
  color: #4d5f66 !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform #myTab .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform .nav-tabs .nav-link.active {
  position: relative !important;
  background: #ffffff !important;
  border-color: rgba(29, 121, 137, .20) rgba(29, 121, 137, .20) #ffffff !important;
  color: #1d7989 !important;
  font-weight: 780 !important;
}

body.com_kunena.view-topic #kunena.layout #postform #myTab .nav-link.active::after,
body.com_kunena.view-topic #kunena.layout #postform .nav-tabs .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  right: .7rem !important;
  bottom: -1px !important;
  left: .7rem !important;
  height: .16rem !important;
  border-radius: 999px !important;
  background: #de710d !important;
}

body.com_kunena.view-topic #kunena.layout #postform #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform .tab-content {
  margin: 0 0 1rem !important;
  padding: .9rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-top: 0 !important;
  border-radius: 0 0 .9rem .9rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic #kunena.layout #postform .cke,
body.com_kunena.view-topic #kunena.layout #postform .cke_chrome {
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .82rem !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform .cke_top {
  background: #f7fafb !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments,
body.com_kunena.view-topic #kunena.layout #postform .kpost-subscribe-wrap,
body.com_kunena.view-topic #kunena.layout #postform .fieldset-style {
  margin: 1rem 0 0 !important;
  padding: .9rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .9rem !important;
  background: #f9fbfb !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments h4 {
  margin: 0 0 .7rem !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
}

body.com_kunena.view-topic #kunena.layout #postform .kaction-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: .6rem !important;
  margin: 1rem 0 0 !important;
  padding-top: .9rem !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
}

/* Announcement listing: make it a technical admin-light table instead of raw backend-like content. */
body.com_kunena.view-announcement #kunena.layout form#adminForm,
body.com_kunena.layout-listing #kunena.layout form#adminForm {
  margin: 1rem 0 1.2rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .06) !important;
}

body.com_kunena.view-announcement #kunena.layout form#adminForm > .row:first-child,
body.com_kunena.layout-listing #kunena.layout form#adminForm > .row:first-child {
  align-items: center !important;
  margin: -1rem -1rem 1rem !important;
  padding: 1rem 1.1rem !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem 1rem 0 0 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 48%, rgba(222, 113, 13, .9)) !important;
  color: #ffffff !important;
}

body.com_kunena.view-announcement #kunena.layout form#adminForm > .row:first-child h2,
body.com_kunena.layout-listing #kunena.layout form#adminForm > .row:first-child h2 {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
  font-weight: 800 !important;
}

body.com_kunena.view-announcement #kunena.layout form#adminForm .input-group,
body.com_kunena.layout-listing #kunena.layout form#adminForm .input-group,
body.com_kunena.view-announcement #kunena.layout form#adminForm .input-group-btn,
body.com_kunena.layout-listing #kunena.layout form#adminForm .input-group-btn {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: .45rem !important;
}

body.com_kunena.view-announcement #kunena.layout table.ktable,
body.com_kunena.layout-listing #kunena.layout table.ktable {
  width: 100% !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .9rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-announcement #kunena.layout table.ktable thead th,
body.com_kunena.layout-listing #kunena.layout table.ktable thead th {
  padding: .72rem .75rem !important;
  border-bottom: 1px solid rgba(29, 121, 137, .14) !important;
  background: #f4f8f9 !important;
  color: #1d7989 !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

body.com_kunena.view-announcement #kunena.layout table.ktable tbody td,
body.com_kunena.layout-listing #kunena.layout table.ktable tbody td {
  padding: .72rem .75rem !important;
  border-top: 1px solid rgba(29, 121, 137, .08) !important;
  vertical-align: middle !important;
}

/* Profile edit: accommodate the existing CSS with a stable card, tabs and action area. */
body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading,
body.com_kunena.view-user #kunena.layout form#kuserform {
  box-sizing: border-box !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  margin: 1rem 0 0 !important;
  padding: 1rem 1.15rem !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem 1rem 0 0 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 48%, rgba(222, 113, 13, .9)) !important;
  color: #ffffff !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading h2,
body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading .kpage-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: clamp(1.18rem, 2vw, 1.55rem) !important;
  font-weight: 800 !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading a.btn,
body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading .btn {
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: .72rem !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform {
  margin: 0 0 1.2rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-top: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 0 0 1rem 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .55rem 1.25rem rgba(15, 23, 42, .065) !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform .tabs > .nav-tabs,
body.com_kunena.view-user #kunena.layout form#kuserform #KunenaUserEdit {
  margin: 0 0 1rem !important;
  padding: 0 .75rem !important;
  border-bottom: 1px solid rgba(29, 121, 137, .16) !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform .nav-tabs .nav-link {
  margin: 0 0 -1px !important;
  padding: .55rem .85rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .45rem .45rem 0 0 !important;
  background: rgba(248, 251, 251, .95) !important;
  color: #4d5f66 !important;
  font-weight: 650 !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform .nav-tabs .nav-link.active {
  position: relative !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  border-color: rgba(29, 121, 137, .20) rgba(29, 121, 137, .20) #ffffff !important;
  font-weight: 780 !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform .nav-tabs .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  right: .7rem !important;
  bottom: -1px !important;
  left: .7rem !important;
  height: .16rem !important;
  border-radius: 999px !important;
  background: #de710d !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform .tab-content {
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .9rem !important;
  background: #fdfefe !important;
}

body.com_kunena.view-user #kunena.layout form#kuserform .action-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .55rem !important;
  justify-content: flex-end !important;
  margin-top: 1rem !important;
  padding-top: .9rem !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
}

@media (max-width: 575.98px) {
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
  body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform .kaction-wrap,
  body.com_kunena.view-user #kunena.layout form#kuserform .action-wrap {
    justify-content: stretch !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform .kaction-wrap .kbtn,
  body.com_kunena.view-topic #kunena.layout #postform .kaction-wrap .kbutton,
  body.com_kunena.view-user #kunena.layout form#kuserform .action-wrap .kbutton {
    width: 100% !important;
  }
}

/* PortalGraf KGrid pg82: profile edit alignment and logged-in menu avatar refinement.
   Scope: user edit form + logged-in user menu trigger/avatar only. Keeps status modal untouched. */

body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading .pgk-profile-edit-title {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  gap: .16rem !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout .kpage-heading .pgk-profile-edit-user {
  margin: 0 !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block {
  margin: 0 0 1rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .95rem !important;
  background: #ffffff !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035) !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block h3 {
  margin: 0 0 .9rem !important;
  padding: 0 0 .55rem !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  color: #1d7989 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .krow {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: .82rem .9rem !important;
  margin: 0 !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block [class*="kcol-"] {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-12 { grid-column: span 12 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-md-3 { grid-column: span 3 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-md-4 { grid-column: span 4 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-md-6 { grid-column: span 6 !important; }

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block label,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .control-label {
  display: block !important;
  min-height: 1.15rem !important;
  margin: 0 0 .32rem !important;
  color: #40535a !important;
  font-size: .84rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  text-wrap: balance !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block input.form-control,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block select.form-control,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block select.form-select,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block textarea.form-control {
  width: 100% !important;
  min-height: 2.42rem !important;
  border-color: rgba(29, 121, 137, .18) !important;
  border-radius: .68rem !important;
  background-color: #ffffff !important;
  color: #27373d !important;
  font-size: .94rem !important;
  box-shadow: none !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block input[disabled],
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block input:disabled {
  opacity: 1 !important;
  border-style: solid !important;
  background: #f5f8f9 !important;
  color: #40535a !important;
  -webkit-text-fill-color: #40535a !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block input.form-control:focus,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block select.form-control:focus,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block select.form-select:focus,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block textarea.form-control:focus {
  border-color: rgba(222, 113, 13, .45) !important;
  box-shadow: 0 0 0 .16rem rgba(222, 113, 13, .10) !important;
}

/* Logged-in trigger: match the disconnected login button silhouette; keep the placeholder centered and calm. */
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.52rem !important;
  min-width: 2.52rem !important;
  max-width: 2.52rem !important;
  height: 2.34rem !important;
  min-height: 2.34rem !important;
  max-height: 2.34rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  line-height: 1 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .03) !important;
  overflow: hidden !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle::after,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle:hover,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle:focus-visible,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle:hover,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle:focus-visible {
  border-color: rgba(222, 113, 13, .34) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  box-shadow: 0 5px 14px rgba(222, 113, 13, .11) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout .dropdown-toggle img.rounded.green,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded.green {
  display: block !important;
  width: 1.22rem !important;
  height: 1.22rem !important;
  max-width: 1.22rem !important;
  max-height: 1.22rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: .92 !important;
  filter: none !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar {
  border-radius: .95rem !important;
  background: #ffffff !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar > a:first-child,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar > a:first-child img,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar img.rounded {
  border-radius: .68rem !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .kuser-avatar .bg-success {
  right: -.18rem !important;
  bottom: -.18rem !important;
  background: #1d7989 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .krow {
    grid-template-columns: 1fr !important;
  }
  body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block [class*="kcol-"] {
    grid-column: 1 / -1 !important;
  }
}

/* PortalGraf KGrid pg84: new-topic/profile/list cleanup from pg82. */

/* Topic create/reply/edit form: make /foro/nuevo-tema inherit the validated reply criteria without touching Kunena logic. */
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form {
  width: 100% !important;
  max-width: 100% !important;
  margin: .9rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena #kunena.layout .pgk-topic-edit-heading {
  margin: 0 0 .85rem !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-form-wrap,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-subscribe-wrap,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .fieldset-style {
  margin: 0 0 1rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035) !important;
  overflow: hidden !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-cat,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-title,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .form-group {
  margin: 0 0 .92rem !important;
  padding: 0 !important;
  min-width: 0 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-field-label,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form label,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .control-label {
  display: block !important;
  margin: 0 0 .34rem !important;
  color: #40535a !important;
  font-size: .84rem !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;
  text-wrap: balance !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form input[type="text"],
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form input[type="email"],
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form input[type="url"],
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form select,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form textarea,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .form-control,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .form-select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 2.42rem !important;
  border-color: rgba(29, 121, 137, .18) !important;
  border-radius: .68rem !important;
  background-color: #ffffff !important;
  color: #27373d !important;
  font-size: .94rem !important;
  box-shadow: none !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form select,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .form-select,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .custom-select {
  min-width: 0 !important;
  white-space: normal !important;
  text-overflow: ellipsis !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form input:focus,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form select:focus,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form textarea:focus,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .form-control:focus,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .form-select:focus {
  border-color: rgba(222, 113, 13, .45) !important;
  box-shadow: 0 0 0 .16rem rgba(222, 113, 13, .10) !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #iconset_topicList,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .iconset_topic_list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .4rem !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon input[type="radio"] {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: .01 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon label,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon .radio.inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.18rem !important;
  height: 2.18rem !important;
  margin: 0 !important;
  padding: .32rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: .65rem !important;
  background: #f9fbfb !important;
  color: #1d7989 !important;
  cursor: pointer !important;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon input[type="radio"]:checked + label,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon label:hover,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon label:focus-visible {
  border-color: rgba(222, 113, 13, .42) !important;
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
  box-shadow: 0 4px 12px rgba(222, 113, 13, .10) !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon svg,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon img,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kpost-icon i {
  max-width: 1.18rem !important;
  max-height: 1.18rem !important;
  margin: 0 !important;
  object-fit: contain !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .nav-tabs,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #myTab {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .35rem .45rem !important;
  margin: .2rem 0 .75rem !important;
  padding: 0 0 .35rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: transparent !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .nav-tabs::before,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #myTab::before {
  display: none !important;
  content: none !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .nav-tabs .nav-link,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #myTab .nav-link {
  position: relative !important;
  margin: 0 !important;
  padding: .42rem .62rem !important;
  border: 0 !important;
  border-radius: .62rem !important;
  background: transparent !important;
  color: #40535a !important;
  font-size: .86rem !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .nav-tabs .nav-link.active,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #myTab .nav-link.active {
  background: rgba(222, 113, 13, .08) !important;
  color: #de710d !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .nav-tabs .nav-link.active::after,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #myTab .nav-link.active::after {
  content: "" !important;
  position: absolute !important;
  left: .62rem !important;
  right: .62rem !important;
  bottom: .18rem !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #de710d !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .pgk-attachment-rules {
  display: grid !important;
  gap: .32rem !important;
  margin: 0 0 .75rem !important;
  padding: .75rem .85rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .82rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .045), rgba(222, 113, 13, .035)) !important;
  color: #40535a !important;
  font-size: .86rem !important;
  line-height: 1.38 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .pgk-attachment-rules p {
  margin: 0 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .pgk-attachment-rules strong {
  color: #1d7989 !important;
  font-weight: 800 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .pgk-separator {
  color: rgba(29, 121, 137, .48) !important;
  font-weight: 800 !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments .action-wrap,
body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kaction-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .55rem !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #dropzone .dropzone {
  margin-top: .72rem !important;
  padding: 1rem !important;
  border: 1px dashed rgba(29, 121, 137, .28) !important;
  border-radius: .9rem !important;
  background: #fbfdfd !important;
  color: #5d7077 !important;
  text-align: center !important;
}

/* Profile edit: minimal polish, preserve pg82 avatar/placeholder behaviour. */
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .krow {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: start !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-sm-6 { grid-column: span 6 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-md-3 { grid-column: span 3 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-md-4 { grid-column: span 4 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-md-6 { grid-column: span 6 !important; }
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .kcol-12 { grid-column: span 12 !important; }

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block label,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .control-label {
  overflow-wrap: anywhere !important;
  hyphens: auto !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block .input-group,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block span.hasTooltip {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Topic list moderation checkboxes: keep the functionality, but stop the column from breaking cards/tables. */
#kunena.layout .ktopic-list .ktopic-row-head .ktopic-inner.pgk-has-check,
#kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check,
#kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner.pgk-has-check {
  grid-template-columns: minmax(0, 1.54fr) minmax(5.15rem, .20fr) minmax(4.35rem, .16fr) minmax(7.6rem, .46fr) 2.1rem !important;
  gap: .45rem !important;
}

#kunena.layout .ktopic-list .ktopic-col-check {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 2.1rem !important;
  max-width: 2.1rem !important;
  padding: 0 !important;
}

#kunena.layout .ktopic-list .pgk-topic-check-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.72rem !important;
  height: 1.72rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .52rem !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

#kunena.layout .ktopic-list .pgk-topic-check-label input[type="checkbox"] {
  width: .95rem !important;
  height: .95rem !important;
  margin: 0 !important;
  accent-color: #1d7989 !important;
}

@media (max-width: 991.98px) {
  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check,
  #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner.pgk-has-check {
    grid-template-columns: minmax(0, 1fr) 2rem !important;
    gap: .28rem .5rem !important;
  }

  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-title,
  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-replies,
  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-hits,
  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-last-reply {
    grid-column: 1 / 2 !important;
  }

  #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-check {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 3 !important;
    align-self: start !important;
    justify-self: end !important;
    width: 1.9rem !important;
    max-width: 1.9rem !important;
  }
}

/* Bottom forum summary / unanswered topics: robust wrapping for members, legends, statistics and long names. */
body.com_kunena #kunena.layout > .pg-forum-bottom-summary,
body.com_kunena #kunena.layout .pg-forum-bottom-summary {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary > .kfrontend.kwho,
body.com_kunena #kunena.layout .pg-forum-bottom-summary > .kfrontend.statistics,
body.com_kunena #kunena.layout .pg-forum-bottom-summary > .kfrontend.statistics.pg-statistics-summary {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kblock-body,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kblock-body > ul {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kblock-body > ul > li,
body.com_kunena #kunena.layout .kfrontend.kwho .kblock-body > ul > li,
body.com_kunena #kunena.layout .kfrontend.statistics .kblock-body > ul > li {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kwho-admin,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kwho-globalmoderator,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kwho-moderator,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kwho-banned,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kwho-user,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kwho-guest {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  margin: .08rem .16rem .08rem 0 !important;
  white-space: normal !important;
}

/* Announcement listing: card-like wrapper and safer table overflow. */
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm > .row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .75rem !important;
  margin: 0 0 .9rem !important;
  padding: .95rem 1rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .055), rgba(222, 113, 13, .035)) !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm > .row > [class*="col-"] {
  flex: 1 1 18rem !important;
  max-width: 100% !important;
  padding: 0 !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm h2 {
  margin: 0 !important;
  color: #1d7989 !important;
  font-size: 1.18rem !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .input-group,
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .input-group-btn {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: .45rem !important;
  width: 100% !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm table.ktable {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm table.ktable thead,
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm table.ktable tbody,
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm table.ktable tfoot {
  display: table !important;
  width: 100% !important;
  min-width: 44rem !important;
  table-layout: fixed !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm table.ktable th,
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm table.ktable td {
  vertical-align: middle !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 575.98px) {
  body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kaction-wrap,
  body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments .action-wrap {
    justify-content: stretch !important;
  }

  body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kaction-wrap .kbtn,
  body.com_kunena #kunena.layout #postform.pgk-topic-edit-form .kaction-wrap .kbutton,
  body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments .action-wrap .kbutton,
  body.com_kunena #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments .action-wrap .btn {
    width: 100% !important;
  }

  body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .input-group,
  body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .input-group-btn {
    justify-content: stretch !important;
  }
}


/* PortalGraf KGrid pg85: pulido específico de /foro/nuevo-tema. */
body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-hero {
  position: relative !important;
  margin: 0 0 1rem !important;
  padding: 1rem 1.1rem 1.05rem 1.22rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-left: .22rem solid #de710d !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .075), rgba(222, 113, 13, .045)) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04) !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-kicker {
  margin: 0 0 .32rem !important;
  color: #1d7989 !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-title {
  margin: 0 !important;
  color: #27373d !important;
  font-size: clamp(1.38rem, 2.2vw, 1.78rem) !important;
  font-weight: 850 !important;
  line-height: 1.18 !important;
  text-wrap: balance !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-intro {
  max-width: 58rem !important;
  margin: .5rem 0 0 !important;
  color: #50636b !important;
  font-size: .95rem !important;
  line-height: 1.58 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create {
  margin-top: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-form-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .95rem !important;
  padding: 1.1rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-title,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block {
  position: relative !important;
  margin: 0 !important;
  padding: .92rem .95rem .95rem 3.05rem !important;
  border: 1px solid rgba(29, 121, 137, .105) !important;
  border-radius: .9rem !important;
  background: #fbfdfd !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat::before,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-title::before,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons::before,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block::before {
  position: absolute !important;
  top: .9rem !important;
  left: .9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.55rem !important;
  height: 1.55rem !important;
  border-radius: .48rem !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat::before { content: "1" !important; }
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-title::before { content: "2" !important; }
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons::before { content: "3" !important; }
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block::before { content: "4" !important; }

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-field-help,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-help {
  margin: .42rem 0 0 !important;
  color: #62737a !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-label {
  display: block !important;
  margin: 0 0 .32rem !important;
  color: #40535a !important;
  font-size: .84rem !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat select,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat .form-select,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #postcatid {
  min-height: 2.75rem !important;
  font-weight: 650 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat option:disabled {
  color: #1d7989 !important;
  font-weight: 800 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons {
  padding-top: .8rem !important;
  padding-bottom: .82rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons .kpost-field-label {
  margin-bottom: .48rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #iconset_topicList,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .iconset_topic_list {
  gap: .42rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-icon label,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-icon .radio.inline {
  width: 2.02rem !important;
  height: 2.02rem !important;
  border-radius: .58rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab {
  margin-top: .25rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTabContent {
  margin-top: .2rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create textarea#message,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create textarea#message_private {
  min-height: 13rem !important;
  line-height: 1.58 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .cke,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .cke_chrome,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .sceditor-container {
  border-color: rgba(29, 121, 137, .15) !important;
  border-radius: .86rem !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments {
  position: relative !important;
  padding: 1.05rem 1rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments h4 {
  margin: 0 0 .75rem !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules {
  border-color: rgba(29, 121, 137, .12) !important;
  border-left: .2rem solid rgba(222, 113, 13, .75) !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .055), rgba(222, 113, 13, .035)) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #dropzone .dropzone {
  min-height: 5.25rem !important;
  border-style: dashed !important;
  background: #fbfdfd !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap {
  padding: .85rem 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .045), rgba(255,255,255,.92)) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap label {
  margin: 0 !important;
  font-size: .9rem !important;
  font-weight: 700 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap {
  justify-content: flex-end !important;
  margin-top: .9rem !important;
  padding-top: .9rem !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap .kbutton,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap .kbtn {
  min-height: 2.42rem !important;
  border-radius: .74rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap .kbutton:not(.kbtn-success) {
  border: 1px solid rgba(29, 121, 137, .18) !important;
  background: #ffffff !important;
  color: #40535a !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap .kbutton:not(.kbtn-success):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap .kbutton:not(.kbtn-success):focus-visible {
  border-color: rgba(222, 113, 13, .4) !important;
  color: #de710d !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #form_submit_button:disabled {
  opacity: .58 !important;
  cursor: not-allowed !important;
  filter: grayscale(.1) !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-hero {
    padding: .92rem .95rem .95rem 1.05rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-form-wrap {
    padding: .78rem !important;
    gap: .78rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-title,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block {
    padding: .8rem .82rem .85rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat::before,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-title::before,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-icons::before,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block::before {
    position: static !important;
    width: 1.42rem !important;
    height: 1.42rem !important;
    margin: 0 0 .5rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kaction-wrap {
    justify-content: stretch !important;
  }
}


/* PortalGraf KGrid pg91 - refinements for create topic view and footer cleanup */
#kunena.layout .krss-time {
  display: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .35rem !important;
  margin: .55rem 0 .55rem !important;
  padding: .28rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .82rem !important;
  background: rgba(29, 121, 137, .045) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-item,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-item {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-link {
  min-height: 2.18rem !important;
  margin: 0 !important;
  padding: .48rem .72rem !important;
  border: 0 !important;
  border-radius: .62rem !important;
  background: transparent !important;
  color: #50636b !important;
  font-size: .84rem !important;
  font-weight: 760 !important;
  line-height: 1.18 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-link.active {
  background: #ffffff !important;
  color: #1d7989 !important;
  box-shadow: 0 1px 6px rgba(15, 23, 42, .08) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-link:not(.active):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-link:not(.active):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-link:not(.active):focus-visible,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-link:not(.active):focus-visible {
  color: #de710d !important;
  background: rgba(255, 255, 255, .62) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-message-tabs-note {
  margin: -.15rem 0 .68rem !important;
  padding: .62rem .75rem .62rem .92rem !important;
  border-left: .18rem solid rgba(222, 113, 13, .76) !important;
  border-radius: .68rem !important;
  background: rgba(222, 113, 13, .045) !important;
  color: #5f6f76 !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .tab-content {
  margin-top: .38rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel {
  clear: both !important;
  margin-top: 1.15rem !important;
  padding-top: 1.35rem !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel h4 {
  display: block !important;
  clear: both !important;
  margin: 0 0 .9rem !important;
  padding-top: .05rem !important;
  position: relative !important;
  z-index: 1 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .controls,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel #kattach_form {
  clear: both !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap {
  margin-top: 1rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap #kpost-subscribe .custom-control.custom-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: .55rem !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap #subscribeMe {
  flex: 0 0 auto !important;
  width: 1rem !important;
  height: 1rem !important;
  margin: .18rem 0 0 !important;
  position: static !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap label[for="subscribeMe"] {
  display: inline !important;
  margin: 0 !important;
  max-width: none !important;
  color: #40535a !important;
  line-height: 1.42 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab {
    display: flex !important;
    width: 100% !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-item,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-item {
    flex: 1 1 100% !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .nav-tabs .nav-link,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block #myTab .nav-link {
    width: 100% !important;
    text-align: center !important;
  }
}

/* PortalGraf KGrid pg91 - nuevo tema: jerarquía, pestañas acopladas y adjuntos estructurados */
body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-kicker {
  display: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout .pgk-newtopic-hero {
  padding-top: .95rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block {
  padding-bottom: 1rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-message-tabs-note {
  display: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell {
  margin-top: .75rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: .86rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 .72rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(29, 121, 137, .018)) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
  display: flex !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link {
  position: relative !important;
  min-height: 2.45rem !important;
  margin: 0 0 -1px !important;
  padding: .68rem .95rem .62rem !important;
  border: 1px solid transparent !important;
  border-bottom-color: transparent !important;
  border-radius: .72rem .72rem 0 0 !important;
  background: transparent !important;
  color: #50636b !important;
  font-size: .88rem !important;
  font-weight: 780 !important;
  line-height: 1.15 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link.active {
  border-color: rgba(29, 121, 137, .16) !important;
  border-bottom-color: #ffffff !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):focus-visible,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link:not(.active):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link:not(.active):focus-visible {
  color: #de710d !important;
  background: rgba(255, 255, 255, .52) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTabContent {
  margin: 0 !important;
  padding: .82rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message_private {
  border-radius: .72rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel {
  margin-top: 1.35rem !important;
  padding-top: 1.55rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .72rem !important;
  margin: 0 0 .95rem !important;
  padding: .85rem .95rem !important;
  color: #40535a !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules p {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .68rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: .25rem !important;
  min-width: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule-label {
  display: block !important;
  color: #1d7989 !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  letter-spacing: .015em !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule-value {
  display: block !important;
  color: #40535a !important;
  font-size: .9rem !important;
  font-weight: 620 !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap #kpost-subscribe .custom-control.custom-checkbox {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: .58rem !important;
  row-gap: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap #subscribeMe {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin-top: .22rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-subscribe-wrap label[for="subscribeMe"] {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  line-height: 1.42 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab {
    padding: 0 .45rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
    flex: 1 1 50% !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link {
    width: 100% !important;
    padding-left: .5rem !important;
    padding-right: .5rem !important;
    text-align: center !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* PortalGraf KGrid pg91 - nuevo tema: pestañas limpias y adjuntos menos forzados */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell {
  margin-top: .78rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab {
  display: flex !important;
  align-items: flex-end !important;
  gap: .24rem !important;
  width: 100% !important;
  margin: 0 0 -1px !important;
  padding: 0 0 0 .12rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
  display: flex !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link {
  min-height: 2.3rem !important;
  margin: 0 !important;
  padding: .58rem .86rem .53rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-bottom-color: rgba(29, 121, 137, .18) !important;
  border-radius: .72rem .72rem 0 0 !important;
  background: #f7fafb !important;
  color: #50636b !important;
  font-size: .87rem !important;
  font-weight: 780 !important;
  line-height: 1.15 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link.active {
  position: relative !important;
  z-index: 2 !important;
  border-color: rgba(29, 121, 137, .2) !important;
  border-bottom-color: #ffffff !important;
  background: #ffffff !important;
  color: #1d7989 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTabContent {
  margin: 0 !important;
  padding: .86rem !important;
  border: 1px solid rgba(29, 121, 137, .2) !important;
  border-top: 0 !important;
  border-radius: 0 .86rem .86rem .86rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message_private {
  border-radius: .72rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules.alert {
  display: block !important;
  margin: 0 0 .95rem !important;
  padding: .78rem .9rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-left: .2rem solid rgba(222, 113, 13, .68) !important;
  border-radius: .78rem !important;
  background: #fbfdfd !important;
  color: #40535a !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .48rem .8rem !important;
  margin-top: .55rem !important;
  padding-top: .55rem !important;
  border-top: 1px solid rgba(29, 121, 137, .1) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule-label {
  display: block !important;
  margin: 0 0 .12rem !important;
  color: #40535a !important;
  font-size: .82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.32 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule-value {
  display: block !important;
  color: #5f7077 !important;
  font-size: .88rem !important;
  font-weight: 520 !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
  max-width: 54rem !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab {
    gap: .18rem !important;
    padding-left: 0 !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
    flex: 1 1 50% !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link {
    width: 100% !important;
    padding-left: .45rem !important;
    padding-right: .45rem !important;
    text-align: center !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent {
    border-radius: 0 0 .86rem .86rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* PortalGraf KGrid pg91 - nuevo tema: selector, continuidad del editor y módulos de adjuntos */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat select,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .kpost-topic-cat .form-select,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #postcatid {
  min-height: 3.12rem !important;
  height: auto !important;
  padding-top: .72rem !important;
  padding-bottom: .72rem !important;
  line-height: 1.42 !important;
  font-size: .95rem !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  background-position: right .92rem center !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #postcatid option {
  line-height: 1.45 !important;
  padding-top: .32rem !important;
  padding-bottom: .32rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell {
  margin-top: .82rem !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .19) !important;
  border-radius: .94rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .035) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab {
  display: flex !important;
  align-items: flex-end !important;
  gap: .28rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .46rem .54rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 0 !important;
  background: #f6fafb !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
  display: flex !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link {
  min-height: 2.28rem !important;
  margin: 0 !important;
  padding: .56rem .86rem .52rem !important;
  border: 1px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: .66rem .66rem 0 0 !important;
  background: transparent !important;
  color: #50636b !important;
  font-size: .87rem !important;
  font-weight: 780 !important;
  line-height: 1.18 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link.active {
  position: relative !important;
  z-index: 2 !important;
  margin-bottom: -1px !important;
  border-color: rgba(29, 121, 137, .18) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTabContent {
  margin: 0 !important;
  padding: .9rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message_private {
  border-radius: .72rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules.alert,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(12rem, .72fr) minmax(12rem, .72fr) !important;
  gap: .72rem !important;
  margin: 0 0 1rem !important;
  padding: .78rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: .86rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .045), rgba(222, 113, 13, .025)) !important;
  color: #40535a !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules-grid {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .72rem .78rem .76rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-left: .22rem solid #1d7989 !important;
  border-radius: .72rem !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .035) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule-label {
  display: block !important;
  margin: 0 0 .28rem !important;
  color: #1d7989 !important;
  font-size: .8rem !important;
  font-weight: 850 !important;
  letter-spacing: .005em !important;
  line-height: 1.28 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule-value {
  display: block !important;
  color: #40535a !important;
  font-size: .88rem !important;
  font-weight: 520 !important;
  line-height: 1.46 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 1.58rem !important;
  padding: .12rem .5rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #27373d !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

@media (max-width: 991.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules.alert,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rule--extensions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab {
    gap: .18rem !important;
    padding: .42rem .42rem 0 !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
    flex: 1 1 50% !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link {
    width: 100% !important;
    padding-left: .45rem !important;
    padding-right: .45rem !important;
    text-align: center !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules.alert,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-attachment-rules {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: .7rem !important;
  }
}

/* PortalGraf KGrid pg91 - nuevo tema: cabecera de pestañas y bloque natural de adjuntos */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell {
  border-color: rgba(29, 121, 137, .22) !important;
  border-radius: .9rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .04) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: .18rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .55rem .7rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #1d7989 0%, #247f87 66%, rgba(222, 113, 13, .42) 100%) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
  display: flex !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link {
  min-height: 2.28rem !important;
  margin: 0 0 -1px !important;
  padding: .58rem .92rem .54rem !important;
  border: 1px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: .72rem .72rem 0 0 !important;
  background: rgba(255, 255, 255, .10) !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  line-height: 1.16 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTab .nav-link.active {
  border-color: rgba(255, 255, 255, .96) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .62), 0 1px 4px rgba(15, 23, 42, .10) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link:not(.active):hover,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):focus-visible,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link:not(.active):focus-visible {
  background: rgba(255, 255, 255, .18) !important;
  color: #ffffff !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .tab-content {
  margin-top: 0 !important;
  padding: .86rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules {
  display: block !important;
  margin: .35rem 0 1rem !important;
  padding: .78rem .92rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: .22rem solid #1d7989 !important;
  border-radius: .78rem !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(29, 121, 137, .018)) !important;
  color: #40535a !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules-grid {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: grid !important;
  grid-template-columns: minmax(12.25rem, max-content) minmax(0, 1fr) !important;
  gap: .22rem .65rem !important;
  align-items: baseline !important;
  margin: 0 !important;
  padding: .38rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule {
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  display: inline !important;
  margin: 0 !important;
  color: #1d7989 !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.38 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #40535a !important;
  font-size: .86rem !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  color: #27373d !important;
  font-weight: 760 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab {
    padding: .48rem .48rem 0 !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-item {
    flex: 1 1 50% !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .nav-tabs .nav-link,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTab .nav-link {
    width: 100% !important;
    padding-left: .45rem !important;
    padding-right: .45rem !important;
    text-align: center !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .1rem !important;
    padding: .46rem 0 !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
    white-space: normal !important;
  }
}

/* PortalGraf KGrid pg91 - topic icon AJAX refresh and attachment heading alignment */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons {
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_inject,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_inject {
  display: block !important;
  width: 100% !important;
  margin: .35rem 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .42rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .12rem 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList .kpost-icon,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList .kiconsel,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList .kpost-icon,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList .kiconsel {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  transform: none !important;
  opacity: 1 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList input[type="radio"],
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList input[type="radio"] {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList .radio.inline,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList .radio.inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
  min-height: 2.35rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .64rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .035) !important;
  transform: none !important;
  opacity: 1 !important;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label i,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label i,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label .glyphicon-topic,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label .glyphicon-topic,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label svg,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label svg,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label img,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label img {
  display: block !important;
  width: 1.12rem !important;
  height: 1.12rem !important;
  max-width: 1.12rem !important;
  max-height: 1.12rem !important;
  margin: 0 !important;
  color: inherit !important;
  fill: currentColor !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  vertical-align: middle !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label i.fa-2x,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label i.fa-2x {
  font-size: 1rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList input[type="radio"]:checked + label,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList input[type="radio"]:checked + label {
  border-color: rgba(29, 121, 137, .72) !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .05)) !important;
  color: #1d7989 !important;
  box-shadow: inset 0 0 0 1px rgba(29, 121, 137, .12), 0 1px 4px rgba(15, 23, 42, .06) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList label:hover,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList label:hover,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons #iconset_topicList input[type="radio"]:focus-visible + label,
body.com_kunena.view-topic #kunena.layout #postform .kpost-topic-icons #iconset_topicList input[type="radio"]:focus-visible + label {
  border-color: rgba(222, 113, 13, .62) !important;
  color: #de710d !important;
  background: rgba(222, 113, 13, .055) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel h4,
body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel h4 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 .82rem !important;
  padding: 0 !important;
  text-indent: 0 !important;
  transform: none !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .controls,
body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .controls {
  margin-left: 0 !important;
  padding-left: 0 !important;
}


/* PortalGraf KGrid pg94 - ancho del editor conservado y adjuntos compactos */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block {
  padding: .92rem .95rem .98rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block::before {
  top: .92rem !important;
  left: .95rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-label,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-help {
  padding-left: 2.15rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: .78rem !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent {
  padding: .72rem !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message_private {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}





body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules {
  display: block !important;
  margin: .35rem 0 1rem !important;
  padding: .72rem .88rem !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-left: .22rem solid #1d7989 !important;
  border-radius: .78rem !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(255, 255, 255, .92)) !important;
  color: #40535a !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: .18rem .32rem !important;
  margin: 0 !important;
  padding: .32rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule {
  border-top: 1px solid rgba(29, 121, 137, .08) !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  display: inline !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: #1d7989 !important;
  font-size: .86rem !important;
  font-weight: 820 !important;
  line-height: 1.42 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  display: inline !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #40535a !important;
  font-size: .86rem !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
  box-shadow: none !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  flex: 0 0 auto !important;
  color: #27373d !important;
  font-weight: 760 !important;
  white-space: nowrap !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-label,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-help {
    padding-left: 2.05rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell #myTabContent {
    padding: .55rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
    white-space: normal !important;
  }
}

/* PortalGraf KGrid pg94 - adjuntos compactos sin tocar la botonera CKEditor */




body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0 .28rem !important;
  padding: .30rem 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  flex: 0 0 auto !important;
  font-size: .84rem !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value {
  flex: 1 1 auto !important;
  font-size: .84rem !important;
  line-height: 1.35 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
  font-size: .80rem !important;
  letter-spacing: -.005em !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  font-size: .84rem !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}


/* PortalGraf KGrid pg94 - línea compacta de extensiones sin modificar CKEditor */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  gap: .24rem !important;
  min-width: 0 !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-label {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: .76rem !important;
  line-height: 1.32 !important;
  letter-spacing: -.018em !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size {
  gap: 0 .24rem !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions {
    flex-wrap: wrap !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font-size: .80rem !important;
  }
}


/* PortalGraf KGrid pg98 - vista de tema: acciones del tema abajo y acciones de mensaje visibles. */

/* PortalGraf KGrid pg98 - compacta las acciones secundarias de mensaje en desplegable. */
body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .48rem !important;
  margin-top: .9rem !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > .kbtn,
body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > .kbutton,
body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > a.kbutton {
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-dropdown {
  display: inline-flex !important;
  position: relative !important;
  margin: 0 !important;
  z-index: 20 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: .38rem !important;
  min-height: 2.15rem !important;
  margin: 0 !important;
  padding: .42rem .72rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1d7989 !important;
  font-size: .86rem !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle:focus {
  border-color: rgba(222, 113, 13, .45) !important;
  color: #de710d !important;
  background: rgba(222, 113, 13, .045) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu {
  min-width: 12.5rem !important;
  padding: .38rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: .85rem !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbtn,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbutton,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: .48rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .52rem .62rem !important;
  border: 0 !important;
  border-radius: .55rem !important;
  background: transparent !important;
  color: #495057 !important;
  font-size: .9rem !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbtn:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbutton:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .dropdown-item:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbtn:focus,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbutton:focus,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .dropdown-item:focus {
  color: #1d7989 !important;
  background: rgba(29, 121, 137, .075) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbutton-edit,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu #btn_edit {
  color: #de710d !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .kbutton-edit:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu #btn_edit:hover {
  background: rgba(222, 113, 13, .08) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu .dropdown-divider {
  margin: .35rem .25rem !important;
  border-top-color: rgba(29, 121, 137, .14) !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap {
    justify-content: stretch !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > .kbtn,
  body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > .kbutton,
  body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-dropdown,
  body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle {
    width: 100% !important;
    justify-content: center !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu {
    width: 100% !important;
    min-width: 100% !important;
  }
}


/* PortalGraf KGrid pg98 - corrige desplegable de acciones de mensaje cerrado por defecto y capa visible. */
body.com_kunena.view-topic.layout-default #kunena.layout .kmsg-footer,
body.com_kunena.view-topic.layout-default #kunena.layout .message-published,
body.com_kunena.view-topic.layout-default #kunena.layout .kmsg-wrap,
body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap {
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap {
  position: relative !important;
  z-index: 30 !important;
  padding-bottom: .62rem !important;
  margin-bottom: .38rem !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > .kbtn.kbtn-primary,
body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap > .kbtn.kbtn-primary.kbtn-small {
  margin-bottom: .15rem !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-dropdown {
  position: relative !important;
  z-index: 60 !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu:not(.show) {
  display: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu.show {
  display: block !important;
  position: absolute !important;
  inset: auto 0 auto auto !important;
  transform: translate3d(0, 2.35rem, 0) !important;
  z-index: 1085 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle[aria-expanded="false"] + .pgk-message-actions-menu {
  display: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle[aria-expanded="true"] + .pgk-message-actions-menu {
  display: block !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .ktopic-action-wrap {
    padding-bottom: .78rem !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu.show {
    position: static !important;
    transform: none !important;
    margin-top: .45rem !important;
  }
}


/* PortalGraf KGrid pg99 - ajuste fino del botón Acciones de mensaje.
   Mantiene Respuesta rápida como acción principal y deja Acciones como control secundario compacto. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .ktopic-action-wrap {
  padding-right: .85rem !important;
  padding-left: .85rem !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-dropdown {
  margin-right: .15rem !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle {
  min-height: 2.15rem !important;
  padding: .44rem .86rem !important;
  border: 1px solid rgba(29, 121, 137, .26) !important;
  border-radius: .78rem !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  font-size: .86rem !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .055) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle:focus,
body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle[aria-expanded="true"] {
  border-color: rgba(29, 121, 137, .38) !important;
  background: rgba(29, 121, 137, .055) !important;
  color: #176b78 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .075) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-toggle i {
  color: currentColor !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu.show {
  right: .15rem !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .ktopic-action-wrap {
    padding-right: .7rem !important;
    padding-left: .7rem !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-dropdown {
    margin-right: 0 !important;
  }
}


/* PortalGraf KGrid pg102: rollback estable desde pg99.
   - Corrige editMarkup sin helpers personalizados.
   - Suaviza el filete degradado izquierdo de tarjetas de mensaje.
   - Mantiene el botón Reportar debajo del contenido/firma sin pisar acciones.
   - Mantiene el desplegable de acciones cerrado y con fondo opaco. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted {
  position: relative !important;
  overflow: visible !important;
  border-left: 0 !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 1.1rem 0 0 1.1rem !important;
  background: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) !important;
  opacity: .96 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  overflow: visible !important;
  border-radius: 1.1rem !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: .5rem !important;
  overflow: visible !important;
  clear: both !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-footer .report {
  display: flex !important;
  justify-content: flex-end !important;
  width: 100% !important;
  margin: .35rem 0 0 !important;
  padding: .45rem 0 0 !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  clear: both !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .ksig {
  margin-top: .8rem !important;
  padding-top: .75rem !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu {
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu:not(.show) {
  display: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .pgk-message-actions-menu.show {
  display: block !important;
  z-index: 1090 !important;
}


/* PortalGraf KGrid pg103: ajuste quirúrgico del encabezado del post y filete izquierdo.
   Base: pg102 estable. No toca edición/responder ni lógica de acciones. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted {
  position: relative !important;
  overflow: visible !important;
  border-radius: 1.1rem !important;
  border-left: 0 !important;
  background:
    linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) left top / 5px 100% no-repeat,
    #ffffff !important;
  background-clip: border-box !important;
  isolation: isolate !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted::before {
  display: none !important;
  content: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, max-content) !important;
  align-items: start !important;
  gap: .35rem 1rem !important;
  padding-left: 1.15rem !important;
  border-left: 0 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4 {
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  white-space: normal !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-date {
  justify-self: end !important;
  max-width: 28rem !important;
  text-align: right !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: .18rem .45rem !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-label,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kdate {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-date {
    justify-self: start !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
    text-align: left !important;
  }
}

/* PortalGraf KGrid pg104: corrección final de cabecera del post y filete izquierdo.
   Base: pg103. No toca edición, responder, acciones ni lógica funcional. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted {
  position: relative !important;
  overflow: visible !important;
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  background-image: none !important;
  isolation: isolate !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: .72rem !important;
  bottom: .72rem !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) !important;
  opacity: .98 !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  z-index: 4 !important;
  min-width: 0 !important;
  background: transparent !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "pgk-title"
    "pgk-meta" !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: .26rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: .72rem 1rem .72rem 1.24rem !important;
  border-left: 0 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4 {
  grid-area: pgk-title !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.28 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-date {
  grid-area: pgk-meta !important;
  justify-self: start !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .16rem .42rem !important;
  text-align: left !important;
  white-space: normal !important;
  line-height: 1.32 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-label,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kdate,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .fa-edit {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

@media (min-width: 992px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header {
    grid-template-columns: minmax(12rem, 1fr) minmax(0, auto) !important;
    grid-template-areas: "pgk-title pgk-meta" !important;
    column-gap: 1rem !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-date {
    justify-self: end !important;
    justify-content: flex-end !important;
    text-align: right !important;
    max-width: min(100%, 24rem) !important;
  }
}

@media (max-width: 991.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header .kmsg-post-date {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}


/* PortalGraf KGrid pg105: ajuste quirúrgico de cabecera de post y aviso de última edición.
   Base: pg104. No toca editar, responder, acciones ni permisos.
   Objetivo:
   - Evitar que el degradado de la cabecera del post sobresalga por las esquinas superiores.
   - Dar margen interior visual al aviso "Última Edición" para que no toque los laterales de la tarjeta. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted {
  border-radius: 1.1rem !important;
  background: #ffffff !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap {
  border-radius: 1.1rem 1.1rem .9rem .9rem !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header {
  border-radius: 1.1rem 1.1rem 0 0 !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
  position: relative !important;
  z-index: 1 !important;
  margin: 0 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header::after {
  border-radius: inherit !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted::before {
  top: .82rem !important;
  bottom: .82rem !important;
  left: 0 !important;
  width: 5px !important;
  border-radius: 999px !important;
  z-index: 6 !important;
}

/* Aviso de última edición: mantenerlo dentro de la lectura de la tarjeta, sin tocar los laterales. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published > .alert.alert-info,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted > .alert.alert-info {
  margin: .85rem 1.1rem 0 1.1rem !important;
  padding: .62rem .85rem !important;
  border-radius: .85rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  background: rgba(29, 121, 137, .055) !important;
  color: #495057 !important;
  line-height: 1.45 !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published > .alert.alert-info a,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted > .alert.alert-info a {
  color: #1d7989 !important;
  font-weight: 700 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published > .alert.alert-info,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted > .alert.alert-info {
    margin-left: .8rem !important;
    margin-right: .8rem !important;
  }
}

/* PortalGraf KGrid pg106: recuperar el filete degradado izquierdo a altura completa.
   Base: pg105. No toca cabecera, edición, responder, acciones ni permisos.
   El contenedor ya tiene radio/recorte correcto, por eso el filete vuelve a ocupar
   toda la altura de la tarjeta, como en la línea estable anterior. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 1.1rem 0 0 1.1rem !important;
  background: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) !important;
  opacity: .96 !important;
  pointer-events: none !important;
  z-index: 6 !important;
}

/* Mantener el contenedor de la tarjeta redondeado para que el filete y la cabecera no
   parezcan piezas separadas, sin cambiar el flujo de acciones/desplegables. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted {
  border-radius: 1.1rem !important;
}

/* PortalGraf KGrid pg107: metadatos de publicación/edición estructurados.
   Base: pg106. No toca acciones, responder, editar ni permisos.
   Objetivo: evitar el guion suelto justificado a la derecha y que la fecha editada
   caiga en una línea aislada. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .18rem .45rem !important;
  text-align: right !important;
  white-space: normal !important;
  line-height: 1.32 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .25rem !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-value {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-icon {
  display: inline-flex !important;
  align-items: center !important;
  color: rgba(255, 255, 255, .86) !important;
  line-height: 1 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-separator {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: .35rem !important;
  color: rgba(255, 255, 255, .62) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item--edited .kmsg-post-label {
  opacity: .86 !important;
}

@media (max-width: 991.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-separator {
    display: none !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item {
    flex-basis: 100% !important;
    justify-content: flex-start !important;
  }
}

/* PortalGraf KGrid pg108: filete sobre wrapper interior + metadatos menos dominantes.
   Base pg107. No toca acciones, responder, editar ni lógica de guardado. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-deleted::before,
body.view-topic #kunena.layout .topic-item-messages .message-published::before,
body.view-topic #kunena.layout .topic-item-messages .message-deleted::before {
  display: none !important;
  content: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published,
body.view-topic #kunena.layout .topic-item-messages .message-published {
  padding-left: 0 !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 1.02rem !important;
  background: #fff !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap::before,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  background: var(--pgk-filet-gradient, linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%)) !important;
  border-radius: 1.02rem 0 0 1.02rem !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "title"
    "meta" !important;
  gap: .16rem !important;
  align-items: start !important;
  padding: .68rem 1rem .58rem 1.22rem !important;
  border-radius: 1.02rem 1.02rem 0 0 !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  grid-area: title !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: auto !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  grid-area: meta !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: .22rem .38rem !important;
  width: auto !important;
  max-width: 100% !important;
  margin: .02rem 0 0 !important;
  color: var(--pgk-muted, #5f6f76) !important;
  font-size: .74rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  text-align: left !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-item {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: .18rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-separator,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-separator {
  display: inline-flex !important;
  align-items: center !important;
  color: rgba(29, 121, 137, .55) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date .kmsg-post-label,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date .kmsg-post-label {
  font-size: .73rem !important;
  font-weight: 800 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .ksig,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-footer,
body.view-topic #kunena.layout .topic-item-messages .kmsg,
body.view-topic #kunena.layout .topic-item-messages .ksig,
body.view-topic #kunena.layout .topic-item-messages .kmsg-footer {
  padding-left: max(1.15rem, calc(1rem + 5px)) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap + .alert.alert-info,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap + .alert.alert-info {
  margin-left: .9rem !important;
  margin-right: .9rem !important;
}


/* PortalGraf KGrid pg109: estabilización de cabecera de mensaje.
   Base pg108. Objetivo: evitar que el título del post se comprima letra a letra.
   No toca acciones, responder, editar ni lógica de guardado. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: .72rem 1rem .62rem 1.22rem !important;
  border-radius: 1.02rem 1.02rem 0 0 !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  display: block !important;
  width: 100% !important;
  min-width: 12rem !important;
  max-width: 100% !important;
  margin: 0 0 .28rem 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: manual !important;
  text-align: left !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: .18rem .42rem !important;
  text-align: left !important;
  white-space: normal !important;
  font-size: .735rem !important;
  line-height: 1.28 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
  justify-content: flex-start !important;
  text-align: left !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-item {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4,
  body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
    min-width: 0 !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-item {
    flex-basis: auto !important;
  }
}

/* PortalGraf KGrid pg110: metadatos a la derecha + filete interior a altura completa.
   Base pg109. No toca acciones, responder, editar, permisos ni lógica de guardado. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 1.02rem !important;
  /* El filete pertenece al wrapper interior y ocupa exactamente su altura completa. */
  background:
    linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) left top / 5px 100% no-repeat,
    #fff !important;
  background-clip: border-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap::before,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap::before {
  display: none !important;
  content: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: .72rem 1rem .62rem 1.22rem !important;
  border-radius: 1.02rem 1.02rem 0 0 !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 0 .28rem 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: auto !important;
  text-align: left !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: .16rem .38rem !important;
  text-align: right !important;
  white-space: normal !important;
  font-size: .72rem !important;
  line-height: 1.25 !important;
  color: var(--pgk-muted, #5f6f76) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-item {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .18rem !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-separator,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-separator {
  flex: 0 0 auto !important;
  color: rgba(29, 121, 137, .55) !important;
  font-weight: 800 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date,
  body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates,
  body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* PortalGraf KGrid pg111: metadatos superiores a la derecha en dos líneas + filete completo del wrapper interior.
   Base pg110. No toca acciones, responder, editar, permisos ni lógica de guardado. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 1.02rem !important;
  background: #fff !important;
  isolation: isolate !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap::before,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  height: auto !important;
  border-radius: 1.02rem 0 0 1.02rem !important;
  background: linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%) !important;
  pointer-events: none !important;
  z-index: 20 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: .72rem 1rem .66rem 1.24rem !important;
  border-radius: 1.02rem 1.02rem 0 0 !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4,
body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 15rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  hyphens: auto !important;
  text-align: left !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates,
body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
  position: absolute !important;
  top: .72rem !important;
  right: 1rem !important;
  left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: .08rem !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 14rem !important;
  margin: 0 !important;
  text-align: right !important;
  white-space: normal !important;
  font-size: .72rem !important;
  line-height: 1.24 !important;
  color: var(--pgk-muted, #5f6f76) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-item {
  display: flex !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .22rem !important;
  white-space: nowrap !important;
  text-align: right !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-separator,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-separator,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-icon,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-icon {
  display: none !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header,
  body.view-topic #kunena.layout .topic-item-messages .mykmsg-header {
    padding: .72rem 1rem .66rem 1.24rem !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .mykmsg-header h4,
  body.view-topic #kunena.layout .topic-item-messages .mykmsg-header h4 {
    max-width: 100% !important;
    margin-bottom: .28rem !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date,
  body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates,
  body.view-topic #kunena.layout .topic-item-messages .kmsg-post-date.pgk-message-dates {
    position: static !important;
    max-width: 100% !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-date-item,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-date-item {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* PortalGraf KGrid pg112: ajuste exclusivo del filete izquierdo del mensaje.
   Base pg111. No toca metadatos, cabecera, acciones, responder, editar, permisos ni lógica. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.view-topic #kunena.layout .topic-item-messages .message-published::before {
  display: none !important;
  content: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 1.02rem !important;
  /* El filete se pinta como fondo del wrapper real para cubrir toda su altura visual. */
  background-image:
    linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left top, 5px top !important;
  background-size: 5px 100%, calc(100% - 5px) 100% !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap::before,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap::before {
  display: none !important;
  content: none !important;
}

/* Mantener el contenido por encima del fondo del filete sin depender de z-index artificial. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap > *,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap > * {
  position: relative !important;
}


/* PortalGraf KGrid pg114: filete sobre el flujo completo del mensaje.
   Motivo: el aviso de escritura/login de Kunena se renderiza fuera de .kmsg-wrap,
   pero dentro del flujo del mensaje. El filete debe cubrir mensaje + aviso sin tocar metadatos. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 1.02rem !important;
  background-image:
    linear-gradient(180deg, #176b78 0%, #1d7989 44%, #2a7f84 68%, #bd5a0d 100%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left top, 5px top !important;
  background-size: 5px 100%, calc(100% - 5px) 100% !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow::before,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .kmsg-wrap::before,
body.view-topic #kunena.layout .topic-item-messages .kmsg-wrap::before,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .message-published::before,
body.view-topic #kunena.layout .topic-item-messages .message-published::before {
  display: none !important;
  content: none !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap {
  margin: 0 !important;
  border-radius: 1.02rem 1.02rem 0 0 !important;
  background: transparent !important;
  background-image: none !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p {
  margin: 0 !important;
  padding: .72rem 1rem .86rem 1.24rem !important;
  border-top: 1px solid rgba(29, 121, 137, .12) !important;
  color: #52646b !important;
  background: transparent !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .ktopic-action-wrap,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .ktopic-action-wrap {
  margin: 0 !important;
  padding: .4rem 1rem .8rem 1.24rem !important;
  background: transparent !important;
}


/* PortalGraf KGrid pg114: el separador entre el mensaje y el aviso inferior
   no debe cruzar el filete izquierdo. Se sustituye el border-top por una
   línea interna que empieza después del ancho del filete. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p {
  border-top: 0 !important;
  background-image: linear-gradient(90deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .12)) !important;
  background-repeat: no-repeat !important;
  background-position: 5px 0 !important;
  background-size: calc(100% - 5px) 1px !important;
}

/* PortalGraf KGrid pg115: ajuste exclusivo de la línea separadora del aviso inferior.
   Base pg114. La línea no debe invadir ni tocar visualmente el filete izquierdo. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p {
  border-top: 0 !important;
  background-image: linear-gradient(90deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .12)) !important;
  background-repeat: no-repeat !important;
  /* La línea empieza después del filete y del aire interior; no desde el borde del filete. */
  background-position: 1.24rem 0 !important;
  background-size: calc(100% - 1.24rem) 1px !important;
}


/* PortalGraf KGrid pg116: ajuste exclusivo de la línea superior que cruza el filete.
   Base pg115. La línea inferior del aviso se mantiene como estaba; aquí solo se corrigen
   los separadores internos de firma/footer para que no invadan la banda izquierda. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .ksig,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .ksig,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report {
  border-top: 0 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .ksig,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .ksig {
  background-image: linear-gradient(90deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .10)) !important;
  background-repeat: no-repeat !important;
  background-position: 1.24rem 0 !important;
  background-size: calc(100% - 1.24rem) 1px !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report {
  background-image: linear-gradient(90deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .10)) !important;
  background-repeat: no-repeat !important;
  background-position: 1.24rem 0 !important;
  background-size: calc(100% - 1.24rem) 1px !important;
}


/* PortalGraf KGrid pg117: corrección mínima sobre pg116.
   Se revierte SOLO la línea inferior del aviso de conversación a la posición de pg114,
   porque esa línea ya estaba bien. Se mantiene la corrección de la línea superior
   de firma/footer añadida en pg116. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-wrap + p {
  border-top: 0 !important;
  background-image: linear-gradient(90deg, rgba(29, 121, 137, .12), rgba(29, 121, 137, .12)) !important;
  background-repeat: no-repeat !important;
  background-position: 5px 0 !important;
  background-size: calc(100% - 5px) 1px !important;
}

/* PortalGraf KGrid pg118: sin desplegable en acciones de mensaje.
   Base pg117. Se devuelven Responder/Citar/Editar/Borrar a botones visibles
   para evitar que el menú desplegable quede escondido detrás del bloque del tema. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .ktopic-action-wrap,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .ktopic-action-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .5rem !important;
  position: relative !important;
  z-index: 2 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .42rem !important;
  min-width: 0 !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline > a,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline > a,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline > button,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline > button,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline .kbtn,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline .kbtn,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline .dropdown-item,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline .dropdown-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .34rem !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: .42rem .68rem !important;
  border-radius: .68rem !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #1d7989 !important;
  line-height: 1.18 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(23, 23, 23, .04) !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline > a:hover,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline > a:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline > button:hover,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline > button:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline .kbtn:hover,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline .kbtn:hover,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline .dropdown-item:hover,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline .dropdown-item:hover {
  border-color: rgba(222, 113, 13, .34) !important;
  background: rgba(255, 248, 241, .98) !important;
  color: #de710d !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-separator,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-separator {
  display: inline-block !important;
  width: 1px !important;
  height: 1.45rem !important;
  margin: 0 .1rem !important;
  background: rgba(29, 121, 137, .18) !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .ktopic-action-wrap,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .ktopic-action-wrap,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline {
    gap: .38rem !important;
  }

  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline > a,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline > a,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline > button,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline > button,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline .kbtn,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline .kbtn,
  body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-actions-inline .dropdown-item,
  body.view-topic #kunena.layout .topic-item-messages .pgk-message-actions-inline .dropdown-item {
    white-space: normal !important;
    padding: .4rem .58rem !important;
  }
}

/* PortalGraf KGrid pg119: modales funcionales fuera de la tarjeta visual.
   Base pg118. No cambia la botonera; solo evita que Reportar/Respuesta rápida
   queden por debajo o dentro del bloque del tema. */
body.com_kunena.view-topic .modal.pgk-report-modal,
body.com_kunena.view-topic .modal.kreply-default,
body.com_kunena.view-topic .modal[id^="kreply"] {
  position: fixed !important;
  z-index: 1065 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.com_kunena.view-topic .modal.pgk-report-modal .modal-dialog,
body.com_kunena.view-topic .modal.kreply-default .modal-dialog,
body.com_kunena.view-topic .modal[id^="kreply"] .modal-dialog {
  z-index: 1066 !important;
}

body.com_kunena.view-topic .modal-backdrop {
  z-index: 1055 !important;
}

/* PortalGraf KGrid pg121: ajuste mínimo sobre pg119.
   1) La línea superior del bloque Reportar debe cubrir todo el ancho útil del módulo del tema,
      sin quedar corta. Mantiene fuera el filete de 5px.
   2) No toca filete, metadatos, cabecera ni botonera inline. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report {
  background-position: 5px 0 !important;
  background-size: calc(100% - 5px) 1px !important;
}

body.com_kunena.view-topic .modal.pgk-report-modal,
body.view-topic .modal.pgk-report-modal,
body.com_kunena.view-topic .modal[id^="report"],
body.view-topic .modal[id^="report"] {
  z-index: 1085 !important;
}

body.com_kunena.view-topic .modal.pgk-report-modal .modal-dialog,
body.view-topic .modal.pgk-report-modal .modal-dialog,
body.com_kunena.view-topic .modal[id^="report"] .modal-dialog,
body.view-topic .modal[id^="report"] .modal-dialog {
  z-index: 1086 !important;
}

body.com_kunena.view-topic .modal-backdrop.pgk-report-backdrop,
body.view-topic .modal-backdrop.pgk-report-backdrop {
  z-index: 1080 !important;
}


/* PortalGraf KGrid pg121: ajuste exclusivo de Reportar.
   1) La línea superior del bloque reportar vuelve a ocupar todo el ancho del módulo.
   2) No toca filete, metadatos, cabecera, responder, editar ni botonera inline. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report {
  background-position: 0 0 !important;
  background-size: 100% 1px !important;
}

body.com_kunena.view-topic .modal.pgk-report-modal,
body.view-topic .modal.pgk-report-modal,
body.com_kunena.view-topic .modal[id^="report"],
body.view-topic .modal[id^="report"] {
  z-index: 1095 !important;
}

body.com_kunena.view-topic .modal.pgk-report-modal .modal-dialog,
body.view-topic .modal.pgk-report-modal .modal-dialog,
body.com_kunena.view-topic .modal[id^="report"] .modal-dialog,
body.view-topic .modal[id^="report"] .modal-dialog {
  z-index: 1096 !important;
}

/* PortalGraf KGrid pg122: ajuste exclusivo sobre Reportar.
   Base pg121. No toca botonera inline, respuesta rápida, filete, metadatos ni cabecera.
   La línea visual pertenece al contenedor completo del footer, no solo al bloque .report. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer {
  border-top: 0 !important;
  background-image: linear-gradient(90deg, rgba(29, 121, 137, .10), rgba(29, 121, 137, .10)) !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  background-size: 100% 1px !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  border-top: 0 !important;
  background: transparent !important;
  background-image: none !important;
  padding-top: .72rem !important;
  text-align: right !important;
  clear: both !important;
}

body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report .kbutton-report,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .kmsg-footer .report .kbutton-report {
  float: none !important;
  display: inline-flex !important;
}

/* PortalGraf KGrid pg123: retirar filete superior tenue del bloque de firma.
   Base pg122. Cambio mínimo: solo afecta al wrapper de firma en la vista de tema. */
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .pgk-message-flow .ksig,
body.view-topic #kunena.layout .topic-item-messages .pgk-message-flow .ksig,
body.com_kunena.view-topic.layout-default #kunena.layout .topic-item-messages .ksig,
body.view-topic #kunena.layout .topic-item-messages .ksig {
  border-top: 0 !important;
  background-image: none !important;
}

/* PortalGraf KGrid pg124: aplicar el criterio visual de Nuevo tema a las vistas Responder y Editar.
   Alcance limitado a formularios de topic edit/reply: no toca vista de tema, filete, firma, reportar ni respuesta rápida. */
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero {
  margin: .55rem 0 1rem !important;
  padding: .95rem 1.05rem 1rem 1.12rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-left: .24rem solid #de710d !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .065), rgba(222, 113, 13, .035)) !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero .pgk-topic-edit-heading,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero .pgk-newtopic-title {
  margin: 0 0 .32rem !important;
  color: #1d7989 !important;
  font-size: clamp(1.42rem, 2.2vw, 1.85rem) !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero .pgk-topic-form-intro,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero .pgk-newtopic-intro {
  max-width: 62rem !important;
  margin: 0 !important;
  color: #40535a !important;
  font-size: .94rem !important;
  line-height: 1.5 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-form-wrap {
  display: grid !important;
  gap: .92rem !important;
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .035) !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-cat,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-cat,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block {
  position: relative !important;
  margin: 0 !important;
  padding: .92rem .95rem .98rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .94rem !important;
  background: linear-gradient(180deg, #ffffff, #fbfdfd) !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .035) !important;
  min-width: 0 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-create-message-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-create-message-label {
  display: block !important;
  margin: 0 0 .22rem !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-create-message-help,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-create-message-help {
  margin: 0 0 .72rem !important;
  color: #5f7077 !important;
  font-size: .88rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell {
  margin-top: .82rem !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .9rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .04) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: .18rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .55rem .7rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #1d7989 0%, #247f87 66%, rgba(222, 113, 13, .42) 100%) !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-item,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-item,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-item,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-item {
  display: flex !important;
  margin: 0 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-link,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-link {
  min-height: 2.28rem !important;
  margin: 0 0 -1px !important;
  padding: .58rem .92rem .54rem !important;
  border: 1px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: .72rem .72rem 0 0 !important;
  background: rgba(255, 255, 255, .10) !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  line-height: 1.16 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-link.active {
  position: relative !important;
  z-index: 2 !important;
  border-color: rgba(255, 255, 255, .96) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .62), 0 1px 4px rgba(15, 23, 42, .10) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):hover,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-link:not(.active):hover,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):focus-visible,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-link:not(.active):focus-visible,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):hover,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-link:not(.active):hover,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-link:not(.active):focus-visible,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-link:not(.active):focus-visible {
  background: rgba(255, 255, 255, .18) !important;
  color: #ffffff !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .tab-content {
  margin-top: 0 !important;
  padding: .86rem !important;
  background: #ffffff !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell textarea#message_private,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell textarea#message_private {
  border-radius: .72rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel {
  margin-top: 1.15rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules {
  display: block !important;
  margin: .35rem 0 1rem !important;
  padding: .78rem .92rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: .22rem solid #1d7989 !important;
  border-radius: .78rem !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(29, 121, 137, .018)) !important;
  color: #40535a !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: grid !important;
  grid-template-columns: minmax(12.25rem, max-content) minmax(0, 1fr) !important;
  gap: .22rem .65rem !important;
  align-items: baseline !important;
  margin: 0 !important;
  padding: .38rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule {
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  display: inline !important;
  margin: 0 !important;
  color: #1d7989 !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
  line-height: 1.38 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #40535a !important;
  font-size: .86rem !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-subscribe-wrap #kpost-subscribe .custom-control.custom-checkbox,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-subscribe-wrap #kpost-subscribe .custom-control.custom-checkbox {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
  column-gap: .58rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-subscribe-wrap #subscribeMe,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-subscribe-wrap #subscribeMe {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin-top: .22rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-subscribe-wrap label[for="subscribeMe"],
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-subscribe-wrap label[for="subscribeMe"] {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  line-height: 1.42 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab {
    padding: .48rem .48rem 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-item,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-item {
    flex: 1 1 50% !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell .nav-tabs .nav-link,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-editor-tabs-shell #myTab .nav-link,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell .nav-tabs .nav-link,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-editor-tabs-shell #myTab .nav-link {
    width: 100% !important;
    padding-left: .45rem !important;
    padding-right: .45rem !important;
    text-align: center !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .1rem !important;
    padding: .46rem 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
    white-space: normal !important;
  }
}


/* PortalGraf KGrid pg125: unify Reply/Edit views with New topic and polish edit history. */
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--reply,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--edit {
  margin: 0 0 1rem !important;
  padding: 1rem 1.12rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: .28rem solid #de710d !important;
  border-radius: 1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .075), rgba(222, 113, 13, .045)) !important;
  box-shadow: 0 .18rem .7rem rgba(23, 23, 23, .045) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--reply .pgk-topic-edit-heading,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--reply .pgk-newtopic-title,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--edit .pgk-topic-edit-heading,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--edit .pgk-newtopic-title {
  margin: 0 0 .28rem !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: clamp(1.35rem, 1.05rem + .72vw, 1.74rem) !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--reply .pgk-topic-form-intro,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--reply .pgk-newtopic-intro,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--edit .pgk-topic-form-intro,
body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--edit .pgk-newtopic-intro {
  margin: 0 !important;
  color: #53666c !important;
  font-size: .96rem !important;
  line-height: 1.48 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit {
  margin-top: 0 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-form-wrap {
  padding: 1rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .16rem .58rem rgba(23, 23, 23, .04) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-cat,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-cat,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons {
  margin: 0 0 .95rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-field-label {
  display: block !important;
  margin: 0 0 .34rem !important;
  color: #1d7989 !important;
  font-weight: 850 !important;
  letter-spacing: .01em !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block {
  margin-top: .7rem !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell {
  margin-top: 1.25rem !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history {
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .16rem .58rem rgba(23, 23, 23, .04) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-header {
  padding: .95rem 1rem !important;
  border-left: .28rem solid #1d7989 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .07), rgba(222, 113, 13, .035)) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-kicker {
  margin: 0 0 .18rem !important;
  color: #1d7989 !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-title,
body.com_kunena.view-topic #kunena.layout h3.pgk-topic-history-title.khistory-subject {
  margin: 0 !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: 1.08rem !important;
  line-height: 1.28 !important;
  font-weight: 850 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-note,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history .knote-msg.pgk-topic-history-note {
  margin: .34rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #5e7075 !important;
  font-size: .86rem !important;
  line-height: 1.42 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-list {
  padding: .78rem !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-item,
body.com_kunena.view-topic #kunena.layout #history .pgk-topic-history-item.khistory-item {
  display: grid !important;
  grid-template-columns: minmax(8.75rem, 11rem) minmax(0, 1fr) !important;
  gap: .85rem !important;
  margin: 0 !important;
  padding: .82rem !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .86rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-item + .pgk-topic-history-item {
  margin-top: .65rem !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-author,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-item .user-info.pgk-topic-history-author {
  display: grid !important;
  grid-template-columns: 2.65rem minmax(0, 1fr) !important;
  gap: .55rem !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-avatar img {
  width: 2.55rem !important;
  height: 2.55rem !important;
  object-fit: cover !important;
  border-radius: 999px !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-meta {
  min-width: 0 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-user,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-user a {
  display: block !important;
  color: #1d7989 !important;
  font-size: .92rem !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-date {
  display: inline-flex !important;
  align-items: center !important;
  gap: .28rem !important;
  margin-top: .16rem !important;
  color: #67787d !important;
  font-size: .78rem !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-body {
  min-width: 0 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-message {
  padding: .72rem .82rem !important;
  border-radius: .76rem !important;
  background: rgba(29, 121, 137, .035) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-message .kmessage,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-message .kmsg,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-text {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2f3c40 !important;
  font-size: .92rem !important;
  line-height: 1.48 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-text p {
  margin: 0 0 .58rem !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-text p:last-child {
  margin-bottom: 0 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-attachments {
  margin-top: .62rem !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-item,
  body.com_kunena.view-topic #kunena.layout #history .pgk-topic-history-item.khistory-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--reply,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-form-hero.pgk-topic-form-hero--edit,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-form-wrap {
    border-radius: .86rem !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-list {
    padding: .58rem !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-header {
    padding: .82rem .88rem !important;
  }
}

/* PortalGraf KGrid pg126: numbering and label clearance for Reply/Edit forms.
   Scope: Topic/Edit and Topic/Reply form views only. Does not touch topic message view, report modal, quick reply, left filet or inline action buttons. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-form-wrap {
  counter-reset: pgkTopicFormStep !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block {
  position: relative !important;
  padding: .92rem .95rem .98rem 3.05rem !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title::before,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons::before,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block::before,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title::before,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons::before,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block::before {
  counter-increment: pgkTopicFormStep !important;
  content: counter(pgkTopicFormStep) !important;
  position: absolute !important;
  top: .9rem !important;
  left: .9rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.55rem !important;
  height: 1.55rem !important;
  border-radius: .48rem !important;
  background: #1d7989 !important;
  color: #ffffff !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .16) !important;
}

/* Keep optional category blocks unnumbered in Reply/Edit so the visible sequence is Asunto → Icono → Mensaje. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-cat::before,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-cat::before {
  content: none !important;
  display: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons .kpost-field-label {
  min-height: 1.55rem !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 .42rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-create-message-label {
  min-height: 1.55rem !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 .22rem !important;
}

/* Edit reason module: avoid the label being visually cut by the upper border. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .fieldset-style,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .fieldset-style {
  position: relative !important;
  margin: 1rem 0 0 !important;
  padding: .95rem 1rem 1rem !important;
  border: 1px solid rgba(29, 121, 137, .13) !important;
  border-radius: .94rem !important;
  background: linear-gradient(180deg, #ffffff, #fbfdfd) !important;
  overflow: visible !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .035) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .fieldset-style .legend-style,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .fieldset-style h4.legend-style,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .fieldset-style .legend-style,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .fieldset-style h4.legend-style {
  position: static !important;
  display: block !important;
  margin: 0 0 .68rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.32 !important;
  box-shadow: none !important;
  transform: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .fieldset-style #modified-reason,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .fieldset-style #modified-reason {
  margin: 0 !important;
}

/* Attachments module heading: keep the title clear of the module top border. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel {
  position: relative !important;
  margin-top: 1rem !important;
  padding: .95rem 1rem 1rem !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel > h4,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel > h4 {
  position: static !important;
  display: block !important;
  margin: 0 0 .72rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.32 !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block {
    padding: .82rem .86rem .88rem !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block::before {
    position: static !important;
    width: 1.42rem !important;
    height: 1.42rem !important;
    margin: 0 0 .5rem !important;
  }
}


/* PortalGraf KGrid pg127: igualar márgenes del editor en Responder/Editar con Nuevo tema
   y dejar espacios naturales tras los dos puntos en el bloque de extensiones permitidas.
   Alcance: formularios Reply/Edit. No toca vista del tema, reportar, respuesta rápida, firma ni filete. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-form-wrap {
  gap: .95rem !important;
  padding: 1.1rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block {
  padding: .92rem .95rem .95rem 3.05rem !important;
  border-color: rgba(29, 121, 137, .105) !important;
  border-radius: .9rem !important;
  background: #fbfdfd !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-create-message-label {
  min-height: 1.55rem !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 0 .32rem !important;
  color: #40535a !important;
  font-size: .84rem !important;
  font-weight: 780 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-help,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-create-message-help {
  margin: .42rem 0 0 !important;
  color: #62737a !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  margin: .82rem 0 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .9rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 1px 0 rgba(29, 121, 137, .04) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTab,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTab {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: .18rem !important;
  width: 100% !important;
  margin: 0 !important;
  padding: .55rem .7rem 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .24) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #1d7989 0%, #247f87 66%, rgba(222, 113, 13, .42) 100%) !important;
  overflow: visible !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTab .nav-link,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTab .nav-link {
  min-height: 2.28rem !important;
  margin: 0 0 -1px !important;
  padding: .58rem .92rem .54rem !important;
  border: 1px solid transparent !important;
  border-bottom: 0 !important;
  border-radius: .72rem .72rem 0 0 !important;
  background: rgba(255, 255, 255, .10) !important;
  color: rgba(255, 255, 255, .92) !important;
  font-size: .86rem !important;
  font-weight: 800 !important;
  line-height: 1.16 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTab .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs .nav-link.active,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTab .nav-link.active {
  border-color: rgba(255, 255, 255, .96) !important;
  background: #ffffff !important;
  color: #1d7989 !important;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .62), 0 1px 4px rgba(15, 23, 42, .10) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content {
  margin-top: 0 !important;
  padding: .86rem !important;
  background: #ffffff !important;
}

/* Bloque de extensiones permitidas en Responder/Editar: mismo ritmo que Nuevo tema. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules {
  display: block !important;
  margin: .35rem 0 1rem !important;
  padding: .78rem .92rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-left: .22rem solid #1d7989 !important;
  border-radius: .78rem !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(29, 121, 137, .018)) !important;
  color: #40535a !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules-grid,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules-grid {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: grid !important;
  grid-template-columns: minmax(12.25rem, max-content) minmax(0, 1fr) !important;
  gap: .22rem .65rem !important;
  align-items: baseline !important;
  margin: 0 !important;
  padding: .38rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule {
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  display: inline !important;
  margin: 0 !important;
  color: #1d7989 !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.38 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #40535a !important;
  font-size: .86rem !important;
  font-weight: 560 !important;
  line-height: 1.42 !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  color: #27373d !important;
  font-weight: 760 !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTab,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTab {
    padding: .48rem .48rem 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTab .nav-item,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .nav-tabs .nav-item,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTab .nav-item {
    flex: 1 1 50% !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .1rem !important;
    padding: .46rem 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
    white-space: normal !important;
  }
}

/* PortalGraf KGrid pg128: ajuste fino de envoltorio del editor y espacios naturales en adjuntos.
   Alcance: formularios Nuevo tema / Responder / Editar. No toca vista del tema, reportar,
   respuesta rápida, firma, filete izquierdo ni botones internos del editor. */

/* Responder/Editar: el editor gana aire lateral sin modificar la botonera interna de CKEditor. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  width: calc(100% + .82rem) !important;
  max-width: calc(100% + .82rem) !important;
  margin: .82rem -.41rem 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Evita el doble filo inferior: solo manda el envoltorio exterior, no el panel interno. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content {
  margin: 0 !important;
  padding: .58rem !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 0 .9rem .9rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* El editor real ocupa todo el ancho útil del panel; no se alteran botones/toolbar. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private {
  width: 100% !important;
  max-width: 100% !important;
}

/* Adjuntos: estructura natural con un espacio equivalente al espacio normal después de ':'. */
body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: .08rem .25em !important;
  grid-template-columns: none !important;
  margin: 0 !important;
  padding: .34rem 0 !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  flex: 0 0 auto !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  line-height: 1.38 !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.38 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
  font-size: .80rem !important;
  letter-spacing: -.004em !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  flex: 0 0 auto !important;
  font-size: .86rem !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
    white-space: normal !important;
  }
}


/* PortalGraf KGrid pg129: ajuste fino de formularios Nuevo tema / Responder / Editar.
   Alcance: color de títulos de módulos, ancho real del envoltorio del editor y lectura natural
   del bloque de extensiones. No toca la vista del tema, reportar, respuesta rápida, firma,
   filete izquierdo, metadatos ni botones internos de CKEditor. */

/* Los títulos de módulo quedan con el mismo color corporativo que el rótulo del editor. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-title .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-topic-message-block .pgk-create-message-label,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-label {
  color: #1d7989 !important;
}

/* Nuevo tema: el editor gana anchura real usando el espacio reservado a número/texto superior. */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell {
  width: calc(100% + 1.08rem) !important;
  max-width: calc(100% + 1.08rem) !important;
  margin: .82rem -.54rem 0 !important;
  box-sizing: border-box !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Responder/Editar: mismo criterio de anchura que en Nuevo tema, sin tocar la toolbar del editor. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  width: calc(100% + 1.08rem) !important;
  max-width: calc(100% + 1.08rem) !important;
  margin: .82rem -.54rem 0 !important;
  box-sizing: border-box !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* El panel interior no pinta un segundo marco inferior; el borde visible queda en el editor nativo. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .tab-content,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .tab-content {
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
}

/* Se conserva el editor nativo; solo se asegura que ocupe todo el ancho útil disponible. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell textarea#message_private {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Adjuntos: separación de una palabra normal tras ':' y texto de extensiones más compacto. */
body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  column-gap: 0 !important;
  row-gap: .08rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  display: inline !important;
  flex: 0 0 auto !important;
  margin: 0 .25em 0 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value {
  display: inline !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
  font-size: .78rem !important;
  line-height: 1.42 !important;
  letter-spacing: -.006em !important;
}

body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  flex: 0 0 auto !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* PortalGraf KGrid pg130: ajuste efectivo de formularios Crear / Responder / Editar.
   Alcance: solo #postform.pgk-topic-edit-form. No toca la vista de tema, firma, reportar,
   respuesta rápida, metadatos, filete izquierdo ni botones internos de CKEditor. */

/* 1) Rótulos: Categoría, Asunto, Icono y Mensaje con el mismo criterio visual corporativo. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-cat .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-title .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons .kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .kpost-topic-icons > p.kpost-field-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-topic-message-block .pgk-create-message-label {
  color: #1d7989 !important;
  font-weight: 850 !important;
}

/* 2) Responder/Editar: el módulo Mensaje reserva una columna para el número. El editor debe recuperar
      ese espacio útil igual que en Nuevo tema, sin modificar toolbar ni botones del editor. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  width: calc(100% + 2.10rem) !important;
  max-width: calc(100% + 2.10rem) !important;
  margin: .82rem 0 0 -2.10rem !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .20) !important;
  border-bottom: 0 !important;
  border-radius: .9rem .9rem .72rem .72rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

/* Nuevo tema conserva su anchura ya validada; se normaliza solo el doble filo inferior del envoltorio. */
body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* 3) El panel de pestañas no pinta un segundo marco inferior. El marco inferior visible queda en el editor nativo. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .pgk-editor-tabs-content,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .tab-content {
  margin: 0 !important;
  padding: .62rem !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .tab-pane,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .controls {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* El editor real ocupa todo el ancho útil, sin cambiar botones internos ni toolbar. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .cke,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .cke_chrome,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell .sceditor-container,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell textarea#message,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form .pgk-editor-tabs-shell textarea#message_private {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* 4) Adjuntos: lectura natural "Etiqueta: valor", sin espacios artificiales ni columnas rígidas. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules.alert,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rules {
  display: block !important;
  margin: .35rem 0 1rem !important;
  padding: .72rem .88rem !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-left: .22rem solid #1d7989 !important;
  border-radius: .78rem !important;
  background: linear-gradient(180deg, rgba(29, 121, 137, .045), rgba(255,255,255,.94)) !important;
  color: #40535a !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule {
  display: block !important;
  margin: 0 !important;
  padding: .28rem 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .84rem !important;
  line-height: 1.42 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule + .pgk-attachment-rule {
  border-top: 1px solid rgba(29, 121, 137, .08) !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: normal !important;
  line-height: inherit !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-label {
  color: #1d7989 !important;
  font-size: .82rem !important;
  font-weight: 850 !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule-value {
  color: #40535a !important;
  font-size: .82rem !important;
  font-weight: 560 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--extensions .pgk-attachment-rule-value {
  font-size: .76rem !important;
  letter-spacing: -.004em !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--file-size .pgk-attachment-rule-value,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form #kpost-attachments.pgk-attachments-panel .pgk-attachment-rule--image-size .pgk-attachment-rule-value {
  color: #27373d !important;
  font-size: .82rem !important;
  font-weight: 760 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* PortalGraf KGrid pg131: ajuste puntual de Editar y normalización del historial.
   Alcance: solo formularios Topic/Edit y Topic/Reply. Nuevo tema queda intacto.
   No toca vista de tema, bloque de mensaje validado, firma, reportar, respuesta rápida,
   botonera inline, metadatos ni botones internos de CKEditor. */

/* 1) Editar: recuperar más ancho útil del editor hacia la izquierda.
      En edición el módulo Mensaje reserva columna para numeración; este ajuste compensa
      casi toda esa columna sin modificar CKEditor ni su toolbar. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  width: calc(100% + 2.85rem) !important;
  max-width: calc(100% + 2.85rem) !important;
  margin: .82rem 0 0 -2.85rem !important;
}

body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .pgk-editor-tabs-content,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content {
  padding: .58rem !important;
}

/* 2) Historial: mismo criterio visual en Editar y Responder, con avatar/placeholder estable. */
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply {
  margin-top: 1.18rem !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history {
  border-color: rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .14rem .48rem rgba(23, 23, 23, .035) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-list,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-list {
  padding: .72rem !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-item,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-item,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
  grid-template-columns: minmax(8.4rem, 10.65rem) minmax(0, 1fr) !important;
  gap: .78rem !important;
  padding: .76rem !important;
  border-color: rgba(29, 121, 137, .11) !important;
  border-radius: .82rem !important;
  background: linear-gradient(180deg, #ffffff, #fbfdfd) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-author,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-item .user-info.pgk-topic-history-author,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-author,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-item .user-info.pgk-topic-history-author {
  grid-template-columns: 2.45rem minmax(0, 1fr) !important;
  gap: .5rem !important;
  align-items: center !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-avatar,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-avatar {
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-avatar a,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-avatar a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-avatar img,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-avatar img {
  display: block !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  object-fit: cover !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 999px !important;
  background: #f3f8f9 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-avatar-placeholder {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1d7989, rgba(222, 113, 13, .86)) !important;
  color: #ffffff !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30) !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-message,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-message {
  padding: .68rem .78rem !important;
  border: 1px solid rgba(29, 121, 137, .075) !important;
  border-radius: .74rem !important;
  background: rgba(29, 121, 137, .032) !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-item,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-item,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* PortalGraf KGrid pg132: centrado puntual del editor en Editar.
   Alcance: únicamente Topic/Edit. Nuevo tema y Responder quedan intactos.
   Mantiene el ancho útil ganado en pg131, pero reparte el extra a izquierda y derecha
   para que el envoltorio del editor quede centrado dentro de su contenedor. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  width: calc(100% + 2.85rem) !important;
  max-width: calc(100% + 2.85rem) !important;
  margin: .82rem -1.425rem 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* PortalGraf KGrid pg133: corrección del centrado del editor solo en Editar.
   Alcance: únicamente Topic/Edit. Nuevo tema y Responder quedan intactos.
   La pg132 repartía el margen negativo de forma simétrica y hacía invadir el lado derecho.
   Aquí se conserva el ancho útil de pg131, pero se calcula el desplazamiento según el
   padding real del bloque numerado: izquierda 3.05rem / derecha .95rem. */
body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
  width: calc(100% + 2.85rem) !important;
  max-width: calc(100% + 2.85rem) !important;
  margin-top: .82rem !important;
  margin-right: 0 !important;
  margin-left: -2.475rem !important;
  box-sizing: border-box !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


/* PortalGraf KGrid pg134: edición afinada, responder alineado y editor móvil sin estrechamiento.
   Alcance: solo formularios Topic/Edit y Topic/Reply en escritorio; en móvil se corrige el
   ancho útil del editor en Crear/Responder/Editar sin cambiar la botonera interna de CKEditor.
   Nuevo tema en escritorio queda intacto. */

/* Escritorio: Editar gana un último ajuste mínimo de ancho sin descentrarse; Responder hereda
   exactamente el mismo criterio para que quede alineado con la vista de edición validada. */
@media (min-width: 768px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: calc(100% + 3.00rem) !important;
    max-width: calc(100% + 3.00rem) !important;
    margin-top: .82rem !important;
    margin-left: -2.56rem !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .pgk-editor-tabs-content,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .pgk-editor-tabs-content,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content {
    padding: .58rem !important;
  }
}

/* Móvil/tablet estrecha: el editor deja de encogerse dentro del padding del módulo numerado.
   Se expande solo hasta compensar el padding lateral del bloque, no fuera del contenedor visual. */
@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: calc(100% + 1.72rem) !important;
    max-width: calc(100% + 1.72rem) !important;
    margin-top: .78rem !important;
    margin-left: -.86rem !important;
    margin-right: -.86rem !important;
    box-sizing: border-box !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content {
    padding: .54rem !important;
  }

  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .cke_chrome,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell .sceditor-container,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message,
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-editor-tabs-shell textarea#message_private,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit .pgk-topic-history-item,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-item,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .64rem !important;
    padding: .68rem !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic.layout-create #kunena.layout #postform.pgk-topic-edit-form--create .pgk-create-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: calc(100% + 1.40rem) !important;
    max-width: calc(100% + 1.40rem) !important;
    margin-left: -.70rem !important;
    margin-right: -.70rem !important;
  }
}

/* PortalGraf KGrid pg135: ajuste final de Responder.
   Alcance: solo vista Topic/Reply. Nuevo tema y Editar quedan intactos.
   - El formulario de responder deja de comportarse como un bloque envolvente continuo.
   - El bloque central pierde cualquier filete lateral heredado de reglas antiguas de layout-reply.
   - Enviar/Cancelar quedan como fila de acciones separada, no integrada dentro del bloque central.
   - El historial de tema en Responder fuerza la misma estructura visual ya validada en Editar. */
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply {
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap {
  margin: 0 !important;
  padding: 1.1rem !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-left: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .16rem .58rem rgba(23, 23, 23, .04) !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap::before,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap::after,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap::before,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap::after {
  content: none !important;
  display: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-cat,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-cat,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block {
  border-left: 1px solid rgba(29, 121, 137, .105) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-subscribe-wrap,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .fieldset-style,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply #kpost-attachments,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-subscribe-wrap,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .fieldset-style {
  margin: 1rem 0 0 !important;
  background: #f9fbfb !important;
  border: 1px solid rgba(29, 121, 137, .12) !important;
  border-left: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: .9rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .65rem !important;
  margin: 1rem 0 0 !important;
  padding: .25rem 0 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbtn,
body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbutton,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbtn,
body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbutton {
  margin: 0 !important;
}

/* Responder: neutraliza estilos antiguos de layout-reply en el historial y lo alinea con Editar. */
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply {
  margin-top: 1.18rem !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history {
  overflow: hidden !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-left: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 .14rem .48rem rgba(23, 23, 23, .035) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-header,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-header {
  margin: 0 !important;
  padding: .95rem 1rem !important;
  border: 0 !important;
  border-left: .28rem solid #1d7989 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .07), rgba(222, 113, 13, .035)) !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-kicker,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-kicker {
  margin: 0 0 .18rem !important;
  padding: 0 !important;
  color: #1d7989 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  letter-spacing: .035em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply h3.pgk-topic-history-title.khistory-subject,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-title,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply h3.pgk-topic-history-title.khistory-subject,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: 1.08rem !important;
  font-weight: 850 !important;
  line-height: 1.28 !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-note,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply .knote-msg.pgk-topic-history-note,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply .pgk-topic-history-note,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply .knote-msg.pgk-topic-history-note {
  margin: .34rem 0 0 !important;
  padding: 0 !important;
  color: #53666c !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  line-height: 1.42 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history.pgk-topic-history-list,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history.pgk-topic-history-list {
  margin: 0 !important;
  padding: .72rem !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
  display: grid !important;
  grid-template-columns: minmax(8.4rem, 10.65rem) minmax(0, 1fr) !important;
  gap: .78rem !important;
  align-items: start !important;
  margin: 0 0 .72rem !important;
  padding: .76rem !important;
  border: 1px solid rgba(29, 121, 137, .11) !important;
  border-radius: .82rem !important;
  background: linear-gradient(180deg, #ffffff, #fbfdfd) !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item:last-child,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item:last-child {
  margin-bottom: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
  display: grid !important;
  grid-template-columns: 2.45rem minmax(0, 1fr) !important;
  gap: .5rem !important;
  align-items: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-align: left !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a.kwho-admin:not(.badge),
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a.kwho-admin:not(.badge) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded {
  display: block !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .18) !important;
  border-radius: 999px !important;
  background: #f3f8f9 !important;
  object-fit: cover !important;
  object-position: center center !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72) !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta {
  display: grid !important;
  gap: .18rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #5f6f76 !important;
  background: transparent !important;
  font-size: .86rem !important;
  line-height: 1.3 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user a,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user a {
  color: #1d7989 !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  text-decoration: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .24rem !important;
  color: #6b7d83 !important;
  font-size: .8rem !important;
  line-height: 1.3 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-body,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-body {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-message,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-message {
  margin: 0 !important;
  padding: .68rem .78rem !important;
  border: 1px solid rgba(29, 121, 137, .075) !important;
  border-radius: .74rem !important;
  background: rgba(29, 121, 137, .032) !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-message .kmessage,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-message .kmsg,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-text,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-message .kmessage,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-message .kmsg,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-text {
  margin: 0 !important;
  padding: 0 !important;
  color: #171717 !important;
  line-height: 1.55 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap {
    padding: .9rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .64rem !important;
    padding: .68rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
    grid-template-columns: 2.35rem minmax(0, 1fr) !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap {
    justify-content: stretch !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbtn,
  body.com_kunena.view-topic.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbutton,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbtn,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kaction-wrap .kbutton {
    width: 100% !important;
  }
}

/* PortalGraf KGrid pg136: ajuste fino del bloque de usuario en historial de Responder.
   Alcance: solo Topic/Reply. Editar y Nuevo tema quedan intactos.
   Objetivo: misma estructura visual que Editar: avatar a la izquierda, usuario/fecha a la derecha,
   sin texto alternativo visible del avatar y con márgenes/alineados limpios. */
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
  display: grid !important;
  grid-template-columns: 2.45rem minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  column-gap: .56rem !important;
  row-gap: 0 !important;
  align-items: center !important;
  align-content: center !important;
  min-height: 2.45rem !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: start !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a.kwho-admin:not(.badge),
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a.kwho-admin:not(.badge) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded {
  display: block !important;
  flex: 0 0 2.45rem !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder {
  flex: 0 0 2.45rem !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  font-size: .9rem !important;
  line-height: 1 !important;
  color: #ffffff !important;
  text-indent: 0 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: .10rem !important;
  min-height: 2.45rem !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user a,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user a {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.18 !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .24rem !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.22 !important;
  white-space: normal !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date svg,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date i,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date svg,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date i {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
    grid-template-columns: 2.35rem minmax(0, 1fr) !important;
    column-gap: .52rem !important;
    min-height: 2.35rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    max-width: 2.35rem !important;
    max-height: 2.35rem !important;
    flex-basis: 2.35rem !important;
  }

  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta {
    min-height: 2.35rem !important;
  }
}

/* PortalGraf KGrid pg137: centrado del bloque de usuario del historial en Responder.
   Alcance: solo Topic/Reply. Editar y Nuevo tema quedan intactos.
   Ajuste: el avatar + nombre/fecha se comportan como una pieza centrada
   dentro de la columna de usuario, igual que en la vista de edición validada. */
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
  align-items: center !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
  width: max-content !important;
  max-width: 100% !important;
  justify-self: center !important;
  align-self: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta {
  justify-content: center !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }
}

/* PortalGraf KGrid pg138: unificación fina de historial y corrección móvil Editar/Responder.
   Alcance:
   - Historial: llevar a Editar el centrado de usuario validado en Responder pg137.
   - Móvil: eliminar la columna fantasma de Editar/Responder tomando Nuevo tema como referencia.
   No toca vista de tema, firma, reportar, respuesta rápida, metadatos ni botones internos CKEditor. */

/* Editar: el bloque avatar + nombre/fecha usa el centrado que quedó mejor en Responder. */
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item {
  align-items: center !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author {
  width: max-content !important;
  max-width: 100% !important;
  justify-self: center !important;
  align-self: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-meta,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-meta,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .khistory-profile-box.pgk-topic-history-meta {
  justify-content: center !important;
}

/* Móvil/tablet: en Editar y Responder se neutraliza el padding izquierdo de escritorio
   que volvía a entrar al final de la cascada y producía una columna invisible. */
@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-form-wrap,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-form-wrap {
    gap: .78rem !important;
    padding: .78rem !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block {
    padding: .8rem .82rem .85rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-title::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .kpost-topic-icons::before,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block::before,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-title::before,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .kpost-topic-icons::before,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block::before {
    position: static !important;
    width: 1.42rem !important;
    height: 1.42rem !important;
    margin: 0 0 .5rem !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-label,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-help,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-create-message-label,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-create-message-help,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-label,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-create-message-help {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: calc(100% + 1.72rem) !important;
    max-width: calc(100% + 1.72rem) !important;
    margin-top: .78rem !important;
    margin-left: -.86rem !important;
    margin-right: -.86rem !important;
    box-sizing: border-box !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell #myTabContent,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .tab-content {
    padding: .54rem !important;
  }

  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .cke_chrome,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell .sceditor-container,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell textarea#message_private {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }
}

@media (max-width: 575.98px) {
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.view-topic #kunena.layout #postform.pgk-topic-edit-form--edit .pgk-topic-message-block .pgk-editor-tabs-shell,
  body.com_kunena.layout-reply #kunena.layout #postform.pgk-topic-edit-form--reply .pgk-topic-message-block .pgk-editor-tabs-shell {
    width: calc(100% + 1.40rem) !important;
    max-width: calc(100% + 1.40rem) !important;
    margin-left: -.70rem !important;
    margin-right: -.70rem !important;
  }
}

/* PortalGraf KGrid pg139: unificación real del usuario en historial Editar/Responder.
   Mantiene intacta la corrección móvil pg138 y no toca Nuevo tema.
   Se replica sobre Editar el criterio visual que quedó mejor en Responder pg137. */

/* Editar y Responder: la fila de historial centra verticalmente la pieza de usuario. */
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-item.khistory-item,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-item.khistory-item {
  align-items: center !important;
}

/* Editar y Responder: avatar + nombre/fecha como bloque compacto centrado en la columna izquierda. */
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
  display: grid !important;
  grid-template-columns: 2.45rem minmax(0, 1fr) !important;
  column-gap: .52rem !important;
  row-gap: 0 !important;
  width: max-content !important;
  max-width: 100% !important;
  min-height: 2.45rem !important;
  justify-self: center !important;
  align-self: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a.kwho-admin:not(.badge),
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a.kwho-admin:not(.badge),
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a.kwho-admin:not(.badge),
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a:not(.badge),
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a.kwho-admin:not(.badge) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img.rounded,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img.rounded,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded {
  display: block !important;
  flex: 0 0 2.45rem !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar-placeholder,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar-placeholder,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 2.45rem !important;
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
  min-height: 2.45rem !important;
  max-width: 2.45rem !important;
  max-height: 2.45rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1d7989, rgba(222, 113, 13, .86)) !important;
  color: #ffffff !important;
  font-size: .9rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  text-transform: uppercase !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-meta,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-meta,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: .10rem !important;
  min-height: 2.45rem !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-user,
body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-user a,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-user,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-user a,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user a,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-user a {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.18 !important;
}

body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-date,
body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-date,
body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date,
body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-date {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .24rem !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.22 !important;
  white-space: normal !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .user-info.pgk-topic-history-author,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .user-info.pgk-topic-history-author {
    grid-template-columns: 2.35rem minmax(0, 1fr) !important;
    column-gap: .52rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.35rem !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img.rounded,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar-placeholder,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar a,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar img.rounded,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-avatar-placeholder,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar a,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar img.rounded,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-avatar-placeholder {
    width: 2.35rem !important;
    height: 2.35rem !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    max-width: 2.35rem !important;
    max-height: 2.35rem !important;
    flex-basis: 2.35rem !important;
  }

  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-meta,
  body.com_kunena.view-topic #kunena.layout .pgk-topic-history-shell--edit #history .khistory-profile-box.pgk-topic-history-meta,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .pgk-topic-history-meta,
  body.com_kunena #kunena.layout .pgk-topic-history-shell--edit #history .khistory-profile-box.pgk-topic-history-meta,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
  body.com_kunena.view-topic.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .pgk-topic-history-meta,
  body.com_kunena.layout-reply #kunena.layout .pgk-topic-history-shell--reply #history .khistory-profile-box.pgk-topic-history-meta {
    min-height: 2.35rem !important;
  }
}

/* ==========================================================
   PortalGraf Kunena · PG140
   Miembros / Leyenda: separación natural, sin compresión ni comas
   ========================================================== */

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .68rem !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul > li {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: .68rem .78rem !important;
  line-height: 1.42 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul > li strong,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul > li b {
  display: inline !important;
  margin: 0 .18rem !important;
  white-space: nowrap !important;
  text-align: inherit !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul > li > div {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .34rem .5rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .46rem !important;
  align-items: start !important;
  justify-content: stretch !important;
  font-size: 1rem !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-label {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #1d7989 !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  letter-spacing: .01em !important;
  line-height: 1.25 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-items {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .38rem .42rem !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .28rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: .26rem .52rem !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 .12rem .34rem rgba(29, 121, 137, .055) !important;
  font-size: .78rem !important;
  font-weight: 750 !important;
  line-height: 1.18 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item > a {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: inherit !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item i {
  flex: 0 0 auto !important;
  margin: 0 !important;
  font-size: .82em !important;
  line-height: 1 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-admin {
  border-color: rgba(29, 121, 137, .24) !important;
  color: #1d7989 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-globalmoderator,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-globalmoderator a {
  color: #1d7989 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-moderator {
  color: #de710d !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-banned,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-banned a {
  color: #832320 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-user,
body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-user a {
  color: #4f5f66 !important;
}

body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item.kwho-guest {
  color: #6b7479 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body {
    padding: .82rem !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul {
    gap: .58rem !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body > ul > li {
    padding: .62rem .66rem !important;
    line-height: 1.38 !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend {
    gap: .42rem !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .38rem !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item,
  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item > a {
    width: 100% !important;
    justify-content: center !important;
    padding: .31rem .46rem !important;
    font-size: .76rem !important;
  }
}

@media (max-width: 399.98px) {
  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-items {
    grid-template-columns: 1fr !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item,
  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item > a {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* ==========================================================
   PortalGraf Kunena · PG141
   Miembros / Leyenda móvil: padding vertical homogéneo en píldoras
   ----------------------------------------------------------
   En pg140 la regla móvil conjunta volvía a aplicar padding al enlace
   interior de las píldoras enlazadas. Resultado: las leyendas con <a>
   tenían una caja interna distinta a las que solo eran <span>.
   Esta capa deja la píldora como única caja visual y el enlace como
   texto interno limpio.
   ========================================================== */

@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-items {
    align-items: stretch !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 2.05rem !important;
    padding: .34rem .50rem !important;
    line-height: 1.15 !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: inherit !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item i {
    line-height: 1 !important;
    transform: translateY(0) !important;
  }
}

@media (max-width: 399.98px) {
  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item {
    justify-content: flex-start !important;
  }

  body.com_kunena #kunena.layout .pg-forum-bottom-summary .kfrontend.kwho #kwho.kblock-body .pgk-who-legend-item > a {
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* ==========================================================
   PortalGraf Kunena · PG142
   Buscar: resultados en tarjetas limpias + sin IDs duplicados
   Announcement/listing: estado vacío sin tabla ni scroll horizontal
   ========================================================== */

body.com_kunena.view-search #kunena.layout .pgk-search-results {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.35rem 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  clear: both !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-results__header {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  width: 100% !important;
  margin: 0 0 .9rem !important;
  padding: 1rem 1.1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 52%, rgba(222, 113, 13, .86)) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-results__eyebrow {
  margin: 0 0 .18rem !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
  letter-spacing: .06em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-results__header h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(1.28rem, 2.2vw, 1.72rem) !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-results__count {
  flex: 0 0 auto !important;
  max-width: 42% !important;
  margin: 0 !important;
  padding: .42rem .68rem !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.94) !important;
  font-size: .82rem !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-results__list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .88rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result {
  display: grid !important;
  grid-template-columns: minmax(6.2rem, 7.4rem) minmax(0, 1fr) !important;
  gap: .95rem !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .9rem !important;
  background: #fff !important;
  border: 1px solid rgba(29, 121, 137, .15) !important;
  border-radius: 1rem !important;
  box-shadow: 0 .18rem .65rem rgba(29, 121, 137, .06) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result--moderator {
  border-left: 4px solid rgba(222, 113, 13, .72) !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__author {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .42rem !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: .72rem .55rem !important;
  background: linear-gradient(180deg, rgba(29,121,137,.055), rgba(222,113,13,.035)) !important;
  border: 1px solid rgba(29,121,137,.10) !important;
  border-radius: .86rem !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__avatar,
body.com_kunena.view-search #kunena.layout .pgk-search-result__avatar a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.25rem !important;
  height: 3.25rem !important;
  min-width: 3.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: .82rem !important;
  overflow: hidden !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__avatar img {
  display: block !important;
  width: 3.25rem !important;
  height: 3.25rem !important;
  max-width: 3.25rem !important;
  max-height: 3.25rem !important;
  object-fit: cover !important;
  border-radius: .82rem !important;
  background: #f5f8f9 !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__author-name,
body.com_kunena.view-search #kunena.layout .pgk-search-result__author-name a {
  max-width: 100% !important;
  color: #1d7989 !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__author-name a:hover,
body.com_kunena.view-search #kunena.layout .pgk-search-result__author-name a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .16rem !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__body {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .56rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__meta {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: .75rem !important;
  min-width: 0 !important;
  padding: 0 0 .48rem !important;
  border-bottom: 1px solid rgba(29,121,137,.12) !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline {
  min-width: 0 !important;
  color: #4f5f66 !important;
  font-size: .92rem !important;
  line-height: 1.42 !important;
  font-weight: 600 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline em {
  font-style: normal !important;
  font-weight: 850 !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline a.topictitle,
body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline a {
  color: #1d7989 !important;
  text-decoration: none !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline a.topictitle:hover,
body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline a.topictitle:focus,
body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline a:hover,
body.com_kunena.view-search #kunena.layout .pgk-search-result__titleline a:focus {
  color: #de710d !important;
  text-decoration: underline !important;
  text-underline-offset: .16rem !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__date {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .32rem !important;
  max-width: 42% !important;
  color: #6b7479 !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  text-align: right !important;
  white-space: normal !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__date i {
  color: #de710d !important;
  font-size: .92em !important;
  line-height: 1 !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__edited {
  display: inline-flex !important;
  align-items: center !important;
  gap: .2rem !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__message.kmessage {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2f3437 !important;
  font-size: .95rem !important;
  line-height: 1.58 !important;
  overflow-wrap: anywhere !important;
}

body.com_kunena.view-search #kunena.layout .pgk-search-result__message.kmessage p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-search #kunena.layout .pgk-search-results__header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: start !important;
    padding: .92rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-results__count {
    max-width: 100% !important;
    width: fit-content !important;
    text-align: left !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-result {
    grid-template-columns: 1fr !important;
    gap: .72rem !important;
    padding: .78rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-result__author {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: .58rem .62rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-result__avatar,
  body.com_kunena.view-search #kunena.layout .pgk-search-result__avatar a,
  body.com_kunena.view-search #kunena.layout .pgk-search-result__avatar img {
    width: 2.65rem !important;
    height: 2.65rem !important;
    min-width: 2.65rem !important;
    max-width: 2.65rem !important;
    max-height: 2.65rem !important;
    border-radius: .72rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-result__author-name,
  body.com_kunena.view-search #kunena.layout .pgk-search-result__author-name a {
    text-align: left !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-result__meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .35rem !important;
  }

  body.com_kunena.view-search #kunena.layout .pgk-search-result__date {
    max-width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
}

/* Announcement listing */
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  width: 100% !important;
  margin: 0 0 .95rem !important;
  padding: 1rem 1.1rem !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .98), rgba(29, 121, 137, .84) 52%, rgba(222, 113, 13, .86)) !important;
  border: 0 !important;
  border-left: 5px solid #de710d !important;
  border-radius: 1rem !important;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .08) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  line-height: 1.18 !important;
  font-weight: 850 !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .45rem !important;
  min-width: 0 !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions .form-control,
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions .custom-select {
  width: auto !important;
  min-width: 9rem !important;
  max-width: 100% !important;
  min-height: 2.36rem !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-empty {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: .82rem !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 1rem 1.05rem !important;
  background: #fff !important;
  border: 1px solid rgba(29, 121, 137, .16) !important;
  border-radius: 1rem !important;
  box-shadow: 0 .16rem .58rem rgba(29, 121, 137, .055) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-empty__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.6rem !important;
  height: 2.6rem !important;
  border-radius: .86rem !important;
  background: rgba(29, 121, 137, .08) !important;
  color: #1d7989 !important;
  font-size: 1.15rem !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-empty h3 {
  margin: 0 0 .16rem !important;
  padding: 0 !important;
  color: #1d7989 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-empty p {
  margin: 0 !important;
  padding: 0 !important;
  color: #4f5f66 !important;
  font-size: .92rem !important;
  line-height: 1.45 !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__top {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: .92rem !important;
  }

  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions {
    justify-content: flex-start !important;
  }

  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions .form-control,
  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions .custom-select,
  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__actions .kbutton {
    width: 100% !important;
  }

  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-empty {
    grid-template-columns: 1fr !important;
    text-align: left !important;
  }
}

/* pg143: Announcement listing header title contrast
   Scope kept intentionally narrow to avoid touching search results or validated forum views. */
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 a,
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 span {
  color: #145d69 !important;
  text-shadow: none !important;
}

body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: .28rem .66rem !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: .72rem !important;
  box-shadow: 0 .16rem .48rem rgba(0, 0, 0, .12) !important;
  letter-spacing: .01em !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 {
    padding: .25rem .58rem !important;
    line-height: 1.18 !important;
  }
}


/* pg144: announcement heading and connected-user dropdown polish.
   Scope: revert pg143 visual wrapper on the announcement title; keep only the text contrast fix.
   Also harden the logged-in user dropdown against Joomla success alerts/background blending. */
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .pgk-announcements-listing__heading h2 a,
body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .pgk-announcements-listing__heading h2 span,
body.com_kunena.view-announcement #kunena.layout form#adminForm .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement #kunena.layout form#adminForm .pgk-announcements-listing__heading h2 a,
body.com_kunena.view-announcement #kunena.layout form#adminForm .pgk-announcements-listing__heading h2 span {
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .22) !important;
}

body.com_kunena.view-announcement.layout-listing #kunena.layout form#adminForm .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement #kunena.layout form#adminForm .pgk-announcements-listing__heading h2 {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  letter-spacing: normal !important;
}

body.com_kunena #kunena.layout .knavbar,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse,
body.com_kunena #kunena.layout .knavbar .user-wrap,
body.com_kunena #kunena.layout .knavbar .klogout,
body.com_kunena #kunena.layout .knavbar .klogout > .dropdown {
  position: relative !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse {
  z-index: 1047 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show,
body.com_kunena #kunena.layout .knavbar #nav-menu.klogout-box-wrap,
body.com_kunena #kunena.layout .knavbar #nav-menu.klogout-box-wrap.show {
  z-index: 1048 !important;
  isolation: isolate !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .24) !important;
  box-shadow: 0 1.2rem 2.8rem rgba(15, 23, 42, .24), 0 .2rem .8rem rgba(29, 121, 137, .12) !important;
  color: #243238 !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu::before,
body.com_kunena #kunena.layout .knavbar #nav-menu.klogout-box-wrap::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  background: #ffffff !important;
}

body.com_kunena #kunena.layout .knavbar .klogout-box-wrap .klogout-user-info,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #status-form,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap form#status-form,
body.com_kunena #kunena.layout .knavbar .klogout-box-wrap #logout-form {
  background-clip: padding-box !important;
}


/* pg145: announcement title contrast and connected-user dropdown isolation.
   Scope: keep pg142 search results unchanged; do not alter forum topic/forms/modals.
   Announcement: only force text color, preserving the established header block rules. */
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 a,
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2 span,
body.com_kunena.view-announcement.layout-listing #kunena.layout .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement.layout-listing #kunena.layout .pgk-announcements-listing__heading h2 a,
body.com_kunena.view-announcement.layout-listing #kunena.layout .pgk-announcements-listing__heading h2 span {
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18) !important;
}

/* Neutralize the visual wrapper introduced in pg143 while keeping the validated pg142 header geometry. */
body.com_kunena.view-announcement #kunena.layout .pgk-announcements-listing__heading h2,
body.com_kunena.view-announcement.layout-listing #kunena.layout .pgk-announcements-listing__heading h2 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  letter-spacing: normal !important;
}

/* User dropdown: when Joomla messages are present, avoid blending with the site background.
   The class is added by pg145 JS while any joomla-alert exists in #system-message-container. */
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .knav-usercollapse,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .user-wrap,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .user-wrap,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .klogout,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .klogout,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .klogout > .dropdown,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .klogout > .dropdown {
  position: relative !important;
  z-index: 12020 !important;
  overflow: visible !important;
  isolation: isolate !important;
}

body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar #nav-menu.klogout-box-wrap.show,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar #nav-menu.klogout-box-wrap.show {
  z-index: 12030 !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  backdrop-filter: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #243238 !important;
  border: 1px solid rgba(29, 121, 137, .28) !important;
  box-shadow:
    0 1.35rem 3rem rgba(15, 23, 42, .30),
    0 .18rem .9rem rgba(29, 121, 137, .16),
    0 0 0 1px rgba(255, 255, 255, .92) inset !important;
}

body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show::before,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show::before,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar #nav-menu.klogout-box-wrap.show::before,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar #nav-menu.klogout-box-wrap.show::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  display: block !important;
  border-radius: inherit !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 9999px rgba(255,255,255,0) !important;
  pointer-events: none !important;
}

body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show *,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show * {
  mix-blend-mode: normal !important;
}

/* pg146: logged-in user dropdown repaint/staking fix while Joomla messages are visible.
   Scope: only the connected-user menu in the Kunena navbar. Do not alter Joomla messages. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .user-wrap,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout > .dropdown {
  overflow: visible !important;
  isolation: isolate !important;
}

body.com_kunena.pgk-kunena-user-menu-opening #kunena.layout .knavbar,
body.com_kunena.pgk-kunena-user-menu-opening #kunena.layout .knavbar .knav-usercollapse,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse {
  position: relative !important;
  overflow: visible !important;
  z-index: 13000 !important;
  isolation: isolate !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show,
body.com_kunena.pgk-kunena-user-menu-opening #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show {
  z-index: 13010 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-clip: padding-box !important;
  color: #243238 !important;
  border: 1px solid rgba(29, 121, 137, .30) !important;
  box-shadow:
    0 1.4rem 3.25rem rgba(15, 23, 42, .34),
    0 .25rem .95rem rgba(29, 121, 137, .17),
    0 0 0 1px rgba(255,255,255,.96) inset !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  backdrop-filter: none !important;
  transform-style: flat !important;
  backface-visibility: hidden !important;
  will-change: opacity, top, left !important;
  contain: layout paint style !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show::before,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  display: block !important;
  border-radius: inherit !important;
  background: #ffffff !important;
  background-image: none !important;
  pointer-events: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap #status-form,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap #statustext,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap #settings,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap #allread,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap #logout-form,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .kuser-status {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap a,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap button,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap label,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .kuser-name,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .kuser-last-visit {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

body.com_kunena.pgk-kunena-user-menu-repaint #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show {
  outline: 1px solid rgba(255,255,255,.01) !important;
}

/* pg146 final: connected-user dropdown profile/edit parity and repaint hardening.
   Scope: only the logged-in dropdown inside Kunena navbar. Announcement listing remains untouched/validated. */
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info {
  display: grid !important;
  grid-template-columns: 4.35rem minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: .78rem !important;
  row-gap: .12rem !important;
  align-items: center !important;
  min-height: 5.15rem !important;
  margin: 0 0 .75rem !important;
  padding: .72rem !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar {
  position: relative !important;
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.8rem !important;
  min-width: 3.8rem !important;
  max-width: 3.8rem !important;
  height: 3.8rem !important;
  min-height: 3.8rem !important;
  max-height: 3.8rem !important;
  margin: 0 !important;
  padding: .36rem !important;
  overflow: visible !important;
  transform: none !important;
  inset: auto !important;
  float: none !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar > a:first-child,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar > a:first-child {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar img,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar img,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar img.rounded,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar img.rounded {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: .75rem !important;
  background: transparent !important;
  transform: none !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .badge,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .badge,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-success,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-important,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-warning,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-default {
  position: absolute !important;
  right: -.28rem !important;
  bottom: -.28rem !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.15rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  height: 1.15rem !important;
  min-height: 1.15rem !important;
  max-height: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(29, 121, 137, .20) !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-success,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-success {
  background: #1d7989 !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-important,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-important {
  background: #832320 !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .badge::after,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .badge::after {
  content: "" !important;
  display: block !important;
  width: .42rem !important;
  height: .42rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-name,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-last-visit,
body.com_kunena.view-user #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-last-visit {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  min-width: 0 !important;
  margin: .15rem 0 0 !important;
}

/* Stronger paint layer for the connected dropdown: scroll previously forced this repaint manually. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show,
body.com_kunena.pgk-kunena-user-menu-opening #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show {
  contain: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  isolation: isolate !important;
  overflow: visible !important;
  translate: 0 0 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show::before,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show::before {
  z-index: 0 !important;
  background: #ffffff !important;
  opacity: 1 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show > *,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show > * {
  position: relative !important;
  z-index: 1 !important;
}

body.com_kunena.pgk-kunena-user-menu-repaint #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show {
  box-shadow:
    0 1.5rem 3.4rem rgba(15, 23, 42, .36),
    0 .25rem .95rem rgba(29, 121, 137, .18),
    0 0 0 1px rgba(255,255,255,.98) inset !important;
}


/* PortalGraf KGrid pg147: connected-user status badge parity across all Kunena views.
   Perfil is the visual reference: status dot bottom-right, avatar/name/date aligned, no view-specific drift. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info {
  display: grid !important;
  grid-template-columns: 4.35rem minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: .78rem !important;
  row-gap: .12rem !important;
  align-items: center !important;
  min-height: 5.15rem !important;
  margin: 0 0 .75rem !important;
  padding: .72rem !important;
  border-radius: .95rem !important;
  background: #ffffff !important;
  background-image: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar {
  position: relative !important;
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  justify-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.8rem !important;
  min-width: 3.8rem !important;
  max-width: 3.8rem !important;
  height: 3.8rem !important;
  min-height: 3.8rem !important;
  max-height: 3.8rem !important;
  margin: 0 !important;
  padding: .36rem !important;
  overflow: visible !important;
  float: none !important;
  inset: auto !important;
  transform: none !important;
  border-radius: .95rem !important;
  background: #ffffff !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar > a:first-child,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar > a:first-child {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar img,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar img,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar img.rounded,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar img.rounded {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: .75rem !important;
  background: transparent !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar [class*="bg-"],
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar [class*="bg-"] {
  position: absolute !important;
  right: -.28rem !important;
  bottom: -.28rem !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.15rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  height: 1.15rem !important;
  min-height: 1.15rem !important;
  max-height: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
  transform: none !important;
  box-shadow: 0 4px 10px rgba(29, 121, 137, .20) !important;
  z-index: 3 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .badge::after,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .badge::after,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar [class*="bg-"]::after,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar [class*="bg-"]::after {
  content: "" !important;
  display: block !important;
  width: .42rem !important;
  height: .42rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  flex: 0 0 .42rem !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-success,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-success,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.pgk-status-online .klogout-user-info .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.pgk-status-online .klogout-user-info .kuser-avatar .badge {
  background: #1d7989 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-warning,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-warning,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.pgk-status-away .klogout-user-info .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.pgk-status-away .klogout-user-info .kuser-avatar .badge {
  background: #de710d !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-important,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-important,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-danger,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-danger,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.pgk-status-busy .klogout-user-info .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.pgk-status-busy .klogout-user-info .kuser-avatar .badge {
  background: #832320 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-default,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-default,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-secondary,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-secondary,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-avatar .bg-dark,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-avatar .bg-dark,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.pgk-status-invisible .klogout-user-info .kuser-avatar .badge,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.pgk-status-invisible .klogout-user-info .kuser-avatar .badge {
  background: #6b7780 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-name,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info .kuser-last-visit,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info .kuser-last-visit {
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  min-width: 0 !important;
  margin: .15rem 0 0 !important;
}

/* Top connected icon: status class is synced by pg147 JS, so all views show the same active state. */
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.rounded {
  display: block !important;
  width: 1.22rem !important;
  height: 1.22rem !important;
  max-width: 1.22rem !important;
  max-height: 1.22rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: .94 !important;
  transform: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded.green,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.rounded.green,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.pgk-status-online,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.pgk-status-online {
  filter: none !important;
}

body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded.red,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.rounded.red,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.pgk-status-busy,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.pgk-status-busy {
  filter: sepia(1) saturate(2.2) hue-rotate(315deg) brightness(.82) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded.yellow,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.rounded.yellow,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.pgk-status-away,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.pgk-status-away {
  filter: sepia(1) saturate(2.1) hue-rotate(345deg) brightness(1.02) !important;
}

body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded.gray,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.rounded.gray,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.rounded.grey,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.rounded.grey,
body.com_kunena #kunena.layout .knavbar .klogout a#dropdownLogoutBox.dropdown-toggle img.pgk-status-invisible,
body.com_kunena #kunena.layout .knavbar .klogout .dropdown > a.dropdown-toggle img.pgk-status-invisible {
  filter: grayscale(1) brightness(.72) !important;
}

/* pg147: keep the repaint fix stable but visually quiet; no temporary shadow jump. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  isolation: isolate !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  will-change: transform !important;
}

body.com_kunena.pgk-kunena-user-menu-repaint #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
body.com_kunena.pgk-kunena-user-menu-repaint #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show {
  box-shadow:
    0 1.35rem 3.2rem rgba(15, 23, 42, .30),
    0 .2rem .8rem rgba(29, 121, 137, .14),
    0 0 0 1px rgba(29, 121, 137, .13) inset !important;
}

/* PortalGraf KGrid pg148: connected-user dropdown natural-height fix.
   Symptom: after a Joomla message, the logged-in dropdown background could render with a
   shortened layer until the page was scrolled. Keep announcement/search/form views untouched. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show {
  contain: none !important;
  isolation: isolate !important;
  height: auto !important;
  min-height: var(--pgk-login-menu-natural-height, max-content) !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-clip: border-box !important;
  box-sizing: border-box !important;
  will-change: auto !important;
  transition: none !important;
  animation: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.pgk-login-dropdown-natural-size,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.pgk-login-dropdown-natural-size,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show.pgk-login-dropdown-natural-size,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show.pgk-login-dropdown-natural-size {
  height: auto !important;
  min-height: var(--pgk-login-menu-natural-height, max-content) !important;
  max-height: none !important;
}

/* The real dropdown element now carries the white background; avoid a stale pseudo-layer
   with a shorter height being painted above/below the natural menu box. */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show::before,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show::before,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show::before,
body.com_kunena.pgk-kunena-has-joomla-alert #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show::before,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show::before,
body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show::before {
  content: none !important;
  display: none !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.pgk-login-dropdown-natural-size > *,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.pgk-login-dropdown-natural-size > * {
  position: relative !important;
  z-index: 1 !important;
}

/* ========================================================================
   PortalGraf KGrid pg149
   Estado del usuario: modal "Texto de estado" por encima de avisos Joomla.
   Cuando el aviso de Joomla sigue visible, algunas capas de Kunena heredaban
   z-index alto del dropdown conectado y quedaban por encima del backdrop.
   Este bloque solo actúa mientras el modal de texto de estado está abierto.
   ======================================================================== */
body.com_kunena.pgk-status-text-modal-open #kunena.layout,
body.com_kunena.pgk-status-text-modal-open.pgk-kunena-user-menu-open #kunena.layout,
body.com_kunena.pgk-status-text-modal-open.pgk-kunena-has-joomla-alert #kunena.layout,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar,
body.com_kunena.pgk-status-text-modal-open.pgk-kunena-user-menu-open #kunena.layout .knavbar,
body.com_kunena.pgk-status-text-modal-open.pgk-kunena-has-joomla-alert #kunena.layout .knavbar,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .kfrontend,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .section,
body.com_kunena.pgk-status-text-modal-open .pg-section.pgk-forum-section {
  z-index: auto !important;
  isolation: auto !important;
}

body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .knav-collapse,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .knav-phone,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .knav-usercollapse,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .user-wrap,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .klogout,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .klogout > .dropdown {
  position: relative !important;
  z-index: 1 !important;
  transform: none !important;
  contain: none !important;
}

body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar #nav-menu.klogout-box-wrap.show,
body.com_kunena.pgk-status-text-modal-open #kunena.layout .knavbar .klogout-box-wrap.dropdown-menu.show {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.com_kunena.pgk-status-text-modal-open .modal-backdrop,
body.com_kunena.pgk-status-text-modal-open .modal-backdrop.show,
body.com_kunena.pgk-status-text-modal-open .modal-backdrop.pgk-status-text-backdrop {
  z-index: 19940 !important;
  opacity: .52 !important;
}

body.com_kunena.pgk-status-text-modal-open #statusTextModal,
body.com_kunena.pgk-status-text-modal-open #statusText,
body.com_kunena.pgk-status-text-modal-open #statusTextModal.modal,
body.com_kunena.pgk-status-text-modal-open #statusText.modal,
body.com_kunena.pgk-status-text-modal-open #statusTextModal.modal.show,
body.com_kunena.pgk-status-text-modal-open #statusText.modal.show,
body.com_kunena.pgk-status-text-modal-open .modal.pgk-user-menu-modal.show {
  position: fixed !important;
  inset: 0 !important;
  z-index: 19950 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}

body.com_kunena.pgk-status-text-modal-open #statusTextModal .modal-dialog,
body.com_kunena.pgk-status-text-modal-open #statusText .modal-dialog,
body.com_kunena.pgk-status-text-modal-open .modal.pgk-user-menu-modal.show .modal-dialog {
  position: relative !important;
  z-index: 19960 !important;
}

body.com_kunena.pgk-status-text-modal-open #statusTextModal .modal-content,
body.com_kunena.pgk-status-text-modal-open #statusText .modal-content,
body.com_kunena.pgk-status-text-modal-open .modal.pgk-user-menu-modal.show .modal-content {
  background: #ffffff !important;
  border: 1px solid rgba(29, 121, 137, .28) !important;
  box-shadow: 0 1.15rem 2.8rem rgba(23, 23, 23, .28) !important;
}

body.com_kunena.pgk-status-text-modal-open #system-message-container {
  z-index: 1030 !important;
}

/* ========================================================================
   PortalGraf KGrid pg150
   Dropdown usuario conectado: cursor de la acción "Texto de estado".
   Kunena imprime esta acción como <a> sin href, por lo que el navegador
   no siempre muestra cursor de enlace aunque abra modal con data-bs-toggle.
   ======================================================================== */
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #statustext,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #statustext a,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #statustext [data-bs-toggle="modal"],
body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap #statustext a,
body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu #statustext a {
  cursor: pointer !important;
}

body.com_kunena #kunena.layout .knavbar .knav-usercollapse #statustext a {
  user-select: none;
}

/* ========================================================================
   PortalGraf KGrid pg151
   Dropdown usuario conectado en móvil: centrado en viewport.
   En móvil Bootstrap/Popper puede anclar .dropdown-menu-end al borde derecho
   del avatar, provocando que el menú salga por la derecha y quede cortado.
   Solo actúa en el desplegable de usuario conectado y solo en móvil.
   ======================================================================== */
@media (max-width: 767.98px) {
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .user-wrap,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout > .dropdown {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show,
  body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap.show,
  body.com_kunena.pgk-kunena-user-menu-open #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu.show {
    position: fixed !important;
    top: var(--pgk-mobile-login-menu-top, 4.75rem) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: min(22rem, calc(100vw - 1.5rem)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 1.5rem) !important;
    margin: 0 !important;
    transform: translate3d(-50%, 0, 0) !important;
    inset-inline-start: 50% !important;
    inset-inline-end: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 12040 !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap[style],
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu[style] {
    right: auto !important;
    left: 50% !important;
    transform: translate3d(-50%, 0, 0) !important;
  }

  body.com_kunena #kunena.layout .knavbar .knav-usercollapse #nav-menu.klogout-box-wrap .klogout-user-info,
  body.com_kunena #kunena.layout .knavbar .knav-usercollapse .klogout-box-wrap.dropdown-menu .klogout-user-info {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ========================================================================
   PortalGraf KGrid pg152
   Edición de perfil: rótulo de bloque dentro del flujo normal.
   Kunena/KGrid define .kprofile-edit-block h3 como una leyenda absoluta
   sobre el borde superior. En PortalGraf esa línea cortaba la caja en
   "Editar información de usuario". Se mantiene el bloque y se corrige
   solo el flujo/margen del título.
   ======================================================================== */
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block {
  position: relative !important;
  padding-top: 1rem !important;
}

body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block > h3,
body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block h3:first-child {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 .9rem !important;
  padding: 0 0 .55rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: transparent !important;
  color: #1d7989 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  box-sizing: border-box !important;
}

@media (max-width: 575.98px) {
  body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block {
    padding-top: .95rem !important;
  }

  body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block > h3,
  body.com_kunena.view-user.layout-edit #kunena.layout form#kuserform .kprofile-edit-block h3:first-child {
    margin-bottom: .8rem !important;
    padding-bottom: .5rem !important;
    font-size: 1rem !important;
  }
}


/* =========================================================
   PortalGraf KGrid pg156 — Topic/Moderate moderation view
   =========================================================
   Scope:
   - view-topic layout-moderate only.
   - Repairs malformed legacy icon grid visual structure.
   - Applies PortalGraf visual treatment to the moderator move-topic screen.
   ========================================================= */

body.com_kunena.view-topic.layout-moderate #kunena.layout {
  --pgk-moderate-border: rgba(29, 121, 137, .18);
  --pgk-moderate-border-soft: rgba(29, 121, 137, .12);
  --pgk-moderate-title: #172033;
  --pgk-moderate-muted: #667085;
  --pgk-moderate-teal: #1d7989;
  --pgk-moderate-orange: #de710d;
  --pgk-moderate-soft: #f7fafb;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kpage-heading {
  margin: 0 0 1rem;
  border: 1px solid var(--pgk-moderate-border);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(29, 121, 137, .08), rgba(222, 113, 13, .08)),
    #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kpage-heading .kpage-title,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kpage-heading h2 {
  margin: 0;
  color: var(--pgk-moderate-title);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form {
  border: 1px solid var(--pgk-moderate-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
  overflow: hidden;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs {
  margin: 0;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  padding: .85rem .95rem 0;
  border-bottom: 1px solid var(--pgk-moderate-border-soft);
  background:
    linear-gradient(135deg, rgba(29, 121, 137, .055), rgba(222, 113, 13, .045)),
    #fff;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-item {
  margin: 0;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link {
  border: 1px solid rgba(29, 121, 137, .16);
  border-radius: .85rem .85rem 0 0;
  background: rgba(255, 255, 255, .72);
  color: var(--pgk-moderate-teal);
  font-weight: 700;
  line-height: 1.25;
  padding: .65rem .85rem;
  text-decoration: none;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link:hover,
body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link:focus {
  color: var(--pgk-moderate-orange);
  background: #fff;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link.active {
  color: #fff;
  background: var(--pgk-moderate-teal);
  border-color: var(--pgk-moderate-teal);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .tab-content {
  padding: 1rem;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .ktopic-info {
  display: grid;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--pgk-moderate-border-soft);
  border-radius: .95rem;
  background: var(--pgk-moderate-soft);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .ktopic-info > div {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  margin: 0;
  padding: 0 0 .5rem;
  border-bottom: 1px solid rgba(29, 121, 137, .11);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .ktopic-info > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .ktopic-info .field-title {
  min-width: 0;
  color: var(--pgk-moderate-teal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicicons {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--pgk-moderate-border-soft);
  border-radius: .95rem;
  background: #fff;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicicons .legend-style {
  margin: 0 0 .75rem;
  padding: 0 0 .55rem;
  border-bottom: 1px solid rgba(29, 121, 137, .11);
  color: var(--pgk-moderate-title);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid input[type="radio"],
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid .radio.inline,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons .radio.inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  border: 1px solid rgba(29, 121, 137, .16);
  border-radius: .75rem;
  background: #fff;
  color: var(--pgk-moderate-teal);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid .radio.inline:hover,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons .radio.inline:hover {
  border-color: rgba(222, 113, 13, .35);
  color: var(--pgk-moderate-orange);
  transform: translateY(-1px);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid input[type="radio"]:checked + .radio.inline,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons input[type="radio"]:checked + .radio.inline {
  border-color: var(--pgk-moderate-teal);
  background: rgba(29, 121, 137, .1);
  color: var(--pgk-moderate-teal);
  box-shadow: 0 0 0 .15rem rgba(29, 121, 137, .1);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid .glyphicon-topic,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons .glyphicon-topic {
  font-size: 1.1rem;
  line-height: 1;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg {
  margin: 1rem 0 0;
  border: 1px solid var(--pgk-moderate-border-soft);
  border-radius: .95rem;
  background: #fff;
  overflow: hidden;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .kpost-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .2rem .75rem;
  align-items: center;
  margin: 0;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(29, 121, 137, .11);
  background: linear-gradient(135deg, rgba(29, 121, 137, .06), rgba(222, 113, 13, .04));
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .author-avatar {
  grid-row: 1 / span 2;
  float: none;
  margin: 0;
  border: 1px solid rgba(29, 121, 137, .18);
  border-radius: 999px;
  padding: .15rem;
  background: #fff;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .author-avatar img {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  padding: 0;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .kpost-head h3 {
  margin: 0;
  color: var(--pgk-moderate-title);
  font-size: 1.05rem;
  line-height: 1.25;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .kpost-meta {
  color: var(--pgk-moderate-muted);
  font-size: .86rem;
  line-height: 1.35;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .kpost-msg {
  margin: 0;
  padding: 1rem;
  color: var(--pgk-moderate-title);
  line-height: 1.65;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .ktab-title,
body.com_kunena.view-topic.layout-moderate #kunena.layout #tab3 h3 {
  margin: 0 0 .9rem;
  color: var(--pgk-moderate-title);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field,
body.com_kunena.view-topic.layout-moderate #kunena.layout .control-group {
  margin: 0 0 1rem;
  padding: .85rem;
  border: 1px solid var(--pgk-moderate-border-soft);
  border-radius: .85rem;
  background: var(--pgk-moderate-soft);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .control-label,
body.com_kunena.view-topic.layout-moderate #kunena.layout .control-group .checkbox {
  display: block;
  margin: 0 0 .45rem;
  color: var(--pgk-moderate-teal);
  font-size: .86rem;
  font-weight: 800;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .controls,
body.com_kunena.view-topic.layout-moderate #kunena.layout .control-group .controls {
  margin: 0;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .form-select,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .form-control,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .inputbox {
  width: 100%;
  max-width: 100%;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout #tab3 .ktable {
  width: 100%;
  margin: 0;
  border: 1px solid var(--pgk-moderate-border-soft);
  border-radius: .85rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout #tab3 .ktable th {
  padding: .65rem .75rem;
  background: var(--pgk-moderate-teal);
  color: #fff;
  font-size: .86rem;
  line-height: 1.25;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout #tab3 .ktable td {
  padding: .75rem;
  border-top: 1px solid rgba(29, 121, 137, .1);
  color: var(--pgk-moderate-title);
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form hr,
body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form br {
  display: none;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form > .kaction-wrap {
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--pgk-moderate-border-soft);
  background: #fff;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form > .kaction-wrap .kbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.35rem;
  margin: .15rem;
  border-radius: 999px;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-moderate #kunena.layout .kpage-heading {
    padding: 1rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs {
    padding: .75rem .75rem 0;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link {
    border-radius: .75rem;
    padding: .55rem .7rem;
    font-size: .88rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .tab-content {
    padding: .85rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .ktopic-info > div {
    grid-template-columns: 1fr;
    gap: .18rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid,
  body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons {
    gap: .38rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-icon-grid .radio.inline,
  body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicIcons .radio.inline {
    width: 2.2rem;
    height: 2.2rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .kmodearte-msg .kpost-head {
    grid-template-columns: auto minmax(0, 1fr);
    padding: .75rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form > .kaction-wrap {
    display: grid;
    gap: .45rem;
    padding: .85rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-form > .kaction-wrap .kbutton {
    width: 100%;
    margin: 0;
  }
}

/* =========================================================
   PortalGraf KGrid pg157 — Topic/Moderate polish
   =========================================================
   Scope:
   - view-topic layout-moderate only.
   - Keep pg155 boxghostmessage guard and pg156 repaired markup.
   - Fix legend overlap, select readability and tab wrapping.
   ========================================================= */

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  gap: .25rem;
  padding: .75rem .85rem 0 !important;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-item {
  flex: 0 0 auto;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link {
  white-space: nowrap;
  min-height: 2.35rem;
  padding: .55rem .68rem !important;
  font-size: .9rem;
  line-height: 1.25;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicicons {
  padding-top: .95rem !important;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicicons .legend-style {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 0 .75rem !important;
  padding: 0 0 .6rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(29, 121, 137, .12) !important;
  background: transparent !important;
  color: var(--pgk-moderate-title) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field select,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .form-select,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .inputbox,
body.com_kunena.view-topic.layout-moderate #kunena.layout #modcategorieslist select,
body.com_kunena.view-topic.layout-moderate #kunena.layout #modtopicslist select {
  display: block !important;
  width: 100% !important;
  min-height: 2.65rem !important;
  height: auto !important;
  padding: .55rem 2.25rem .55rem .75rem !important;
  border: 1px solid rgba(29, 121, 137, .22) !important;
  border-radius: .72rem !important;
  background-color: #fff !important;
  color: var(--pgk-moderate-title) !important;
  font-size: .95rem !important;
  line-height: 1.35 !important;
  text-indent: 0 !important;
  box-shadow: none !important;
  white-space: normal !important;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field select:focus,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .form-select:focus,
body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field .inputbox:focus {
  border-color: var(--pgk-moderate-teal) !important;
  box-shadow: 0 0 0 .16rem rgba(29, 121, 137, .12) !important;
}

body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-field select option,
body.com_kunena.view-topic.layout-moderate #kunena.layout #modcategorieslist select option,
body.com_kunena.view-topic.layout-moderate #kunena.layout #modtopicslist select option {
  color: #172033;
  background: #fff;
  font-size: .95rem;
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding: .65rem .65rem 0 !important;
    gap: .22rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .pgk-moderate-tabs > .nav.nav-tabs .nav-link {
    min-height: 2.25rem;
    padding: .5rem .62rem !important;
    font-size: .84rem;
  }

  body.com_kunena.view-topic.layout-moderate #kunena.layout .kmoderate-topicicons {
    padding-top: .85rem !important;
  }
}

/* pg158: Category topic list with moderation checkboxes.
   Keep selection controls in the final narrow column, consistent with validated topic lists. */
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-inner:has(.ktopic-col-check),
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-inner.pgk-has-check {
  grid-template-columns: minmax(0, 1.54fr) minmax(5.15rem, .20fr) minmax(4.35rem, .16fr) minmax(7.6rem, .46fr) 2.1rem !important;
  gap: .45rem !important;
}

body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-check {
  grid-column: 5 / 6 !important;
  justify-self: end !important;
  align-self: center !important;
}

body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-check label:not(.pgk-topic-check-label) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.72rem !important;
  height: 1.72rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(29, 121, 137, .14) !important;
  border-radius: .52rem !important;
  background: #ffffff !important;
  cursor: pointer !important;
}

body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-check input[type="checkbox"] {
  width: .95rem !important;
  height: .95rem !important;
  margin: 0 !important;
  accent-color: #1d7989 !important;
}

@media (max-width: 991.98px) {
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner:has(.ktopic-col-check),
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner:has(.ktopic-col-check),
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.no-topics .ktopic-inner.pgk-has-check {
    grid-template-columns: minmax(0, 1fr) 2rem !important;
    gap: .28rem .5rem !important;
  }

  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner:has(.ktopic-col-check) .ktopic-col-title,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner:has(.ktopic-col-check) .ktopic-col-replies,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner:has(.ktopic-col-check) .ktopic-col-hits,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner:has(.ktopic-col-check) .ktopic-col-last-reply,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-title,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-replies,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-hits,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-last-reply {
    grid-column: 1 / 2 !important;
  }

  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner:has(.ktopic-col-check) .ktopic-col-check,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-row.category .ktopic-inner.pgk-has-check .ktopic-col-check {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 3 !important;
    align-self: start !important;
    justify-self: end !important;
    width: 1.9rem !important;
    max-width: 1.9rem !important;
  }
}



/* pg160: Bulk moderation controls for topic-list views.
   When a moderator/superuser sees selection checkboxes, the action controls must be visible,
   readable and aligned at the bottom of the list in Recientes, Sin leer, Sin respuestas and Mis temas. */
body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions),
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) {
  display: list-item !important;
  margin-top: .35rem !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-inner,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-inner {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: .65rem !important;
  padding: .78rem 1rem .88rem 1.25rem !important;
  border-top: 1px solid rgba(29, 121, 137, .10) !important;
  background: linear-gradient(135deg, rgba(29, 121, 137, .045), rgba(222, 113, 13, .035)) !important;
  border-radius: 0 0 1rem 1rem !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions {
  grid-column: 2 / 3 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-width: 0 !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions > label,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions > label {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: .5rem !important;
  width: 100% !important;
  margin: 0 !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions select,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions select {
  min-width: min(17rem, 100%) !important;
  max-width: 100% !important;
  min-height: 2.45rem !important;
  padding-top: .45rem !important;
  padding-bottom: .45rem !important;
  color: #25383f !important;
  background-color: #fff !important;
  border-color: rgba(29, 121, 137, .22) !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions .kbutton,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions .kbutton {
  min-height: 2.45rem !important;
  white-space: nowrap !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-inner,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-inner {
    grid-template-columns: 1fr !important;
    padding: .85rem !important;
  }

  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-col-icon,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-row-footer:has(.ktopic-col-actions) .ktopic-col-icon {
    display: none !important;
  }

  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions {
    grid-column: 1 / -1 !important;
    justify-content: stretch !important;
  }

  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions > label,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions > label {
    justify-content: stretch !important;
    align-items: stretch !important;
  }

  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions select,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions select,
  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions .kbutton,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions .kbutton {
    width: 100% !important;
  }
}


/* pg161: Bulk-action select vertical metrics.
   Some browsers render Kunena's custom-select/fbs selects with clipped text when the
   footer action bar is compact. Keep the validated layout, but force a natural line box
   and enough internal room for the selected option text, especially "- Elegir Destino -". */
body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions select,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions select,
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions select {
  display: inline-block !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 2.75rem !important;
  line-height: 1.35 !important;
  padding: .62rem 2.35rem .62rem .78rem !important;
  overflow: visible !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  color: #25383f !important;
  background-color: #ffffff !important;
  background-position: right .75rem center !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions select option,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions select option,
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions select option {
  color: #25383f !important;
  background: #ffffff !important;
  line-height: 1.35 !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions #kchecktarget,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions #kchecktarget,
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions #kchecktarget {
  min-width: min(22rem, 100%) !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions #kchecktask,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions #kchecktask,
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions #kchecktask {
  min-width: min(15rem, 100%) !important;
}

body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions .kbutton,
body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions .kbutton,
body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions .kbutton {
  min-height: 2.75rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions select,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions select,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions select,
  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions #kchecktarget,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions #kchecktarget,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions #kchecktarget,
  body.com_kunena.view-topics #kunena.layout .ktopic-list .ktopic-col-actions #kchecktask,
  body.com_kunena.view-user #kunena.layout .ktopic-list .ktopic-col-actions #kchecktask,
  body.com_kunena.view-category #kunena.layout .ktopic-list .ktopic-col-actions #kchecktask {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* ==========================================================
   PortalGraf KGrid pg169
   Recuperación conservadora de tablas de temas/posts
   Base: pg161 + corrección mínima de alineación.
   Objetivo: eliminar columna fantasma sin remaquetar de forma agresiva.
   ========================================================== */

/* Selector temporal: alineado a la derecha también en rutas directas
   tipo /foro/topics/posts/mode-latest/userid-... */
body.com_kunena #kunena.layout .ktab-heading {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: .85rem 1rem !important;
  flex-wrap: wrap !important;
}

body.com_kunena #kunena.layout .ktab-heading .ktab-title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.com_kunena #kunena.layout .ktab-heading #filter-time,
body.com_kunena #kunena.layout .ktab-heading .filter-time,
body.com_kunena #kunena.layout .topic-list #filter-time,
body.com_kunena #kunena.layout .topic-list .filter-time {
  float: none !important;
  margin-left: auto !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: min(100%, 13rem) !important;
  max-width: 100% !important;
}

body.com_kunena #kunena.layout #filter-time .filter-sel,
body.com_kunena #kunena.layout .filter-time .filter-sel,
body.com_kunena #kunena.layout #filter-time form,
body.com_kunena #kunena.layout .filter-time form {
  float: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: 100% !important;
}

body.com_kunena #kunena.layout #filter-time select,
body.com_kunena #kunena.layout .filter-time select,
body.com_kunena #kunena.layout select#sel.filter {
  min-width: 12.5rem !important;
  max-width: 100% !important;
  min-height: 2.35rem !important;
  line-height: 1.35 !important;
  padding-top: .42rem !important;
  padding-bottom: .42rem !important;
  color: #243940 !important;
  background-color: #fff !important;
}

/* Tabla de temas/posts: volver a un patrón estable de columnas.
   La columna antigua de icono queda fuera del flujo real y no reserva ancho. */
#kunena.layout .kblocktable.ktopic-list .ktopic-col-icon {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-row-head .ktopic-inner,
#kunena.layout .kblocktable.ktopic-list .ktopic-row.category .ktopic-inner,
#kunena.layout .kblocktable.ktopic-list .ktopic-row.no-topics .ktopic-inner {
  display: grid !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Listados sin checkbox: 4 columnas útiles. */
#kunena.layout .kblocktable.ktopic-list .ktopic-inner:not(.pgk-has-check):not(:has(.ktopic-col-check)) {
  grid-template-columns:
    minmax(0, 1.62fr)
    minmax(4.9rem, .22fr)
    minmax(4.25rem, .18fr)
    minmax(8.5rem, .54fr) !important;
  column-gap: .65rem !important;
}

/* Listados con checkbox: 5 columnas útiles, checkbox al extremo derecho. */
#kunena.layout .kblocktable.ktopic-list .ktopic-inner.pgk-has-check,
#kunena.layout .kblocktable.ktopic-list .ktopic-inner:has(.ktopic-col-check) {
  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(4.7rem, .20fr)
    minmax(4.05rem, .16fr)
    minmax(8rem, .50fr)
    minmax(2.15rem, 2.15rem) !important;
  column-gap: .62rem !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-col-title {
  grid-column: 1 !important;
  min-width: 0 !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-col-replies {
  grid-column: 2 !important;
  min-width: 0 !important;
  justify-content: center !important;
  text-align: center !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-col-hits {
  grid-column: 3 !important;
  min-width: 0 !important;
  justify-content: center !important;
  text-align: center !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-col-last-reply {
  grid-column: 4 !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-col-check {
  grid-column: 5 !important;
  justify-self: center !important;
  align-self: center !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

#kunena.layout .kblocktable.ktopic-list .pgk-topic-check-label,
#kunena.layout .kblocktable.ktopic-list .ktopic-col-check label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1.6rem !important;
  height: 1.6rem !important;
  margin: 0 !important;
}

/* Pie de acciones: no reservar la antigua columna izquierda. */
#kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .65rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: .95rem !important;
  padding-right: .95rem !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-col-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .55rem !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

#kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-col-actions select {
  min-height: 2.35rem !important;
  line-height: 1.35 !important;
}

/* Móvil: tarjeta vertical limpia, sin columnas técnicas. */
@media (max-width: 991.98px) {
  body.com_kunena #kunena.layout .ktab-heading {
    align-items: stretch !important;
  }

  body.com_kunena #kunena.layout .ktab-heading #filter-time,
  body.com_kunena #kunena.layout .ktab-heading .filter-time,
  body.com_kunena #kunena.layout .topic-list #filter-time,
  body.com_kunena #kunena.layout .topic-list .filter-time,
  body.com_kunena #kunena.layout #filter-time form,
  body.com_kunena #kunena.layout .filter-time form,
  body.com_kunena #kunena.layout #filter-time select,
  body.com_kunena #kunena.layout .filter-time select {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }

  #kunena.layout .kblocktable.ktopic-list .ktopic-row.category .ktopic-inner,
  #kunena.layout .kblocktable.ktopic-list .ktopic-row.no-topics .ktopic-inner,
  #kunena.layout .kblocktable.ktopic-list .ktopic-inner.pgk-has-check,
  #kunena.layout .kblocktable.ktopic-list .ktopic-inner:has(.ktopic-col-check) {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: .38rem !important;
    column-gap: 0 !important;
  }

  #kunena.layout .kblocktable.ktopic-list .ktopic-col-title,
  #kunena.layout .kblocktable.ktopic-list .ktopic-col-replies,
  #kunena.layout .kblocktable.ktopic-list .ktopic-col-hits,
  #kunena.layout .kblocktable.ktopic-list .ktopic-col-last-reply,
  #kunena.layout .kblocktable.ktopic-list .ktopic-col-check {
    grid-column: 1 !important;
  }

  #kunena.layout .kblocktable.ktopic-list .ktopic-col-check {
    justify-self: flex-start !important;
    margin-top: .25rem !important;
  }

  #kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-col-actions,
  #kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-col-actions select,
  #kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-col-actions .kbutton,
  #kunena.layout .kblocktable.ktopic-list .ktopic-row-footer .ktopic-col-actions input[type="submit"] {
    width: 100% !important;
  }
}


/* ==========================================================
   PortalGraf KGrid pg169
   Ajuste conservador en listados de mensajes directos
   - Mantiene la tabla recuperada de pg167.
   - Separa selector temporal y búsqueda.
   - La búsqueda ocupa todo el ancho útil.
   ========================================================== */
body.com_kunena.view-topics.layout-posts #kunena.layout .ktab-heading {
  margin-bottom: .85rem !important;
}

body.com_kunena.view-topics.layout-posts #kunena.layout .ktab-heading #filter-time,
body.com_kunena.view-topics.layout-posts #kunena.layout .ktab-heading .filter-time {
  margin-left: auto !important;
}

body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top {
  clear: both !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  float: none !important;
}

body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top .ktopic-search,
body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top .kunena-search,
body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top .kunena-search form,
body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top .kunena-search .input-group {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top .kunena-search input[type="search"],
body.com_kunena.view-topics.layout-posts #kunena.layout .kaction-wrap-top .kunena-search .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

@media (max-width: 991.98px) {
  body.com_kunena.view-topics.layout-posts #kunena.layout .ktab-heading {
    gap: .7rem !important;
  }

  body.com_kunena.view-topics.layout-posts #kunena.layout .ktab-heading #filter-time,
  body.com_kunena.view-topics.layout-posts #kunena.layout .ktab-heading .filter-time {
    width: 100% !important;
  }
}

/* ============================================================
   PortalGraf KGrid pg169
   Unified headers for topic/message listing views
   Scope: view-topics only. Does not modify topic tables.
   ============================================================ */
body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading,
body.com_kunena.view-topics #kunena.layout > .ktab-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin: 0 0 1.1rem;
    padding: 1.05rem 1.2rem;
    border: 0;
    border-left: 6px solid #de710d;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(23, 107, 120, .98) 0%, rgba(29, 121, 137, .96) 54%, rgba(189, 90, 13, .9) 100%);
    box-shadow: 0 12px 28px rgba(20, 70, 78, .12);
    color: #fff;
    overflow: visible;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading::before,
body.com_kunena.view-topics #kunena.layout > .ktab-heading::before,
body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading::after,
body.com_kunena.view-topics #kunena.layout > .ktab-heading::after {
    content: none !important;
    display: none !important;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .kpage-title,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .ktab-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.015em;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .kpage-title small,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .ktab-title .kbadge,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .ktab-title .kbadge-success {
    display: inline-flex;
    align-items: center;
    margin-left: .45rem;
    padding: .16rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .24);
    font-size: .82rem;
    line-height: 1.25;
    font-weight: 700;
    vertical-align: middle;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading #filter-time,
body.com_kunena.view-topics #kunena.layout > .ktab-heading #filter-time,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-time {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
    float: none !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: min(18rem, 44%);
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .filter-sel,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-sel {
    float: none !important;
    width: auto;
    max-width: 100%;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .filter-sel form,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-sel form {
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading select,
body.com_kunena.view-topics #kunena.layout > .ktab-heading select {
    width: auto;
    min-width: 12.5rem;
    max-width: 100%;
    min-height: 2.45rem;
    padding-top: .42rem;
    padding-bottom: .42rem;
    padding-left: .75rem;
    padding-right: 2.25rem;
    line-height: 1.35;
    color: #24363b;
    background-color: #fff;
    border-color: rgba(255, 255, 255, .52);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

body.com_kunena.view-topics #kunena.layout > .topic-list + div,
body.com_kunena.view-topics #kunena.layout > .ktab-heading + .kaction-wrap-top {
    margin-top: .75rem;
}

body.com_kunena.view-topics #kunena.layout > .ktab-heading + .kaction-wrap-top {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading,
    body.com_kunena.view-topics #kunena.layout > .ktab-heading {
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
        padding: 1rem;
        border-left-width: 4px;
    }

    body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading #filter-time,
    body.com_kunena.view-topics #kunena.layout > .ktab-heading #filter-time,
    body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-time,
    body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .filter-sel,
    body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-sel,
    body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .filter-sel form,
    body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-sel form {
        width: 100%;
        min-width: 0;
        justify-content: stretch;
    }

    body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading select,
    body.com_kunena.view-topics #kunena.layout > .ktab-heading select {
        width: 100%;
        min-width: 0;
    }
}

/* ============================================================
   PortalGraf KGrid pg171
   Selector temporal fuera de la cabecera visual
   Scope: listados view-topics / topic-list / layout-posts.
   Mantiene las tablas recuperadas; no modifica columnas.
   ============================================================ */
body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading,
body.com_kunena.view-topics #kunena.layout > .ktab-heading {
  align-items: center !important;
}

body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading #filter-time,
body.com_kunena.view-topics #kunena.layout > .topic-list > .kpage-heading .filter-time,
body.com_kunena.view-topics #kunena.layout > .ktab-heading #filter-time,
body.com_kunena.view-topics #kunena.layout > .ktab-heading .filter-time {
  display: none !important;
}

body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: -.35rem 0 1rem !important;
  padding: 0 !important;
  float: none !important;
  clear: both !important;
}

body.com_kunena.view-topics #kunena.layout .topic-list .pgk-topic-timefilter-toolbar {
  margin-top: -.2rem !important;
}

body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar #filter-time,
body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .filter-time,
body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .filter-sel,
body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar form {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar select,
body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar select#sel,
body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .form-control,
body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .form-select {
  width: auto !important;
  min-width: 12.5rem !important;
  max-width: 100% !important;
  min-height: 2.4rem !important;
  line-height: 1.35 !important;
  padding: .42rem 2.25rem .42rem .75rem !important;
  color: #24363b !important;
  background-color: #fff !important;
  border-color: rgba(29, 121, 137, .24) !important;
  border-radius: .65rem !important;
  box-shadow: 0 4px 12px rgba(20, 70, 78, .08) !important;
}

body.com_kunena.view-topics.layout-posts #kunena.layout .pgk-topic-timefilter-toolbar + .kaction-wrap-top {
  margin-top: 0 !important;
}

@media (max-width: 767.98px) {
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar #filter-time,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .filter-time,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .filter-sel,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar form,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar select,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar select#sel,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .form-control,
  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar .form-select {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }

  body.com_kunena.view-topics #kunena.layout .pgk-topic-timefilter-toolbar {
    margin: -.15rem 0 .9rem !important;
  }
}
