@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,500;1,600&family=Montserrat:wght@400;500;600;700;800&display=swap');

.mdsv-wrap {
	--mdsv-preto: #080808;
	--mdsv-amarelo: #ffc400;
	--mdsv-amarelo-claro: #ffe071;
	--mdsv-cinza: #666b73;
	--mdsv-linha: #e8e8e8;
	--mdsv-fundo-suave: #f6f6f4;
	max-width: 1240px;
	font-family: 'Montserrat', Arial, sans-serif;
}

.mdsv-wrap em,
.mdsv-hero-texto em {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-weight: 600;
}

.mdsv-wrap h2 {
	margin-top: 32px;
	border-bottom: 2px solid var(--mdsv-amarelo);
	padding-bottom: 8px;
	display: inline-block;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Hero — cabeçalho animado com a logo, em todas as telas do painel     */
/* ------------------------------------------------------------------ */

.mdsv-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--mdsv-preto);
	border-radius: 10px;
	padding: 28px 32px;
	margin-bottom: 24px;
}

.mdsv-hero-blob {
	position: absolute;
	top: -120px;
	right: -100px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: var(--mdsv-amarelo);
	filter: blur(60px);
	opacity: 0.35;
	z-index: 0;
	animation: mdsvLight 6s ease-in-out infinite;
}

.mdsv-hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 20px;
}

.mdsv-hero-logo {
	width: 60px;
	height: 60px;
	flex: none;
	display: block;
	filter: drop-shadow(4px 4px 0 var(--mdsv-amarelo));
	animation: mdsvHeroIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mdsv-hero-logo svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mdsv-hero-texto h1 {
	margin: 0;
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
	animation: mdsvFadeUp 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mdsv-hero-texto p {
	margin: 6px 0 0;
	color: #b9b9b9;
	font-size: 13px;
	animation: mdsvFadeUp 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mdsvHeroIn {
	0% { opacity: 0; transform: scale(0.6) rotate(-8deg); }
	100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes mdsvFadeUp {
	0% { opacity: 0; transform: translateY(10px); }
	100% { opacity: 1; transform: translateY(0); }
}

@keyframes mdsvLight {
	0%, 100% { transform: scale(0.95); opacity: 0.3; }
	50% { transform: scale(1.1); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
	.mdsv-hero-logo,
	.mdsv-hero-texto h1,
	.mdsv-hero-texto p,
	.mdsv-hero-blob {
		animation: none !important;
	}
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll — aplicado via IntersectionObserver no admin.js     */
/* ------------------------------------------------------------------ */

.mdsv-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mdsv-reveal.mdsv-visible {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Cards                                                                */
/* ------------------------------------------------------------------ */

.mdsv-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.mdsv-card {
	background: var(--mdsv-preto);
	color: #fff;
	border-radius: 8px;
	padding: 18px 20px;
	border-left: 4px solid var(--mdsv-amarelo);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mdsv-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.mdsv-card-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #b8b8b8;
	margin-bottom: 6px;
}

.mdsv-card-valor {
	font-size: 22px;
	font-weight: 700;
}

.mdsv-positivo { color: #4fd17c; }
.mdsv-negativo { color: #ff6b6b; }
.mdsv-card .mdsv-positivo,
.mdsv-card .mdsv-negativo { color: inherit; }
td.mdsv-positivo { color: #1a7f3c; font-weight: 600; }
td.mdsv-negativo { color: #b3261e; font-weight: 600; }

.mdsv-table-status th,
.mdsv-table-status td {
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Formulários                                                          */
/* ------------------------------------------------------------------ */

.mdsv-form {
	background: #fff;
	border: 1px solid var(--mdsv-linha);
	border-radius: 8px;
	padding: 20px;
	margin: 16px 0;
	max-width: 520px;
}

#mdsv-form-orcamento {
	max-width: none;
}

.mdsv-form label {
	display: block;
	margin-bottom: 14px;
	font-weight: 600;
	font-size: 13px;
}

.mdsv-form input[type="text"],
.mdsv-form input[type="email"],
.mdsv-form input[type="number"],
.mdsv-form input[type="date"],
.mdsv-form input[type="file"],
.mdsv-form select,
.mdsv-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	font-weight: 400;
	padding: 8px 10px;
	border: 1px solid var(--mdsv-linha);
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mdsv-form input:focus,
.mdsv-form select:focus,
.mdsv-form textarea:focus,
.mdsv-grid input:focus,
.mdsv-grid select:focus {
	border-color: var(--mdsv-amarelo);
	box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.25);
	outline: none;
}

.mdsv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px 24px;
	background: var(--mdsv-fundo-suave);
	border: 1px solid var(--mdsv-linha);
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

.mdsv-grid label {
	font-weight: 600;
	font-size: 13px;
	animation: mdsvCampoIn 0.35s ease both;
}

@keyframes mdsvCampoIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.mdsv-grid input,
.mdsv-grid select {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 8px 10px;
	border: 1px solid var(--mdsv-linha);
	border-radius: 4px;
	font-weight: 400;
}

.mdsv-preview {
	background: #fffaf0;
	border-left: 4px solid var(--mdsv-amarelo);
	padding: 14px 18px;
	margin-bottom: 20px;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.mdsv-filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
	align-items: center;
}

.mdsv-detalhe-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: start;
}

.mdsv-detalhe-lateral .mdsv-card {
	margin-bottom: 12px;
}

.mdsv-detalhe-lateral .button,
.mdsv-detalhe-lateral form {
	margin-bottom: 10px;
	display: block;
}

/* ------------------------------------------------------------------ */
/* Badges de status                                                     */
/* ------------------------------------------------------------------ */

.mdsv-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mdsv-badge-novo { background: #eef1f5; color: #33475b; }
.mdsv-badge-em_negociacao { background: #fff3d6; color: #8a5a00; animation: mdsvPulseSuave 2s ease-in-out infinite; }
.mdsv-badge-aprovado { background: #e2f6e9; color: #1a7f3c; }
.mdsv-badge-recusado { background: #fbe3e1; color: #b3261e; }
.mdsv-badge-concluido { background: var(--mdsv-preto); color: var(--mdsv-amarelo-claro); }
.mdsv-badge-receita { background: #e2f6e9; color: #1a7f3c; }
.mdsv-badge-despesa { background: #fbe3e1; color: #b3261e; }

@keyframes mdsvPulseSuave {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

.mdsv-cta-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.mdsv-paginacao {
	display: flex;
	gap: 6px;
	margin-top: 16px;
}

.mdsv-tabela-precos input {
	width: 110px;
}

/* ------------------------------------------------------------------ */
/* Botão flutuante — mesmo padrão do botão de WhatsApp do site          */
/* ------------------------------------------------------------------ */

.mdsv-float-btn {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9999;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--mdsv-preto, #080808);
	color: var(--mdsv-amarelo, #ffc400) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 400;
	text-decoration: none !important;
	line-height: 1;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 196, 0, 0.48);
	animation: mdsvFloatPulse 2.4s ease-in-out infinite;
	transition: transform 0.25s ease;
}

.mdsv-float-btn:hover {
	transform: translateY(-3px) scale(1.05);
	color: var(--mdsv-amarelo-claro, #ffe071) !important;
}

@keyframes mdsvFloatPulse {
	0%, 100% { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 196, 0, 0.48); }
	50% { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 13px rgba(255, 196, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.mdsv-float-btn,
	.mdsv-badge-em_negociacao {
		animation: none !important;
	}
}

@media (max-width: 900px) {
	.mdsv-detalhe-grid {
		grid-template-columns: 1fr;
	}
	.mdsv-hero-inner {
		flex-wrap: wrap;
	}
}
.mdsv-items{display:grid;gap:9px;margin:12px 0}
.mdsv-item{display:grid;grid-template-columns:1.25fr 1.7fr .6fr .8fr auto;gap:8px;align-items:center;background:#f6f6f4;padding:10px;border-radius:8px}
.mdsv-item input,.mdsv-item select{width:100%;min-width:0}
.mdsv-total-line{padding:10px 15px;background:#101010;color:#fff;display:inline-flex;gap:16px;border-radius:7px}
.mdsv-total-line strong{color:#ffc400}
@media(max-width:750px){.mdsv-item{grid-template-columns:1fr 1fr}.mdsv-item>input:nth-child(2){grid-column:span 2}}
