.estoque-calculo-page {
  min-height: 100vh;
  padding: 34px clamp(22px, 3vw, 54px) 42px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.64), rgba(232, 223, 209, 0.84)),
    var(--color-bg);
}

.estoque-calculo-header,
.estoque-calculo-workspace {
  max-width: var(--content-max);
  margin: 0 auto;
}

.estoque-calculo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.estoque-calculo-header h1 {
  margin: 0;
  color: var(--sa-marrom-escuro);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.estoque-calculo-header p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.estoque-calculo-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.estoque-calculo-workspace {
  display: grid;
  gap: 18px;
}

.estoque-calculo-panel {
  min-width: 0;
}

.estoque-calculo-records-header {
  align-items: flex-start;
  gap: 18px;
}

.estoque-calculo-meta {
  margin: -4px 0 16px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.estoque-calculo-meta strong {
  color: var(--color-text);
}

.estoque-calculo-table {
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}

.estoque-calculo-table th,
.estoque-calculo-table td {
  border-right: 1px solid rgba(62, 45, 31, 0.12);
  border-bottom: 1px solid rgba(62, 45, 31, 0.10);
}

.estoque-calculo-table th:last-child,
.estoque-calculo-table td:last-child {
  border-right: 0;
}



.estoque-calculo-table .numeric-cell {
  text-align: left;
  white-space: nowrap;
}

.estoque-calculo-table .current-stock {
  color: #304226;
  font-weight: 900;
}

.farol-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.farol-legend span,
.farol-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.farol-pill {
  min-width: 112px;
  justify-content: flex-start;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 900;
}

.farol-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(61, 46, 31, 0.14);
}

.farol-dot.verde {
  background: #4e7b3b;
}

.farol-dot.amarelo {
  background: #c99a2e;
}

.farol-dot.vermelho {
  background: #a94438;
}

.farol-dot.neutro {
  background: #9b948c;
}

.estoque-calculo-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.estoque-calculo-empty p {
  margin: 0;
}

@media (max-width: 1100px) {
  .estoque-calculo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .estoque-calculo-header-actions,
  .farol-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .estoque-calculo-page {
    padding: 84px 16px 30px;
  }

  .estoque-calculo-header-actions {
    width: 100%;
  }

  .estoque-calculo-header-actions .secondary-action {
    flex: 1 1 100%;
    justify-content: center;
  }
}
