.consumo-ms-pv-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);
}

.consumo-ms-pv-header,
.consumo-ms-pv-workspace {
  max-width: var(--content-max);
  margin: 0 auto;
}

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

.consumo-ms-pv-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;
}

.consumo-ms-pv-header p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

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

.consumo-ms-pv-header-actions .secondary-action {
  min-height: 42px;
  white-space: nowrap;
}

.consumo-ms-pv-header-actions [aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.66;
}

.consumo-ms-pv-workspace {
  display: grid;
  gap: 18px;
}

.consumo-ms-pv-panel {
  min-width: 0;
}

.consumo-ms-pv-panel .records-header {
  align-items: center;
}

.consumo-ms-pv-export-button {
  flex: 0 0 auto;
}

.consumo-ms-pv-table {
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
}

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

.consumo-ms-pv-table th:last-child,
.consumo-ms-pv-table td:last-child {
  border-right: 0;
}


.consumo-ms-pv-table .numeric-cell {
  text-align: left;
  white-space: nowrap;
  font-weight: 800;
}

.consumo-ms-pv-table .danger {
  color: #9f2d22;
}

.consumo-ms-pv-form-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(180px, 0.6fr);
  gap: 14px;
  max-width: 520px;
}

@media (max-width: 900px) {
  .consumo-ms-pv-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .consumo-ms-pv-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .consumo-ms-pv-page {
    padding: 84px 16px 30px;
  }

  .consumo-ms-pv-header-actions,
  .consumo-ms-pv-header-actions .primary-action,
  .consumo-ms-pv-header-actions .secondary-action {
    width: 100%;
  }

  .consumo-ms-pv-header-actions .primary-action,
  .consumo-ms-pv-header-actions .secondary-action {
    justify-content: center;
    text-align: center;
  }

  .consumo-ms-pv-form-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .consumo-ms-pv-panel .records-header {
    align-items: stretch;
    flex-direction: column;
  }

  .consumo-ms-pv-export-button {
    width: 100%;
  }
}
