/* Over Brindes — Cotações
   Estilo neutro de propósito: herda fonte e cor do tema.
   Ajuste --ob-cor para a cor da marca. */

.ob-cot-form-wrap,
.ob-cot-lista {
	--ob-cor: #0b5fff;
	--ob-borda: #e0e2e7;
	--ob-texto-fraco: #5c6270;
	--ob-fundo-fraco: #f7f8fa;
	--ob-raio: 10px;
	font: inherit;
	color: inherit;
}

/* ---------- Formulário ---------- */

.ob-cot-titulo {
	margin: 0 0 1rem;
}

.ob-cot-linha {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1rem;
}

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

.ob-cot-campo {
	margin-bottom: 1rem;
}

.ob-cot-campo label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.ob-cot-campo input,
.ob-cot-campo textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--ob-borda);
	border-radius: var(--ob-raio);
	background: #fff;
	font: inherit;
	color: inherit;
}

.ob-cot-campo input:focus,
.ob-cot-campo textarea:focus {
	outline: 2px solid var(--ob-cor);
	outline-offset: 1px;
	border-color: var(--ob-cor);
}

.ob-cot-campo--erro input,
.ob-cot-campo--erro textarea {
	border-color: #c02b2b;
}

.ob-cot-erro {
	display: block;
	min-height: 1em;
	margin-top: 0.3rem;
	color: #c02b2b;
	font-size: 0.8125rem;
}

/* honeypot: fora da tela, mas ainda focável por robô */
.ob-cot-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ob-cot-btn {
	display: inline-block;
	padding: 0.8rem 1.6rem;
	border: 0;
	border-radius: var(--ob-raio);
	background: var(--ob-cor);
	color: #fff;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.ob-cot-btn:hover {
	filter: brightness(0.93);
}

.ob-cot-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

.ob-cot-btn--claro {
	background: transparent;
	border: 1px solid var(--ob-borda);
	color: inherit;
}

.ob-cot-msg {
	margin: 0.9rem 0 0;
	font-size: 0.9375rem;
}

.ob-cot-msg--ok {
	color: #1a7f47;
}

.ob-cot-msg--erro {
	color: #c02b2b;
}

/* ---------- Área do cliente ---------- */

.ob-cot-aviso {
	padding: 1.25rem;
	border: 1px solid var(--ob-borda);
	border-radius: var(--ob-raio);
	background: var(--ob-fundo-fraco);
}

.ob-cot-lista {
	display: grid;
	gap: 1rem;
}

.ob-cot-card {
	border: 1px solid var(--ob-borda);
	border-radius: var(--ob-raio);
	padding: 1.1rem 1.25rem;
	background: #fff;
}

.ob-cot-card__topo {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.9rem;
}

.ob-cot-card__numero {
	display: block;
	font-weight: 700;
}

.ob-cot-card__topo time {
	font-size: 0.8125rem;
	color: var(--ob-texto-fraco);
}

.ob-cot-badge {
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: #eef0f4;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.ob-cot-badge--nova       { background: #e8f0ff; color: #1b4fbf; }
.ob-cot-badge--em_analise { background: #fff4e0; color: #8a5a00; }
.ob-cot-badge--enviada    { background: #e9f3ff; color: #1b5fa8; }
.ob-cot-badge--aprovada   { background: #e4f6ea; color: #1a7f47; }
.ob-cot-badge--recusada   { background: #fdeaea; color: #a52121; }
.ob-cot-badge--expirada   { background: #eef0f4; color: #5c6270; }

.ob-cot-itens {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.ob-cot-itens th,
.ob-cot-itens td {
	padding: 0.55rem 0.5rem;
	border-bottom: 1px solid var(--ob-borda);
	text-align: left;
}

.ob-cot-itens th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ob-texto-fraco);
}

.ob-cot-card__rodape {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	margin-top: 0.9rem;
}

.ob-cot-total {
	font-size: 1.0625rem;
}

.ob-cot-validade {
	font-size: 0.8125rem;
	color: var(--ob-texto-fraco);
}

/* Tabela vira lista no celular */
@media (max-width: 560px) {
	.ob-cot-itens thead {
		display: none;
	}

	.ob-cot-itens tr {
		display: block;
		padding: 0.5rem 0;
		border-bottom: 1px solid var(--ob-borda);
	}

	.ob-cot-itens td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		border: 0;
		padding: 0.2rem 0;
	}

	.ob-cot-itens td::before {
		content: attr(data-rotulo);
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--ob-texto-fraco);
	}
}
