  .bd-placeholder-img {
	font-size: 1.125rem;
	text-anchor: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
  }

  @media (min-width: 768px) {
	.bd-placeholder-img-lg {
	  font-size: 3.5rem;
	}
  }

  .b-example-divider {
	width: 100%;
	height: 3rem;
	background-color: rgba(0, 0, 0, .1);
	border: solid rgba(0, 0, 0, .15);
	border-width: 1px 0;
	box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
  }

  .b-example-vr {
	flex-shrink: 0;
	width: 1.5rem;
	height: 100vh;
  }

  .bi {
	vertical-align: -.125em;
	fill: currentColor;
  }

  .nav-scroller {
	position: relative;
	z-index: 2;
	height: 2.75rem;
	overflow-y: hidden;
  }

  .nav-scroller .nav {
	display: flex;
	flex-wrap: nowrap;
	padding-bottom: 1rem;
	margin-top: -1px;
	overflow-x: auto;
	text-align: center;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
  }

  .btn-bd-primary {
	--bd-violet-bg: #712cf9;
	--bd-violet-rgb: 112.520718, 44.062154, 249.437846;

	--bs-btn-font-weight: 600;
	--bs-btn-color: var(--bs-white);
	--bs-btn-bg: var(--bd-violet-bg);
	--bs-btn-border-color: var(--bd-violet-bg);
	--bs-btn-hover-color: var(--bs-white);
	--bs-btn-hover-bg: #6528e0;
	--bs-btn-hover-border-color: #6528e0;
	--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
	--bs-btn-active-color: var(--bs-btn-hover-color);
	--bs-btn-active-bg: #5a23c8;
	--bs-btn-active-border-color: #5a23c8;
  }

  .bd-mode-toggle {
	z-index: 1500;
  }

  .bd-mode-toggle .dropdown-menu .active .bi {
	display: block !important;
  }
  
  .error { color: #FF0000; }
  
  
	.fixed-modal-btn {
		position: fixed;
		right: 30px;
		bottom: 30px;
		z-index: 2000;
		background: #2980b9;
		color: #fff;
		border: none;
		border-radius: 50px;
		padding: 16px 28px;
		font-size: 18px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.2);
		cursor: pointer;
		transition: background 0.2s;
	}
	.fixed-modal-btn:hover {
		background: #1a5276;
	}
	body { font-family: Arial, sans-serif; }
	#main-container .modal {
		display: none;
		position: fixed;
		z-index: 1000;
		left: 0; top: 0; width: 100vw; height: 100vh;
		background: rgba(0,0,0,0.5);
		justify-content: center;
		align-items: center;
	}
	#main-container .modal-content {
		background: #fff;
		padding: 20px;
		border-radius: 8px;
		width: 900px;
		max-width: 900px;
		min-width: 900px;
		box-sizing: border-box;
	}
	#main-container .toolbar button {
		margin-right: 5px;
		padding: 5px 10px;
	}
	#main-container #editor {
		border: 1px solid #ccc;
		height: 500px;
		width: 840px;
		overflow-y: auto;
		overflow-x: auto;
		padding: 20px;
		margin-top: 10px;
		margin-bottom: 10px;
		font-size: 16px;
		resize: none;
		box-sizing: border-box;
	}
	#main-container .modal-header {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	#main-container .close {
		cursor: pointer;
		font-size: 22px;
		margin-left: auto;
	}

	/* Quitar líneas horizontales automáticas debajo del header de la modal */
	#main-container .modal-header, #main-container .modal-header * {
		border-bottom: none !important;
	}

.status-pill {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 10px;
  font: 700 15px/1.25 "Segoe UI", Tahoma, Arial, sans-serif;
  color: #1f2937;
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 0 0 0 rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 6px;
  min-width: 220px;
  animation: statusPulse 2.2s ease-in-out infinite;
  transition: opacity 0.25s ease; /* suave */
   box-sizing: border-box;
  max-width: calc(100vw - 36px); /* 18px a cada lado */
  width: max-content; 
}

@media (max-width: 480px) {
  .status-pill {
    width: 100%;
  }
}

.status-pill.is-top {
  opacity: 0.6;
}

.status-ok {
  background: #C6EFCE;
  border-color: #2e7d32;
}

.status-no {
  background: #FFC7CE;
  border-color: #b71c1c;
}

.status-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.status-id {
  font-size: 13px;
  opacity: 0.9;
}

.status-text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
	
@keyframes statusPulse {
  0% {
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.18),
      0 0 0 0 rgba(46, 125, 50, 0.35);
  }
  70% {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.2),
      0 0 0 10px rgba(46, 125, 50, 0);
  }
  100% {
    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.18),
      0 0 0 0 rgba(46, 125, 50, 0);
  }
}