@import url("https://fonts.googleapis.com/css?family=Inter:400,500,600,700&display=swap");

body {
  line-height: 1.5;
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  color: #334155;
  background: #f5f7fb;
  overflow-x: hidden;
  margin: 0;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0f172a;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

a,
button,
select {
  cursor: pointer;
  transition: 0.2s ease;
}

a:focus,
button:focus,
select:focus {
  outline: 0;
}

ol,
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

img {
  vertical-align: middle;
  border: 0;
}

.btn {
  font-family: "Inter", Arial, sans-serif;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: none !important;
}

.public-page {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 96px;
}

.public-hero {
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 22px;
}

.public-hero-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.logo {
  max-width: 100%;
  max-height: 128px;
  object-fit: contain;
}

.public-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.titulo {
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  letter-spacing: 0;
}

.empresa-nome {
  margin-top: 8px;
  font-size: 1.05rem;
  color: #475569;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-weight: 500;
}

.public-table-shell {
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #d9e1ec;
  background: #f8fafc;
}

.table-toolbar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.table-toolbar-subtitle {
  color: #64748b;
  font-size: 0.9rem;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 600;
}

.toolbar-button:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

#container-table {
  overflow-x: auto;
}

#tabelaDePrecos {
  display: table;
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
}

#tabelaDePrecos th,
#tabelaDePrecos td {
  padding: 14px 16px;
}

#tabelaDePrecos thead th {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
}

#tabelaDePrecos tbody td {
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.conteudo:hover {
  background: #f8fbff !important;
}

.codigo {
  width: 10%;
}

.produto {
  width: 66%;
}

.precoquilounid {
  width: 24%;
}

.produto-dado {
  font-weight: 600;
  color: #0f172a;
}

.linha-codigo {
  color: #64748b;
  font-weight: 600;
}

.linha-preco {
  white-space: nowrap;
  font-weight: 700;
  color: #0f172a;
}

.table-footer {
  padding: 22px 20px;
  background: #f8fafc;
  border-top: 1px solid #d9e1ec;
}

.table-footer small {
  display: block;
  color: #64748b;
  line-height: 1.7;
}

.public-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
}

.public-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-action-link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.public-action-link:hover {
  background: #1d4ed8;
  color: #fff;
}

.impressao {
  display: none;
}

.modal-imagem {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.62);
  z-index: 30;
}

.modal-imagem.is-open {
  display: flex;
}

.modal-imagem-card {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28);
}

.modal-imagem-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-imagem-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

#fecharModal {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d9e1ec;
  background: #fff;
  color: #334155;
}

#produtoImagem {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.msg-produto-sem-imagem {
  text-align: center;
  color: #64748b;
  padding: 28px 12px 8px;
}

.no-border {
  border: 0 !important;
}

.espaco,
.espaco-direita {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 991px) {
  .public-page {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .public-hero {
    padding: 20px;
  }

  .public-hero-inner {
    grid-template-columns: 1fr;
  }

  .brand-logo-wrap {
    min-height: 120px;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-button {
    width: 100%;
  }

  .public-actions {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 600px) {
  #tabelaDePrecos {
    min-width: 640px;
  }

  .public-actions {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .public-actions-list {
    flex-direction: row;
    justify-content: center;
  }
}
