/* Todos dispositivos */

html,
body {
	font-family: "Poppins", "Avenir", "Nunito Sans", sans-serif;
}

:root {
	--header-altura: 64px;
}

body {
	background-color: #f8f9fa;
}

a {
    text-decoration: none !important;
}

tbody, td, tfoot, th, thead, tr {
    border-color: inherit;
    border-style: solid;
    border-width: 1px;
}

.table {
  width: 100%;
}

.table th,
.table td {
  width: 25%;
  white-space: nowrap;
}

.card {
    border-radius: 0 !important;
}

.font-weight-bold {
    font-weight: 600;
}

header,
footer,
.menu-lateral,
.main>div {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 0;
}

header {
	border-bottom: 1px solid #ddd;
}

footer {
	border-top: solid 1px #ddd;
}

/* ====== Layout geral ====== */
.layout {
	display: flex;
	flex-direction: column;
}

/* ====== Estilo do menu ====== */
.menu-lateral ul {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-lateral a {
	display: inline-flex;
	width: 100%;
	padding: 0.5rem 0.75rem;
	border-radius: 0.25rem;
	color: #212529;
	text-decoration: none;
	transition: background-color 0.2s;
	align-items: center;
}

.menu-lateral a:hover {
	background-color: #f1f1f1;
}

.main>div {}

.menu-icon {
	width: 30px;
	height: 30px;
	margin-right: 8px;
}
.menu-icon-table {
	width: 24px;
	height: 24px;
	margin-left: 8px;
	margin-right: 8px;
}
.menu-icon-small {
	width: 24px;
	height: 24px;
	margin-right: 8px;
}

header .container-xxl {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
}

.title {
	font-size: 1.25rem;
}

.login-container {
	max-width: 400px;
	margin: 10vh auto;
	background: white;
	border: solid 1px #ddd;
	padding: 2rem;
}

input::placeholder {
  font-size: 1rem; /* ajuste o tamanho desejado */
  color: #999; /* opcional: muda a cor também */
}
.form-control {
    background-color: #0d6efd14 !important;
}

.nota-falecimento {
  font-family: 'Nunito Sans', sans-serif;
  text-align: center;
  padding: 0;
  color: #222;
}

.nota-falecimento .foto {
    display: flex;
    justify-content: center;
    margin-bottom: .8rem;
    margin-top: -5px;
}

.nota-falecimento .foto img {
  width: 130px;
  max-height: 162px;
  min-height: 162px;
  border-radius: 0;
  border: solid 4px #fff;
  object-fit: cover;
}

.nota-falecimento .nome h2 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.nota-falecimento .nome .apelido {
    margin-bottom: -5px;
    margin-top: 0px;
    font-weight: 800;
    font-size: .9rem;
}

.nota-falecimento .nome .idade {
  font-weight: 800;
  margin-top: 5px;
  letter-spacing: -1px;
}

.nota-falecimento .datas {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px; /* aumenta o espaçamento entre nascimento e falecimento */
  font-weight: bold;
  white-space: nowrap; /* impede quebra de linha */
}

.nota-falecimento .data-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem; /* aumenta tamanho da data */
  font-weight: bold;
}

.nota-falecimento .icone {
  font-size: 1.6rem; /* ícone maior */
  font-family: "Poppins", sans-serif !important;
  font-weight: bold;
  color: #000 !important;
  line-height: 1;
}

.nota-falecimento .secao {
  margin-top: .75rem;
}

.nota-falecimento .secao h4 {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 0;
  color: #000;
}

.nota-falecimento .secao p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: -.35px;
  line-height: 1.4;
}

.nota-falecimento .rodape {
  margin-top: 0;
  padding-top: 0;
  font-size: 0.7rem;
  color: #6A8BC6;
  height: 46px;
}

.nota-falecimento .rodape .logo {
  display: block;
  margin: 0 auto 0 auto;
  max-width: 150px;
}

#star-icon {
    margin-top: -2px;    
}
#cross-icon {
    width: 21px;
    height: 17px;
}
#infinite-icon {
    width: 27px;
    height: 27px;
    margin-bottom: -8px;
    margin-top: -2px;
}

@media (max-width: 576px) {
    
.nota-falecimento {
  margin-left: -1rem;
  margin-right: -1rem;
  padding-bottom: 1.37rem;
  padding-top: 1.5rem;
  background-image: url('https://sistema.forneckmattana.com.br/assets/bg-notas.png');
  background-color: #ffffff !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;

  /* 🔧 Correções específicas do bug do html2canvas com contain */
  background-origin: border-box;
  background-clip: border-box;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0); /* força renderização via GPU */
  border-top: 0.5px solid transparent; /* mascara a linha residual */
}
        
    }
    
    .nota-falecimento .secao {
      border: none !important;
    }
    
    .nota-falecimento .nome h2 {
    font-weight: 800;
    font-size: 1.50rem;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    }    

  .nota-falecimento .datas {
    flex-direction: row;           /* mantém em linha */
    justify-content: center;       /* centraliza horizontalmente */
    align-items: center;           /* alinha verticalmente */
    gap: 25px;                     /* reduz espaço entre os itens */
    flex-wrap: nowrap;             /* impede quebra de linha */
    white-space: nowrap;           /* impede quebra de texto */
  }

  .nota-falecimento .data-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: .8rem;               /* texto um pouco menor */
    font-weight: 800;
    flex-direction: column;
  }

  .nota-falecimento .icone {
    font-size: 1.4em;             /* ícone ligeiramente menor */
    font-weight: bold;
  }

  .nota-falecimento .secao h4 {
    font-size: 0.7rem;
    letter-spacing: -.25px;
  }
  
  #offcanvasGerar, #offcanvasEditar {
      width: 100% !important;
  }
  
  
}

/* PC/Notebook */
@media (min-width: 992px) {
	.layout {
		flex-direction: row;
		gap: 0;
		align-items: flex-start;
	}

	.offcanvas-lg {
		position: sticky !important;
		top: 1rem;
		transform: none !important;
		visibility: visible !important;
		width: 300px !important;
		height: auto;
		background-color: #fff !important;
		border-top: none !important;
		padding: 1rem;
		z-index: auto;
	}

	.btn-menu {
		display: none;
	}

	.main {
		flex-grow: 1;
	}
}

/* Tablet/Celular */
@media (max-width: 991px) {
	.offcanvas-lg {
		width: 100% !important;
	}

	.btn-menu {
		display: inline-flex;
		align-items: center;
	}
}
.nota-falecimento img,
.nota-falecimento h2,
.nota-falecimento .secao {
  display: block; /* evita gap de linha */
}
.nota-falecimento h2 {
  line-height: 1; /* reduz espaço inferior */
}

/* === Ajusta select e input[type=file] dentro de .form-floating === */
/* ===== Labels visíveis e consistentes ===== */
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  opacity: 1 !important;
  transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
}

/* Mantém label visível mesmo em campos de data/hora e select */
.form-floating > input:focus ~ label,
.form-floating > select:focus ~ label {
  opacity: 1 !important;
  color: #0d6efd;
}

/* ===== Ajuste para input[type=file] ===== */
.form-floating > input[type="file"].form-control {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
  cursor: pointer;
}

.form-floating > input[type="file"].form-control::-webkit-file-upload-button {
  visibility: hidden;
  width: 0;
}

.form-floating > input[type="file"].form-control::file-selector-button {
  display: none;
}

.form-floating > input[type="file"].form-control::before {
  content: "Clique para selecionar a foto";
  display: block;
  color: #6c757d;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  text-align: left;
  cursor: pointer;
}

/* Corrige comportamento do label no campo de arquivo */
.form-floating > input[type="file"].form-control ~ label {
  opacity: 1 !important;
  transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
  background-color: #fff;
  padding: 0 0.4em;
}

/* Mantém todos os campos consistentes */
.form-floating .form-control,
.form-floating .form-select {
  background-color: #fff !important;
}

/* Mantém o campo igual aos outros */
.form-floating > input[type="file"].form-control {
  height: calc(3.5rem + 2px) !important;
  padding-top: 1.2rem;
  padding-bottom: 0.4rem;
  cursor: pointer;
  background-color: #fff !important;
}

/* Remove o botão e texto padrão */
.form-floating > input[type="file"].form-control::file-selector-button,
.form-floating > input[type="file"].form-control::-webkit-file-upload-button {
  display: none;
}

/* Label visível e flutuante */
.form-floating > input[type="file"].form-control ~ label {
  opacity: 1 !important;
  color: #495057 !important;
  transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
  background-color: #fff;
  padding: 0 0.4em;
}

/* Ícone no canto direito */
.upload-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.6;
  pointer-events: none;
}

/* ===== Campo de upload no estilo form-floating ===== */
.form-floating > input[type="file"].form-control {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
  cursor: pointer;
  height: calc(3.5rem + 2px) !important; /* igual aos outros inputs */
}

.form-floating > input[type="file"].form-control::file-selector-button {
  display: none;
}

.form-floating > input[type="file"].form-control::-webkit-file-upload-button {
  visibility: hidden;
}

.form-floating > input[type="file"].form-control::before {
  content: attr(data-filename);
  display: block;
  color: #6c757d;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  text-align: left;
  cursor: pointer;
  background-color: transparent !important;
}

.form-floating > input[type="file"].form-control ~ label {
  opacity: 1 !important;
  transform: scale(0.85) translateY(-0.7rem) translateX(0.15rem);
  background-color: transparent !important;
  padding: 0 0.4em;
}

.form-floating .form-control,
.form-floating .form-select {
  background-color: #fff !important;
}

/* Input file com alinhamento central do texto */
.form-floating > input[type="file"].form-control {
  height: calc(3.5rem + 2px) !important;
  padding-top: 0.5rem;   /* reduz o espaço superior */
  padding-bottom: 0.5rem; /* reduz o espaço inferior */
  line-height: 1.1;      /* melhora o alinhamento vertical */
  cursor: pointer;
  background-color: transparent !important;
  color: #495057 !important;
}
.sub-title {
    background-color: #000;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Ajusta selects dentro de form-floating */
.form-floating select {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > label {
  color: #666;
  pointer-events: none;
  transform-origin: 0 0;
}

/* Corrige ícone e placeholder nos selects */
.form-floating > select:focus ~ label,
.form-floating > select:not(:placeholder-shown) ~ label {
  opacity: .65;
  transform: scale(.85) translateY(-0.6rem) translateX(0.15rem);
}

/* Garante altura consistente */
.form-floating > select.form-select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

/* 🌟 MODO EXPORTAÇÃO PARA HTML2CANVAS - GARANTE A LARGURA IDEAL */
.modo-export {
  width: 468px !important;
  max-width: 468px !important;
  margin: 0 auto !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* evita recortes em elementos internos */
.modo-export * {
  transform: none !important;
}

.nota-falecimento {
  position: relative; /* necessário para posicionamento absoluto do logo */
}

/* ✅ Cenário 1: Apenas logo */
.logo-forneck {
  position: absolute;
  right: 20px;
  bottom: 20px !important;
  width: 90px;
  opacity: 1;
  z-index: 50;
  pointer-events: none;
}

/* Somente frase (sem endereço) */

.logo-forneck-com-frase {
    width: 90px;
    opacity: 1;
    z-index: 50;
    pointer-events: none;
}

/* ✅ Cenário 2: Endereço sem frase */
.logo-forneck.com-endereco {
    position: static;
    margin: .5rem auto -0.5rem auto;
}

/* ✅ Cenários 3 e 4: Frase final presente */
.logo-frase-final {
  display: inline-flex;
  align-items: flex-end;
  z-index: 50;
  pointer-events: none;
}

/* ✅ Cenário 4: Frase + endereço (descer tudo) */
.logo-frase-final.com-endereco {
  bottom: 70px; /* ajuste fino */
}

.logo-frase-final .frase-final {
    font-size: 0.7rem;
    line-height: 1.05rem;
    color: #7DA3D9;
    font-weight: 700;
    margin: 0;
}

.secao.sem-endereco-e-frase {
  margin-bottom: 1rem !important;
}


/* =========================================================
   ✅ Correção completa do layout de offcanvas no PC
   ========================================================= */

/* 🖥️ Menu lateral fixo apenas no desktop */
@media (min-width: 992px) {

  /* Corrige layout base */
  .layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: #fff;
    border-left: solid 1px #dedede;
  }

  /* 🔹 Mantém menu lateral fixo e visível */
  #menuLateral.offcanvas,
  #menuLateral.offcanvas-lg {
    position: sticky !important;
    top: var(--header-altura);
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: calc(100vh - var(--header-altura)) !important;
    background: #fff !important;
    box-shadow: none !important;
    z-index: 10 !important;
    border: none;
    height: auto !important;
  }

  /* Remove backdrop e botão do menu no desktop */
  .offcanvas-backdrop.show {
    display: none !important;
  }
  .btn-menu {
    display: none !important;
  }

  /* 🔹 Mantém o conteúdo principal ao lado do menu */
  .main {
    flex-grow: 1;
    width: 100%;
    margin-left: 0;
  }

  /* 🔹 Garante que o offcanvas lateral direito (Gerar nota)
     continue sendo um painel móvel */
  #offcanvasGerar.offcanvas,
  #offcanvasGerar.offcanvas-end {
    position: fixed !important;
    top: 0;
    right: 0;
    transform: translateX(100%) !important; /* padrão Bootstrap */
    visibility: hidden !important;
    transition: transform 0.3s ease-in-out;
    width: 480px !important;
  }

  #offcanvasGerar.show {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
}

.nota-falecimento.tem-apelido {
  padding-bottom: 1rem !important;
}

.nota-falecimento .foto.tem-apelido img {
  width: 122px;
  max-height: 152px;
}
.button-missas {
    background-color: #fff !important;
    border: none !important;
}
.italianno-regular {
    font-family: "Italianno", cursive;
    font-weight: 600;
    font-size: 3.8rem;
    letter-spacing: 2px;
}
#area-missa {
    background-image: url(https://sistema.forneckmattana.com.br/assets/bg-notas.png);
    background-color: #ffffff !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-origin: border-box;
    background-clip: border-box;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
    border-top: 0.5px solid transparent;
}
.nunito-sans {
    font-family: "Nunito Sans";
}