/* Front-end do RF Clipping (fora do wp-admin) */
.rfc-body {
	--rfc-trilho: #1d3557;
	--rfc-sinal: #e9a23b;
	--rfc-sinal-claro: #fdf3e2;
	--rfc-texto: #1f2328;
	--rfc-suave: #5c6670;
	--rfc-linha: #dfe3e8;
	margin: 0;
	background: #f2f4f7;
	color: var(--rfc-texto);
	font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.rfc-body *, .rfc-body *::before, .rfc-body *::after { box-sizing: border-box; }
.rfc-body a { color: var(--rfc-trilho); }
.rfc-body h2 { font-size: 18px; color: var(--rfc-trilho); }

/* Botões e campos (equivalentes aos do admin) */
.rfc-body .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px;
	min-height: 34px; padding: 0 14px; border: 1px solid #c3c9d0; border-radius: 4px;
	background: #fff; color: var(--rfc-trilho); font: inherit; font-weight: 500;
	cursor: pointer; text-decoration: none; white-space: nowrap;
}
.rfc-body .button:hover { border-color: var(--rfc-trilho); }
.rfc-body .button-primary { background: var(--rfc-trilho); border-color: var(--rfc-trilho); color: #fff; }
.rfc-body .button-primary:hover { background: #274872; }
.rfc-body .button.disabled { opacity: .5; pointer-events: none; }
.rfc-body .button:disabled { opacity: .6; cursor: wait; }
.rfc-body input[type="text"], .rfc-body input[type="search"], .rfc-body input[type="date"],
.rfc-body input[type="password"], .rfc-body select, .rfc-body textarea {
	font: inherit; color: inherit; min-height: 34px; padding: 6px 10px;
	border: 1px solid #c3c9d0; border-radius: 4px; background: #fff;
}
.rfc-body :focus-visible { outline: 2px solid var(--rfc-sinal); outline-offset: 2px; }
.rfc-body [hidden] { display: none !important; }

/* Topo */
.rfc-topo {
	display: flex; align-items: stretch; gap: 28px; flex-wrap: wrap;
	background: var(--rfc-trilho); color: #fff; padding: 0 24px; min-height: 58px;
	border-bottom: 3px solid var(--rfc-sinal);
}
.rfc-marca { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.rfc-marca img { max-height: 30px; display: block; }
.rfc-marca-nome { font-weight: 700; font-size: 15px; }
.rfc-marca-app { font-size: 13px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); opacity: .85; }
.rfc-abas { display: flex; gap: 2px; }
.rfc-abas a {
	display: flex; align-items: center; padding: 0 14px; color: rgba(255,255,255,.75); text-decoration: none;
	font-weight: 500; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.rfc-abas a:hover { color: #fff; }
.rfc-abas a.ativa { color: #fff; border-bottom-color: #fff; }
.rfc-usuario { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.rfc-usuario span { opacity: .8; }
.rfc-usuario a { color: #fff; }

.rfc-app { margin: 0 auto; padding: 24px; }
.rfc-app .rfc-h1 { margin: 4px 0 16px; }

/* Login */
.rfc-login {
	min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
	background: var(--rfc-trilho);
}
.rfc-login-caixa {
	width: 100%; max-width: 380px; background: #fff; border-radius: 8px; padding: 32px;
	border-top: 6px solid var(--rfc-sinal);
}
.rfc-login-marca { background: var(--rfc-trilho); color: #fff; display: inline-flex; padding: 6px 10px; border-radius: 4px; }
.rfc-login-marca img { max-height: 28px; display: block; }
.rfc-login h1 { font-size: 26px; margin: 18px 0 4px; color: var(--rfc-trilho); }
.rfc-login-sub { margin: 0 0 8px; color: var(--rfc-suave); }
.rfc-login label { display: block; margin-top: 14px; font-weight: 500; }
.rfc-login label input[type="text"], .rfc-login label input[type="password"] { display: block; width: 100%; margin-top: 4px; min-height: 40px; }
.rfc-login .rfc-lembrar { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.rfc-largo { width: 100%; min-height: 42px !important; margin-top: 18px; }
.rfc-erro { background: #fcebea; color: #8a1f1f; padding: 8px 12px; border-radius: 4px; margin: 12px 0 0; }
.rfc-esqueci { display: block; text-align: center; margin-top: 16px; color: var(--rfc-suave) !important; }

@media (max-width: 782px) {
	.rfc-topo { padding: 0 12px; gap: 0 12px; }
	.rfc-marca { min-height: 50px; }
	.rfc-abas { order: 3; width: 100%; border-top: 1px solid rgba(255,255,255,.15); }
	.rfc-abas a { flex: 1; justify-content: center; min-height: 44px; }
	.rfc-usuario span { display: none; }
	.rfc-app { padding: 12px; }
	.rfc-app .rfc-h1 { font-size: 21px; }
	.rfc-filtros input[type="search"] { flex: 1; min-width: 0; }
	.rfc-item .rfc-selecionar { width: 100%; min-height: 40px; }
	.rfc-edicao-atual .button { width: 100%; }
}
