/* =========================================================
   CelesTI – Duplicar Orçamentos
   ========================================================= */

.celesti-duplicar-orcamento,
.celesti-duplicar-orcamento *,
.celesti-duplicar-modal,
.celesti-duplicar-modal * {
	box-sizing: border-box;
}

.celesti-duplicar-orcamento {
	width: 100%;
	font-family: "Open Sans", Arial, sans-serif;
	color: #333333;
	font-size: 14px;
}

.celesti-btn-duplicar-orcamento,
.celesti-btn-confirmar-duplicacao,
.celesti-btn-cancelar-duplicacao {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 8px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 24px !important;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
}

.celesti-btn-duplicar-orcamento,
.celesti-btn-confirmar-duplicacao {
	background: #ef2332;
	color: #ffffff;
}

.celesti-btn-duplicar-orcamento *,
.celesti-btn-confirmar-duplicacao *,
.celesti-duplicar-modal-close,
.celesti-duplicar-modal-close * {
	color: #ffffff !important;
}

.celesti-btn-cancelar-duplicacao {
	background: #dedede;
	color: #333333;
}

.celesti-btn-duplicar-orcamento span,
.celesti-btn-duplicar-orcamento i,
.celesti-btn-confirmar-duplicacao span,
.celesti-btn-confirmar-duplicacao i {
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.celesti-btn-cancelar-duplicacao span,
.celesti-btn-cancelar-duplicacao i {
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.celesti-btn-confirmar-duplicacao:disabled {
	opacity: .65;
	cursor: not-allowed;
}

.celesti-duplicar-modal[hidden] {
	display: none !important;
}

.celesti-duplicar-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
}

.celesti-duplicar-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.celesti-duplicar-modal-box {
	position: relative;
	z-index: 1;
	width: min(100%, 560px);
	max-height: calc(100vh - 44px);
	overflow: visible;
	background: #ffffff;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.celesti-duplicar-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	background: #ef2332;
	color: #ffffff;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	line-height: 1;
}

.celesti-duplicar-modal-close i {
	display: block;
	color: #ffffff;
	font-size: 15px;
	line-height: 1;
	margin: 0;
	padding: 0;
}

body.celesti-duplicar-modal-aberto {
	overflow: hidden;
}

.celesti-form-duplicar-orcamento {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.celesti-duplicar-head {
	padding-right: 32px;
}

.celesti-duplicar-head h3 {
	margin: 0 0 8px 0;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.celesti-duplicar-head p {
	margin: 0;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.celesti-duplicar-resumo {
	width: 100%;
	padding: 14px 16px;
	border-radius: 10px;
	background: #eeeeee;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.celesti-duplicar-resumo span {
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.celesti-duplicar-resumo strong {
	color: #111111;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.3;
}

.celesti-duplicar-campo {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}

.celesti-duplicar-campo label {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #717376;
	padding: 0 0 6px 10px;
	margin: 0;
}

.celesti-label-required::after {
	content: " *";
	color: #ef2332;
	font-weight: 900;
}

.celesti-obra-search {
	position: relative;
	width: 100%;
}

.celesti-obra-search-field {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.celesti-obra-search-field > i {
	position: absolute;
	left: 14px;
	z-index: 1;
	color: #717376;
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
}

.celesti-obra-search-field input[type="text"] {
	width: 100%;
	height: 42px;
	min-height: 42px;
	border: none;
	border-radius: 8px;
	background: #dedede;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 42px;
	padding: 0 42px 0 38px;
	outline: none;
	box-shadow: none;
	margin: 0;
}

.celesti-obra-search-field input[type="text"]::placeholder {
	color: #8f9297;
	opacity: 1;
}

.celesti-obra-search-clear {
	position: absolute;
	right: 8px;
	width: 26px;
	height: 26px;
	min-width: 26px;
	min-height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 6px;
	background: transparent;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	line-height: 1;
}

.celesti-obra-search-clear[hidden] {
	display: none !important;
}

.celesti-obra-search-clear i {
	color: #717376;
	font-size: 13px;
	line-height: 1;
}

.celesti-obra-search-list {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 10;
	width: 100%;
	max-height: 230px;
	overflow: auto;
	padding: 6px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #d3d3d3;
	box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

.celesti-obra-search-list[hidden] {
	display: none !important;
}

.celesti-obra-search-option {
	width: 100%;
	min-height: 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: none;
	border-radius: 7px;
	background: transparent;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	padding: 9px 10px !important;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	text-transform: none;
}

.celesti-obra-search-option.is-selected,
.celesti-obra-search-option:hover {
	background: #eeeeee;
}

.celesti-obra-search-option span {
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.celesti-obra-search-option small {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #ef2332;
	color: #ffffff;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	padding: 5px 7px;
	margin: 0;
}

.celesti-obra-search-empty {
	width: 100%;
	padding: 10px;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.celesti-obra-search-empty[hidden] {
	display: none !important;
}

.celesti-obra-search-helper {
	width: 100%;
	padding: 11px 10px;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.celesti-obra-search-helper.is-loading {
	color: #333333;
}

.celesti-obra-search-helper.is-empty {
	color: #717376;
}

.celesti-duplicar-campo small {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #717376;
	margin: 0;
	padding: 5px 0 0 10px;
}

.celesti-duplicar-retorno {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	display: none;
}

.celesti-duplicar-retorno[hidden] {
	display: none !important;
}

.celesti-duplicar-retorno.sucesso {
	display: block;
	background: #dff5e5;
	color: #166534;
}

.celesti-duplicar-retorno.erro {
	display: block;
	background: #ffe1e4;
	color: #991b1b;
}

.celesti-duplicar-acoes {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 4px;
}

@media (max-width: 767px) {
	.celesti-duplicar-modal {
		padding: 14px;
	}

	.celesti-duplicar-modal-box {
		padding: 24px 18px 18px;
	}

	.celesti-duplicar-acoes {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.celesti-btn-duplicar-orcamento,
	.celesti-btn-confirmar-duplicacao,
	.celesti-btn-cancelar-duplicacao {
		width: 100%;
	}
}

/* =========================================================
   BUSCA DE OBRAS – versão limpa em lista
   ========================================================= */

.celesti-duplicar-orcamento .celesti-obra-search {
	position: relative;
	width: 100%;
}

.celesti-duplicar-orcamento .celesti-obra-search-field input[type="text"] {
	height: 42px;
	min-height: 42px;
	border-radius: 8px;
	background: #dedede;
	font-size: 14px;
	font-weight: 400;
	line-height: 42px;
	padding: 0 42px 0 38px;
}

.celesti-duplicar-orcamento .celesti-obra-selecionada {
	width: 100%;
	margin-top: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f1f1f1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.celesti-duplicar-orcamento .celesti-obra-selecionada span {
	flex: 0 0 auto;
	color: #717376;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.celesti-duplicar-orcamento .celesti-obra-selecionada strong {
	min-width: 0;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	text-align: right;
}

.celesti-duplicar-orcamento .celesti-obra-search-list {
	position: absolute;
	left: 0;
	right: 0;
	top: 48px;
	z-index: 20;
	width: 100%;
	max-height: 210px;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 6px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #d3d3d3;
	box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}

.celesti-duplicar-orcamento button.celesti-obra-search-option,
.celesti-duplicar-orcamento .celesti-obra-search-list button.celesti-obra-search-option {
	width: 100% !important;
	min-height: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	border: none !important;
	border-radius: 8px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #333333 !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	padding: 10px 11px !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.celesti-duplicar-orcamento button.celesti-obra-search-option + button.celesti-obra-search-option {
	margin-top: 2px !important;
}

.celesti-duplicar-orcamento button.celesti-obra-search-option:hover,
.celesti-duplicar-orcamento button.celesti-obra-search-option.is-selected {
	background: #eeeeee !important;
	background-color: #eeeeee !important;
	color: #333333 !important;
}

.celesti-duplicar-orcamento .celesti-obra-search-option span {
	min-width: 0;
	color: #333333 !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	white-space: normal;
	overflow-wrap: anywhere;
}

.celesti-duplicar-orcamento .celesti-obra-search-option small {
	flex: 0 0 auto;
	border-radius: 999px;
	background: #dedede;
	color: #333333;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	padding: 5px 7px;
	margin: 0;
}

@media (max-width: 767px) {
	.celesti-duplicar-orcamento .celesti-obra-selecionada {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.celesti-duplicar-orcamento .celesti-obra-selecionada strong {
		text-align: left;
	}
}


.celesti-duplicar-busca-obra::-webkit-search-cancel-button,
.celesti-duplicar-busca-obra::-webkit-search-decoration {
	display: none;
	-webkit-appearance: none;
}

/* =========================================================
   AJUSTES v1.0.5 – campo de busca e botão cancelar
   ========================================================= */

.celesti-duplicar-orcamento .celesti-obra-search-field {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

.celesti-duplicar-orcamento .celesti-obra-search-field > i {
	display: none !important;
}

.celesti-duplicar-orcamento .celesti-obra-search-field input.celesti-duplicar-busca-obra,
.celesti-duplicar-orcamento .celesti-obra-search-field input[type="text"].celesti-duplicar-busca-obra,
.celesti-duplicar-orcamento .celesti-obra-search-field input[type="search"].celesti-duplicar-busca-obra {
	width: 100% !important;
	height: 42px !important;
	min-height: 42px !important;
	border: none !important;
	border-radius: 8px !important;
	background: #dedede !important;
	background-color: #dedede !important;
	color: #333333 !important;
	font-family: "Open Sans", Arial, sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 42px !important;
	padding: 0 42px 0 14px !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.celesti-duplicar-orcamento .celesti-obra-search-field input.celesti-duplicar-busca-obra:focus,
.celesti-duplicar-orcamento .celesti-obra-search-field input.celesti-duplicar-busca-obra:active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.celesti-duplicar-orcamento .celesti-obra-search-clear {
	right: 8px !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	border: none !important;
	border-radius: 6px !important;
	background: #ef2332 !important;
	background-color: #ef2332 !important;
	color: #ffffff !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.celesti-duplicar-orcamento .celesti-obra-search-clear i {
	color: #ffffff !important;
	font-size: 12px !important;
	line-height: 1 !important;
}

.celesti-duplicar-orcamento .celesti-obra-search-list {
	top: 48px !important;
}

.celesti-duplicar-orcamento .celesti-btn-cancelar-duplicacao,
.celesti-duplicar-modal .celesti-btn-cancelar-duplicacao,
button.celesti-btn-cancelar-duplicacao {
	background: #dedede !important;
	background-color: #dedede !important;
	color: #333333 !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
	padding: 15px 24px !important;
	box-shadow: none !important;
	outline: none !important;
}

.celesti-duplicar-orcamento .celesti-btn-cancelar-duplicacao span,
.celesti-duplicar-modal .celesti-btn-cancelar-duplicacao span,
button.celesti-btn-cancelar-duplicacao span {
	color: #333333 !important;
	font-size: 16px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
}
