/* ============================================================
   orcamentos.css — layout do orçamento, itens, totais
   ============================================================ */

/* Número do orçamento (badge no topo da página) */
.orc-numero {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-blue-text);
  background: var(--c-blue-bg);
  padding: 4px 12px;
  border-radius: var(--r-full);
}

/* Cabeçalho: 4 colunas */
.orc-header-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
}

/* Itens: header row */
.orc-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.orc-items-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-3);
}

/* Tabela de itens */
.items-table-wrap { overflow-x: auto; }
.items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.items-table th {
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-3);
  border-bottom: 0.5px solid var(--c-border);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.items-table td {
  padding: 6px 4px;
  border-bottom: 0.5px solid var(--c-border);
  vertical-align: top;
}
.items-table tbody tr:last-child td { border-bottom: none; }

.items-table input[type=text],
.items-table input[type=number],
.items-table select { padding: 5px 8px; font-size: 12px; }

/* textarea nos itens */
.items-table textarea {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  min-height: 90px;
  resize: vertical;
  border: 0.5px solid var(--c-border-md);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font-sans);
  line-height: 1.5;
}
.items-table textarea:focus { outline: none; border-color: var(--c-blue); }

/* Larguras das colunas */
.col-svc  { width: 16%; }
.col-nome { width: 16%; }
.col-desc { width: 30%; }
.col-qty  { width: 8%;  }
.col-val  { width: 12%; }
.col-mont { width: 12%; }
.col-del  { width: 6%;  }

.montante-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  color: var(--c-text);
  display: block;
  padding-top: 8px;
}

/* Rodapé em 2 colunas */
.orc-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

/* Totais */
.orc-totals {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  color: var(--c-text-2);
  border-bottom: 0.5px solid var(--c-border);
}
.total-row:last-child { border-bottom: none; }
.total-row span:first-child { flex-shrink: 0; }
.total-row span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-text);
}
.total-row.grand {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  padding-top: 12px;
  margin-top: 4px;
}
.total-row.grand span:last-child {
  color: var(--c-blue);
  font-size: 18px;
  font-weight: 500;
}

.discount-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.discount-row input  { width: 90px; }
.discount-row select { width: 64px; }
