/* Botoncito de ayuda y popover de los campos de préstamos (View/Elements/loans/info_popover.ctp) */
.lip-btn {
	display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
	height: 22px; margin: 0 0 0 6px; padding: 0 9px 0 3px;
	border: 1px solid #c7d2fe; border-radius: 999px; background: #eef2ff;
	color: #3730a3; font: 600 11.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: 0; text-transform: none; vertical-align: middle; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.lip-btn:hover, .lip-btn.is-open { background: #e0e7ff; border-color: #a5b4fc; box-shadow: 0 2px 8px -4px rgba(55, 48, 163, .5); }
.lip-btn:focus { outline: none; }
.lip-btn:focus-visible { outline: 2px solid #4f46e5; outline-offset: 2px; }
.lip-btn-q {
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: 11px; font-weight: 700;
}

.lip-pop {
	position: fixed; z-index: 2000; left: 0; top: 0; width: 360px; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; color: #0f172a;
	box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06);
	font: 400 13.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: left; animation: lip-in .14s ease-out;
}
.lip-pop[hidden] { display: none; }
@keyframes lip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lip-pop *, .lip-pop *::before, .lip-pop *::after { box-sizing: border-box; }
.lip-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; background: #fff; border-radius: 16px 16px 0 0; }
.lip-head b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.lip-close {
	flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f1f5f9;
	color: #475569; font-size: 18px; line-height: 1; cursor: pointer;
}
.lip-close:hover { background: #e2e8f0; color: #0f172a; }
.lip-body { padding: 0 16px 14px; }
.lip-body p { margin: 0 0 10px; color: #334155; }
.lip-list { margin: 0 0 10px; padding-left: 18px; color: #334155; }
.lip-list li { margin-bottom: 3px; }
.lip-types { list-style: none; margin: 0 0 12px; padding: 0; }
.lip-types li { display: block; padding: 8px 0 8px 12px; border-left: 3px solid #c7d2fe; margin-bottom: 6px; }
.lip-types b { display: block; font-size: 13px; color: #0f172a; }
.lip-types span { display: block; font-size: 12.5px; color: #475569; }
.lip-example { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #f5f7ff; color: #1e293b; font-size: 12.5px; }
.lip-example-title { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #4f46e5; }
.lip-example table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lip-example th { padding: 3px 4px; font-size: 10.5px; font-weight: 600; color: #64748b; text-align: left; text-transform: uppercase; }
.lip-example td { padding: 4px; border-top: 1px solid #e0e7ff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lip-example td:first-child { font-weight: 600; white-space: normal; }
.lip-example th:last-child, .lip-example td:last-child { text-align: right; }
.lip-note { font-size: 12px; color: #64748b !important; margin-bottom: 0 !important; }

/* en las etiquetas del formulario de préstamos (.lf-label es flex) el botón va al final de la fila */
.lf-label .lip-btn { margin-left: 4px; }
@media print { .lip-btn, .lip-pop { display: none !important; } }
