/* Configuração geral de cores e fontes */
:root {
  font-family:Arial,Helvetica,sans-serif;
  color:#253344;
  background:#f7f9fb;
  font-size:16px}
* {
  box-sizing:border-box}
html {
  scroll-padding-top:76px;
  scroll-padding-bottom:120px}
body {
  margin:0}
header {
  background:white;
  border-bottom:1px solid #dde4eb;
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px max(24px,calc((100% - 1120px)/2))}
header img {
  width:70px;
  height:48px;
  object-fit:contain}
header strong {
  font-size:22px}
header span {
  display:block;
  font-size:13px;
  color:#64748b;
  margin-top:4px}
header form {
  margin-left:auto}
.header-account {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0}
.welcome {
  margin:0;
  font-size:14px;
  line-height:1.5;
  text-align:right;
  overflow-wrap:anywhere}
.header-account form {
  flex-shrink:0}
main {
  max-width:1120px;
  margin:36px auto;
  padding:0 24px;
  min-height:65vh}
h1 {
  font-size:30px;
  margin:0 0 24px}
h2 {
  font-size:19px;
  margin:34px 0 12px;
  color:#1f4e79}
h3 {
  font-size:16px;
  margin:6px 0}
label {
  display:block;
  font-size:14px;
  font-weight:600}
input {
  display:block;
  width:100%;
  font:inherit;
  font-size:16px;
  min-height:44px;
  padding:11px 12px;
  border:1px solid #bbc8d4;
  border-radius:6px;
  background:#fff;
  margin-top:7px;
  color:#253344}
input:focus {
  outline:2px solid #5288b2;
  outline-offset:2px}
button,.button {
  display:inline-block;
  min-height:44px;
  touch-action:manipulation;
  border:1px solid #1f4e79;
  border-radius:6px;
  background:#1f4e79;
  color:white;
  padding:11px 18px;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  text-decoration:none}
button:disabled {
  opacity:.5;
  cursor:default}
.secondary {
  background:white;
  color:#1f4e79;
  border-color:#bdcad5}
/* PDF em azul mais claro que o botão de salvar */
.pdf-button {
  background:#a8d4f5;
  color:#163b5a;
  border-color:#6aa9d8;
  box-shadow:0 2px 5px #25334418}
.pdf-button:hover {
  background:#91c7ef}
.pdf-button:focus-visible {
  outline:2px solid #1f4e79;
  outline-offset:3px}
/* Tela de login */
.login {
  max-width:420px;
  margin:64px auto;
  padding:30px;
  background:white;
  border:1px solid #dde4eb;
  border-radius:10px}
.login h1 {
  font-size:25px;
  margin-bottom:8px}
.login h1,.login h1 + p {
  text-align:center}
.login p {
  color:#607085;
  line-height:1.5}
.login label {
  margin:22px 0}
.login button {
  width:100%}
/* Mensagens de aviso, erro e sucesso */
.notice {
  padding:14px 16px;
  border-radius:6px;
  background:#fff5d8;
  color:#705316;
  line-height:1.5;
  border:1px solid #eadcb6}
.notice.error {
  background:#fff0f0;
  color:#9b3030;
  border-color:#efcaca}
.notice.success {
  background:#e9f6ed;
  color:#256138;
  border-color:#baddc3}
.date-form,.controls,.confirm-form {
  display:flex;
  flex-wrap:wrap;
  align-items:end;
  gap:12px}
.date-form label {
  max-width:230px}
/* Pesquisa por nome, sem apagar os preços preenchidos */
.product-search {
  position:sticky;
  top:12px;
  z-index:10;
  width:300px;
  max-width:100%;
  margin:0 0 -48px auto}
.product-search input {
  margin-top:0;
  height:48px;
  background:#d6e8f7;
  border-color:#8eb6d6;
  color:#193e5e;
  box-shadow:0 2px 8px #25334418}
.product-search input::placeholder {
  color:#365d7d;
  opacity:1}
.quotation-title {
  min-height:48px;
  padding-right:320px}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0}
/* Grade de produtos e campos de preços */
.product {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,2fr);
  gap:28px;
  padding:22px 0;
  border-bottom:1px solid #dce4ec}
.product h3 {
  overflow-wrap:anywhere}
.controls button {
  font-size:14px;
  padding:8px 14px}
.prices {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px}
.summary {
  font-size:14px;
  line-height:1.8;
  color:#37516a}
.muted {
  color:#64748b;
  font-size:14px;
  line-height:1.6}
/* Barra de salvamento */
.save-bar {
  position:sticky;
  z-index:5;
  bottom:0;
  padding:18px 72px 18px 0;
  background:#f7f9fb;
  display:flex;
  gap:18px;
  align-items:center}
.save-bar button {
  flex-shrink:0}
.save-bar span {
  font-size:13px;
  color:#64748b}
/* Atalho sempre visível, com o mesmo azul da pesquisa */
.back-to-top {
  position:fixed;
  right:20px;
  bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  z-index:20;
  width:48px;
  height:48px;
  padding:0;
  display:grid;
  place-items:center;
  background:#d6e8f7;
  border-color:#8eb6d6;
  color:#193e5e;
  font-size:26px;
  box-shadow:0 2px 8px #25334418}
.back-to-top:hover {
  background:#c2dcf1}
.back-to-top:focus-visible {
  outline:2px solid #5288b2;
  outline-offset:3px}
/* Tabela de conferência */
.table-scroll {
  overflow:auto;
  margin:24px 0}
table {
  border-collapse:collapse;
  width:100%;
  background:white}
th,td {
  text-align:right;
  border-bottom:1px solid #dce4ec;
  padding:12px;
  font-size:14px}
th {
  background:#1f4e79;
  color:white}
th:first-child,td:first-child {
  text-align:left}
footer {
  text-align:center;
  color:#718096;
  font-size:12px;
  padding:28px}
[hidden] {
  display:none!important}
/* Tablets na vertical: mais espaço para digitar e tocar nos controles */
@media(max-width:900px) {
  header {
  flex-wrap:wrap}
.header-account {
  flex:1 1 280px}
.welcome {
  margin-left:auto}
  .product-search {
  margin-bottom:18px}
.quotation-title {
  padding-right:0;
  min-height:0}
  header {
  padding:14px 18px;
  gap:10px}
header span {
  max-width:180px}
main {
  padding:0 18px;
  margin-top:24px}
.product {
  grid-template-columns:1fr;
  gap:8px}
.save-bar {
  align-items:stretch;
  flex-direction:column;
  gap:8px}
.login {
  padding:24px;
  margin:30px auto}
.confirm-form {
  flex-wrap:wrap}
}
/* Em celulares pequenos, evita campos de preço estreitos. */
@media(max-width:480px) {
  .prices {
    grid-template-columns:repeat(2,minmax(0,1fr))}
  header {
    flex-wrap:wrap}
  .date-form label {
    width:100%;
    max-width:none}
}
 
