@charset "UTF-8";
/*Funções SCSS personalizadas que retornam valores.*/
/*
Contém mixins reutilizáveis, ou seja, blocos de código que evitam repetição.
Exemplos comuns:
    Media queries
    Flexbox
    Centralização de elementos
*/
/*
Contém configurações globais e ferramentas SCSS.
Define variáveis globais:

    Cores principais e secundárias
    Tipografia (fontes)
    Espaçamentos
    Breakpoints (mobile, tablet, desktop)
*/
/*para responsivo*/
/*
Estilos globais:
  body
  cores de fundo
  links
  regras gerais reutilizáveis
*/
body {
  background-color: #f9f9f9;
  overflow-x: hidden;
}

main {
  padding: 2rem;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #f9f9f9;
}

input,
select,
textarea,
button {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Arial, sans-serif;
}

textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical; /* Permite redimensionar verticalmente */
  font-family: Arial, sans-serif; /* Mantém a fonte consistente */
}

label {
  color: #333;
}

.alinha_direita {
  display: flex;
  justify-content: flex-end; /* Alinha à direita */
  margin-top: 1rem; /* Espaçamento opcional */
}

@page {
  size: A4;
  margin: 0;
}
/*
🔹 _reset.scss
Remove estilos padrão dos browsers (margens, paddings, etc.).
Objetivo:
  Garantir consistência entre navegadores
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*
Define tudo o que está relacionado com texto:
  Fontes
  Tamanhos
  Pesos
  Títulos (h1 a h6)
  Parágrafos
*/
body {
  font-family: Arial, sans-serif;
}

/*
Estilos de botões:
  Primário
  Secundário
  Estados (hover, disabled)
*/
/* Classe geral botões */
.btn {
  margin-top: 1.6rem;
  padding: 6px 16px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #0056b3;
}

.btn_pequeno {
  min-width: 100px;
  height: 36px;
}

.btn_grande {
  width: 100%;
  height: 36px;
}

.btn_verde {
  background-color: #4ed354;
}

.btn_verde:hover {
  background-color: #2e7d32;
}

.btn_vermelho {
  background-color: #d32f2f;
}

.btn_vermelho:hover {
  background-color: #b71c1c;
}

.btn_cinza {
  color: #333;
  background-color: #c6c6c6;
}

.btn_cinza:hover {
  background-color: #aaaaaa;
}

.btn_cinza_escuro {
  background-color: #2c3e50;
}

.btn_transparente {
  background-color: transparent;
  color: #333;
}

.btn_transparente:hover {
  background-color: transparent;
  color: #000000;
}

/* ----------------------------------------- */
.btn-icon {
  all: unset;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn_defenicoes {
  all: unset; /* Remove quase todos os estilos */
  cursor: pointer;
  font-size: 18px; /* Ajusta tamanho do ícone */
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
}

/*
Formulários:
  Inputs
  Labels
  Selects
  Validação
*/
form {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

legend {
  padding: 0 0.5rem;
  font-weight: bold;
  color: #333;
  font-size: 1.1rem;
}

label {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

input,
select,
textarea,
button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
}

.textarea_grande {
  width: 100%;
  min-height: 80px; /* Altura mínima para as textareas */
}

.align-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* botão alinhado verticalmente ao meio */
.btndiv {
  display: flex;
  align-items: center;
  margin-top: 13px;
}

.icon {
  width: 40px;
  height: 40px;
}

.input-icon {
  position: relative;
  width: 100%;
}

.input-icon input {
  width: 100%;
  padding-right: 40px;
  height: 40px;
}

.input-icon .icon {
  position: absolute;
  right: 0px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  pointer-events: auto; /* permite clicar no ícone */
}

/*
Pop-ups e janelas modais:
  Fundo escurecido
  Conteúdo central
  Botões de ação
*/
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.popup.active {
  opacity: 1;
  pointer-events: auto;
}
.popup__content {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.popup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.popup__media {
  max-width: 100%;
  max-height: 75vh;
  display: none;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  margin-bottom: 1rem;
}

.popup__media.active {
  display: block;
}

/* Zoom tipo galeria */
.popup__media.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

/*================= Mostra e esconde ===============================*/
.div_gaveta {
  display: none;
}
.div_gaveta.div_gaveta_aberta {
  display: flex;
}

/*// mais soave 
.div_escondida {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;

  &.div_aberta {
    max-height: 300px; // ajustável
  }
}*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
}

tr:hover {
  background-color: #f2f2f2;
  cursor: pointer;
}

/* Cabeçalhos ordenáveis */
th.sortable {
  cursor: pointer;
  position: relative;
  user-select: none;
}
th.sortable::after {
  content: "⇅";
  font-size: 12px;
  margin-left: 6px;
  color: #aaa;
}
th.sortable.asc::after {
  content: "▲";
  color: #333;
}
th.sortable.desc::after {
  content: "▼";
  color: #333;
}
th.sortable:hover {
  background-color: #f0f0f0;
}

/* Estados das linhas */
.tr-pronta {
  background-color: #4ed354;
}

.tr-pronta-excecao {
  background-color: #d32f2f;
}

.tr-pendente {
  background-color: #ffff00;
}

.tr-pendente-entrega {
  background-color: #ffa500;
}

.tr-recepcionada {
  background-color: #00ffff;
}

.tr-pronta,
.tr-pronta-excecao,
.tr-pendente,
.tr-pendente-entrega,
.tr-recepcionada {
  transition: background-color 0.2s;
}
.tr-pronta:hover,
.tr-pronta-excecao:hover,
.tr-pendente:hover,
.tr-pendente-entrega:hover,
.tr-recepcionada:hover {
  background-color: rgba(0, 0, 0, 0.4);
  mix-blend-mode: multiply;
}

/* --------------------------- Responsivo -------------------------*/
@media (max-width: 1150px) {
  .tabela-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .tabelaresultados {
    width: 100%;
    max-width: none;
  }
}
/*
Estilos do rodapé:
    Informações legais
    Links
    Créditos
*/
/*
Sistema de grelha/layout:
    Colunas
    Containers
    Alinhamentos principais
*/
main {
  margin-top: 70px;
}

/*
Estilos do cabeçalho:
  Logo
  Menu
  Utilizador logado
*/
/* ---------- Navbar topo ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0077cc;
  padding: 0.25rem 0.5rem;
  color: #fff;
}

/* ---------- Botões ---------- */
.menu-btn {
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
  background: transparent;
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.div_btn_retorceder {
  color: #fff;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icone {
  width: 36px;
  height: 36px;
  display: block;
}

/*
Estilos da barra lateral:
  Navegação
  Ícones
  Estados ativo/inativo
*/
/* ---------- Sidebars ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  padding-top: 60px;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #0077cc;
  color: #fff;
  transition: width 0.28s ease;
  z-index: 1000;
}
.sidebar.open {
  width: 250px;
}
.sidebar a,
.sidebar button {
  padding: 12px 18px;
  display: block;
  width: 100%;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
.sidebar a:hover,
.sidebar button:hover {
  background-color: #005fa3;
}

/* menu principal */
#menuLateral {
  z-index: 1000;
}

/* submenu acima do principal */
#funcoesMenu {
  z-index: 1100;
}

/* ---------- Conteúdo ---------- */
.conteudo {
  padding: 1rem;
  transition: margin-left 0.28s ease;
}
.conteudo.shifted {
  margin-left: 250px;
}

/* ---------- Overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 900;
}
.overlay.active {
  display: block;
}

/* ---------- Card ---------- */
.card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  color: #333;
  max-width: 900px;
  margin: 0.5rem 0;
}

/* ---------- Responsivo ---------- */
@media (max-width: 600px) {
  .sidebar.open {
    width: 200px;
  }
  .conteudo.shifted {
    margin-left: 200px;
  }
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 24px;
}

.date-input {
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  width: 200px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: #2980b9;
}

.filter-btn.active {
  background-color: #2c3e50;
}

.appointment-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.appointment-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #3498db;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkbox.checked {
  background-color: #3498db;
}

.checkbox.checked::after {
  content: "✓";
  color: white;
  font-weight: bold;
}

.appointment-info {
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 5px;
}

.code {
  font-weight: bold;
  color: #2c3e50;
}

.type {
  font-size: 14px;
  color: #3498db;
  background-color: #e8f4f8;
  padding: 2px 8px;
  border-radius: 4px;
}

.description {
  font-size: 14px;
  color: #666;
}

.location {
  font-size: 13px;
  color: #999;
}

.status-badges {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: white;
}

.badge.garantia {
  background-color: #e74c3c;
}

.badge.ext-gar {
  background-color: #f39c12;
}

.expand-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.expand-btn:hover {
  background-color: #2980b9;
}

.card-body {
  padding: 15px;
  display: none;
}

.card-body.show {
  display: block;
}

.details {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.icons_acesso_rapido {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
  .date-input {
    width: 100%;
  }
  .filters {
    flex-wrap: wrap;
  }
  .appointment-card {
    padding: 10px;
  }
  .card-header {
    flex-direction: column;
    gap: 10px;
  }
  .appointment-info {
    align-items: flex-start;
  }
}
/*---------------------------- Fieldset informaçoes gerais ----------------------------*/
.info_gerais {
  display: flex;
  flex-wrap: nowrap; /* Impede a quebra para múltiplas linhas */
  justify-content: space-between; /* Distribui os elementos equitativamente */
  gap: 10px; /* Espaçamento entre os campos */
  width: 100%;
}

/* Estilos para labels e inputs */
.info_gerais label {
  white-space: nowrap; /* Evita quebra de linha nos labels */
}

.info_gerais input,
.info_gerais select {
  width: 100%;
  height: 36px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.9rem; /* Tamanho de fonte consistente */
  text-align: center;
}

/* Estilo base para todos os campos */
.info_gerais .campo_ig {
  flex: 1; /* Distribuição equitativa do espaço disponível */
  min-width: 0; /* Permite que os campos encolham abaixo da largura de conteúdo */
  display: flex;
  flex-direction: column;
}

/* Reduzir o tamanho dos campos específicos */
.info_gerais .campo_ig:nth-child(1),
.info_gerais .campo_ig:nth-child(4),
.info_gerais .campo_ig:nth-child(5) { /* localizacao */
  flex: 0.7; /* Reduz para 70% do tamanho dos outros campos */
}

/* Ajuste para os campos de data que precisam de mais espaço */
.info_gerais .campo_ig:nth-child(2),
.info_gerais .campo_ig:nth-child(3) { /* data_fim */
  flex: 1.2; /* Aumenta para 120% do tamanho padrão */
}

/* Estilo para o campo de tipo_servico que pode precisar de mais espaço */
.info_gerais .campo_ig:nth-child(6) { /* tipo_servico */
  flex: 1.3; /* Aumenta para 130% do tamanho padrão */
}

/*---------------------------------------*/
/* --------------- cliente e equipamento -----------------*/
.bloco-cliente-equipamento {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.caixa-cliente,
.caixa-equipamento {
  flex: 1 1 48%; /* lado a lado em ecrãs grandes */
  min-width: 300px; /* permite quebra em ecrãs pequenos */
  box-sizing: border-box;
}

.campo_cliente,
.campo_equipamento {
  width: 100%;
}

.campo_cliente input,
.campo_cliente select,
.campo_equipamento input,
.campo_equipamento select {
  width: 100%;
  box-sizing: border-box;
}

.campo_cliente label,
.campo_equipamento label {
  display: block;
  margin-bottom: 0.2rem;
}

/* Garantir que os campos internos ocupam 100% */
.cliente,
.equipamento {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/*--------------------------------------------------------*/
/* ------------------ caixa fotos ------------------ */
.preview_card {
  position: relative;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: 0.5rem;
}

.preview_card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview_card div i {
  font-size: 3rem;
  color: #d9534f;
}

.uploading_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  z-index: 10;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/*---------------------- fieldset informaçoes tecnicas --------------------------*/
.info-tecnicas {
  flex-direction: column;
  width: 100%;
}

/* -------------------------------------*/
/*------------------- Fieldset Ocamento Base ------------------------------*/
.orcamento-base {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  width: 100%; /* garante que não ultrapasse o fieldset */
  box-sizing: border-box;
}

.orcamento-base input {
  text-align: center;
}

.checkbox_analise {
  height: 35px;
  width: 20px;
}

/*-----------------------------------------------------------------------*/
/* ----------------- Estado e Razão -------------------------------------*/
.estado_razao {
  display: grid;
  grid-template-columns: repeat(2, 1fr) auto auto auto auto; /* 5 colunas iguais */
  gap: 1rem;
  width: 100%;
}

.estado_razao > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/*--------------------------- responsivo -------------------------------*/
/* Responsividade para telas menores */
@media (max-width: 780px) {
  .info_gerais {
    flex-wrap: wrap; /* Permite quebra em telas menores */
  }
  .info_gerais .campo_ig {
    flex-basis: 48%; /* Dois campos por linha em telas médias */
  }
  .bloco-cliente-equipamento {
    flex-direction: column;
  }
  .orcamento-base {
    grid-template-columns: repeat(2, 1fr);
  }
  .estado_razao {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .info_gerais {
    display: flex;
    flex-direction: column;
  }
  .info_gerais .campo_ig {
    flex-basis: 100%; /* Um campo por linha em telas pequenas */
  }
  .orcamento-base {
    grid-template-columns: 1fr;
  }
  .estado_razao {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ------------------------ Caixa cliente --------------------------- */
.equipamento,
.clientes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.primeira_linha_cliente,
.primeira_linha_equipamento {
  display: flex;
  width: 100%;
  gap: 1rem;
}

.primeira_linha_cliente .campo-medio,
.primeira_linha_equipamento .campo-medio {
  flex: 1; /* Faz cada campo ocupar largura igual */
  width: 100%;
}

.primeira_linha_equipamento select {
  width: 100%;
}

/* Segunda linha: campos grandes ocupando 100% */
.segunda_linha_cliente,
.segunda_linha_equipamento {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Espaço entre campos */
  width: 100%;
}

.segunda_linha_cliente .campo-grande input,
.segunda_linha_equipamento .campo-grande input {
  width: 100%;
}

/*----------------------------------------------------------------------*/
/*------------------------ Responsivo ----------------------------*/
/* Responsividade */
@media (max-width: 620px) {
  main {
    padding: 1rem;
  }
  .primeira_linha_cliente,
  .segunda_linha_cliente,
  .primeira_linha_equipamento,
  .segunda_linha_equipamento {
    flex-direction: column;
  }
  .campo-medio,
  .campo-grande {
    width: 100%;
  }
  input,
  select,
  textarea,
  button {
    width: 100%;
  }
  .input-lupa {
    display: flex;
  }
  .lupa {
    margin-left: 0.5rem;
  }
}
.dashboard {
  padding: 30px;
  background: #f4f6f9;
  min-height: 100vh;
}

.dashboard h2 {
  margin-bottom: 25px;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 35px;
  padding: 15px;
  border-radius: 50%;
  color: #fff;
}

.numero {
  font-size: 28px;
  font-weight: bold;
  margin: 5px 0;
}

.azul .card-icon {
  background: #0d6efd;
}

.verde .card-icon {
  background: #198754;
}

.laranja .card-icon {
  background: #fd7e14;
}

.vermelho .card-icon {
  background: #dc3545;
}

.azul .numero {
  color: #0d6efd;
}

.verde .numero {
  color: #198754;
}

.laranja .numero {
  color: #fd7e14;
}

.vermelho .numero {
  color: #dc3545;
}

.growth {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0;
}

.growth.positivo {
  color: #198754;
}

.growth.negativo {
  color: #dc3545;
}

.growth.neutro {
  color: #6c757d;
}

.formolario {
  display: flex;
  align-items: center; /* alinha verticalmente */
  justify-content: center;
  gap: 1rem; /* espaço entre elementos */
}

.user, .password {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}

/* Responsivo */
@media (max-width: 780px) {
  .formolario {
    flex-direction: column;
    align-items: stretch;
  }
  .formolario input {
    width: 100%;
  }
  .btndiv {
    align-self: center;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}
.bloco {
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.obs_textarea {
  width: 100%;
  height: 700px;
}

.pesquisa {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.campo {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 780px) {
  .pesquisa {
    flex-direction: column;
    align-items: stretch;
  }
  .campo,
  .btn {
    width: 100%;
  }
  .btn {
    margin-top: 8px;
  }
}
.pesquisa {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.campo {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 780px) {
  .pesquisa {
    flex-direction: column;
    align-items: stretch;
  }
  .campo,
  .btn {
    width: 100%;
  }
  .btn {
    margin-top: 8px;
  }
}
.conteudo_popup_orcamento {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  max-width: 75%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ------------------ Fieldsets e Campos -------------------- */
.linha-campos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.caixa-info-orcamento,
.caixa-pecas,
.caixa-totais {
  margin-bottom: 15px;
}

.caixa-pecas .campo,
.caixa-info-orcamento .campo,
.caixa-totais .campo-orcamento {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.caixa-pecas .campo label,
.caixa-totais label {
  font-weight: bold;
  margin-bottom: 3px;
}

.caixa-pecas .campo input,
.caixa-info-orcamento input,
.caixa-totais input {
  width: 100%;
  padding: 6px;
  box-sizing: border-box;
}

/* ------------------ Botões -------------------- */
.addPecas {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #0077cc;
  color: #fff;
  border: none;
  border-radius: 5px;
}

.tabela-orcamento td button {
  padding: 2px 5px;
  background-color: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

/* ------------------ Tabela -------------------- */
.tabela-orcamento-container {
  overflow-x: auto;
  width: 100%;
  margin: 1rem 0;
}

.tabela-orcamento {
  width: 100%;
  border-collapse: collapse;
  background: #f9f9f9;
  min-width: 900px; /* força largura mínima */
}

.tabela-orcamento th,
.tabela-orcamento td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: center;
}

.tabela-orcamento th {
  background-color: #0077cc;
  color: #fff;
}

.tabela-orcamento td input {
  width: 100%;
  min-width: 80px;
  text-align: center;
}

/* Cabeçalho da tabela */
.tabela-orcamento thead {
  background: #0077cc;
  color: #fff;
}

.tabela-orcamento th:nth-child(1),
.tabela-orcamento td:nth-child(1) {
  min-width: 180px; /* Peça */
}

.tabela-orcamento th:nth-child(2),
.tabela-orcamento td:nth-child(2) {
  min-width: 140px; /* Código */
}

.tabela-orcamento th:nth-child(3),
.tabela-orcamento td:nth-child(3) {
  min-width: 80px; /* Qnt */
}

.tabela-orcamento th:nth-child(4),
.tabela-orcamento td:nth-child(4) {
  min-width: 90px; /* Portes */
}

.tabela-orcamento th:nth-child(5),
.tabela-orcamento td:nth-child(5) {
  min-width: 160px; /* Fornecedor */
}

.tabela-orcamento th:nth-child(6),
.tabela-orcamento td:nth-child(6),
.tabela-orcamento th:nth-child(7),
.tabela-orcamento td:nth-child(7) {
  min-width: 100px; /* PdC / PvP */
}

/* ------------------ Totais -------------------- */
.caixa-totais {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ------------------ Responsivo -------------------- */
@media (max-width: 780px) {
  .linha-campos {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .linha-campos {
    grid-template-columns: 1fr;
  }
}
.popup_conteudo {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 2rem;
}

/* ============== Popup novo_serv_marca_equip ============== */
.novo_serv_marca_equip {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.conteudo_novo_serv_marca_equip {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 2rem;
  gap: 1rem;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.conteudo_novo_serv_marca_equip input {
  width: 100%;
  margin: 1rem 0;
}

/*----------------------------------------------------------------*/
/* ============== Popup Pesquisa Cliente ============== */
.popup_clienteModelo .conteudo_popup_clienteModelo {
  width: 500px;
  max-height: 70vh;
  overflow-y: auto;
}
.popup_clienteModelo h3 {
  margin-bottom: 1rem;
}
.popup_clienteModelo table {
  width: 100%;
  border-collapse: collapse;
}
.popup_clienteModelo table th, .popup_clienteModelo table td {
  border: 1px solid #ccc;
  padding: 6px;
}
.popup_clienteModelo table tr:hover {
  background: #f0f0f0;
  cursor: pointer;
}

/*----------------------------------------------------------------*/
/* ============== Popup Apagar,terminar,fotos e defenições Rep ============== */
.popupApagar .conteudo_popup_apagar,
.popupApagar .conteudo_popup_terminar,
.popupApagar .conteudo_popup_defenicoes,
.popupApagar .conteudo_popup_fotosDocs,
.popupTerminar .conteudo_popup_apagar,
.popupTerminar .conteudo_popup_terminar,
.popupTerminar .conteudo_popup_defenicoes,
.popupTerminar .conteudo_popup_fotosDocs,
.popupDefenicoes .conteudo_popup_apagar,
.popupDefenicoes .conteudo_popup_terminar,
.popupDefenicoes .conteudo_popup_defenicoes,
.popupDefenicoes .conteudo_popup_fotosDocs,
.popup_fotosDocs .conteudo_popup_apagar,
.popup_fotosDocs .conteudo_popup_terminar,
.popup_fotosDocs .conteudo_popup_defenicoes,
.popup_fotosDocs .conteudo_popup_fotosDocs {
  max-width: 420px;
  text-align: center;
}
.popupApagar h2,
.popupTerminar h2,
.popupDefenicoes h2,
.popup_fotosDocs h2 {
  margin-bottom: 1rem;
}
.popupApagar p,
.popupTerminar p,
.popupDefenicoes p,
.popup_fotosDocs p {
  margin-bottom: 1.5rem;
}
.popupApagar .popup__actions,
.popupTerminar .popup__actions,
.popupDefenicoes .popup__actions,
.popup_fotosDocs .popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============== Popup defenicoes ============== */
#popupDefinicoes .links {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}
#popupDefinicoes .datas,
#popupDefinicoes .agendamento {
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}
#popupDefinicoes .datas input,
#popupDefinicoes .agendamento input,
#popupDefinicoes .agendamento textarea {
  width: 100%;
  gap: 1rem;
  text-align: center;
}

/* ============== Popup fotos e Docomentos ============== */
#popup_fotos .popup_conteudo {
  width: 80vw;
  max-width: 1000px;
  max-height: 90vh;
}
#popup_fotos .popup__top {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #f1f1f1;
  padding: 0.5rem 1rem;
}
#popup_fotos .popup__top i {
  cursor: pointer;
  font-size: 1.4rem;
}
#popup_fotos .popup__body {
  display: flex;
  justify-content: center;
  padding: 1rem;
  padding-bottom: 1.5rem;
  text-align: center;
}
#popup_fotos .popup__body img {
  cursor: zoom-in;
  max-height: 80vh;
}
#popup_fotos .popup__body iframe {
  width: 90vw;
  height: 80vh;
}

.a4 {
  width: 210mm;
  min-height: 297mm;
  background: white;
  margin: 20px auto;
  padding: 20mm; /* aumentei o padding */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* força a distribuição vertical */
}

/* PRINT REAL */
/* PRINT REAL */
@media print {
  body {
    background: none;
    font-size: 10.5px;
  }
  /* Esconde tudo */
  body * {
    visibility: hidden;
  }
  /* Mostra apenas a A4 */
  .a4, .a4 * {
    visibility: visible;
  }
  /* Ajusta posição para impressão limpa */
  .a4 {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
  }
}
.top-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.top-box {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 10px; /* mais espaço entre colunas */
}

.box {
  border: 2px solid black;
  padding: 12px; /* mais espaço interno */
}

.linha-titulo {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  border-bottom: 1px solid black;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.linha {
  margin-bottom: 5px;
}

.logo img {
  height: 60px; /* ou o tamanho que ficar melhor */
  object-fit: contain;
}

.info {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 15px;
}

.info .esq,
.info .dir {
  width: 48%;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
}

.tabela th,
.tabela td {
  border: 2px solid black;
  padding: 6px;
}

.total-texto {
  text-align: right;
  font-weight: bold;
}

.relatorio {
  margin-top: 20px;
  min-height: 200px;
  padding: 10px;
  border: 1.5px solid black; /* linha por baixo */
  box-sizing: border-box;
  position: relative; /* garante que a linha fique no fundo */
}

.relatorio-texto {
  white-space: pre-wrap; /* preserva quebras de linha e espaços */
  line-height: 1.5; /* deixa o texto mais legível */
}

.assinaturas {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* garante que a linha fique no fundo */
  margin-top: 40px;
}

.assinatura-bloco {
  width: 30%;
  text-align: center;
  position: relative;
}

.linha-assinatura {
  border-bottom: 1.5px solid black;
  height: 1px;
  margin-top: 25px;
}

.tecnico img {
  position: absolute;
  bottom: 17px; /* assinatura sobre a linha do técnico */
  left: 50%;
  transform: translateX(-50%);
  max-width: 120px;
  height: auto;
}

/*# sourceMappingURL=main.css.map */
