.revoluz-tabela-precos-page {
  background: #f5f5f7;
}

.revoluz-tp-toolbar .form-label {
  font-size: 0.82rem;
}

.revoluz-tp-toolbar .form-control,
.revoluz-tp-toolbar .form-select {
  min-height: 44px;
  border-radius: 14px;
}

.revoluz-tp-toolbar input[type="file"].form-control {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.revoluz-tp-toolbar input[type="file"].form-control::file-selector-button {
  height: 40px;
  margin: -9px 12px -9px -12px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #dee2e6;
  background: #f8f9fa;
  color: #212529;
}

.revoluz-tp-preview {
  /*background: #d9d9dd;*/
  min-height: 50vh;
}

.revoluz-tp-preview-inner {
  overflow-x: auto;
}

/* ===== Documento A4 ===== */



.pagina-a4 {
  display: flex;
  flex-direction: row;
  width: 297mm;
  height: 210mm;
  padding: 5mm;
  box-sizing: border-box !important;
  background: #fff;
  margin: 0 auto 20px auto;
  page-break-after: always;
  break-after: page;
  border: 1px solid #ccc;
}

.pagina-a4.capa {
  position: relative;
  overflow: hidden;
  box-sizing: border-box !important;
}

.pagina-a4.capa img.fundo-capa {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 0;
}


.capa-titulo {
  font-size: 57pt;
  font-weight: 400;
  color: #fff;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-block: 0;
}

.capa-colecao {
  font-size: 32pt;
  font-weight: 100;
  letter-spacing: 3px;
  color: #ffffff;
}

.capa-linhas {
  font-size: 20pt;
  font-weight: 200;
  font-style: italic;
  margin-block: 0;
  text-transform: lowercase;
  display: inline-block;
  background-color: #b11b74;
  color: white;
  padding: 5px 15px;
}

.capa-icms {
  font-size: 12pt;
  font-weight: 300;
  margin-block: 30px;
  color: #fff;
}

.imagem-lateral {
  width: 60mm;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px 5px 70px 5px;
  overflow: hidden;
}

.imagem-lateral img {
  height: 100%;
  object-fit: cover;
  border-radius: 5px 5px 70px 5px;
}

.conteudo-principal {
  flex: 1;
  padding: 5mm 5mm 0 5mm;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.cabecalho {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2mm;
}

.cabecalho .titulo {
  font-size: 16pt;
  color: #9b00ff;
  margin-left: 10px;
}

.cabecalho .linha-info {
  font-size: 40pt;
  color: #9b00ff;
  font-style: italic;
  font-weight: 200;
  margin-left: -19px;
  text-transform: lowercase;
  text-decoration: none;
}

.cabecalho .logo img {
  height: 15mm;
}

.tabela-produtos {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tabela-produtos table {
  width: 100%;
  border-collapse: collapse;
  font-size: 6.7pt;
}

.tabela-produtos th,
.tabela-produtos td {
  padding: 3px 4px;
  text-align: left;
}

.tabela-produtos td {
  border: none;
  border-bottom: 1px solid #ccc;
}

.tabela-produtos th {
  color: #40006b;
  border: none;
  border-bottom: 1px solid #40006b;
  vertical-align: bottom;
}

.tabela-produtos tr {
  page-break-inside: avoid;
}

th.ajustar,
td.ajustar {
  white-space: nowrap;
}

th.w25,
td.w25 {
  width: 25px;
}

th.col-acabamento,
td.col-acabamento {
  width: 113px;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

td.offwhite {
  background-color: #f2f2f2;
  font-weight: bold;
}

td.valor {
  background-color: #f0ffef;
  font-weight: bold;
  font-size: 7.5pt;
}

a.link-codigo {
  text-decoration: none;
  font-weight: bold;
  text-wrap: nowrap;
  color: #212529;
}

a.link-codigo:hover {
  color: #9b00ff;
}

.rodape {
  column-count: 5;
  column-gap: 12px;
  font-size: 8pt;
  margin-top: auto;
  width: 215mm;
}

img.ico {
  height: 5mm;
  float: none;
  clear: none;
  margin: 1px;
  vertical-align: middle;
}

.descricao_ico {
  display: flex;
  align-items: center;
  gap: 4px;
  break-inside: avoid;
  margin-bottom: 1mm;
}

.descricao_texto_legenda {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== Impressão ===== */

@media print {

    @page {
    size: A4 landscape;
    margin: 0;
  }

  body {
    margin: 0px !important;
    padding: 0px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  pre {
    margin: 0px !important;
    padding: 0px !important;
    overflow: hidden !important;
  }

  header,
  footer,
  .revoluz-header,
  .revoluz-footer,
  .revoluz-tp-toolbar,
  .text-muted.m-3  {
    display: none !important;
  }

  .container-xxl {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  main.revoluz-tabela-precos-page,
  .revoluz-doc-wrap {
    width: 297mm !important;
    height: auto !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  .pagina-a4 {
    margin: 0 !important;
    page-break-after: always !important;
    break-after: page !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 0px !important;
  }

  .pagina-a4:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

}