:root {
	/* DNA WorkToCloud (navy/blue) + identidad Verifactu (teal fiscal) */
	--ink: #0f2942;
	--muted: #5a6f85;
	--paper: #eef4f8;
	--sand: #dce6ef;
	--navy: #051833;
	--wtc-blue: #0f71ba;
	--wtc-blue-deep: #15499f;
	--teal: #0d7377;
	--teal-deep: #094d52;
	--accent: #b45309;
	--ok: #0f766e;
	--err: #b91c1c;
	--line: rgba(15, 41, 66, 0.12);
	--shadow: 0 18px 48px rgba(5, 24, 51, 0.10);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
	--surface: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--paper);
	line-height: 1.45;
}

.vf-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1100px 560px at 8% -8%, rgba(15, 113, 186, 0.16), transparent 58%),
		radial-gradient(900px 480px at 100% 0%, rgba(13, 115, 119, 0.18), transparent 55%),
		linear-gradient(165deg, #f5f9fc 0%, #e8eef5 46%, #e2ecec 100%);
}
.vf-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23051233' stroke-opacity='.035'/%3E%3C/svg%3E");
	opacity: 0.85;
}

.vf-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 6vw;
	border-bottom: 1px solid rgba(15, 41, 66, 0.08);
	background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 100%);
	backdrop-filter: blur(10px);
}
.vf-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: inherit;
}
.vf-brand-logo {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 0.65rem;
	box-shadow: 0 2px 10px rgba(5, 24, 51, 0.12);
	background: #fff;
}
.vf-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	gap: 0.1rem;
}
.vf-brand-product {
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	color: var(--navy);
}
.vf-brand-by {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wtc-blue);
}
.vf-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 2.4rem; height: 2.4rem;
	border-radius: 0.55rem;
	background: var(--navy);
	color: #f5f9fc;
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}
.vf-brand-name { font-weight: 600; letter-spacing: 0.01em; }
.vf-brand-name em { font-style: normal; color: var(--teal); font-weight: 500; }
.vf-nav { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; }
.vf-nav a, .vf-link {
	color: var(--muted);
	text-decoration: none;
	background: none;
	border: 0;
	font: inherit;
	cursor: pointer;
}
.vf-nav a:hover, .vf-link:hover { color: var(--wtc-blue-deep); }
.vf-nav-pro-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 0;
	padding: 0.35rem 0.75rem 0.35rem 0.45rem;
	border-radius: 999px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #0f766e 0%, #1e3a5f 100%);
	box-shadow: 0 2px 10px rgba(15, 118, 110, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.vf-nav-pro-pill:hover,
.vf-nav-pro-pill:focus-visible {
	filter: brightness(1.06);
	box-shadow: 0 4px 14px rgba(15, 118, 110, 0.38);
	outline: none;
	transform: translateY(-1px);
}
.vf-nav-pro-pill-ico {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	position: relative;
	flex: 0 0 auto;
}
.vf-nav-pro-pill-ico::after,
.vf-alert-pill-plus .vf-alert-pill-ico::after {
	content: '';
	position: absolute;
	inset: 18%;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23fff' d='M12 2.2l1.55 7.05L20.7 10.8l-7.15 1.55L12 19.4l-1.55-7.05L3.3 10.8l7.15-1.55L12 2.2z'/%3E%3Cpath fill='%23fff' d='M18.8 3.4l.55 2.5 2.5.55-2.5.55-.55 2.5-.55-2.5-2.5-.55 2.5-.55.55-2.5z'/%3E%3C/svg%3E");
}
.vf-lang { position: relative; }
.vf-lang-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.55rem;
	border: 1px solid rgba(15, 41, 66, 0.14);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: 0.04em;
}
.vf-lang-btn:hover,
.vf-lang-btn[aria-expanded="true"] {
	border-color: rgba(15, 113, 186, 0.45);
}
.vf-lang-flag {
	display: block;
	width: 20px;
	height: 15px;
	object-fit: contain;
	object-position: center;
	background: #eee;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}
.vf-lang-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: 40;
	min-width: 11rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(15, 41, 66, 0.12);
	border-radius: 0.65rem;
	box-shadow: 0 10px 28px rgba(5, 24, 51, 0.12);
}
.vf-lang-menu[hidden] { display: none !important; }
.vf-lang-option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.45rem 0.55rem;
	border: 0;
	border-radius: 0.45rem;
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 0.88rem;
	color: var(--ink);
	text-align: left;
}
.vf-lang-option:hover,
.vf-lang-option.is-active { background: rgba(15, 113, 186, 0.08); }
html[dir="rtl"] .vf-lang-menu { right: auto; left: 0; }
html[dir="rtl"] .vf-lang-option { text-align: right; }

.vf-main {
	width: min(920px, 92vw);
	margin: 0 auto 4rem;
	padding-top: 1rem;
}

/* El display de .vf-hero anula el [hidden] del navegador si no se fuerza */
.vf-hero[hidden],
.vf-panel[hidden],
.vf-dash[hidden],
.vf-tabpanel[hidden],
.vf-helppanel[hidden],
[hidden] {
	display: none !important;
}
body.is-authed .vf-hero {
	display: none !important;
}

.vf-hero {
	min-height: calc(100vh - 8rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 0 4rem;
	animation: rise 0.7s ease both;
}
.vf-kicker {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	color: var(--teal);
	margin: 0 0 1rem;
	font-weight: 600;
}
.vf-hero h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.4rem, 6vw, 4rem);
	line-height: 1.05;
	margin: 0 0 1rem;
	max-width: 14ch;
	color: var(--navy);
}
.vf-lead {
	max-width: 38rem;
	font-size: 1.125rem;
	color: var(--muted);
	margin: 0 0 2rem;
}
.vf-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.vf-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 1.15rem;
	padding: 1.75rem;
	box-shadow: var(--shadow);
	animation: rise 0.45s ease both;
}
.vf-panel h2 {
	font-family: var(--font-display);
	margin: 0 0 0.5rem;
	font-size: 1.8rem;
}
.vf-hint { color: var(--muted); margin: 0 0 1.25rem; }
.vf-form { display: grid; gap: 0.9rem; }
.vf-form label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
}
.vf-form input[type="text"],
.vf-form input[type="email"],
.vf-form input[type="password"],
.vf-form input[type="file"],
.vf-form textarea {
	font: inherit;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--ink);
}
.vf-form textarea {
	resize: vertical;
	min-height: 4rem;
	width: 100%;
	box-sizing: border-box;
}
.vf-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
}
.vf-span2 { grid-column: 1 / -1; }
@media (max-width: 700px) {
	.vf-grid2 { grid-template-columns: 1fr; }
	.vf-span2 { grid-column: auto; }
}

.vf-btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.35rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.vf-btn:hover { transform: translateY(-1px); }
.vf-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.vf-btn-primary { background: var(--teal); color: #fff; }
.vf-btn-primary:hover { background: var(--teal-deep); }

.vf-error { color: var(--err); margin: 0; }
.vf-error-pill {
	justify-self: center;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 0.35rem;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(161, 45, 45, 0.35);
	background: rgba(161, 45, 45, 0.1);
	color: var(--err);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}
.vf-ok { color: var(--ok); margin: 0; }

.vf-dash-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.25rem;
}
.vf-badge {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(196, 92, 38, 0.15);
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.vf-badge.is-prod {
	background: rgba(31, 122, 76, 0.15);
	color: var(--ok);
}
.vf-card {
	border-top: 1px solid var(--line);
	padding: 1.25rem 0;
}
.vf-card h3 {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
}
.vf-appid {
	display: block;
	word-break: break-all;
	background: #fff;
	border: 1px dashed var(--line);
	padding: 0.85rem;
	border-radius: 0.65rem;
	font-size: 0.85rem;
}
.vf-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
.vf-checklist li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.65rem 0.75rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
}
.vf-checklist .dot {
	width: 0.7rem; height: 0.7rem;
	border-radius: 50%;
	background: #b7c2ce;
	flex: 0 0 auto;
}
.vf-checklist li.done .dot { background: var(--ok); }
.vf-checklist li { justify-content: space-between; }
.vf-checklist li > span:first-of-type,
.vf-checklist li { flex-wrap: wrap; }
.vf-checklist button[data-demo] {
	margin-left: auto;
	border: 1px solid var(--line);
	background: var(--sand);
	border-radius: 999px;
	padding: 0.35rem 0.8rem;
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}
.vf-checklist li.done button[data-demo],
.vf-checklist li.is-done button[data-demo] { display: none; }

.vf-dash { max-width: none; }
.vf-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
	border-bottom: 1px solid var(--line);
	padding-bottom: 0.75rem;
}
.vf-tabs button {
	appearance: none;
	border: 1px solid transparent;
	background: transparent;
	font: inherit;
	font-weight: 600;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
	color: var(--muted);
}
.vf-tabs button.is-active {
	background: var(--navy);
	color: #fff;
}
.vf-subtabs {
	margin-top: 0.25rem;
	border-bottom-color: rgba(15, 41, 66, 0.12);
}
.vf-subtabs button {
	font-size: 0.92rem;
	padding: 0.4rem 0.75rem;
}
.vf-subtabs button.is-active {
	background: rgba(13, 115, 119, 0.12);
	color: var(--teal-deep);
	border-color: rgba(13, 115, 119, 0.22);
}
.vf-help-card h3 { margin-top: 0; }
.vf-help-lead {
	font-size: 1rem;
	line-height: 1.55;
	color: #2a3f38;
	margin: 0 0 1.25rem;
}
.vf-help-type {
	padding: 1rem 0;
	border-top: 1px solid rgba(20, 60, 50, 0.1);
}
.vf-help-type:first-of-type { border-top: 0; padding-top: 0; }
.vf-help-type h4 {
	margin: 0 0 0.45rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.05rem;
}
.vf-help-code {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	background: rgba(26, 92, 74, 0.12);
	color: #145c4a;
}
.vf-help-type p { margin: 0.35rem 0; line-height: 1.5; color: #243832; }
.vf-help-ex {
	background: rgba(255, 255, 255, 0.65);
	border-left: 3px solid rgba(26, 92, 74, 0.45);
	padding: 0.55rem 0.75rem;
	border-radius: 0 0.4rem 0.4rem 0;
	font-size: 0.92rem;
}
.vf-help-note {
	margin-top: 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 0.65rem;
	background: rgba(26, 92, 74, 0.08);
	border: 1px solid rgba(26, 92, 74, 0.14);
}
.vf-help-note ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.vf-help-note li { margin: 0.25rem 0; line-height: 1.4; }
.vf-faq-group {
	margin: 0 0 1.5rem;
	padding-top: 0.35rem;
}
.vf-faq-group h4 {
	margin: 0 0 0.65rem;
	font-size: 1.02rem;
	color: #145c4a;
}
.vf-faq {
	border: 1px solid rgba(20, 60, 50, 0.12);
	border-radius: 0.65rem;
	background: #fff;
	margin: 0 0 0.5rem;
	padding: 0;
	overflow: hidden;
}
.vf-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 0.75rem 0.95rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: #1a2e28;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}
.vf-faq summary::-webkit-details-marker { display: none; }
.vf-faq summary::after {
	content: '+';
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(26, 92, 74, 0.1);
	color: #145c4a;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
}
.vf-faq[open] summary::after { content: '?'; }
.vf-faq[open] summary {
	border-bottom: 1px solid rgba(20, 60, 50, 0.1);
	background: rgba(26, 92, 74, 0.04);
}
.vf-faq p,
.vf-faq ul {
	margin: 0.65rem 0.95rem 0.85rem;
	line-height: 1.5;
	color: #243832;
	font-size: 0.92rem;
}
.vf-faq ul { padding-left: 1.2rem; }
.vf-faq li { margin: 0.3rem 0; }
.vf-faq-search {
	display: grid;
	gap: 0.35rem;
	margin: 0 0 1.1rem;
	font-weight: 500;
}
.vf-faq-search input[type="search"] {
	font: inherit;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--ink);
	width: 100%;
	box-sizing: border-box;
}
.vf-faq-search input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
}
.vf-faq-empty {
	margin: 0 0 0.85rem;
}
.vf-faq-group.is-faq-empty {
	display: none;
}
.vf-faq-disclaimer {
	margin: 1.5rem 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(20, 60, 50, 0.12);
	font-size: 0.72rem;
	line-height: 1.45;
	color: #5a6e67;
	text-align: justify;
}
.vf-faq-disclaimer sup {
	font-size: 0.65rem;
	margin-right: 0.15rem;
}
.vf-help-pre {
	margin: 0.5rem 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 0.55rem;
	background: #1a2e28;
	color: #e8f4ef;
	font-size: 0.82rem;
	line-height: 1.45;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
}
.vf-mini-label {
	margin: 0.85rem 0 0.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #5a6e67;
}
.vf-help-table code { font-size: 0.82rem; }
.vf-sdk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.75rem;
	margin: 0.75rem 0 0.25rem;
}
.vf-sdk-card {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 0.95rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(26, 92, 74, 0.18);
	background: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.vf-sdk-card:hover {
	border-color: var(--teal);
	transform: translateY(-1px);
}
.vf-sdk-card strong { color: #145c4a; }
.vf-sdk-card span { font-size: 0.8rem; color: var(--muted); }

.vf-api-global {
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.55rem;
	background: rgba(26, 92, 74, 0.07);
	border: 1px solid rgba(26, 92, 74, 0.14);
	font-size: 0.88rem;
}
.vf-api-global summary {
	cursor: pointer;
	font-weight: 600;
	color: #145c4a;
}
.vf-api-global ul {
	margin: 0.55rem 0 0;
	padding-left: 1.1rem;
}
.vf-api-global li { margin: 0.2rem 0; line-height: 1.35; }
.vf-api-list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0 0 1rem;
}
.vf-api-row {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-radius: 0.65rem;
}
.vf-api-row.is-open .vf-api-item {
	border-color: var(--teal);
	background: #fff;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.vf-api-item {
	appearance: none;
	width: 100%;
	text-align: left;
	border: 1px solid rgba(26, 92, 74, 0.16);
	background: rgba(255, 255, 255, 0.78);
	border-radius: 0.65rem;
	padding: 0.7rem 0.85rem;
	cursor: pointer;
	font: inherit;
	color: inherit;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.35rem 0.75rem;
	align-items: baseline;
	transition: border-color 0.15s ease, background 0.15s ease, border-radius 0.15s ease;
}
.vf-api-item:hover,
.vf-api-item.is-open {
	border-color: var(--teal);
	background: #fff;
}
.vf-api-chevron {
	grid-column: 3;
	grid-row: 1 / span 2;
	align-self: center;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid #5a6e67;
	border-bottom: 2px solid #5a6e67;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-right: 0.15rem;
}
.vf-api-row.is-open .vf-api-chevron {
	transform: rotate(-135deg);
	margin-top: 0.2rem;
}
.vf-api-method {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.18rem 0.45rem;
	border-radius: 0.35rem;
	color: #fff;
	background: #5a6e67;
}
.vf-api-method.get { background: #1a7a5c; }
.vf-api-method.post { background: #1a5c8a; }
.vf-api-method.put { background: #8a5a1a; }
.vf-api-path {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88rem;
	font-weight: 600;
	color: #1a2e28;
	word-break: break-all;
}
.vf-api-item-title {
	grid-column: 1 / 3;
	font-size: 0.86rem;
	color: #5a6e67;
}
.vf-api-detail {
	margin: 0 0 1.25rem;
	padding: 1rem 1.05rem 1.15rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(26, 92, 74, 0.2);
	background: linear-gradient(165deg, rgba(232, 244, 239, 0.9), #fff 55%);
}
.vf-api-detail.vf-api-accordion {
	margin: 0;
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-color: var(--teal);
}
.vf-api-detail.vf-api-accordion[hidden] {
	display: none !important;
}
.vf-api-detail h5 {
	margin: 1rem 0 0.4rem;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6e67;
}
.vf-api-detail h5:first-of-type { margin-top: 0.35rem; }
.vf-api-detail-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.35rem;
}
.vf-api-detail-head .vf-api-path { font-size: 1rem; }
.vf-api-detail p { margin: 0.25rem 0 0.5rem; line-height: 1.45; }
.vf-api-params {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin: 0.25rem 0 0.5rem;
}
.vf-api-params th,
.vf-api-params td {
	text-align: left;
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid rgba(20, 60, 50, 0.1);
	vertical-align: top;
}
.vf-api-params th {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5a6e67;
	font-weight: 600;
}
.vf-api-params code { font-size: 0.82rem; }
.vf-api-empty { color: #5a6e67; font-size: 0.88rem; margin: 0.2rem 0; }
.vf-api-errors {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
}
.vf-api-errors li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.55rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(20, 60, 50, 0.08);
	font-size: 0.88rem;
	line-height: 1.35;
}
.vf-api-errcode {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #8a2a2a;
	min-width: 2.2rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82rem;
}
.vf-api-errhttp {
	font-size: 0.75rem;
	color: #5a6e67;
	font-weight: 600;
}

.vf-play-banner {
	margin: 0 0 1rem;
	padding: 0.65rem 0.85rem;
	border-radius: 0.55rem;
	background: rgba(138, 90, 26, 0.12);
	border: 1px solid rgba(138, 90, 26, 0.28);
	color: #5a3a10;
	font-size: 0.9rem;
	font-weight: 600;
}
.vf-play-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1rem;
	margin-bottom: 0.85rem;
	align-items: start;
}
.vf-play-form label {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #5a6e67;
	min-width: 0;
}
.vf-play-form label[hidden] { display: none !important; }
.vf-play-form .vf-span2 { grid-column: 1 / -1; }
.vf-play-form select,
.vf-play-form input,
.vf-play-form textarea {
	font: inherit;
	font-weight: 500;
	color: #1a2e28;
	padding: 0.5rem 0.65rem;
	border-radius: 0.45rem;
	border: 1px solid rgba(20, 60, 50, 0.2);
	background: #fff;
}
.vf-play-form textarea {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82rem;
	line-height: 1.4;
	resize: vertical;
	min-height: 8rem;
}
.vf-play-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 1rem;
}
.vf-play-outh {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6e67;
}
.vf-play-out {
	min-height: 6rem;
	max-height: 22rem;
	overflow: auto;
}
.vf-play-media {
	margin-top: 0.75rem;
	padding: 0.85rem;
	border-radius: 0.55rem;
	border: 1px solid rgba(26, 92, 74, 0.18);
	background: #fff;
	text-align: center;
}
.vf-play-media img {
	display: inline-block;
	max-width: 220px;
	height: auto;
	image-rendering: pixelated;
}
@media (max-width: 720px) {
	.vf-play-form { grid-template-columns: 1fr; }
}
.vf-form-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: end;
	margin-bottom: 1rem;
}
.vf-form-inline label { flex: 1 1 220px; }
.vf-mode-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}
.vf-radio { font-weight: 500; display: inline-flex; gap: 0.4rem; align-items: center; }
.vf-table-wrap {
	margin-top: 0.75rem;
	overflow: visible;
}
.vf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.vf-table th, .vf-table td {
	border-bottom: 1px solid var(--line);
	padding: 0.55rem 0.4rem;
	text-align: left;
	vertical-align: top;
}
.vf-table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.vf-pill {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	background: #ebe4d6;
}
.vf-pill.ok { background: rgba(31,122,76,.15); color: var(--ok); }
.vf-pill.err { background: rgba(161,45,45,.12); color: var(--err); }
.vf-pill.wait { background: rgba(196,92,38,.12); color: var(--accent); }
.vf-pill.off { background: #ddd; color: #666; }
.vf-app-row { cursor: pointer; }
.vf-app-row:hover td { background: rgba(15, 107, 99, 0.06); }
.vf-app-settings { display: grid; gap: 1.25rem; margin-top: 1rem; }
.vf-setting-block h4 {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}
.vf-origins {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
.vf-origins > li {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	padding: 0.65rem 0.75rem;
}
.vf-origin-top {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.vf-origin-actions { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.vf-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	margin: 0.75rem 0;
}
.vf-switch-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.vf-switch-side {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--muted);
	min-width: 3.5rem;
}
.vf-switch-side.is-active { color: var(--ink); }
.vf-switch {
	position: relative;
	display: inline-flex;
	cursor: pointer;
	user-select: none;
}
.vf-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.vf-switch-track {
	display: block;
	width: 3.2rem;
	height: 1.7rem;
	border-radius: 999px;
	background: #b7c2ce;
	border: 1px solid var(--line);
	transition: background 0.2s ease;
	position: relative;
}
.vf-switch-knob {
	position: absolute;
	top: 0.15rem;
	left: 0.15rem;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(14, 26, 31, 0.25);
	transition: transform 0.2s ease;
}
.vf-switch input:checked + .vf-switch-track {
	background: var(--teal);
	border-color: var(--teal-deep);
}
.vf-switch input:checked + .vf-switch-track .vf-switch-knob {
	transform: translateX(1.45rem);
}
.vf-switch input:disabled + .vf-switch-track {
	opacity: 0.45;
	cursor: not-allowed;
}
.vf-switch input:focus-visible + .vf-switch-track {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}
.vf-modal[hidden] { display: none !important; }
.vf-modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 1rem;
}
.vf-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 26, 31, 0.45);
}
.vf-modal-card {
	position: relative;
	width: min(520px, 94vw);
	background: #fff;
	border-radius: 1rem;
	padding: 1.25rem 1.35rem;
	box-shadow: var(--shadow);
}
.vf-modal-card h3 { margin: 0 0 0.5rem; }
.vf-modal-steps {
	margin: 0.75rem 0 1rem;
	padding-left: 1.2rem;
	display: grid;
	gap: 0.85rem;
}
.vf-modal-steps p { margin: 0.35rem 0; color: var(--muted); font-size: 0.92rem; }
.vf-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: flex-end;
	margin-top: 1rem;
}
.vf-modal-card-wide {
	width: min(720px, 96vw);
	max-height: 90vh;
	overflow: auto;
}
.vf-modal-card-plans {
	width: min(860px, 96vw);
	max-height: min(92vh, 900px);
	overflow: auto;
}
.vf-plans-lead {
	margin: 0.35rem 0 0;
	max-width: 36rem;
}
.vf-plans {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1rem 0 0.75rem;
}
@media (max-width: 720px) {
	.vf-plans { grid-template-columns: 1fr; }
}
.vf-plan-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.1rem 1.15rem 1.15rem;
	border-radius: 1rem;
	border: 1px solid rgba(15, 41, 66, 0.1);
	background: #f8fafb;
}
.vf-plan-card-base {
	background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
}
.vf-plan-card-pro {
	position: relative;
	border-color: transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(145deg, #0f766e 0%, #1e3a5f 55%, #0ea5a0 100%) border-box;
	border: 2px solid transparent;
	box-shadow: 0 10px 28px rgba(15, 118, 110, 0.16);
	transform: translateY(-2px);
}
.vf-plan-head h4 {
	margin: 0.35rem 0 0.2rem;
	font-size: 1.2rem;
	color: var(--navy, #0f2942);
}
.vf-plan-tagline {
	margin: 0;
	font-size: 0.86rem;
	color: var(--muted);
	line-height: 1.35;
}
.vf-plan-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(15, 41, 66, 0.08);
	color: var(--muted);
}
.vf-plan-badge-pro {
	background: linear-gradient(135deg, #0f766e, #1e3a5f);
	color: #fff;
	box-shadow: 0 2px 8px rgba(15, 118, 110, 0.28);
}
.vf-plan-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.45rem;
	padding: 0.55rem 0.65rem;
	border-radius: 0.75rem;
	background: rgba(15, 41, 66, 0.04);
}
.vf-plan-price-pro {
	background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(30, 58, 95, 0.08));
}
.vf-plan-amount-wrap {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.12rem;
	line-height: 1;
}
.vf-plan-currency {
	font-size: 1rem;
	font-weight: 700;
	color: #0f766e;
	margin-top: 0.35rem;
}
.vf-plan-amount {
	font-size: 2.15rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--navy, #0f2942);
}
.vf-plan-price-pro .vf-plan-amount {
	color: #0f766e;
	font-size: 2.55rem;
}
.vf-plan-period {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--muted);
}
.vf-plan-vat {
	width: 100%;
	font-size: 0.75rem;
	color: var(--muted);
}
.vf-plan-feats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	flex: 1;
}
.vf-plan-feats li {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--text, #1a2b2a);
}
.vf-plan-feats li.is-pro {
	font-weight: 600;
}
.vf-plan-check {
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.12rem;
	border-radius: 50%;
	background: rgba(15, 118, 110, 0.12);
	position: relative;
}
.vf-plan-check::after {
	content: '';
	position: absolute;
	left: 0.32rem;
	top: 0.22rem;
	width: 0.28rem;
	height: 0.48rem;
	border: solid #0f766e;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.vf-plan-card-pro .vf-plan-check {
	background: rgba(15, 118, 110, 0.18);
}
.vf-plan-cta {
	width: 100%;
	justify-content: center;
}
.vf-plan-cta-pro {
	box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
}
.vf-plans-note {
	margin: 0;
	font-size: 0.8rem;
}
.vf-modal-card-invoice {
	width: min(880px, 96vw);
	max-height: 92vh;
	overflow: auto;
	display: flex;
	flex-direction: column;
	padding-bottom: 1.35rem;
}
.vf-inv-create-form {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: 0;
}
.vf-modal-card-invoice .vf-modal-actions {
	margin-top: 1.1rem;
	margin-bottom: 0.35rem;
	flex-shrink: 0;
}
.vf-inv-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 0.35rem;
}
.vf-inv-toolbar .vf-inv-legend {
	flex: 1 1 16rem;
	margin-bottom: 0;
}
.vf-inv-lines-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.85rem 0 0.45rem;
}
.vf-inv-lines-head h4 {
	margin: 0;
	font-size: 0.95rem;
}
.vf-inv-lines-editor {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-shrink: 0;
	min-height: 0;
	padding: 0.15rem 0.1rem 0.35rem;
}
.vf-inv-line-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 0.55rem 0.65rem;
	align-items: end;
	padding: 0.85rem 0.85rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: #faf8f4;
}
.vf-inv-line-row label {
	margin: 0;
	font-size: 0.78rem;
	color: var(--muted);
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	min-width: 0;
}
.vf-inv-line-descr {
	grid-column: 1 / -1;
	padding-right: 2.4rem;
}
.vf-inv-line-treatment {
	grid-column: 1 / 3;
}
.vf-inv-line-vat,
.vf-inv-line-exenta {
	grid-column: 3 / 4;
}
.vf-inv-line-row input,
.vf-inv-line-row select {
	font: inherit;
	font-size: 0.88rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--ink);
	width: 100%;
	box-sizing: border-box;
	min-height: 2.55rem;
}
.vf-inv-line-del {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
	z-index: 2;
	margin: 0;
	font-size: 1.35rem;
	line-height: 1;
	width: 2.1rem;
	height: 2.1rem;
	color: #c0392b;
	border-color: rgba(192, 57, 43, 0.35);
	background: #fff;
}
.vf-inv-line-del:hover {
	color: #922b21;
	border-color: #c0392b;
	background: #fdecea;
}
.vf-inv-create-totals {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	margin: 0.75rem 0 0.25rem;
	font-size: 0.95rem;
	min-width: 12.5rem;
	margin-left: auto;
}
.vf-inv-create-totals .vf-inv-tot-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 1.25rem;
	width: 100%;
	min-width: 12.5rem;
}
.vf-inv-create-totals .vf-inv-tot-row span {
	color: #5a6e67;
	text-align: right;
}
.vf-inv-create-totals .vf-inv-tot-row strong {
	color: var(--ink);
	text-align: right;
	font-variant-numeric: tabular-nums;
	min-width: 4.5rem;
}
.vf-inv-create-totals .vf-inv-grand {
	margin-top: 0.15rem;
	padding-top: 0.4rem;
	border-top: 1px solid rgba(20, 60, 50, 0.16);
}
.vf-inv-create-totals .vf-inv-grand strong {
	font-size: 1.15rem;
}
@media (max-width: 720px) {
	.vf-inv-line-row {
		grid-template-columns: 1fr 1fr;
	}
	.vf-inv-line-descr,
	.vf-inv-line-tax,
	.vf-inv-line-treatment,
	.vf-inv-line-vat,
	.vf-inv-line-exenta {
		grid-column: 1 / -1;
	}
}
.vf-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}
.vf-modal-head h3 { margin: 0; }
.vf-app-detail-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 0.85rem;
	margin: 0.35rem 0 0.25rem;
}
.vf-app-name-edit,
.vf-inline-edit {
	appearance: none;
	border: 1px solid transparent;
	background: transparent;
	font: inherit;
	font-weight: 600;
	font-size: 1.15rem;
	color: inherit;
	padding: 0.15rem 0.35rem;
	border-radius: 0.4rem;
	min-width: 8rem;
	max-width: 100%;
	width: auto;
}
.vf-inline-edit {
	font-size: 0.95rem;
	font-weight: 500;
	width: 100%;
	max-width: 16rem;
}
.vf-app-name-edit:hover,
.vf-inline-edit:hover {
	border-color: rgba(20, 60, 50, 0.2);
	background: rgba(255,255,255,0.7);
}
.vf-app-name-edit:focus,
.vf-inline-edit:focus {
	outline: none;
	border-color: var(--teal, #1a5c4a);
	background: #fff;
	box-shadow: 0 0 0 2px rgba(26, 92, 74, 0.15);
}
#appFormula:disabled,
#appFormulaR:disabled,
#appFormula[readonly],
#appFormulaR[readonly] {
	opacity: 0.7;
	cursor: not-allowed;
	background: rgba(20, 60, 50, 0.04);
}
.vf-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}
.vf-modal-head h3 { margin: 0; }
.vf-modal-head .vf-icon-btn {
	color: var(--err, #b91c1c);
	border-color: rgba(185, 28, 28, 0.35);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1;
}
.vf-modal-head .vf-icon-btn:hover {
	background: rgba(185, 28, 28, 0.08);
	color: #991b1b;
	border-color: rgba(185, 28, 28, 0.55);
}
.vf-icon-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid rgba(20, 60, 50, 0.18);
	border-radius: 0.45rem;
	background: #fff;
	color: var(--teal, #1a5c4a);
	cursor: pointer;
	text-decoration: none;
}
.vf-icon-btn:hover {
	background: rgba(26, 92, 74, 0.08);
}
.vf-icon-btn.vf-inv-line-del {
	color: #c0392b;
	border-color: rgba(192, 57, 43, 0.45);
	background: #fff;
}
.vf-icon-btn.vf-inv-line-del:hover {
	color: #922b21;
	border-color: #c0392b;
	background: #fdecea;
}
.vf-inv-actions {
	white-space: nowrap;
	width: 1%;
}
.vf-inv-actions .vf-icon-btn {
	margin-right: 0.25rem;
}
#invTable { border-collapse: separate; border-spacing: 0; }
#invTable .vf-pill[data-tip] {
	z-index: 1;
}
#invTable .vf-pill[data-tip]:hover,
#invTable .vf-pill[data-tip]:focus {
	z-index: 90;
}
#invTable .vf-pill[data-tip]:hover::after,
#invTable .vf-pill[data-tip]:focus::after {
	/* Abajo y anclado a la derecha: no se corta con el thead ni el borde */
	left: auto;
	right: 0;
	transform: none;
	top: calc(100% + 8px);
}
/* Anulaci?n: fila completa tabulada (espacio delante + flecha) */
tr.vf-inv-anul {
	position: relative;
	transform: translateX(1.85rem);
	width: calc(100% - 1.85rem);
	box-shadow: -1.85rem 0 0 0 rgba(15, 118, 110, 0.05);
}
tr.vf-inv-anul > td {
	background: rgba(15, 118, 110, 0.07);
}
tr.vf-inv-anul > td.vf-inv-actions {
	position: relative;
	padding-left: 1.55rem !important;
	box-shadow: inset 3px 0 0 var(--accent, #0f766e);
}
tr.vf-inv-anul .vf-inv-tree-mark {
	position: absolute;
	left: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--accent, #0f766e);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}
tr.vf-inv-voided > td {
	opacity: 0.78;
	color: var(--muted, #64748b);
}
tr.vf-inv-voided > td.vf-inv-actions {
	box-shadow: inset 3px 0 0 rgba(100, 116, 139, 0.45);
}
.vf-inv-sheet {
	position: relative;
	overflow: hidden;
}
.vf-inv-watermark {
	position: absolute;
	left: 50%;
	top: 48%;
	transform: translate(-50%, -50%) rotate(-32deg);
	font-size: clamp(2.8rem, 9vw, 5rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	color: rgba(185, 28, 28, 0.16);
	border: 4px solid rgba(185, 28, 28, 0.18);
	padding: 0.15em 0.45em;
	border-radius: 0.15em;
	pointer-events: none;
	user-transform: uppercase;
	z-index: 2;
	white-space: nowrap;
	user-shadow: 0 0 1px rgba(255, 255, 255, 0.4);
}
.vf-inv-sheet--voided {
	opacity: 0.97;
}
.vf-inv-void-badge {
	margin-top: 0.35rem;
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 600;
	color: #b91c1c;
	background: rgba(185, 28, 28, 0.08);
	padding: 0.2rem 0.5rem;
	border-radius: 0.25rem;
}
.vf-pill[data-tip] {
	cursor: help;
	position: relative;
}
.vf-mini-err[data-tip] {
	cursor: help;
	position: relative;
	display: inline-block;
}
.vf-pill[data-tip]:hover::after,
.vf-pill[data-tip]:focus::after,
.vf-mini-err[data-tip]:hover::after,
.vf-mini-err[data-tip]:focus::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	right: auto;
	bottom: auto;
	top: calc(100% + 8px);
	transform: translateX(-50%);
	z-index: 80;
	min-width: 220px;
	max-width: min(420px, 86vw);
	padding: 0.55rem 0.7rem;
	border-radius: 0.4rem;
	background: #1a2e28;
	color: #f4f7f5;
	font-size: 0.78rem;
	font-weight: 400;
	line-height: 1.4;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
	pointer-events: none;
}
.vf-pill.err[data-tip]:hover::after,
.vf-pill.err[data-tip]:focus::after,
.vf-mini-err[data-tip]:hover::after {
	background: #5c1f1f;
}
.vf-inv-legend {
	list-style: none;
	margin: 0 0 0.55rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.15rem;
	align-items: center;
}
.vf-inv-legend li {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.84rem;
	color: var(--muted);
	line-height: 1.3;
}
.vf-inv-legend-txt strong {
	color: var(--ink);
	font-weight: 600;
}
.vf-inv-legend-mark {
	display: inline-grid;
	place-items: center;
	min-width: 1.35rem;
	height: 1.35rem;
	border-radius: 0.3rem;
	background: rgba(15, 118, 110, 0.1);
	color: var(--accent, #0f766e);
	font-weight: 700;
	font-size: 0.95rem;
}
.vf-inv-legend-foot {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	color: var(--muted);
}
.vf-inv-legend-foot em {
	font-style: normal;
	font-weight: 600;
	color: var(--ink);
}
.vf-invoice-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1.25rem;
	margin: 0.75rem 0 1rem;
	font-size: 0.92rem;
}
.vf-invoice-total { margin: 0.75rem 0; font-size: 1.05rem; }
.vf-invoice-qr { margin-top: 0.75rem; }
.vf-invoice-qr img {
	border: 1px solid rgba(20, 60, 50, 0.15);
	border-radius: 0.4rem;
	background: #fff;
}
.vf-inv-sheet {
	background:
		linear-gradient(165deg, rgba(232, 244, 239, 0.95) 0%, rgba(245, 250, 247, 0.98) 38%, #eef6f2 100%);
	border: 1px solid rgba(26, 92, 74, 0.18);
	border-radius: 0.85rem;
	padding: 1.15rem 1.25rem 1.35rem;
	color: #1a2e28;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.vf-inv-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(20, 60, 50, 0.12);
}
.vf-inv-brand {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	flex: 1 1 16rem;
	min-width: 0;
	max-width: 100%;
}
.vf-inv-brand--nologo {
	gap: 0;
}
.vf-inv-logo {
	flex: 0 0 auto;
	display: block;
	max-width: 110px;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0.25rem;
}
.vf-inv-co {
	flex: 1 1 auto;
	min-width: 0;
}
.vf-inv-co-name {
	font-weight: 650;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	word-wrap: break-word;
}
.vf-inv-meta {
	flex: 0 1 auto;
	text-align: right;
	margin-left: auto;
	min-width: 9rem;
}
.vf-inv-doc-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #5a6e67;
}
.vf-inv-doc-num {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0.15rem 0 0.45rem;
}
.vf-inv-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; margin-bottom: 0.35rem; }
.vf-inv-ref {
	margin: 0 0 1rem;
	padding: 0.65rem 0.8rem;
	border-radius: 0.55rem;
	background: rgba(26, 92, 74, 0.07);
	border: 1px solid rgba(26, 92, 74, 0.14);
	font-size: 0.9rem;
	max-width: 28rem;
}
.vf-inv-ref-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6e67;
	margin-bottom: 0.15rem;
}
.vf-inv-parties {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 1rem 0;
	max-width: 28rem;
}
.vf-inv-parties h4 {
	margin: 0 0 0.3rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6e67;
	font-weight: 600;
}
.vf-inv-party-name { font-weight: 600; }
.vf-muted { color: #5a6e67; font-size: 0.88rem; line-height: 1.35; }
.vf-inv-lines th.num,
.vf-inv-lines td.num { text-align: right; white-space: nowrap; }
.vf-inv-sheet .vf-table-wrap {
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(26, 92, 74, 0.12);
	border-radius: 0.55rem;
	overflow: hidden;
}
.vf-inv-totals {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.35rem;
	margin: 0.95rem 0 0.5rem;
	font-size: 0.95rem;
	min-width: 12.5rem;
	margin-left: auto;
}
.vf-inv-tot-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 1.25rem;
	width: 100%;
	min-width: 12.5rem;
}
.vf-inv-tot-row span {
	color: #5a6e67;
	text-align: right;
}
.vf-inv-tot-row strong {
	text-align: right;
	font-variant-numeric: tabular-nums;
	min-width: 4.5rem;
}
.vf-inv-grand {
	margin-top: 0.25rem;
	padding-top: 0.45rem;
	border-top: 1px solid rgba(20, 60, 50, 0.16);
	font-size: 1.05rem;
}
.vf-inv-grand strong { font-size: 1.2rem; }
.vf-inv-foot {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem 1.25rem;
	align-items: start;
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(20, 60, 50, 0.12);
}
.vf-inv-qr-block {
	display: flex;
	gap: 0.85rem;
	align-items: center;
	max-width: 420px;
}
.vf-inv-qr-block img {
	flex: 0 0 auto;
	border: 1px solid rgba(20, 60, 50, 0.14);
	border-radius: 0.45rem;
	background: #fff;
}
.vf-inv-qr-block p {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: #3d524b;
}
.vf-inv-fp span {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6e67;
	margin-bottom: 0.25rem;
}
.vf-inv-fp code {
	font-size: 0.68rem;
	word-break: break-all;
	color: #1a2e28;
}
@media (max-width: 640px) {
	.vf-inv-meta { text-align: left; }
	.vf-inv-foot { grid-template-columns: 1fr; }
	.vf-inv-totals { width: 100%; }
}
.vf-fp code {
	font-size: 0.72rem;
	word-break: break-all;
}
.vf-table-compact td, .vf-table-compact th {
	font-size: 0.85rem;
	padding: 0.35rem 0.5rem;
}
.vf-btn-back {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--teal);
	background: rgba(15, 107, 99, 0.08);
	color: var(--teal-deep);
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 0.92rem;
	cursor: pointer;
}
.vf-btn-back:hover {
	background: var(--teal);
	color: #fff;
}
.vf-app-detail-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.35;
	word-break: break-word;
}
.vf-app-detail-title .vf-app-id-inline {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.82em;
	font-weight: 500;
	color: var(--muted);
}
.vf-checklist li.is-fail {
	border-color: rgba(161, 45, 45, 0.35);
	background: rgba(161, 45, 45, 0.06);
}
.vf-checklist li.is-fail .dot { background: var(--err); }
.vf-checklist li.is-fail .vf-demo-label { color: var(--err); font-weight: 600; }
.vf-checklist li.is-done {
	border-color: rgba(15, 107, 99, 0.28);
	background: rgba(15, 107, 99, 0.06);
}
.vf-checklist li.is-done .dot { background: var(--teal); }
.vf-checklist li.is-done .vf-demo-label { color: var(--teal-deep); font-weight: 600; }
.vf-demo-at {
	flex: 1 1 auto;
	min-width: 8rem;
	font-size: 0.8rem;
	color: var(--muted);
	text-align: right;
}
.vf-demo-err-btn {
	flex: 0 0 auto;
	margin-left: 0.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(161, 45, 45, 0.45);
	background: rgba(161, 45, 45, 0.08);
	color: var(--err);
	font: inherit;
	font-weight: 700;
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
}
.vf-demo-err-btn:hover {
	background: rgba(161, 45, 45, 0.16);
}
.vf-errors-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(15, 107, 99, 0.25);
	border-radius: 0.65rem;
	background: rgba(15, 107, 99, 0.06);
	font-size: 0.88rem;
}
.vf-errors-filter button {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	font: inherit;
	font-size: 0.82rem;
	cursor: pointer;
}
.vf-errors-filter button:hover {
	border-color: var(--teal);
	color: var(--teal-deep);
}
.vf-demo-app.is-all-done .vf-demo-app-meta {
	color: var(--teal-deep);
}
.vf-checklist button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.vf-info-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	margin-left: 0.35rem;
	border-radius: 50%;
	border: 1px solid var(--err);
	color: var(--err);
	font-size: 0.72rem;
	font-weight: 700;
	font-style: italic;
	cursor: help;
	flex: 0 0 auto;
	z-index: 5;
}
.vf-info-tip::after {
	content: attr(data-tip);
	position: absolute;
	left: 0;
	top: calc(100% + 0.4rem);
	bottom: auto;
	transform: none;
	min-width: 16rem;
	width: max-content;
	max-width: min(28rem, 85vw);
	padding: 0.6rem 0.75rem;
	border-radius: 0.55rem;
	background: #1a2428;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 500;
	font-style: normal;
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	box-shadow: var(--shadow);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
	z-index: 40;
}
.vf-info-tip:hover::after,
.vf-info-tip:focus::after {
	opacity: 1;
}
.vf-demo-app {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	margin-bottom: 0.85rem;
	overflow: visible;
}
.vf-demo-app-head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.vf-demo-app-head:hover { background: rgba(15, 107, 99, 0.05); }
.vf-demo-chevron {
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
	margin-right: 0.15rem;
}
.vf-demo-app.is-open .vf-demo-chevron {
	transform: rotate(45deg);
	margin-top: -0.2rem;
}
.vf-demo-app-head-text { flex: 1 1 auto; min-width: 0; }
.vf-demo-app-head-text strong {
	display: block;
	font-size: 1rem;
}
.vf-demo-app-meta {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8rem;
	color: var(--muted);
}
.vf-demo-app-body {
	display: none;
	padding: 0 1rem 1rem;
	border-top: 1px solid var(--line);
	overflow: visible;
}
.vf-demo-app.is-open .vf-demo-app-body { display: block; padding-top: 0.85rem; }
.vf-demo-app h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.vf-demo-appid {
	display: inline-block;
	font-size: 0.78rem;
	color: var(--muted);
	margin-bottom: 0.65rem;
}
.vf-btn-mini, .vf-btn {
	/* keep */
}
.vf-btn-mini {
	appearance: none;
	border: 1px solid var(--line);
	background: var(--sand);
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
	font: inherit;
	font-size: 0.8rem;
	cursor: pointer;
}
.vf-secret-box {
	background: #fff8e8;
	border: 1px dashed var(--accent);
	border-radius: 0.75rem;
	padding: 0.85rem;
	margin-bottom: 1rem;
}
.vf-secret-box code { white-space: pre-wrap; word-break: break-all; display: block; }
.vf-errors { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.vf-errors li {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	padding: 0.75rem;
}
.vf-err-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.vf-err-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.vf-errors pre {
	margin: 0.5rem 0 0;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: 0.8rem;
	background: #fff;
	padding: 0.5rem;
	border-radius: 0.4rem;
}
.vf-mini-err { color: var(--err); font-size: 0.75rem; margin-top: 0.2rem; }

.vf-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	padding: 1.5rem 6vw 2rem;
	color: var(--muted);
	font-size: 0.9rem;
}
.vf-foot a { color: var(--teal); text-decoration: none; }
.vf-foot a:hover { text-decoration: underline; }
.vf-foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	align-items: center;
	justify-content: flex-end;
}
.vf-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: inherit;
	text-decoration: none;
}
.vf-legal {
	width: min(920px, 92vw);
}
.vf-legal-top {
	margin: 0 0 1rem;
}
.vf-btn-back-legal {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.96);
	color: var(--muted);
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}
.vf-btn-back-legal:hover {
	border-color: var(--teal);
	color: var(--teal-deep);
	background: #fff;
	text-decoration: none;
}
.vf-legal-card {
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--line);
	border-radius: 1.25rem;
	padding: 1.75rem 1.6rem 2rem;
	box-shadow: var(--shadow);
}
.vf-legal-card h1 {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	margin: 0 0 0.75rem;
	line-height: 1.15;
}
.vf-legal-card h2 {
	font-size: 1.15rem;
	margin: 1.6rem 0 0.55rem;
}
.vf-legal-card p,
.vf-legal-card li {
	line-height: 1.55;
	color: var(--ink, #1a2428);
}
.vf-legal-card ul {
	margin: 0.4rem 0 0.8rem;
	padding-left: 1.2rem;
}
.vf-legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin: 0.6rem 0 1rem;
}
.vf-legal-table th,
.vf-legal-table td {
	border: 1px solid var(--line);
	padding: 0.55rem 0.65rem;
	text-align: left;
	vertical-align: top;
}
.vf-legal-table th {
	background: rgba(15, 107, 99, 0.08);
}
.vf-legal-nav {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}
.vf-legal-quiet {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--muted) !important;
	text-decoration: none !important;
	border-bottom: 1px dotted rgba(90, 110, 103, 0.55);
	padding-bottom: 0.05rem;
}
.vf-legal-check {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--ink, #1a2428);
}
/* .vf-form label usa display:grid (campo encima del input); el check debe ir en fila */
.vf-form label.vf-legal-check {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-weight: 500;
}
.vf-form label.vf-legal-check > span {
	flex: 1 1 auto;
	min-width: 0;
}
.vf-legal-check input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
}
.vf-legal-inline {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	color: var(--teal);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.vf-legal-gate {
	margin-top: 0.35rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.9rem;
	background: rgba(15, 107, 99, 0.04);
}
.vf-legal-gate h4 {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}
.vf-legal-docs {
	display: grid;
	gap: 0.55rem;
	margin: 0.75rem 0 1rem;
}
.vf-legal-doc-btn {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.vf-legal-doc-btn:hover {
	border-color: var(--teal);
}
.vf-legal-doc-btn.is-done {
	border-color: rgba(47, 158, 122, 0.45);
	background: rgba(47, 158, 122, 0.08);
}
.vf-legal-doc-title {
	font-weight: 600;
}
.vf-legal-doc-status {
	font-size: 0.8rem;
	color: var(--muted);
}
.vf-legal-doc-btn.is-done .vf-legal-doc-status {
	color: #2f9e7a;
	font-weight: 600;
}
.vf-legal-check.is-ready {
	opacity: 1;
}
.vf-legal-modal-card {
	max-height: min(92vh, 900px);
	display: flex;
	flex-direction: column;
}
.vf-legal-modal-scroll {
	flex: 1 1 auto;
	min-height: 240px;
	max-height: min(55vh, 520px);
	overflow: auto;
	padding: 0.75rem 0.25rem 1rem;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin: 0.5rem 0 0.85rem;
}
.vf-legal-embed {
	margin: 0;
	padding: 0.5rem;
	background: #fff;
}
.vf-legal-embed .vf-legal-nav,
.vf-legal-card.is-embed .vf-legal-nav {
	display: none !important;
}
.vf-legal-card.is-embed {
	box-shadow: none;
	border: 0;
	padding: 0.25rem 0.5rem 1rem;
	background: transparent;
}
.vf-legal-seal {
	margin-top: 1.35rem;
	padding: 1rem 1.05rem;
	border: 1px dashed rgba(15, 107, 99, 0.35);
	border-radius: 0.9rem;
	background: rgba(15, 107, 99, 0.05);
}
.vf-legal-seal h3,
.vf-legal-seal h4 {
	margin: 0 0 0.35rem;
}
.vf-cuentapanel .vf-legal-seal {
	margin-top: 0;
}
.vf-legal-docs-account {
	margin-top: 1rem;
}
.vf-legal-seal-list {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}
.vf-legal-seal-list li {
	display: grid;
	gap: 0.15rem;
	padding: 0.65rem 0.75rem;
	border-radius: 0.65rem;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 0.9rem;
}
.vf-legal-seal-list li.is-ok {
	border-color: rgba(47, 158, 122, 0.4);
}
.vf-legal-seal-list li strong {
	font-size: 0.95rem;
}
.vf-legal-seal-list li span {
	color: var(--muted);
	font-size: 0.85rem;
}
.vf-legal-seal-list a {
	color: var(--teal);
	font-size: 0.82rem;
	width: fit-content;
}

/* Toasts */
.vf-toasts {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 10050;
	display: flex;
	flex-direction: column-reverse;
	gap: 0.55rem;
	max-width: min(26rem, calc(100vw - 2rem));
	pointer-events: none;
}
.vf-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 0.95rem;
	border-radius: 0.85rem;
	background: #1a2428;
	color: #fff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}
.vf-toast.is-in {
	opacity: 1;
	transform: translateY(0);
}
.vf-toast.is-out {
	opacity: 0;
	transform: translateY(8px);
}
.vf-toast-ok { border-left: 4px solid #2f9e7a; }
.vf-toast-err { border-left: 4px solid #d35a5a; }
.vf-toast-ico {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.1rem;
	border-radius: 50%;
	background: currentColor;
	mask: none;
	position: relative;
}
.vf-toast-ok .vf-toast-ico {
	background: transparent;
	border: 2px solid #2f9e7a;
}
.vf-toast-ok .vf-toast-ico::after {
	content: '';
	position: absolute;
	left: 0.22rem;
	top: 0.05rem;
	width: 0.28rem;
	height: 0.55rem;
	border-right: 2px solid #2f9e7a;
	border-bottom: 2px solid #2f9e7a;
	transform: rotate(45deg);
}
.vf-toast-err .vf-toast-ico {
	background: transparent;
	border: 2px solid #d35a5a;
}
.vf-toast-err .vf-toast-ico::before,
.vf-toast-err .vf-toast-ico::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.65rem;
	height: 2px;
	background: #d35a5a;
}
.vf-toast-err .vf-toast-ico::before { transform: translate(-50%, -50%) rotate(45deg); }
.vf-toast-err .vf-toast-ico::after { transform: translate(-50%, -50%) rotate(-45deg); }
.vf-toast-msg {
	flex: 1 1 auto;
	font-size: 0.9rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.vf-toast-close {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: #c8d0cc;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.15rem;
}
.vf-toast-close:hover { color: #fff; }

/* Loader validaci?n or?genes */
.vf-verify-overlay {
	position: fixed;
	inset: 0;
	z-index: 10040;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(12, 22, 24, 0.45);
	backdrop-filter: blur(2px);
}
.vf-verify-overlay[hidden] { display: none !important; }
.vf-verify-card {
	min-width: min(18rem, 90vw);
	padding: 1.6rem 1.5rem 1.35rem;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
	text-align: center;
}
.vf-verify-ring {
	position: relative;
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--teal);
}
.vf-verify-ring::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 3px solid rgba(15, 107, 99, 0.15);
	border-top-color: var(--teal);
	animation: vf-verify-spin 0.9s linear infinite;
}
.vf-verify-icon { position: relative; z-index: 1; }
.vf-verify-shield { opacity: 0.95; }
.vf-verify-check {
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: vf-verify-draw 1.2s ease forwards infinite;
}
.vf-verify-card p {
	margin: 0;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--ink, #1a2428);
}
.vf-verify-sub {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	color: var(--muted);
}
.vf-verify-overlay.is-done .vf-verify-ring {
	color: #2f9e7a;
}
.vf-verify-overlay.is-done .vf-verify-ring::before {
	animation: none;
	border-color: rgba(47, 158, 122, 0.35);
	border-top-color: #2f9e7a;
}
.vf-verify-overlay.is-done .vf-verify-check {
	stroke-dashoffset: 0;
	animation: none;
}
.vf-verify-overlay.is-fail .vf-verify-ring {
	color: var(--err);
}
.vf-verify-overlay.is-fail .vf-verify-ring::before {
	animation: none;
	border-color: rgba(211, 90, 90, 0.35);
	border-top-color: var(--err);
}
@keyframes vf-verify-spin {
	to { transform: rotate(360deg); }
}
@keyframes vf-verify-draw {
	0%, 40% { stroke-dashoffset: 40; }
	70%, 100% { stroke-dashoffset: 0; }
}

@keyframes rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Uso API / l?mites */
.vf-usage-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.5rem;
}
.vf-usage-row .vf-usage-top {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}
.vf-usage-label {
	font-weight: 600;
	font-size: 0.92rem;
}
.vf-usage-nums {
	color: var(--muted);
	font-size: 0.85rem;
}
.vf-usage-nums em {
	font-style: normal;
	opacity: 0.85;
}
.vf-usage-bar {
	height: 0.45rem;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	overflow: hidden;
}
.vf-usage-bar > span {
	display: block;
	height: 100%;
	background: #2f6fed;
	border-radius: 999px;
	transition: width 0.25s ease;
}
.vf-usage-row.is-warn .vf-usage-bar > span {
	background: #c47a1a;
}
.vf-usage-req {
	margin-left: auto;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #fff;
	border-radius: 999px;
	width: 2rem;
	height: 2rem;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}
.vf-usage-req:hover {
	border-color: #c47a1a;
	color: #c47a1a;
}
.vf-logpanel h3 {
	margin-top: 0.75rem;
}
.vf-tag-auto {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.12rem 0.4rem;
	border-radius: 999px;
	background: rgba(196, 122, 26, 0.15);
	color: #8a550f;
}

/* ?? Plantillas de factura ?? */
.vf-tpl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
	align-items: stretch;
}
.vf-tpl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 0.65rem;
	border: 1px solid rgba(20, 60, 50, 0.16);
	border-radius: 0.75rem;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	height: 100%;
	min-height: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vf-tpl-card:hover {
	border-color: rgba(15, 118, 110, 0.45);
	box-shadow: 0 4px 14px rgba(20, 60, 50, 0.08);
}
.vf-tpl-card.is-selected {
	border-color: var(--teal, #0f766e);
	box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}
.vf-tpl-preview {
	position: relative;
	overflow: hidden;
	border-radius: 0.5rem;
	min-height: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: rgba(20, 60, 50, 0.03);
}
.vf-tpl-preview .vf-tpl-mini {
	flex: 0 0 auto;
	align-self: stretch;
}
.vf-tpl-preview-spacer {
	flex: 1 1 auto;
	min-height: 0.5rem;
	pointer-events: none;
}
.vf-tpl-eye {
	position: absolute;
	right: 0.45rem;
	bottom: 0.45rem;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	padding: 0;
	border: 1px solid rgba(20, 60, 50, 0.2);
	border-radius: 0.4rem;
	background: rgba(255, 255, 255, 0.95);
	color: var(--teal, #0f766e);
	cursor: pointer;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	box-shadow: 0 2px 8px rgba(20, 60, 50, 0.12);
}
.vf-tpl-preview:hover .vf-tpl-eye,
.vf-tpl-preview:focus-within .vf-tpl-eye,
.vf-tpl-eye:focus {
	opacity: 1;
	transform: translateY(0);
}
.vf-tpl-eye:hover {
	border-color: var(--teal, #0f766e);
	color: #0a5c56;
}
/* Miniatura compacta: sin scale (evita hueco vertical del layout original) */
.vf-tpl-mini {
	transform: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0.45rem 0.5rem !important;
	font-size: 0.58rem !important;
	line-height: 1.25 !important;
	border-radius: 0.4rem !important;
	pointer-events: none;
	box-shadow: none !important;
	display: block !important;
}
.vf-tpl-mini .vf-inv-top {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	flex: 0 0 auto !important;
	gap: 0.25rem 0.5rem !important;
	padding: 0 0 0.3rem !important;
	margin: 0 0 0.3rem !important;
	border-bottom-width: 1px !important;
	align-items: flex-start !important;
	height: auto !important;
	min-height: 0 !important;
}
.vf-tpl-mini .vf-inv-brand,
.vf-tpl-mini .vf-inv-co,
.vf-tpl-mini .vf-inv-meta {
	flex: 0 0 auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-width: 100%;
}
.vf-tpl-mini .vf-inv-co-name { font-size: 0.68rem !important; }
.vf-tpl-mini .vf-inv-doc-num { font-size: 0.72rem !important; margin: 0.05rem 0 !important; }
.vf-tpl-mini .vf-inv-doc-label { font-size: 0.55rem !important; }
.vf-tpl-mini .vf-muted { font-size: 0.55rem !important; line-height: 1.2 !important; }
.vf-tpl-mini .vf-inv-meta {
	min-width: 0 !important;
	margin: 0 !important;
}
.vf-tpl-mini .vf-inv-parties {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 0.15rem !important;
	margin: 0 0 0.3rem !important;
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
}
.vf-tpl-mini .vf-inv-parties h4 {
	font-size: 0.52rem !important;
	margin: 0 0 0.05rem !important;
}
.vf-tpl-mini .vf-inv-party-name { font-size: 0.62rem !important; }
.vf-tpl-mini .vf-inv-party-dup { display: none !important; }
.vf-tpl-mini.vf-tpl-slate .vf-inv-party-dup { display: block !important; }
.vf-tpl-mini.vf-tpl-slate .vf-inv-parties {
	grid-template-columns: 1fr 1fr !important;
	gap: 0.35rem !important;
}
.vf-tpl-mini.vf-tpl-slate .vf-inv-brand { display: none !important; }
.vf-tpl-mini-lines {
	display: grid;
	gap: 0.18rem;
	margin: 0 0 0.3rem;
}
.vf-tpl-mini-line {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}
.vf-tpl-mini-line .bar {
	flex: 1;
	height: 0.28rem;
	border-radius: 0.12rem;
	background: currentColor;
	opacity: 0.12;
}
.vf-tpl-mini-line:nth-child(2) .bar { flex: 0.78; }
.vf-tpl-mini-line:nth-child(3) .bar { flex: 0.54; }
.vf-tpl-mini-line .amt {
	flex: 0 0 1.6rem;
	height: 0.28rem;
	border-radius: 0.12rem;
	background: currentColor;
	opacity: 0.18;
}
.vf-tpl-mini .vf-inv-totals {
	font-size: 0.55rem !important;
	gap: 0.08rem !important;
	margin: 0 0 0.25rem !important;
	padding: 0.25rem 0.35rem !important;
	align-items: flex-end;
}
.vf-tpl-mini .vf-inv-tot-row {
	gap: 0.5rem;
}
.vf-tpl-mini .vf-inv-comments,
.vf-tpl-mini-comments {
	margin: 0 !important;
	padding: 0.25rem 0.35rem !important;
	max-width: none !important;
	border-radius: 0.25rem !important;
}
.vf-tpl-mini .vf-inv-comments-label {
	font-size: 0.5rem !important;
	margin-bottom: 0.05rem !important;
}
.vf-tpl-mini-comments p,
.vf-tpl-mini .vf-inv-comments p {
	margin: 0;
	font-size: 0.55rem !important;
	line-height: 1.2 !important;
}
.vf-tpl-mini.vf-tpl-graphite {
	padding-top: 0 !important;
}
.vf-tpl-mini.vf-tpl-graphite .vf-inv-top {
	margin: 0 -0.5rem 0.3rem !important;
	padding: 0.35rem 0.5rem !important;
	border-radius: 0.4rem 0.4rem 0 0 !important;
}
.vf-tpl-mini.vf-tpl-forest {
	padding-left: 0.55rem !important;
	border-left-width: 4px !important;
}
.vf-tpl-mini.vf-tpl-linen {
	padding: 0.55rem !important;
	box-shadow: inset 0 0 0 1px rgba(20, 60, 50, 0.18), inset 0 0 0 4px #f7f8f7 !important;
}
.vf-tpl-mini.vf-tpl-navy .vf-inv-top {
	flex-direction: column !important;
	gap: 0.25rem !important;
	height: auto !important;
}
.vf-tpl-mini.vf-tpl-navy .vf-inv-meta {
	padding: 0.25rem 0.35rem !important;
	flex: 0 0 auto !important;
}
.vf-tpl-mini.vf-tpl-navy .vf-inv-brand {
	padding-bottom: 0.25rem !important;
	border-bottom-width: 1px !important;
	flex: 0 0 auto !important;
}
.vf-tpl-mini.vf-tpl-sand .vf-inv-top {
	flex-direction: column !important;
	gap: 0.2rem !important;
}
.vf-tpl-mini.vf-tpl-sand .vf-inv-meta {
	order: -1;
	text-align: left !important;
	margin: 0 !important;
	width: auto !important;
}
.vf-tpl-mini.vf-tpl-sand .vf-inv-brand,
.vf-tpl-mini.vf-tpl-sand .vf-inv-co,
.vf-tpl-mini.vf-tpl-sand .vf-inv-meta {
	flex: 0 0 auto !important;
}
.vf-tpl-mini.vf-tpl-sand .vf-inv-totals {
	align-items: flex-end !important;
	max-width: none !important;
	margin-left: auto !important;
}
.vf-tpl-mini.vf-tpl-mono .vf-inv-top,
.vf-tpl-mini.vf-tpl-mono .vf-inv-parties,
.vf-tpl-mini.vf-tpl-mono .vf-inv-comments {
	margin-bottom: 0.25rem !important;
	padding-bottom: 0.25rem !important;
}
.vf-tpl-meta {
	display: grid;
	gap: 0.2rem;
	flex: 0 0 auto;
	margin-top: auto;
}
.vf-tpl-meta strong { font-size: 0.95rem; }
.vf-tpl-meta span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.vf-tpl-badge {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.18rem 0.45rem;
	border-radius: 0.3rem;
	background: var(--teal, #0f766e);
	color: #fff;
	z-index: 2;
}
.vf-tpl-card.is-locked {
	cursor: default;
}
.vf-tpl-lock {
	position: absolute;
	inset: 0;
	border-radius: 0.75rem;
	pointer-events: none;
}
.vf-tpl-editor-prep {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed rgba(20, 60, 50, 0.18);
}
.vf-tpl-editor-shell {
	border: 1px solid rgba(20, 60, 50, 0.14);
	border-radius: 0.85rem;
	background: #fbfcfa;
	overflow: hidden;
}
.vf-tpl-editor-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid rgba(20, 60, 50, 0.1);
}
.vf-tpl-editor-head h4 { margin: 0 0 0.25rem; }
.vf-tpl-editor-layout {
	display: grid;
	grid-template-columns: minmax(7rem, 9rem) 1fr minmax(8rem, 11rem);
	gap: 0;
	min-height: 220px;
}
.vf-tpl-editor-palette,
.vf-tpl-editor-props {
	padding: 0.75rem;
	background: rgba(15, 118, 110, 0.04);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}
.vf-tpl-editor-props {
	border-left: 1px solid rgba(20, 60, 50, 0.1);
}
.vf-tpl-editor-palette {
	border-right: 1px solid rgba(20, 60, 50, 0.1);
}
.vf-tpl-editor-chip {
	display: block;
	padding: 0.35rem 0.5rem;
	border-radius: 0.4rem;
	background: #fff;
	border: 1px solid rgba(20, 60, 50, 0.12);
	font-size: 0.78rem;
	color: var(--muted);
}
.vf-tpl-editor-canvas {
	display: grid;
	place-items: center;
	padding: 1rem;
	background:
		linear-gradient(90deg, rgba(20, 60, 50, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
		linear-gradient(rgba(20, 60, 50, 0.04) 1px, transparent 1px) 0 0 / 16px 16px,
		#fff;
}
.vf-tpl-editor-props label {
	display: grid;
	gap: 0.25rem;
	font-size: 0.8rem;
	color: var(--muted);
}
@media (max-width: 720px) {
	.vf-tpl-editor-layout {
		grid-template-columns: 1fr;
	}
	.vf-tpl-editor-palette,
	.vf-tpl-editor-props {
		flex-direction: row;
		flex-wrap: wrap;
		border: 0;
	}
}

.vf-inv-comments {
	margin: 0.85rem 0 0.35rem;
	padding: 0.65rem 0.8rem;
	border-radius: 0.45rem;
	background: rgba(20, 60, 50, 0.05);
	border-left: 3px solid rgba(15, 118, 110, 0.45);
	font-size: 0.88rem;
	line-height: 1.4;
	max-width: 36rem;
}
.vf-inv-comments-label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a6e67;
	margin-bottom: 0.2rem;
	font-weight: 600;
}
.vf-inv-comments p { margin: 0; }
.vf-inv-party-dup { display: none; }
.vf-inv-qr-placeholder {
	width: 140px;
	height: 140px;
	border: 1px dashed rgba(20, 60, 50, 0.25);
	border-radius: 0.35rem;
	background:
		repeating-linear-gradient(90deg, rgba(20,60,50,0.08) 0 2px, transparent 2px 6px),
		repeating-linear-gradient(0deg, rgba(20,60,50,0.08) 0 2px, transparent 2px 6px);
}

/* Plan base: sobrio. Plus: color + acabado m?s premium (incentivo visual). */

/* Sencilla (free): austera, casi sin color */
.vf-inv-sheet.vf-tpl-sand {
	background: #fff;
	border-color: rgba(100, 116, 139, 0.28);
	color: #334155;
	box-shadow: none;
}
.vf-inv-sheet.vf-tpl-sand .vf-inv-top {
	flex-direction: column;
	align-items: stretch;
	gap: 0.55rem;
	border-bottom-color: rgba(148, 163, 184, 0.45);
	height: auto;
	min-height: 0;
}
.vf-inv-sheet.vf-tpl-sand .vf-inv-brand,
.vf-inv-sheet.vf-tpl-sand .vf-inv-co,
.vf-inv-sheet.vf-tpl-sand .vf-inv-meta {
	flex: 0 0 auto;
}
.vf-inv-sheet.vf-tpl-sand .vf-inv-meta {
	order: -1;
	text-align: left;
	margin-left: 0;
	width: 100%;
}
.vf-inv-sheet.vf-tpl-sand .vf-inv-doc-label {
	color: #94a3b8;
	letter-spacing: 0.08em;
}
.vf-inv-sheet.vf-tpl-sand .vf-inv-totals {
	align-items: stretch;
	max-width: 14rem;
	margin-left: 0;
	margin-right: auto;
}
.vf-inv-sheet.vf-tpl-sand .vf-inv-comments {
	background: #f8fafc;
	border-left-color: #cbd5e1;
}

/* ?? Plus: Pizarra (acero) ?? */
.vf-inv-sheet.vf-tpl-slate {
	background: linear-gradient(165deg, #f1f5f9 0%, #e8eef5 55%, #e2e8f0 100%);
	border-color: rgba(71, 85, 105, 0.35);
	color: #0f172a;
	box-shadow: 0 8px 28px rgba(51, 65, 85, 0.1);
}
.vf-inv-sheet.vf-tpl-slate .vf-inv-party-dup { display: block; }
.vf-inv-sheet.vf-tpl-slate .vf-inv-parties {
	grid-template-columns: 1fr 1fr;
	max-width: none;
	gap: 1.25rem;
}
.vf-inv-sheet.vf-tpl-slate .vf-inv-brand { display: none; }
.vf-inv-sheet.vf-tpl-slate .vf-inv-doc-label,
.vf-inv-sheet.vf-tpl-slate .vf-inv-parties h4 { color: #64748b; }
.vf-inv-sheet.vf-tpl-slate .vf-inv-doc-num { color: #1e293b; }
.vf-inv-sheet.vf-tpl-slate .vf-table-wrap {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(71, 85, 105, 0.2);
}
.vf-inv-sheet.vf-tpl-slate .vf-inv-totals {
	border: 1px solid rgba(51, 65, 85, 0.28);
	border-radius: 0.45rem;
	padding: 0.65rem 0.85rem;
	background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%);
	box-shadow: 0 2px 8px rgba(51, 65, 85, 0.06);
}
.vf-inv-sheet.vf-tpl-slate .vf-inv-grand strong { color: #334155; }
.vf-inv-sheet.vf-tpl-slate .vf-inv-comments {
	background: rgba(51, 65, 85, 0.06);
	border-left-color: #475569;
}

/* ?? Plus: Bosque (esmeralda) ?? */
.vf-inv-sheet.vf-tpl-forest {
	background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 42%, #ecfdf5 100%);
	border-color: rgba(4, 120, 87, 0.35);
	border-left: 6px solid #047857;
	border-radius: 0 0.85rem 0.85rem 0;
	padding-left: 1.35rem;
	color: #064e3b;
	box-shadow: 0 8px 26px rgba(4, 120, 87, 0.12);
}
.vf-inv-sheet.vf-tpl-forest .vf-inv-top {
	align-items: center;
	border-bottom-color: rgba(4, 120, 87, 0.22);
}
.vf-inv-sheet.vf-tpl-forest .vf-inv-doc-label,
.vf-inv-sheet.vf-tpl-forest .vf-inv-parties h4 { color: #059669; }
.vf-inv-sheet.vf-tpl-forest .vf-inv-doc-num,
.vf-inv-sheet.vf-tpl-forest .vf-inv-grand strong { color: #047857; }
.vf-inv-sheet.vf-tpl-forest .vf-table-wrap {
	background: rgba(255, 255, 255, 0.75);
	border-color: rgba(4, 120, 87, 0.18);
}
.vf-inv-sheet.vf-tpl-forest .vf-inv-comments {
	border-left-width: 0;
	border-top: 2px solid rgba(4, 120, 87, 0.28);
	border-radius: 0;
	background: transparent;
	padding-left: 0;
}

/* ?? Plus: Marina (azul profundo) ?? */
.vf-inv-sheet.vf-tpl-navy {
	background: linear-gradient(165deg, #eff6ff 0%, #dbeafe 50%, #eff6ff 100%);
	border-color: rgba(30, 64, 175, 0.35);
	color: #1e3a8a;
	box-shadow: 0 8px 28px rgba(30, 64, 175, 0.12);
}
.vf-inv-sheet.vf-tpl-navy .vf-inv-top {
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	border-bottom: 0;
	padding-bottom: 0;
	/* evita que flex:1 del brand estire un hueco enorme bajo la direcci?n */
	height: auto;
	min-height: 0;
}
.vf-inv-sheet.vf-tpl-navy .vf-inv-meta {
	order: -1;
	width: 100%;
	margin: 0;
	text-align: left;
	padding: 0.7rem 0.9rem;
	border: 0;
	border-radius: 0.45rem;
	background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
	color: #eff6ff;
	box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
	flex: 0 0 auto;
}
.vf-inv-sheet.vf-tpl-navy .vf-inv-meta .vf-muted,
.vf-inv-sheet.vf-tpl-navy .vf-inv-doc-label { color: rgba(239, 246, 255, 0.78); }
.vf-inv-sheet.vf-tpl-navy .vf-inv-doc-num { color: #fff; }
.vf-inv-sheet.vf-tpl-navy .vf-inv-brand {
	width: 100%;
	flex: 0 0 auto;
	max-width: none;
}
.vf-inv-sheet.vf-tpl-navy .vf-inv-co {
	flex: 0 0 auto;
}
.vf-inv-sheet.vf-tpl-navy .vf-inv-top > .vf-inv-brand {
	padding-bottom: 0.85rem;
	border-bottom: 1px solid rgba(30, 64, 175, 0.2);
}
.vf-inv-sheet.vf-tpl-navy .vf-inv-grand strong { color: #1d4ed8; }
.vf-inv-sheet.vf-tpl-navy .vf-inv-comments {
	background: rgba(37, 99, 235, 0.08);
	border-left-color: #2563eb;
}

/* ?? Plus: Tinta (editorial alto contraste) ?? */
.vf-inv-sheet.vf-tpl-ink {
	background: #fff;
	border: 2.5px solid #0a0a0a;
	border-radius: 0.1rem;
	color: #0a0a0a;
	box-shadow: 6px 6px 0 rgba(10, 10, 10, 0.12);
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-top {
	border-bottom: 2.5px solid #0a0a0a;
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-doc-label {
	font-weight: 800;
	letter-spacing: 0.12em;
	color: #0a0a0a;
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-doc-num { letter-spacing: -0.03em; }
.vf-inv-sheet.vf-tpl-ink .vf-table-wrap {
	border: 0;
	border-radius: 0;
	background: transparent;
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-lines th {
	border-bottom: 2px solid #0a0a0a;
	background: #fafafa;
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-tot-row {
	border-bottom: 1px solid #0a0a0a;
	padding-bottom: 0.2rem;
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-grand strong {
	color: #b91c1c;
	font-size: 1.15em;
}
.vf-inv-sheet.vf-tpl-ink .vf-inv-comments {
	background: #fafafa;
	border-left: 3px solid #0a0a0a;
}

/* ?? Plus: Grafito (cabecera noche + acento ?mbar) ?? */
.vf-inv-sheet.vf-tpl-graphite {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-color: rgba(15, 23, 42, 0.25);
	color: #0f172a;
	padding-top: 0;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}
.vf-inv-sheet.vf-tpl-graphite .vf-inv-top {
	margin: 0 -1.25rem 1rem;
	padding: 1.05rem 1.25rem;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
	color: #f8fafc;
	border-bottom: 3px solid #d97706;
	border-radius: 0.85rem 0.85rem 0 0;
}
.vf-inv-sheet.vf-tpl-graphite .vf-inv-top .vf-muted,
.vf-inv-sheet.vf-tpl-graphite .vf-inv-doc-label { color: #94a3b8; }
.vf-inv-sheet.vf-tpl-graphite .vf-inv-doc-num { color: #fff; }
.vf-inv-sheet.vf-tpl-graphite .vf-inv-grand strong { color: #b45309; }
.vf-inv-sheet.vf-tpl-graphite .vf-inv-comments {
	background: rgba(217, 119, 6, 0.08);
	border-left-color: #d97706;
}
.vf-inv-sheet.vf-tpl-graphite.vf-tpl-mini .vf-inv-top {
	margin: 0 -0.5rem 0.3rem !important;
	padding: 0.4rem 0.5rem !important;
	border-radius: 0.4rem 0.4rem 0 0 !important;
	border-bottom-width: 2px !important;
}

/* ?? Plus: Lino (editorial c?lido) ?? */
.vf-inv-sheet.vf-tpl-linen {
	background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 40%, #fffbeb 100%);
	border: 1px solid rgba(146, 64, 14, 0.28);
	box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.15), inset 0 0 0 8px rgba(255, 251, 235, 0.9), 0 8px 24px rgba(146, 64, 14, 0.1);
	padding: 1.45rem 1.5rem;
	color: #78350f;
}
.vf-inv-sheet.vf-tpl-linen .vf-inv-top {
	border-bottom: 3px double rgba(146, 64, 14, 0.45);
	justify-content: center;
	text-align: center;
	flex-direction: column;
	align-items: center;
}
.vf-inv-sheet.vf-tpl-linen .vf-inv-meta {
	text-align: center;
	margin: 0.35rem 0 0;
}
.vf-inv-sheet.vf-tpl-linen .vf-inv-parties {
	justify-items: center;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.vf-inv-sheet.vf-tpl-linen .vf-inv-doc-label {
	font-style: italic;
	color: #b45309;
}
.vf-inv-sheet.vf-tpl-linen .vf-inv-doc-num { color: #92400e; }
.vf-inv-sheet.vf-tpl-linen .vf-table-wrap {
	background: rgba(255, 255, 255, 0.55);
	border-color: rgba(146, 64, 14, 0.2);
}
.vf-inv-sheet.vf-tpl-linen .vf-inv-comments {
	background: rgba(180, 83, 9, 0.08);
	border-left-color: #b45309;
}

/* ?? Plus: Azur (cielo limpio) ?? */
.vf-inv-sheet.vf-tpl-azure {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1rem;
	align-content: start;
	align-items: start;
	background: linear-gradient(155deg, #f0f9ff 0%, #e0f2fe 45%, #f0f9ff 100%);
	border-color: rgba(2, 132, 199, 0.35);
	color: #0c4a6e;
	box-shadow: 0 8px 28px rgba(2, 132, 199, 0.12);
}
.vf-inv-sheet.vf-tpl-azure .vf-inv-top {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem 1rem;
	border-bottom: 0;
	padding-bottom: 0;
	height: auto;
	min-height: 0;
}
.vf-inv-sheet.vf-tpl-azure .vf-inv-brand,
.vf-inv-sheet.vf-tpl-azure .vf-inv-co {
	flex: 0 1 auto;
}
.vf-inv-sheet.vf-tpl-azure .vf-inv-meta {
	text-align: right;
	padding: 0.35rem 0.55rem;
	border-radius: 0.4rem;
	background: rgba(14, 165, 233, 0.1);
	flex: 0 0 auto;
}
.vf-inv-sheet.vf-tpl-azure .vf-inv-doc-label { color: #0284c7; }
.vf-inv-sheet.vf-tpl-azure .vf-inv-doc-num,
.vf-inv-sheet.vf-tpl-azure .vf-inv-grand strong { color: #0369a1; }
.vf-inv-sheet.vf-tpl-azure .vf-inv-parties {
	grid-column: 1 / -1;
	grid-row: auto;
	margin: 0;
	max-width: none;
	align-self: start;
	padding: 0.55rem 0.65rem;
	border-radius: 0.45rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(2, 132, 199, 0.18);
}
.vf-inv-sheet.vf-tpl-azure .vf-table-wrap {
	grid-column: 1 / -1;
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(2, 132, 199, 0.2);
}
.vf-inv-sheet.vf-tpl-azure .vf-inv-totals,
.vf-inv-sheet.vf-tpl-azure .vf-inv-comments,
.vf-inv-sheet.vf-tpl-azure .vf-inv-foot,
.vf-inv-sheet.vf-tpl-azure .vf-inv-ref,
.vf-inv-sheet.vf-tpl-azure .vf-mini-err {
	grid-column: 1 / -1;
}
.vf-inv-sheet.vf-tpl-azure .vf-inv-comments {
	background: rgba(2, 132, 199, 0.08);
	border-left-color: #0ea5e9;
}
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini,
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-inv-top,
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-inv-parties,
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-tpl-mini-lines,
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-inv-totals,
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-inv-comments {
	display: block !important;
	grid-column: auto !important;
	grid-row: auto !important;
}
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-inv-top {
	display: flex !important;
}
.vf-inv-sheet.vf-tpl-azure.vf-tpl-mini .vf-inv-parties {
	display: grid !important;
	margin: 0 0 0.3rem !important;
	padding: 0.3rem !important;
}

/* ?? Plus: Mono (t?cnico / consola) ?? */
.vf-inv-sheet.vf-tpl-mono {
	background: linear-gradient(180deg, #18181b 0%, #27272a 100%);
	border: 1px solid #3f3f46;
	border-radius: 0.35rem;
	color: #e4e4e7;
	font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.vf-inv-sheet.vf-tpl-mono .vf-muted,
.vf-inv-sheet.vf-tpl-mono .vf-inv-parties h4,
.vf-inv-sheet.vf-tpl-mono .vf-inv-doc-label,
.vf-inv-sheet.vf-tpl-mono .vf-inv-comments-label { color: #a1a1aa; }
.vf-inv-sheet.vf-tpl-mono .vf-inv-doc-label {
	letter-spacing: 0.16em;
	font-size: 0.7rem;
	color: #22d3ee;
}
.vf-inv-sheet.vf-tpl-mono .vf-inv-doc-num { color: #67e8f9; }
.vf-inv-sheet.vf-tpl-mono .vf-inv-top,
.vf-inv-sheet.vf-tpl-mono .vf-inv-parties,
.vf-inv-sheet.vf-tpl-mono .vf-table-wrap,
.vf-inv-sheet.vf-tpl-mono .vf-inv-comments {
	border-bottom: 1px dashed rgba(34, 211, 238, 0.35);
	padding-bottom: 0.75rem;
	margin-bottom: 0.75rem;
}
.vf-inv-sheet.vf-tpl-mono .vf-inv-top { border-bottom-style: dashed; }
.vf-inv-sheet.vf-tpl-mono .vf-table-wrap {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(63, 63, 70, 0.8);
	border-radius: 0.3rem;
}
.vf-inv-sheet.vf-tpl-mono .vf-inv-lines th {
	color: #22d3ee;
	background: rgba(34, 211, 238, 0.08);
}
.vf-inv-sheet.vf-tpl-mono .vf-inv-grand {
	border-top: 1px dashed rgba(34, 211, 238, 0.45);
	padding-top: 0.4rem;
}
.vf-inv-sheet.vf-tpl-mono .vf-inv-grand strong { color: #a5f3fc; }
.vf-inv-sheet.vf-tpl-mono .vf-inv-comments {
	background: rgba(34, 211, 238, 0.06);
	border-left-color: #22d3ee;
}
.vf-inv-sheet.vf-tpl-mono .vf-inv-qr-placeholder {
	border-color: rgba(34, 211, 238, 0.35);
	background:
		repeating-linear-gradient(90deg, rgba(34,211,238,0.12) 0 2px, transparent 2px 6px),
		repeating-linear-gradient(0deg, rgba(34,211,238,0.12) 0 2px, transparent 2px 6px);
}

/* Tarjetas Plus en la galer?a: un poco m?s ?deseables? */
.vf-tpl-card.is-locked .vf-tpl-preview {
	filter: none;
}
.vf-tpl-card.is-locked {
	opacity: 1;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.vf-tpl-card.is-locked:hover {
	border-color: rgba(30, 58, 95, 0.45);
	box-shadow: 0 8px 22px rgba(30, 58, 95, 0.12);
}
.vf-tpl-card.is-locked .vf-tpl-lock {
	background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.06) 100%);
}
.vf-tpl-badge-plus {
	background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%);
	box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.vf-alert-pill {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0.65rem 0 1rem;
	max-width: 42rem;
	padding: 0.55rem 0.85rem;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 118, 110, 0.1);
	color: var(--text, #1a2b2a);
	font: inherit;
	font-size: 0.88rem;
	line-height: 1.35;
	text-align: start;
	cursor: pointer;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.vf-alert-pill:hover,
.vf-alert-pill:focus-visible {
	background: rgba(15, 118, 110, 0.16);
	box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
	outline: none;
}
.vf-alert-pill-plus .vf-alert-pill-ico {
	flex: 0 0 auto;
	width: 1.35rem;
	height: 1.35rem;
	margin-top: 0.05rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%);
	box-shadow: 0 1px 4px rgba(15, 118, 110, 0.35);
	position: relative;
}
.vf-inv-lang-field {
	display: grid;
	gap: 0.35rem;
}
.vf-inv-lang-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.vf-pro-badge {
	border: 0;
	padding: 0.12rem 0.4rem;
	border-radius: 0.3rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 100%);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}
.vf-pro-badge:hover,
.vf-pro-badge:focus-visible {
	filter: brightness(1.08);
	outline: none;
}
.vf-inv-lang-hint {
	margin: 0;
	font-size: 0.8rem;
}



/* ?? Admin plataforma ?? */
.vf-admin-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.vf-admin-head h3 { margin: 0; }
.vf-admin-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 1.25rem;
}
.vf-admin-kpi {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	padding: 0.85rem 0.95rem;
	display: grid;
	gap: 0.2rem;
	box-shadow: 0 6px 18px rgba(5, 24, 51, 0.05);
}
.vf-admin-kpi strong {
	font-size: 1.35rem;
	color: var(--navy);
	font-weight: 700;
	line-height: 1.1;
}
.vf-admin-kpi span {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--teal-deep);
}
.vf-admin-kpi em {
	font-style: normal;
	font-size: 0.72rem;
	color: var(--muted);
}
.vf-admin-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 800px) {
	.vf-admin-grid { grid-template-columns: 1fr; }
}
.vf-admin-block { margin: 0; padding-top: 0.5rem; }
.vf-admin-block h4 { margin: 0 0 0.65rem; font-size: 0.95rem; }
.vf-admin-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}
.vf-admin-list li {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: baseline;
	padding: 0.45rem 0.55rem;
	background: rgba(15, 113, 186, 0.04);
	border-radius: 0.5rem;
	font-size: 0.86rem;
}
.vf-admin-list code { font-size: 0.78rem; word-break: break-all; }
#tabAdmin:not([hidden]) {
	background: rgba(5, 24, 51, 0.06);
	border: 1px solid rgba(5, 24, 51, 0.12);
}
#tabAdmin.is-active {
	background: var(--navy) !important;
	color: #fff !important;
}

/* Vista previa modal (ojo): misma compactaci?n que las miniaturas, sin huecos flex/grid */
#tplPreviewBody.vf-invoice-body {
	margin-top: 0.35rem;
}
#tplPreviewBody .vf-inv-sheet,
.vf-inv-sheet--sample {
	height: auto !important;
	min-height: 0 !important;
	align-content: start;
}
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure,
.vf-inv-sheet--sample.vf-tpl-azure {
	display: flex !important;
	flex-direction: column;
	gap: 0.75rem;
}
#tplPreviewBody .vf-inv-sheet > *,
.vf-inv-sheet--sample > * {
	flex: 0 0 auto !important;
	min-height: 0 !important;
}
#tplPreviewBody .vf-inv-top,
#tplPreviewBody .vf-inv-brand,
#tplPreviewBody .vf-inv-co,
#tplPreviewBody .vf-inv-meta,
#tplPreviewBody .vf-inv-parties,
.vf-inv-sheet--sample .vf-inv-top,
.vf-inv-sheet--sample .vf-inv-brand,
.vf-inv-sheet--sample .vf-inv-co,
.vf-inv-sheet--sample .vf-inv-meta,
.vf-inv-sheet--sample .vf-inv-parties {
	flex: 0 0 auto !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure .vf-inv-top,
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure .vf-inv-parties,
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure .vf-table-wrap,
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure .vf-inv-totals,
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure .vf-inv-comments,
#tplPreviewBody .vf-inv-sheet.vf-tpl-azure .vf-inv-foot,
.vf-inv-sheet--sample.vf-tpl-azure .vf-inv-top,
.vf-inv-sheet--sample.vf-tpl-azure .vf-inv-parties,
.vf-inv-sheet--sample.vf-tpl-azure .vf-table-wrap,
.vf-inv-sheet--sample.vf-tpl-azure .vf-inv-totals,
.vf-inv-sheet--sample.vf-tpl-azure .vf-inv-comments,
.vf-inv-sheet--sample.vf-tpl-azure .vf-inv-foot {
	grid-column: auto !important;
	grid-row: auto !important;
	width: 100%;
}
