/* Seção de busca */
.search-section {
  background-color: var(--panel-bg);
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.search-row label {
  font-size: 12px;
  color: var(--text-dark);
  white-space: nowrap;
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
}

.stock-info label {
  font-size: 12px;
  font-weight: 600;
}

.stock-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  min-width: 40px;
  text-align: right;
}

/* Grid de formulários */
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid:last-child {
  margin-bottom: 0;
}

/* Seção de itens */
.items-section {
  flex: 1;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: auto;
  min-height: 150px;
}

/* Painéis de informações */
.info-panels {
  display: flex;
  gap: 12px;
  flex: 1;
}

.info-panel {
  flex: 1;
  background-color: var(--panel-bg);
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.info-panel h3 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}

.info-grid:last-child {
  margin-bottom: 0;
}

.info-item {
  display: flex;
  gap: 6px;
}

.info-item label {
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.info-item span {
  color: var(--text-light);
  font-family: 'Consolas', 'Courier New', monospace;
}

.info-item.totals-right {
  justify-content: flex-end;
}

.highlight-value {
  font-weight: bold;
  color: var(--text-dark);
  font-size: 13px;
}

/* Display do total */
.total-display {
  background-color: var(--total-bg);
  padding: 16px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.total-label {
  font-size: 12px;
  font-weight: 600;
  color: #004d00;
}

.total-value {
  font-size: 36px;
  font-weight: bold;
  color: #003300;
  font-family: 'Consolas', 'Courier New', monospace;
  line-height: 1;
}

/* Rodapé */
.footer-section {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}