/* creatit · Facturas — estilos del shortcode [creatit_facturas] */
.creatit-fact-card {
	max-width: 720px;
	margin: 24px auto;
	background: #fff;
	border: 1px solid #e7e3dc;
	border-radius: 14px;
	padding: 26px;
	box-shadow: 0 1px 2px rgba(20,15,5,0.04);
	font-family: inherit;
	color: #1f1d1a;
	line-height: 1.5;
}
.creatit-fact-card h3 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.creatit-fact-sub {
	margin: 0 0 22px;
	color: #6b6862;
	font-size: 14px;
}
.creatit-fact-error {
	max-width: 720px;
	margin: 24px auto;
	padding: 14px 18px;
	border: 1px solid #e9c8c5;
	background: #fbf2f1;
	color: #8b2f25;
	border-radius: 10px;
	font-size: 14px;
}

.creatit-fact-drop {
	display: block;
	border: 2px dashed #d4cfc4;
	border-radius: 12px;
	padding: 44px 18px;
	text-align: center;
	background: #fcfaf6;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.creatit-fact-drop.over { border-color: #c97a3a; background: #fdf3e9; }
.creatit-fact-drop input { display: none; }
.creatit-fact-drop .cf-big {
	font-weight: 600;
	font-size: 17px;
	margin-bottom: 6px;
	color: #1f1d1a;
}
.creatit-fact-drop .cf-mut {
	color: #6b6862;
	font-size: 14px;
}
.cf-btn {
	border: none;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	margin-top: 14px;
}
.cf-btn-primary { background: #1f1d1a; color: #fff; }
.cf-btn-primary:hover { background: #3a3833; }
.cf-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

#cfqueue { margin-top: 14px; }
.cf-row {
	display: grid;
	grid-template-columns: 28px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 11px 14px;
	border: 1px solid #ece8e0;
	border-radius: 10px;
	background: #fcfaf6;
	margin-bottom: 8px;
	font-size: 14px;
}
.cf-row .cf-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-row .cf-meta { color: #6b6862; font-size: 12px; margin-top: 4px; }
.cf-row.ok { border-color: #cae0c8; background: #f1f8ef; }
.cf-row.err { border-color: #e9c8c5; background: #fbf2f1; }
.cf-row a { color: #1f1d1a; text-decoration: underline; font-weight: 500; }
.cf-badge {
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 6px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.cf-b-wait { background: #f3eede; color: #8b6f1f; }
.cf-b-extract { background: #e6e9f3; color: #4a55a3; }
.cf-b-ok { background: #d8eed5; color: #1f5f3a; }
.cf-b-err { background: #f5d9d4; color: #8b2f25; }

.creatit-fact-manual { margin-top: 14px; }
.creatit-fact-manual summary {
	cursor: pointer;
	color: #6b6862;
	font-size: 13px;
	padding: 6px 0;
	user-select: none;
}
.cf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	margin-top: 10px;
}
.cf-grid label {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: #6b6862;
	font-weight: 500;
}
.cf-grid label.cf-full { grid-column: 1 / -1; }
.cf-grid input {
	margin-top: 4px;
	border: 1px solid #d4cfc4;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	font-family: inherit;
	background: #fff;
	color: #1f1d1a;
}
.cf-grid input:focus { outline: none; border-color: #c97a3a; }

@media (max-width: 600px) {
	.cf-grid { grid-template-columns: 1fr; }
}

/* --- Password gate --- */
.creatit-fact-hidden { display: none !important; }
.creatit-fact-gate { max-width: 420px; }
.creatit-fact-gate form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.cf-gate-label {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: #6b6862;
	font-weight: 500;
}
.cf-gate-label input {
	margin-top: 4px;
	border: 1px solid #d4cfc4;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: #1f1d1a;
}
.cf-gate-label input:focus { outline: none; border-color: #c97a3a; }
.creatit-fact-gate button {
	margin-top: 4px;
	padding: 10px 16px;
	font-size: 15px;
}
.cf-gate-err {
	color: #8b2f25;
	font-size: 13px;
	min-height: 18px;
	margin-top: 4px;
}

/* Botón "cerrar sesión" en la cabecera del card */
.cf-signout {
	float: right;
	font-size: 11px;
	color: #6b6862;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.cf-signout:hover { color: #1f1d1a; }
.creatit-fact-card h3 .cf-signout { float: right; }
