﻿@charset "UTF-8";
.general-page, .weightmap-page {
  min-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 3rem;
  background: linear-gradient(to bottom, #ffffff, var(--color-cool-gray-2));
  font-family: "Assistant", sans-serif;
}

.weightmap-page {
  align-items: center;
  font-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

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

.weightmap-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.weightmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.weightMap-label {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.weightMap-label-data {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  text-align: center;
}

.weightMap-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.weightMap-input-group .label {
  width: 100%;
  text-align: center;
  margin-top: 5px;
}

.weightMap-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  gap: 10px;
}

.weightMap-btn-primary {
  width: 120px !important;
  height: 60px !important;
  border-radius: 12px;
  background: var(--color-red);
  border: none;
  font-size: 20px;
  color: white;
  display: block;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.weightMap-btn-primary :hover {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.weightMap-d-flex button {
  height: 50px;
  border-radius: 12px;
  font-weight: 600;
  padding: 0 24px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.weightMap-area {
  /*display: flex; /* 1. Define o layout como Flexbox */
  flex-direction: column; /* 2. Organiza os itens em coluna */
  gap: 1rem; /* 3. Espaço entre elementos (ajuste conforme necessário) */
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.4rem;
  width: 100%;
  max-width: 90%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 10px;
}

/* Ajustes para telas muito pequenas (ex: mobile) */
@media (max-width: 480px) {
  .weightMap-area {
    padding: 1.2rem; /* Padding ainda menor */
    gap: 0.8rem; /* Espaçamento reduzido entre elementos */
  }
}
.weightMap-area:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.weightMap-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.weightMap-container-vertical {
  position: relative; /* Define o contexto de posicionamento */
  width: 50px; /* Largura do container */
  height: 210px; /* Altura do container */
  border: 1px solid #000; /* Para visualizar o container */
}

.weightMap-vertical-text {
  position: absolute;
  right: 0px; /* Alinha o texto à direita */
  left: 5px;
  top: 70px; /* Alinha ao topo */
  writing-mode: vertical-rl; /* Texto vertical de cima para baixo, direita para esquerda */
  transform: rotate(270deg); /* Inverte a direção do texto para ficar legível */
  white-space: nowrap; /* Evita que o texto quebre em linhas */
  font-size: 16px;
}

.weightMap-row {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr; /* Ajuste as larguras conforme necessário */
  column-gap: 2px;
}

.weightMap-row-condensed, .weightMap-p-condensed {
  row-gap: 2px; /* Mantive o gap, mas se quiser mais compacto, reduza para 3px ou 2px */
  column-gap: 2px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-left: 1px solid #ccc;
  width: 150px;
}

.weightMap-column {
  flex: 1; /* Cada coluna ocupa o espaço restante */
  background-color: #e0e0e0;
  padding: 10px;
}

.weightMap-grid-container-head {
  display: grid;
  grid-template-columns: 2fr 2fr 3fr;
  gap: 0;
  row-gap: 0;
  column-gap: 0;
  padding: 1px;
  margin-top: 10px;
  margin-left: 1.5rem;
}

.weightmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
}

.weightmap-card {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 1100px;
  color: var(--color-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.weightmap-days-launch {
  display: grid;
  grid-template-columns: repeat(8, 0.7fr);
  gap: 4px;
}
.weightmap-days-launch .btn {
  font-size: 12px;
  width: 40px;
}

/* Ajustes para telas muito pequenas (ex: mobile) */
@media (max-width: 480px) {
  .weightMap-grid-container-head {
    grid-template-columns: 1fr; /* Apenas uma coluna */
    column-gap: 0.5rem;
    padding: 6px;
  }
}
.weightMap-grid-container {
  display: flex;
  width: 100%;
  gap: 0;
  margin-left: 30px;
}

.weightMap-grid-column {
  flex: 1;
  padding: 0;
  box-sizing: border-box;
}

.weightMap-grid-container-data {
  margin-bottom: 15px;
  align-content: center;
  justify-content: center;
}

/* Estilo para a DIV */
.weightMap-div {
  border: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #808080;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  gap: 0;
}

/* Estilo para a tabela */
.weightMap-table {
  width: 100%;
  margin: gap 0;
  gap: 0;
  margin-top: 0px;
  font-size: 15px;
  font-weight: bold;
  /*overflow-x: auto;
  border: 1px solid #808080;
  border-left: 1px solid #808080;
  border-right: 1px solid #808080;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;*/
}

.weightMap-table th, .weightMap-table td {
  padding: 3px 8px;
  margin-top: 10px;
  /*text-align: center;*/
  vertical-align: middle;
}

.weightMap-table td {
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  width: 50%;
}

.weightMap-table-data {
  background: #ffffff;
  color: #333;
  overflow: hidden;
  width: 100%;
  gap: 0;
  margin-top: 0px;
  font-size: 15px;
  font-weight: bold;
}

.weightMap-table-data th, .weightMap-table-data .weightMap-table td, .weightMap-table .weightMap-table-data td {
  background: #f5f5f5;
  font-weight: 600;
  text-align: center;
}

.weightMap-table-data tr {
  height: 35px;
}

.weightMap-table-data td {
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}

.weightMap-label {
  margin-left: 5px;
  font-size: 13px;
}

.weightMap-label-report {
  margin-left: 5px;
}

.weightMap-label-selected {
  margin-left: 5px;
  background-color: #FFE699;
}

/* ------ CSS para o Map Report ------ */
.weightMapReport-container-vertical {
  position: relative; /* Define o contexto de posicionamento */
  width: 50px; /* Largura do container */
  height: 143px; /* Altura do container */
  border: 1px solid #000; /* Para visualizar o container */
}

.weightMapReport-vertical-text {
  position: absolute;
  right: 0px; /* Alinha o texto à direita */
  left: 5px;
  top: 50px; /* Alinha ao topo */
  writing-mode: vertical-rl; /* Texto vertical de cima para baixo, direita para esquerda */
  transform: rotate(270deg); /* Inverte a direção do texto para ficar legível */
  white-space: nowrap; /* Evita que o texto quebre em linhas */
  font-size: 16px;
}

.weightMapReport-table, .weightMapClearData-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2px 0;
  margin-top: 0px;
  font-size: 12px;
  font-weight: bold;
  overflow-x: auto;
  border-collapse: collapse;
  text-align: end;
  page-break-inside: avoid;
  table-layout: auto;
}

.weightMapReport-table tr, .weightMapClearData-table tr {
  border: 1px solid #CCC;
}

.weightMapReport-table td, .weightMapClearData-table td {
  border: 1px solid #CCC;
  width: 160px;
}

.weightMapReportAnalytical-table {
  width: 99%;
  border-collapse: collapse;
  margin: 2px 0;
  font-size: 12px;
  overflow-x: auto;
  page-break-inside: avoid;
  /*table-layout: fixed;*/
}

.weightMapReportAnalytical-table thead {
  border: 1px solid #CCC;
  font-size: 12px;
  text-align: center;
}

.weightMapReportAnalytical-table tr th, .weightMapReportAnalytical-table tr .weightMap-table td, .weightMap-table .weightMapReportAnalytical-table tr td {
  border: 1px solid #CCC;
  padding: 2px 4px;
}

.weightMapReportAnalytical-table tbody tr:nth-child(even) {
  background-color: #f2f2f2; /* cinza claro */
  line-height: 1;
}

.weightMapReportAnalytical-table tbody tr:nth-child(odd) {
  background-color: #ffffff; /* branco */
  line-height: 1;
}

.weightMapReportAnalytical-table td {
  width: auto;
  border: 1px solid #CCC;
  padding: 2px 4px; /* controla espaçamento interno */
  font-size: 12px;
  text-align: center;
  white-space: nowrap; /* evita quebra de linha, deixa mais compacto */
}

.weightMapClearData-table {
  border-collapse: inherit;
}

.weightMapClearData-table tr {
  border: 1px solid #CCC;
}

.weightMapClearData-table td {
  border: 1px solid #CCC;
  width: 40px;
}

.page-break {
  page-break-before: always; /* força nova página antes do elemento */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  width: 95%;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.2s ease;
}

.numeric-keyboard {
  max-width: 200px;
  margin: auto;
}

.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.keyboard-grid button {
  font-size: 1.2rem;
  padding: 15px;
}

.range-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

.range-group input {
  width: 70px;
  text-align: center;
}

.range-group button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-range {
  min-width: 50px;
  height: 38px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 8px;
  padding: 0;
}

.btn-range:hover {
  transform: translateY(-1px);
}

.btn-range:active {
  transform: scale(0.95);
}

.btn {
  border-radius: 6px;
  font-family: "Assistant", sans-serif;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transition: 0.2s;
}

.btn-primary:hover {
  background-color: #b41b16;
  border-color: #b41b16;
  transform: translateY(-1px);
}

.btn-icon {
  height: 44px;
  min-width: 60px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-icon i {
  font-size: 1.2rem;
}

.btn-icon i {
  font-size: 1.2rem;
}

.btn-icon:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-icon:disabled,
.btn-primary:disabled {
  background-color: #d6d6d6 !important;
  border-color: #d6d6d6 !important;
  color: #888 !important;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

.btn-main-action {
  margin-top: 2rem;
  width: 100%;
  max-width: 320px;
  height: 48px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-control,
.form-select {
  font-family: "Assistant", sans-serif;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  border-radius: 8px;
  height: 42px;
  padding: 0 10px;
  transition: 0.2s;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--color-primary);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-primary);
  border-color: var(--color-primary);
}

.input-time {
  width: 100px;
  text-align: center;
}

.col-form-label-sm {
  font-size: 12px;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .weightMap-table-reponsive {
    width: 105%;
    gap: 0;
    margin-top: 0px;
    font-size: 13px;
    font-weight: bold;
    overflow-x: hidden;
  }
  .weightMap-table-reponsive th, .weightMap-table-reponsive .weightMap-table td, .weightMap-table .weightMap-table-reponsive td {
    padding: 3px 8px;
    margin-top: 10px;
    background: #f5f5f5;
    font-size: 10px;
    text-align: center;
    vertical-align: middle;
  }
  .weightMap-table-reponsive td {
    width: 100%;
  }
  .weightMap-table-data-responsive {
    background: #ffffff;
    color: #333;
    width: 105%;
    gap: 0;
    margin-top: 0px;
    font-size: 13px;
    font-weight: bold;
    overflow: hidden;
  }
  .weightMap-table-data-responsive th, .weightMap-table-data-responsive .weightMap-table td, .weightMap-table .weightMap-table-data-responsive td {
    background: #f5f5f5;
    font-weight: 300;
    text-align: center;
  }
  .weightMap-table-data-responsive tr {
    height: 25px;
  }
  .weightMap-table-data-responsive td {
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    text-align: center;
  }
  .weightMap-grid-container weightMap-grid-container-data {
    flex-direction: column; /* Alinha os itens verticalmente em telas pequenas */
  }
  .weightMap-grid-column {
    flex: 1 1 100%; /* Ocupa 100% da largura em telas pequenas */
  }
  .weightMap-grid-container-head {
    grid-template-columns: 1fr 2fr; /* Reduz o número de colunas */
    column-gap: 0.8rem;
    margin-left: 0; /* Remove o margin-left em telas pequenas */
    padding: 8px;
  }
  .weightMap-area {
    padding: 1.6rem; /* Reduz o padding para telas menores */
    max-width: 100%; /* Garante que ocupe a largura total em telas pequenas */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Sombra mais suave */
    border-radius: 6px; /* Borda menos arredondada */
  }
  .modal-dialog {
    max-width: 90%; /* reduz a largura total do modal */
    margin: auto; /* centraliza */
  }
  .modal-content {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
  }
  .modal-footer {
    padding: 0.75rem; /* diminui o espaçamento interno */
  }
  .weightmap-page {
    padding: 1rem;
  }
  .weightmap-card {
    padding: 1.2rem;
    border-radius: 8px;
  }
  .weightmap-title {
    font-size: 1.4rem;
  }
  .weightmap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .weightmap-grid {
    grid-template-columns: 1fr;
  }
  .btn-main-action {
    max-width: 100%;
  }
  .range-group {
    justify-content: center;
  }
  .col-form-label-sm {
    font-size: 12px;
    display: none;
  }
  .weightmap-actions {
    display: flex;
    gap: 2px;
  }
  .weightmap-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.65rem;
  }
  .weightMap-label {
    font-size: 0.65rem;
    margin-bottom: 4px;
    color: var(--color-text);
  }
  .btn-range {
    min-width: 10px;
    width: 10px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: bold;
    border-radius: 4px;
    padding: 0;
  }
  .range-group input {
    width: 50px;
    text-align: center;
    font-size: 0.65rem;
  }
  .weightmap-days-launch {
    display: grid;
    grid-template-columns: repeat(8, 0.7fr);
    gap: 1px;
  }
  .weightmap-days-launch .btn {
    font-size: 10px;
    width: 40px;
  }
  /*
  .weightMapClearData-table {
      @extend .weightMapReport-table;
      font-size: 0.55rem;
  }*/
  .weightMapClearData-table {
    table-layout: fixed;
    min-width: 300px;
    /*width: 350px;*/
    width: 100%;
    margin-left: -15px;
    font-size: 0.55rem;
  }
  .weightMapClearData-table th:nth-child(1), .weightMapClearData-table td:nth-child(1) {
    width: 15%;
  }
  .weightMapClearData-table th:nth-child(2), .weightMapClearData-table td:nth-child(2) {
    width: 25%;
    font-size: 0.45rem;
  }
  .weightMapClearData-table th:nth-child(3), .weightMapClearData-table td:nth-child(3) {
    width: 25%;
  }
  .weightMapClearData-table th:nth-child(4), .weightMapClearData-table td:nth-child(4) {
    width: 25%;
  }
  .weightMapClearData-table th:nth-child(5), .weightMapClearData-table td:nth-child(5) {
    width: 25%;
    font-size: 0.45rem;
  }
  .weightMapClearData-table th:nth-child(6), .weightMapClearData-table td:nth-child(6) {
    width: 25%;
    font-size: 0.45rem;
  }
  /*
  .weightMapClearData-table th {
      border: 1px solid #CCC;
      grid-template-columns: 0.5fr 0.3fr 3fr 1fr 3fr 3fr;
      gap: 6px;
      font-size: 0.45rem;
  }

  .weightMapClearData-table tr {
      border: 1px solid #CCC;
  }

  .weightMapClearData-table td {
      border: 1px solid #CCC;
  }*/
  .form-control,
  .form-select {
    font-family: "Assistant", sans-serif;
    font-size: 0.75rem; /* reduz a fonte */
    color: var(--color-text);
    border: 1px solid var(--color-border);
    background-color: var(--color-background);
    border-radius: 8px;
    height: 42px;
    padding: 0 10px;
    transition: 0.2s;
  }
  .form-select option {
    font-size: 0.75rem; /* reduz a fonte */
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #ccc;
    border-top: none;
    position: absolute;
    width: 100%;
    background: #fff;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
  }
  .form-select .options li {
    padding: 8px;
    cursor: pointer;
    font-size: 0.85rem; /* fonte menor */
  }
  .form-select .options li:hover {
    background: #eee;
  }
  .weightMap-btn-primary {
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px;
    background: var(--color-red);
    border: none;
    font-size: 12px;
    color: white;
    display: block;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
  }
  .weightMap-btn-primary :hover {
    transform: scale(1.1);
    filter: brightness(0.9);
  }
}
